configure revision 20d725fb
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60a for libpthread-stubs 0.1. 4# 5# Report bugs to <xcb@lists.freedesktop.org>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 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 Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 25fi 26BIN_SH=xpg4; export BIN_SH # for Tru64 27DUALCASE=1; export DUALCASE # for MKS sh 28 29 30# PATH needs CR 31# Avoid depending upon Character Ranges. 32as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35as_cr_digits='0123456789' 36as_cr_alnum=$as_cr_Letters$as_cr_digits 37 38# The user is always right. 39if test "${PATH_SEPARATOR+set}" != set; then 40 echo "#! /bin/sh" >conf$$.sh 41 echo "exit 0" >>conf$$.sh 42 chmod +x conf$$.sh 43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 44 PATH_SEPARATOR=';' 45 else 46 PATH_SEPARATOR=: 47 fi 48 rm -f conf$$.sh 49fi 50 51# Support unset when possible. 52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53 as_unset=unset 54else 55 as_unset=false 56fi 57 58 59# IFS 60# We need space, tab and new line, in precisely that order. Quoting is 61# there to prevent editors from complaining about space-tab. 62# (If _AS_PATH_WALK were called with IFS unset, it would disable word 63# splitting by setting IFS to empty value.) 64as_nl=' 65' 66IFS=" "" $as_nl" 67 68# Find who we are. Look in the path if we contain no directory separator. 69case $0 in 70 *[\\/]* ) as_myself=$0 ;; 71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72for as_dir in $PATH 73do 74 IFS=$as_save_IFS 75 test -z "$as_dir" && as_dir=. 76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 77done 78IFS=$as_save_IFS 79 80 ;; 81esac 82# We did not find ourselves, most probably we were run as `sh COMMAND' 83# in which case we are not to be found in the path. 84if test "x$as_myself" = x; then 85 as_myself=$0 86fi 87if test ! -f "$as_myself"; then 88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 89 { (exit 1); exit 1; } 90fi 91 92# Work around bugs in pre-3.0 UWIN ksh. 93for as_var in ENV MAIL MAILPATH 94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 95done 96PS1='$ ' 97PS2='> ' 98PS4='+ ' 99 100# NLS nuisances. 101for as_var in \ 102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 104 LC_TELEPHONE LC_TIME 105do 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 107 eval $as_var=C; export $as_var 108 else 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 110 fi 111done 112 113# Required to use basename. 114if expr a : '\(a\)' >/dev/null 2>&1 && 115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 116 as_expr=expr 117else 118 as_expr=false 119fi 120 121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 122 as_basename=basename 123else 124 as_basename=false 125fi 126 127 128# Name of the executable. 129as_me=`$as_basename -- "$0" || 130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 131 X"$0" : 'X\(//\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 133echo X/"$0" | 134 sed '/^.*\/\([^/][^/]*\)\/*$/{ 135 s//\1/ 136 q 137 } 138 /^X\/\(\/\/\)$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\).*/{ 143 s//\1/ 144 q 145 } 146 s/.*/./; q'` 147 148# CDPATH. 149$as_unset CDPATH 150 151 152if test "x$CONFIG_SHELL" = x; then 153 if (eval ":") 2>/dev/null; then 154 as_have_required=yes 155else 156 as_have_required=no 157fi 158 159 if test $as_have_required = yes && (eval ": 160(as_func_return () { 161 (exit \$1) 162} 163as_func_success () { 164 as_func_return 0 165} 166as_func_failure () { 167 as_func_return 1 168} 169as_func_ret_success () { 170 return 0 171} 172as_func_ret_failure () { 173 return 1 174} 175 176exitcode=0 177if as_func_success; then 178 : 179else 180 exitcode=1 181 echo as_func_success failed. 182fi 183 184if as_func_failure; then 185 exitcode=1 186 echo as_func_failure succeeded. 187fi 188 189if as_func_ret_success; then 190 : 191else 192 exitcode=1 193 echo as_func_ret_success failed. 194fi 195 196if as_func_ret_failure; then 197 exitcode=1 198 echo as_func_ret_failure succeeded. 199fi 200 201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 202 : 203else 204 exitcode=1 205 echo positional parameters were not saved. 206fi 207 208test \$exitcode = 0) || { (exit 1); exit 1; } 209 210( 211 as_lineno_1=\$LINENO 212 as_lineno_2=\$LINENO 213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 215") 2> /dev/null; then 216 : 217else 218 as_candidate_shells= 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 case $as_dir in 225 /*) 226 for as_base in sh bash ksh sh5; do 227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 228 done;; 229 esac 230done 231IFS=$as_save_IFS 232 233 234 for as_shell in $as_candidate_shells $SHELL; do 235 # Try only shells that exist, to save several forks. 236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 237 { ("$as_shell") 2> /dev/null <<\_ASEOF 238# Be Bourne compatible 239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 240 emulate sh 241 NULLCMD=: 242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 243 # is contrary to our usage. Disable this feature. 244 alias -g '${1+"$@"}'='"$@"' 245 setopt NO_GLOB_SUBST 246else 247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 248fi 249BIN_SH=xpg4; export BIN_SH # for Tru64 250DUALCASE=1; export DUALCASE # for MKS sh 251 252: 253_ASEOF 254}; then 255 CONFIG_SHELL=$as_shell 256 as_have_required=yes 257 if { "$as_shell" 2> /dev/null <<\_ASEOF 258# Be Bourne compatible 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 268fi 269BIN_SH=xpg4; export BIN_SH # for Tru64 270DUALCASE=1; export DUALCASE # for MKS sh 271 272: 273(as_func_return () { 274 (exit $1) 275} 276as_func_success () { 277 as_func_return 0 278} 279as_func_failure () { 280 as_func_return 1 281} 282as_func_ret_success () { 283 return 0 284} 285as_func_ret_failure () { 286 return 1 287} 288 289exitcode=0 290if as_func_success; then 291 : 292else 293 exitcode=1 294 echo as_func_success failed. 295fi 296 297if as_func_failure; then 298 exitcode=1 299 echo as_func_failure succeeded. 300fi 301 302if as_func_ret_success; then 303 : 304else 305 exitcode=1 306 echo as_func_ret_success failed. 307fi 308 309if as_func_ret_failure; then 310 exitcode=1 311 echo as_func_ret_failure succeeded. 312fi 313 314if ( set x; as_func_ret_success y && test x = "$1" ); then 315 : 316else 317 exitcode=1 318 echo positional parameters were not saved. 319fi 320 321test $exitcode = 0) || { (exit 1); exit 1; } 322 323( 324 as_lineno_1=$LINENO 325 as_lineno_2=$LINENO 326 test "x$as_lineno_1" != "x$as_lineno_2" && 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 328 329_ASEOF 330}; then 331 break 332fi 333 334fi 335 336 done 337 338 if test "x$CONFIG_SHELL" != x; then 339 for as_var in BASH_ENV ENV 340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 341 done 342 export CONFIG_SHELL 343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 344fi 345 346 347 if test $as_have_required = no; then 348 echo This script requires a shell more modern than all the 349 echo shells that I found on your system. Please install a 350 echo modern shell, or manually run the script under such a 351 echo shell if you do have one. 352 { (exit 1); exit 1; } 353fi 354 355 356fi 357 358fi 359 360 361 362(eval "as_func_return () { 363 (exit \$1) 364} 365as_func_success () { 366 as_func_return 0 367} 368as_func_failure () { 369 as_func_return 1 370} 371as_func_ret_success () { 372 return 0 373} 374as_func_ret_failure () { 375 return 1 376} 377 378exitcode=0 379if as_func_success; then 380 : 381else 382 exitcode=1 383 echo as_func_success failed. 384fi 385 386if as_func_failure; then 387 exitcode=1 388 echo as_func_failure succeeded. 389fi 390 391if as_func_ret_success; then 392 : 393else 394 exitcode=1 395 echo as_func_ret_success failed. 396fi 397 398if as_func_ret_failure; then 399 exitcode=1 400 echo as_func_ret_failure succeeded. 401fi 402 403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 404 : 405else 406 exitcode=1 407 echo positional parameters were not saved. 408fi 409 410test \$exitcode = 0") || { 411 echo No shell found that supports shell functions. 412 echo Please tell autoconf@gnu.org about your system, 413 echo including any error possibly output before this 414 echo message 415} 416 417 418 419 as_lineno_1=$LINENO 420 as_lineno_2=$LINENO 421 test "x$as_lineno_1" != "x$as_lineno_2" && 422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 423 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 425 # uniformly replaced by the line number. The first 'sed' inserts a 426 # line-number line after each line using $LINENO; the second 'sed' 427 # does the real work. The second script uses 'N' to pair each 428 # line-number line with the line containing $LINENO, and appends 429 # trailing '-' during substitution so that $LINENO is not a special 430 # case at line end. 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 432 # scripts with optimization help from Paolo Bonzini. Blame Lee 433 # E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 451 { (exit 1); exit 1; }; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459} 460 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in 470-n*) 471 case `echo 'x\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 *) ECHO_C='\c';; 474 esac;; 475*) 476 ECHO_N='-n';; 477esac 478 479if expr a : '\(a\)' >/dev/null 2>&1 && 480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 481 as_expr=expr 482else 483 as_expr=false 484fi 485 486rm -f conf$$ conf$$.exe conf$$.file 487if test -d conf$$.dir; then 488 rm -f conf$$.dir/conf$$.file 489else 490 rm -f conf$$.dir 491 mkdir conf$$.dir 492fi 493echo >conf$$.file 494if ln -s conf$$.file conf$$ 2>/dev/null; then 495 as_ln_s='ln -s' 496 # ... but there are two gotchas: 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 499 # In both cases, we have to default to `cp -p'. 500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 501 as_ln_s='cp -p' 502elif ln conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s=ln 504else 505 as_ln_s='cp -p' 506fi 507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 508rmdir conf$$.dir 2>/dev/null 509 510if mkdir -p . 2>/dev/null; then 511 as_mkdir_p=: 512else 513 test -d ./-p && rmdir ./-p 514 as_mkdir_p=false 515fi 516 517# Find out whether ``test -x'' works. Don't use a zero-byte file, as 518# systems may use methods other than mode bits to determine executability. 519cat >conf$$.file <<_ASEOF 520#! /bin/sh 521exit 0 522_ASEOF 523chmod +x conf$$.file 524if test -x conf$$.file >/dev/null 2>&1; then 525 as_executable_p="test -x" 526else 527 as_executable_p=: 528fi 529rm -f conf$$.file 530 531# Sed expression to map a string onto a valid CPP name. 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534# Sed expression to map a string onto a valid variable name. 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 538 539 540# Check that we are running under the correct shell. 541SHELL=${CONFIG_SHELL-/bin/sh} 542 543case X$ECHO in 544X*--fallback-echo) 545 # Remove one level of quotation (which was required for Make). 546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 547 ;; 548esac 549 550echo=${ECHO-echo} 551if test "X$1" = X--no-reexec; then 552 # Discard the --no-reexec flag, and continue. 553 shift 554elif test "X$1" = X--fallback-echo; then 555 # Avoid inline document here, it may be left over 556 : 557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 558 # Yippee, $echo works! 559 : 560else 561 # Restart under the correct shell. 562 exec $SHELL "$0" --no-reexec ${1+"$@"} 563fi 564 565if test "X$1" = X--fallback-echo; then 566 # used as fallback echo 567 shift 568 cat <<EOF 569$* 570EOF 571 exit 0 572fi 573 574# The HP-UX ksh and POSIX shell print the target directory to stdout 575# if CDPATH is set. 576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 577 578if test -z "$ECHO"; then 579if test "X${echo_test_string+set}" != Xset; then 580# find a string as large as possible, as long as the shell can cope with it 581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 583 if (echo_test_string=`eval $cmd`) 2>/dev/null && 584 echo_test_string=`eval $cmd` && 585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 586 then 587 break 588 fi 589 done 590fi 591 592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 594 test "X$echo_testing_string" = "X$echo_test_string"; then 595 : 596else 597 # The Solaris, AIX, and Digital Unix default echo programs unquote 598 # backslashes. This makes it impossible to quote backslashes using 599 # echo "$something" | sed 's/\\/\\\\/g' 600 # 601 # So, first we look for a working echo in the user's PATH. 602 603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 604 for dir in $PATH /usr/ucb; do 605 IFS="$lt_save_ifs" 606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 echo="$dir/echo" 611 break 612 fi 613 done 614 IFS="$lt_save_ifs" 615 616 if test "X$echo" = Xecho; then 617 # We didn't find a better echo, so look for alternatives. 618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 620 test "X$echo_testing_string" = "X$echo_test_string"; then 621 # This shell has a builtin print -r that does the trick. 622 echo='print -r' 623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 624 test "X$CONFIG_SHELL" != X/bin/ksh; then 625 # If we have ksh, try running configure again with it. 626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 627 export ORIGINAL_CONFIG_SHELL 628 CONFIG_SHELL=/bin/ksh 629 export CONFIG_SHELL 630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 631 else 632 # Try using printf. 633 echo='printf %s\n' 634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # Cool, printf works 638 : 639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 644 export CONFIG_SHELL 645 SHELL="$CONFIG_SHELL" 646 export SHELL 647 echo="$CONFIG_SHELL $0 --fallback-echo" 648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 649 test "X$echo_testing_string" = 'X\t' && 650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 echo="$CONFIG_SHELL $0 --fallback-echo" 653 else 654 # maybe with a smaller string... 655 prev=: 656 657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 659 then 660 break 661 fi 662 prev="$cmd" 663 done 664 665 if test "$prev" != 'sed 50q "$0"'; then 666 echo_test_string=`eval $prev` 667 export echo_test_string 668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 669 else 670 # Oops. We lost completely, so just stick with echo. 671 echo=echo 672 fi 673 fi 674 fi 675 fi 676fi 677fi 678 679# Copy echo and quote the copy suitably for passing to libtool from 680# the Makefile, instead of quoting the original, which is used later. 681ECHO=$echo 682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 684fi 685 686 687 688 689tagnames=${tagnames+${tagnames},}CXX 690 691tagnames=${tagnames+${tagnames},}F77 692 693exec 7<&0 </dev/null 6>&1 694 695# Name of the host. 696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 697# so uname gets run too. 698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 699 700# 701# Initializations. 702# 703ac_default_prefix=/usr/local 704ac_clean_files= 705ac_config_libobj_dir=. 706LIBOBJS= 707cross_compiling=no 708subdirs= 709MFLAGS= 710MAKEFLAGS= 711SHELL=${CONFIG_SHELL-/bin/sh} 712 713# Identity of this package. 714PACKAGE_NAME='libpthread-stubs' 715PACKAGE_TARNAME='libpthread-stubs' 716PACKAGE_VERSION='0.1' 717PACKAGE_STRING='libpthread-stubs 0.1' 718PACKAGE_BUGREPORT='xcb@lists.freedesktop.org' 719 720ac_unique_file="pthread-stubs.pc.in" 721# Factoring default headers for most tests. 722ac_includes_default="\ 723#include <stdio.h> 724#ifdef HAVE_SYS_TYPES_H 725# include <sys/types.h> 726#endif 727#ifdef HAVE_SYS_STAT_H 728# include <sys/stat.h> 729#endif 730#ifdef STDC_HEADERS 731# include <stdlib.h> 732# include <stddef.h> 733#else 734# ifdef HAVE_STDLIB_H 735# include <stdlib.h> 736# endif 737#endif 738#ifdef HAVE_STRING_H 739# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 740# include <memory.h> 741# endif 742# include <string.h> 743#endif 744#ifdef HAVE_STRINGS_H 745# include <strings.h> 746#endif 747#ifdef HAVE_INTTYPES_H 748# include <inttypes.h> 749#endif 750#ifdef HAVE_STDINT_H 751# include <stdint.h> 752#endif 753#ifdef HAVE_UNISTD_H 754# include <unistd.h> 755#endif" 756 757ac_subst_vars='SHELL 758PATH_SEPARATOR 759PACKAGE_NAME 760PACKAGE_TARNAME 761PACKAGE_VERSION 762PACKAGE_STRING 763PACKAGE_BUGREPORT 764exec_prefix 765prefix 766program_transform_name 767bindir 768sbindir 769libexecdir 770datarootdir 771datadir 772sysconfdir 773sharedstatedir 774localstatedir 775includedir 776oldincludedir 777docdir 778infodir 779htmldir 780dvidir 781pdfdir 782psdir 783libdir 784localedir 785mandir 786DEFS 787ECHO_C 788ECHO_N 789ECHO_T 790LIBS 791build_alias 792host_alias 793target_alias 794INSTALL_PROGRAM 795INSTALL_SCRIPT 796INSTALL_DATA 797CYGPATH_W 798PACKAGE 799VERSION 800ACLOCAL 801AUTOCONF 802AUTOMAKE 803AUTOHEADER 804MAKEINFO 805install_sh 806STRIP 807INSTALL_STRIP_PROGRAM 808mkdir_p 809AWK 810SET_MAKE 811am__leading_dot 812AMTAR 813am__tar 814am__untar 815build 816build_cpu 817build_vendor 818build_os 819host 820host_cpu 821host_vendor 822host_os 823CC 824CFLAGS 825LDFLAGS 826CPPFLAGS 827ac_ct_CC 828EXEEXT 829OBJEXT 830DEPDIR 831am__include 832am__quote 833AMDEP_TRUE 834AMDEP_FALSE 835AMDEPBACKSLASH 836CCDEPMODE 837am__fastdepCC_TRUE 838am__fastdepCC_FALSE 839GREP 840EGREP 841LN_S 842ECHO 843AR 844RANLIB 845CPP 846CXX 847CXXFLAGS 848ac_ct_CXX 849CXXDEPMODE 850am__fastdepCXX_TRUE 851am__fastdepCXX_FALSE 852CXXCPP 853F77 854FFLAGS 855ac_ct_F77 856LIBTOOL 857PKG_CONFIG_LIBS 858BUILD_LIB_TRUE 859BUILD_LIB_FALSE 860LIBOBJS 861LTLIBOBJS' 862ac_subst_files='' 863 ac_precious_vars='build_alias 864host_alias 865target_alias 866CC 867CFLAGS 868LDFLAGS 869CPPFLAGS 870CPP 871CXX 872CXXFLAGS 873CCC 874CXXCPP 875F77 876FFLAGS' 877 878 879# Initialize some variables set by options. 880ac_init_help= 881ac_init_version=false 882# The variables have the same names as the options, with 883# dashes changed to underlines. 884cache_file=/dev/null 885exec_prefix=NONE 886no_create= 887no_recursion= 888prefix=NONE 889program_prefix=NONE 890program_suffix=NONE 891program_transform_name=s,x,x, 892silent= 893site= 894srcdir= 895verbose= 896x_includes=NONE 897x_libraries=NONE 898 899# Installation directory options. 900# These are left unexpanded so users can "make install exec_prefix=/foo" 901# and all the variables that are supposed to be based on exec_prefix 902# by default will actually change. 903# Use braces instead of parens because sh, perl, etc. also accept them. 904# (The list follows the same order as the GNU Coding Standards.) 905bindir='${exec_prefix}/bin' 906sbindir='${exec_prefix}/sbin' 907libexecdir='${exec_prefix}/libexec' 908datarootdir='${prefix}/share' 909datadir='${datarootdir}' 910sysconfdir='${prefix}/etc' 911sharedstatedir='${prefix}/com' 912localstatedir='${prefix}/var' 913includedir='${prefix}/include' 914oldincludedir='/usr/include' 915docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 916infodir='${datarootdir}/info' 917htmldir='${docdir}' 918dvidir='${docdir}' 919pdfdir='${docdir}' 920psdir='${docdir}' 921libdir='${exec_prefix}/lib' 922localedir='${datarootdir}/locale' 923mandir='${datarootdir}/man' 924 925ac_prev= 926ac_dashdash= 927for ac_option 928do 929 # If the previous option needs an argument, assign it. 930 if test -n "$ac_prev"; then 931 eval $ac_prev=\$ac_option 932 ac_prev= 933 continue 934 fi 935 936 case $ac_option in 937 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 938 *) ac_optarg=yes ;; 939 esac 940 941 # Accept the important Cygnus configure options, so we can diagnose typos. 942 943 case $ac_dashdash$ac_option in 944 --) 945 ac_dashdash=yes ;; 946 947 -bindir | --bindir | --bindi | --bind | --bin | --bi) 948 ac_prev=bindir ;; 949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 950 bindir=$ac_optarg ;; 951 952 -build | --build | --buil | --bui | --bu) 953 ac_prev=build_alias ;; 954 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 955 build_alias=$ac_optarg ;; 956 957 -cache-file | --cache-file | --cache-fil | --cache-fi \ 958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 959 ac_prev=cache_file ;; 960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 962 cache_file=$ac_optarg ;; 963 964 --config-cache | -C) 965 cache_file=config.cache ;; 966 967 -datadir | --datadir | --datadi | --datad) 968 ac_prev=datadir ;; 969 -datadir=* | --datadir=* | --datadi=* | --datad=*) 970 datadir=$ac_optarg ;; 971 972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 973 | --dataroo | --dataro | --datar) 974 ac_prev=datarootdir ;; 975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 977 datarootdir=$ac_optarg ;; 978 979 -disable-* | --disable-*) 980 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 981 # Reject names that are not valid shell variable names. 982 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 983 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 984 { (exit 1); exit 1; }; } 985 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 986 eval enable_$ac_feature=no ;; 987 988 -docdir | --docdir | --docdi | --doc | --do) 989 ac_prev=docdir ;; 990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 991 docdir=$ac_optarg ;; 992 993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 994 ac_prev=dvidir ;; 995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 996 dvidir=$ac_optarg ;; 997 998 -enable-* | --enable-*) 999 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1000 # Reject names that are not valid shell variable names. 1001 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1003 { (exit 1); exit 1; }; } 1004 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1005 eval enable_$ac_feature=\$ac_optarg ;; 1006 1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1009 | --exec | --exe | --ex) 1010 ac_prev=exec_prefix ;; 1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1013 | --exec=* | --exe=* | --ex=*) 1014 exec_prefix=$ac_optarg ;; 1015 1016 -gas | --gas | --ga | --g) 1017 # Obsolete; use --with-gas. 1018 with_gas=yes ;; 1019 1020 -help | --help | --hel | --he | -h) 1021 ac_init_help=long ;; 1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1023 ac_init_help=recursive ;; 1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1025 ac_init_help=short ;; 1026 1027 -host | --host | --hos | --ho) 1028 ac_prev=host_alias ;; 1029 -host=* | --host=* | --hos=* | --ho=*) 1030 host_alias=$ac_optarg ;; 1031 1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1033 ac_prev=htmldir ;; 1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1035 | --ht=*) 1036 htmldir=$ac_optarg ;; 1037 1038 -includedir | --includedir | --includedi | --included | --include \ 1039 | --includ | --inclu | --incl | --inc) 1040 ac_prev=includedir ;; 1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1042 | --includ=* | --inclu=* | --incl=* | --inc=*) 1043 includedir=$ac_optarg ;; 1044 1045 -infodir | --infodir | --infodi | --infod | --info | --inf) 1046 ac_prev=infodir ;; 1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1048 infodir=$ac_optarg ;; 1049 1050 -libdir | --libdir | --libdi | --libd) 1051 ac_prev=libdir ;; 1052 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1053 libdir=$ac_optarg ;; 1054 1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1056 | --libexe | --libex | --libe) 1057 ac_prev=libexecdir ;; 1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1059 | --libexe=* | --libex=* | --libe=*) 1060 libexecdir=$ac_optarg ;; 1061 1062 -localedir | --localedir | --localedi | --localed | --locale) 1063 ac_prev=localedir ;; 1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1065 localedir=$ac_optarg ;; 1066 1067 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1068 | --localstate | --localstat | --localsta | --localst | --locals) 1069 ac_prev=localstatedir ;; 1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1072 localstatedir=$ac_optarg ;; 1073 1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1075 ac_prev=mandir ;; 1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1077 mandir=$ac_optarg ;; 1078 1079 -nfp | --nfp | --nf) 1080 # Obsolete; use --without-fp. 1081 with_fp=no ;; 1082 1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1084 | --no-cr | --no-c | -n) 1085 no_create=yes ;; 1086 1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1089 no_recursion=yes ;; 1090 1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1093 | --oldin | --oldi | --old | --ol | --o) 1094 ac_prev=oldincludedir ;; 1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1098 oldincludedir=$ac_optarg ;; 1099 1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1101 ac_prev=prefix ;; 1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1103 prefix=$ac_optarg ;; 1104 1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1106 | --program-pre | --program-pr | --program-p) 1107 ac_prev=program_prefix ;; 1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1110 program_prefix=$ac_optarg ;; 1111 1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1113 | --program-suf | --program-su | --program-s) 1114 ac_prev=program_suffix ;; 1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1117 program_suffix=$ac_optarg ;; 1118 1119 -program-transform-name | --program-transform-name \ 1120 | --program-transform-nam | --program-transform-na \ 1121 | --program-transform-n | --program-transform- \ 1122 | --program-transform | --program-transfor \ 1123 | --program-transfo | --program-transf \ 1124 | --program-trans | --program-tran \ 1125 | --progr-tra | --program-tr | --program-t) 1126 ac_prev=program_transform_name ;; 1127 -program-transform-name=* | --program-transform-name=* \ 1128 | --program-transform-nam=* | --program-transform-na=* \ 1129 | --program-transform-n=* | --program-transform-=* \ 1130 | --program-transform=* | --program-transfor=* \ 1131 | --program-transfo=* | --program-transf=* \ 1132 | --program-trans=* | --program-tran=* \ 1133 | --progr-tra=* | --program-tr=* | --program-t=*) 1134 program_transform_name=$ac_optarg ;; 1135 1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1137 ac_prev=pdfdir ;; 1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1139 pdfdir=$ac_optarg ;; 1140 1141 -psdir | --psdir | --psdi | --psd | --ps) 1142 ac_prev=psdir ;; 1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1144 psdir=$ac_optarg ;; 1145 1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1147 | -silent | --silent | --silen | --sile | --sil) 1148 silent=yes ;; 1149 1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1151 ac_prev=sbindir ;; 1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1153 | --sbi=* | --sb=*) 1154 sbindir=$ac_optarg ;; 1155 1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1158 | --sharedst | --shareds | --shared | --share | --shar \ 1159 | --sha | --sh) 1160 ac_prev=sharedstatedir ;; 1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1164 | --sha=* | --sh=*) 1165 sharedstatedir=$ac_optarg ;; 1166 1167 -site | --site | --sit) 1168 ac_prev=site ;; 1169 -site=* | --site=* | --sit=*) 1170 site=$ac_optarg ;; 1171 1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1173 ac_prev=srcdir ;; 1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1175 srcdir=$ac_optarg ;; 1176 1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1178 | --syscon | --sysco | --sysc | --sys | --sy) 1179 ac_prev=sysconfdir ;; 1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1182 sysconfdir=$ac_optarg ;; 1183 1184 -target | --target | --targe | --targ | --tar | --ta | --t) 1185 ac_prev=target_alias ;; 1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1187 target_alias=$ac_optarg ;; 1188 1189 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1190 verbose=yes ;; 1191 1192 -version | --version | --versio | --versi | --vers | -V) 1193 ac_init_version=: ;; 1194 1195 -with-* | --with-*) 1196 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1199 { echo "$as_me: error: invalid package name: $ac_package" >&2 1200 { (exit 1); exit 1; }; } 1201 ac_package=`echo $ac_package| sed 's/-/_/g'` 1202 eval with_$ac_package=\$ac_optarg ;; 1203 1204 -without-* | --without-*) 1205 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1206 # Reject names that are not valid shell variable names. 1207 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1208 { echo "$as_me: error: invalid package name: $ac_package" >&2 1209 { (exit 1); exit 1; }; } 1210 ac_package=`echo $ac_package | sed 's/-/_/g'` 1211 eval with_$ac_package=no ;; 1212 1213 --x) 1214 # Obsolete; use --with-x. 1215 with_x=yes ;; 1216 1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1218 | --x-incl | --x-inc | --x-in | --x-i) 1219 ac_prev=x_includes ;; 1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1222 x_includes=$ac_optarg ;; 1223 1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1226 ac_prev=x_libraries ;; 1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1229 x_libraries=$ac_optarg ;; 1230 1231 -*) { echo "$as_me: error: unrecognized option: $ac_option 1232Try \`$0 --help' for more information." >&2 1233 { (exit 1); exit 1; }; } 1234 ;; 1235 1236 *=*) 1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1238 # Reject names that are not valid shell variable names. 1239 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1240 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1241 { (exit 1); exit 1; }; } 1242 eval $ac_envvar=\$ac_optarg 1243 export $ac_envvar ;; 1244 1245 *) 1246 # FIXME: should be removed in autoconf 3.0. 1247 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1249 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1251 ;; 1252 1253 esac 1254done 1255 1256if test -n "$ac_prev"; then 1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1258 { echo "$as_me: error: missing argument to $ac_option" >&2 1259 { (exit 1); exit 1; }; } 1260fi 1261 1262# Be sure to have absolute directory names. 1263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1264 datadir sysconfdir sharedstatedir localstatedir includedir \ 1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1266 libdir localedir mandir 1267do 1268 eval ac_val=\$$ac_var 1269 case $ac_val in 1270 [\\/$]* | ?:[\\/]* ) continue;; 1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1272 esac 1273 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1274 { (exit 1); exit 1; }; } 1275done 1276 1277# There might be people who depend on the old broken behavior: `$host' 1278# used to hold the argument of --host etc. 1279# FIXME: To remove some day. 1280build=$build_alias 1281host=$host_alias 1282target=$target_alias 1283 1284# FIXME: To remove some day. 1285if test "x$host_alias" != x; then 1286 if test "x$build_alias" = x; then 1287 cross_compiling=maybe 1288 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1289 If a cross compiler is detected then cross compile mode will be used." >&2 1290 elif test "x$build_alias" != "x$host_alias"; then 1291 cross_compiling=yes 1292 fi 1293fi 1294 1295ac_tool_prefix= 1296test -n "$host_alias" && ac_tool_prefix=$host_alias- 1297 1298test "$silent" = yes && exec 6>/dev/null 1299 1300 1301ac_pwd=`pwd` && test -n "$ac_pwd" && 1302ac_ls_di=`ls -di .` && 1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1304 { echo "$as_me: error: Working directory cannot be determined" >&2 1305 { (exit 1); exit 1; }; } 1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1307 { echo "$as_me: error: pwd does not report name of working directory" >&2 1308 { (exit 1); exit 1; }; } 1309 1310 1311# Find the source files, if location was not specified. 1312if test -z "$srcdir"; then 1313 ac_srcdir_defaulted=yes 1314 # Try the directory containing this script, then the parent directory. 1315 ac_confdir=`$as_dirname -- "$0" || 1316$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1317 X"$0" : 'X\(//\)[^/]' \| \ 1318 X"$0" : 'X\(//\)$' \| \ 1319 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1320echo X"$0" | 1321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)[^/].*/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\).*/{ 1334 s//\1/ 1335 q 1336 } 1337 s/.*/./; q'` 1338 srcdir=$ac_confdir 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 srcdir=.. 1341 fi 1342else 1343 ac_srcdir_defaulted=no 1344fi 1345if test ! -r "$srcdir/$ac_unique_file"; then 1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1347 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1348 { (exit 1); exit 1; }; } 1349fi 1350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1351ac_abs_confdir=`( 1352 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1353 { (exit 1); exit 1; }; } 1354 pwd)` 1355# When building in place, set srcdir=. 1356if test "$ac_abs_confdir" = "$ac_pwd"; then 1357 srcdir=. 1358fi 1359# Remove unnecessary trailing slashes from srcdir. 1360# Double slashes in file names in object file debugging info 1361# mess up M-x gdb in Emacs. 1362case $srcdir in 1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1364esac 1365for ac_var in $ac_precious_vars; do 1366 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_env_${ac_var}_value=\$${ac_var} 1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1369 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1370done 1371 1372# 1373# Report the --help message. 1374# 1375if test "$ac_init_help" = "long"; then 1376 # Omit some internal or obsolete options to make the list less imposing. 1377 # This message is too long to be a string in the A/UX 3.1 sh. 1378 cat <<_ACEOF 1379\`configure' configures libpthread-stubs 0.1 to adapt to many kinds of systems. 1380 1381Usage: $0 [OPTION]... [VAR=VALUE]... 1382 1383To assign environment variables (e.g., CC, CFLAGS...), specify them as 1384VAR=VALUE. See below for descriptions of some of the useful variables. 1385 1386Defaults for the options are specified in brackets. 1387 1388Configuration: 1389 -h, --help display this help and exit 1390 --help=short display options specific to this package 1391 --help=recursive display the short help of all the included packages 1392 -V, --version display version information and exit 1393 -q, --quiet, --silent do not print \`checking...' messages 1394 --cache-file=FILE cache test results in FILE [disabled] 1395 -C, --config-cache alias for \`--cache-file=config.cache' 1396 -n, --no-create do not create output files 1397 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1398 1399Installation directories: 1400 --prefix=PREFIX install architecture-independent files in PREFIX 1401 [$ac_default_prefix] 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1403 [PREFIX] 1404 1405By default, \`make install' will install all the files in 1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1407an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1408for instance \`--prefix=\$HOME'. 1409 1410For better control, use the options below. 1411 1412Fine tuning of the installation directories: 1413 --bindir=DIR user executables [EPREFIX/bin] 1414 --sbindir=DIR system admin executables [EPREFIX/sbin] 1415 --libexecdir=DIR program executables [EPREFIX/libexec] 1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1419 --libdir=DIR object code libraries [EPREFIX/lib] 1420 --includedir=DIR C header files [PREFIX/include] 1421 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1424 --infodir=DIR info documentation [DATAROOTDIR/info] 1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1426 --mandir=DIR man documentation [DATAROOTDIR/man] 1427 --docdir=DIR documentation root [DATAROOTDIR/doc/libpthread-stubs] 1428 --htmldir=DIR html documentation [DOCDIR] 1429 --dvidir=DIR dvi documentation [DOCDIR] 1430 --pdfdir=DIR pdf documentation [DOCDIR] 1431 --psdir=DIR ps documentation [DOCDIR] 1432_ACEOF 1433 1434 cat <<\_ACEOF 1435 1436Program names: 1437 --program-prefix=PREFIX prepend PREFIX to installed program names 1438 --program-suffix=SUFFIX append SUFFIX to installed program names 1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1440 1441System types: 1442 --build=BUILD configure for building on BUILD [guessed] 1443 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1444_ACEOF 1445fi 1446 1447if test -n "$ac_init_help"; then 1448 case $ac_init_help in 1449 short | recursive ) echo "Configuration of libpthread-stubs 0.1:";; 1450 esac 1451 cat <<\_ACEOF 1452 1453Optional Features: 1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1456 --enable-shared[=PKGS] build shared libraries [default=yes] 1457 --enable-static[=PKGS] build static libraries [default=yes] 1458 --enable-fast-install[=PKGS] 1459 optimize for fast installation [default=yes] 1460 --disable-dependency-tracking speeds up one-time build 1461 --enable-dependency-tracking do not reject slow dependency extractors 1462 --disable-libtool-lock avoid locking (might break parallel builds) 1463 1464Optional Packages: 1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1468 --with-pic try to use only PIC/non-PIC objects [default=use 1469 both] 1470 --with-tags[=TAGS] include additional configurations [automatic] 1471 1472Some influential environment variables: 1473 CC C compiler command 1474 CFLAGS C compiler flags 1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1476 nonstandard directory <lib dir> 1477 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1478 you have headers in a nonstandard directory <include dir> 1479 CPP C preprocessor 1480 CXX C++ compiler command 1481 CXXFLAGS C++ compiler flags 1482 CXXCPP C++ preprocessor 1483 F77 Fortran 77 compiler command 1484 FFLAGS Fortran 77 compiler flags 1485 1486Use these variables to override the choices made by `configure' or to help 1487it to find libraries and programs with nonstandard names/locations. 1488 1489Report bugs to <xcb@lists.freedesktop.org>. 1490_ACEOF 1491ac_status=$? 1492fi 1493 1494if test "$ac_init_help" = "recursive"; then 1495 # If there are subdirs, report their specific --help. 1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1497 test -d "$ac_dir" || continue 1498 ac_builddir=. 1499 1500case "$ac_dir" in 1501.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502*) 1503 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1504 # A ".." for each directory in $ac_dir_suffix. 1505 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1506 case $ac_top_builddir_sub in 1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1509 esac ;; 1510esac 1511ac_abs_top_builddir=$ac_pwd 1512ac_abs_builddir=$ac_pwd$ac_dir_suffix 1513# for backward compatibility: 1514ac_top_builddir=$ac_top_build_prefix 1515 1516case $srcdir in 1517 .) # We are building in place. 1518 ac_srcdir=. 1519 ac_top_srcdir=$ac_top_builddir_sub 1520 ac_abs_top_srcdir=$ac_pwd ;; 1521 [\\/]* | ?:[\\/]* ) # Absolute name. 1522 ac_srcdir=$srcdir$ac_dir_suffix; 1523 ac_top_srcdir=$srcdir 1524 ac_abs_top_srcdir=$srcdir ;; 1525 *) # Relative name. 1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1527 ac_top_srcdir=$ac_top_build_prefix$srcdir 1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1529esac 1530ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1531 1532 cd "$ac_dir" || { ac_status=$?; continue; } 1533 # Check for guested configure. 1534 if test -f "$ac_srcdir/configure.gnu"; then 1535 echo && 1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1537 elif test -f "$ac_srcdir/configure"; then 1538 echo && 1539 $SHELL "$ac_srcdir/configure" --help=recursive 1540 else 1541 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1542 fi || ac_status=$? 1543 cd "$ac_pwd" || { ac_status=$?; break; } 1544 done 1545fi 1546 1547test -n "$ac_init_help" && exit $ac_status 1548if $ac_init_version; then 1549 cat <<\_ACEOF 1550libpthread-stubs configure 0.1 1551generated by GNU Autoconf 2.60a 1552 1553Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15542002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1555This configure script is free software; the Free Software Foundation 1556gives unlimited permission to copy, distribute and modify it. 1557_ACEOF 1558 exit 1559fi 1560cat >config.log <<_ACEOF 1561This file contains any messages produced by compilers while 1562running configure, to aid debugging if configure makes a mistake. 1563 1564It was created by libpthread-stubs $as_me 0.1, which was 1565generated by GNU Autoconf 2.60a. Invocation command line was 1566 1567 $ $0 $@ 1568 1569_ACEOF 1570exec 5>>config.log 1571{ 1572cat <<_ASUNAME 1573## --------- ## 1574## Platform. ## 1575## --------- ## 1576 1577hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1578uname -m = `(uname -m) 2>/dev/null || echo unknown` 1579uname -r = `(uname -r) 2>/dev/null || echo unknown` 1580uname -s = `(uname -s) 2>/dev/null || echo unknown` 1581uname -v = `(uname -v) 2>/dev/null || echo unknown` 1582 1583/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1584/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1585 1586/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1587/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1588/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1589/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1590/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1591/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1592/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1593 1594_ASUNAME 1595 1596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1597for as_dir in $PATH 1598do 1599 IFS=$as_save_IFS 1600 test -z "$as_dir" && as_dir=. 1601 echo "PATH: $as_dir" 1602done 1603IFS=$as_save_IFS 1604 1605} >&5 1606 1607cat >&5 <<_ACEOF 1608 1609 1610## ----------- ## 1611## Core tests. ## 1612## ----------- ## 1613 1614_ACEOF 1615 1616 1617# Keep a trace of the command line. 1618# Strip out --no-create and --no-recursion so they do not pile up. 1619# Strip out --silent because we don't want to record it for future runs. 1620# Also quote any args containing shell meta-characters. 1621# Make two passes to allow for proper duplicate-argument suppression. 1622ac_configure_args= 1623ac_configure_args0= 1624ac_configure_args1= 1625ac_must_keep_next=false 1626for ac_pass in 1 2 1627do 1628 for ac_arg 1629 do 1630 case $ac_arg in 1631 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1633 | -silent | --silent | --silen | --sile | --sil) 1634 continue ;; 1635 *\'*) 1636 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1637 esac 1638 case $ac_pass in 1639 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1640 2) 1641 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1642 if test $ac_must_keep_next = true; then 1643 ac_must_keep_next=false # Got value, back to normal. 1644 else 1645 case $ac_arg in 1646 *=* | --config-cache | -C | -disable-* | --disable-* \ 1647 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1648 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1649 | -with-* | --with-* | -without-* | --without-* | --x) 1650 case "$ac_configure_args0 " in 1651 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1652 esac 1653 ;; 1654 -* ) ac_must_keep_next=true ;; 1655 esac 1656 fi 1657 ac_configure_args="$ac_configure_args '$ac_arg'" 1658 ;; 1659 esac 1660 done 1661done 1662$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1663$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1664 1665# When interrupted or exit'd, cleanup temporary files, and complete 1666# config.log. We remove comments because anyway the quotes in there 1667# would cause problems or look ugly. 1668# WARNING: Use '\'' to represent an apostrophe within the trap. 1669# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1670trap 'exit_status=$? 1671 # Save into config.log some information that might help in debugging. 1672 { 1673 echo 1674 1675 cat <<\_ASBOX 1676## ---------------- ## 1677## Cache variables. ## 1678## ---------------- ## 1679_ASBOX 1680 echo 1681 # The following way of writing the cache mishandles newlines in values, 1682( 1683 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1684 eval ac_val=\$$ac_var 1685 case $ac_val in #( 1686 *${as_nl}*) 1687 case $ac_var in #( 1688 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1689echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1690 esac 1691 case $ac_var in #( 1692 _ | IFS | as_nl) ;; #( 1693 *) $as_unset $ac_var ;; 1694 esac ;; 1695 esac 1696 done 1697 (set) 2>&1 | 1698 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1699 *${as_nl}ac_space=\ *) 1700 sed -n \ 1701 "s/'\''/'\''\\\\'\'''\''/g; 1702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1703 ;; #( 1704 *) 1705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1706 ;; 1707 esac | 1708 sort 1709) 1710 echo 1711 1712 cat <<\_ASBOX 1713## ----------------- ## 1714## Output variables. ## 1715## ----------------- ## 1716_ASBOX 1717 echo 1718 for ac_var in $ac_subst_vars 1719 do 1720 eval ac_val=\$$ac_var 1721 case $ac_val in 1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1723 esac 1724 echo "$ac_var='\''$ac_val'\''" 1725 done | sort 1726 echo 1727 1728 if test -n "$ac_subst_files"; then 1729 cat <<\_ASBOX 1730## ------------------- ## 1731## File substitutions. ## 1732## ------------------- ## 1733_ASBOX 1734 echo 1735 for ac_var in $ac_subst_files 1736 do 1737 eval ac_val=\$$ac_var 1738 case $ac_val in 1739 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1740 esac 1741 echo "$ac_var='\''$ac_val'\''" 1742 done | sort 1743 echo 1744 fi 1745 1746 if test -s confdefs.h; then 1747 cat <<\_ASBOX 1748## ----------- ## 1749## confdefs.h. ## 1750## ----------- ## 1751_ASBOX 1752 echo 1753 cat confdefs.h 1754 echo 1755 fi 1756 test "$ac_signal" != 0 && 1757 echo "$as_me: caught signal $ac_signal" 1758 echo "$as_me: exit $exit_status" 1759 } >&5 1760 rm -f core *.core core.conftest.* && 1761 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1762 exit $exit_status 1763' 0 1764for ac_signal in 1 2 13 15; do 1765 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1766done 1767ac_signal=0 1768 1769# confdefs.h avoids OS command line length limits that DEFS can exceed. 1770rm -f -r conftest* confdefs.h 1771 1772# Predefined preprocessor variables. 1773 1774cat >>confdefs.h <<_ACEOF 1775#define PACKAGE_NAME "$PACKAGE_NAME" 1776_ACEOF 1777 1778 1779cat >>confdefs.h <<_ACEOF 1780#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1781_ACEOF 1782 1783 1784cat >>confdefs.h <<_ACEOF 1785#define PACKAGE_VERSION "$PACKAGE_VERSION" 1786_ACEOF 1787 1788 1789cat >>confdefs.h <<_ACEOF 1790#define PACKAGE_STRING "$PACKAGE_STRING" 1791_ACEOF 1792 1793 1794cat >>confdefs.h <<_ACEOF 1795#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1796_ACEOF 1797 1798 1799# Let the site file select an alternate cache file if it wants to. 1800# Prefer explicitly selected file to automatically selected ones. 1801if test -n "$CONFIG_SITE"; then 1802 set x "$CONFIG_SITE" 1803elif test "x$prefix" != xNONE; then 1804 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1805else 1806 set x "$ac_default_prefix/share/config.site" \ 1807 "$ac_default_prefix/etc/config.site" 1808fi 1809shift 1810for ac_site_file 1811do 1812 if test -r "$ac_site_file"; then 1813 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1814echo "$as_me: loading site script $ac_site_file" >&6;} 1815 sed 's/^/| /' "$ac_site_file" >&5 1816 . "$ac_site_file" 1817 fi 1818done 1819 1820if test -r "$cache_file"; then 1821 # Some versions of bash will fail to source /dev/null (special 1822 # files actually), so we avoid doing that. 1823 if test -f "$cache_file"; then 1824 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1825echo "$as_me: loading cache $cache_file" >&6;} 1826 case $cache_file in 1827 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1828 *) . "./$cache_file";; 1829 esac 1830 fi 1831else 1832 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1833echo "$as_me: creating cache $cache_file" >&6;} 1834 >$cache_file 1835fi 1836 1837# Check that the precious variables saved in the cache have kept the same 1838# value. 1839ac_cache_corrupted=false 1840for ac_var in $ac_precious_vars; do 1841 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1842 eval ac_new_set=\$ac_env_${ac_var}_set 1843 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1844 eval ac_new_val=\$ac_env_${ac_var}_value 1845 case $ac_old_set,$ac_new_set in 1846 set,) 1847 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1848echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1849 ac_cache_corrupted=: ;; 1850 ,set) 1851 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1852echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1853 ac_cache_corrupted=: ;; 1854 ,);; 1855 *) 1856 if test "x$ac_old_val" != "x$ac_new_val"; then 1857 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1858echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1859 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1860echo "$as_me: former value: $ac_old_val" >&2;} 1861 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1862echo "$as_me: current value: $ac_new_val" >&2;} 1863 ac_cache_corrupted=: 1864 fi;; 1865 esac 1866 # Pass precious variables to config.status. 1867 if test "$ac_new_set" = set; then 1868 case $ac_new_val in 1869 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1870 *) ac_arg=$ac_var=$ac_new_val ;; 1871 esac 1872 case " $ac_configure_args " in 1873 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1874 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1875 esac 1876 fi 1877done 1878if $ac_cache_corrupted; then 1879 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1880echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1881 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1882echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1883 { (exit 1); exit 1; }; } 1884fi 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910ac_ext=c 1911ac_cpp='$CPP $CPPFLAGS' 1912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1914ac_compiler_gnu=$ac_cv_c_compiler_gnu 1915 1916 1917 1918am__api_version="1.9" 1919ac_aux_dir= 1920for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1921 if test -f "$ac_dir/install-sh"; then 1922 ac_aux_dir=$ac_dir 1923 ac_install_sh="$ac_aux_dir/install-sh -c" 1924 break 1925 elif test -f "$ac_dir/install.sh"; then 1926 ac_aux_dir=$ac_dir 1927 ac_install_sh="$ac_aux_dir/install.sh -c" 1928 break 1929 elif test -f "$ac_dir/shtool"; then 1930 ac_aux_dir=$ac_dir 1931 ac_install_sh="$ac_aux_dir/shtool install -c" 1932 break 1933 fi 1934done 1935if test -z "$ac_aux_dir"; then 1936 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1937echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1938 { (exit 1); exit 1; }; } 1939fi 1940 1941# These three variables are undocumented and unsupported, 1942# and are intended to be withdrawn in a future Autoconf release. 1943# They can cause serious problems if a builder's source tree is in a directory 1944# whose full name contains unusual characters. 1945ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1946ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1947ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1948 1949 1950# Find a good install program. We prefer a C program (faster), 1951# so one script is as good as another. But avoid the broken or 1952# incompatible versions: 1953# SysV /etc/install, /usr/sbin/install 1954# SunOS /usr/etc/install 1955# IRIX /sbin/install 1956# AIX /bin/install 1957# AmigaOS /C/install, which installs bootblocks on floppy discs 1958# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1959# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1960# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1961# OS/2's system install, which has a completely different semantic 1962# ./install, which can be erroneously created by make from ./install.sh. 1963{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1964echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1965if test -z "$INSTALL"; then 1966if test "${ac_cv_path_install+set}" = set; then 1967 echo $ECHO_N "(cached) $ECHO_C" >&6 1968else 1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1970for as_dir in $PATH 1971do 1972 IFS=$as_save_IFS 1973 test -z "$as_dir" && as_dir=. 1974 # Account for people who put trailing slashes in PATH elements. 1975case $as_dir/ in 1976 ./ | .// | /cC/* | \ 1977 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1978 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1979 /usr/ucb/* ) ;; 1980 *) 1981 # OSF1 and SCO ODT 3.0 have their own names for install. 1982 # Don't use installbsd from OSF since it installs stuff as root 1983 # by default. 1984 for ac_prog in ginstall scoinst install; do 1985 for ac_exec_ext in '' $ac_executable_extensions; do 1986 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 1987 if test $ac_prog = install && 1988 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1989 # AIX install. It has an incompatible calling convention. 1990 : 1991 elif test $ac_prog = install && 1992 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1993 # program-specific install script used by HP pwplus--don't use. 1994 : 1995 else 1996 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1997 break 3 1998 fi 1999 fi 2000 done 2001 done 2002 ;; 2003esac 2004done 2005IFS=$as_save_IFS 2006 2007 2008fi 2009 if test "${ac_cv_path_install+set}" = set; then 2010 INSTALL=$ac_cv_path_install 2011 else 2012 # As a last resort, use the slow shell script. Don't cache a 2013 # value for INSTALL within a source directory, because that will 2014 # break other packages using the cache if that directory is 2015 # removed, or if the value is a relative name. 2016 INSTALL=$ac_install_sh 2017 fi 2018fi 2019{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2020echo "${ECHO_T}$INSTALL" >&6; } 2021 2022# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2023# It thinks the first close brace ends the variable substitution. 2024test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2025 2026test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2027 2028test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2029 2030{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2031echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2032# Just in case 2033sleep 1 2034echo timestamp > conftest.file 2035# Do `set' in a subshell so we don't clobber the current shell's 2036# arguments. Must try -L first in case configure is actually a 2037# symlink; some systems play weird games with the mod time of symlinks 2038# (eg FreeBSD returns the mod time of the symlink's containing 2039# directory). 2040if ( 2041 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2042 if test "$*" = "X"; then 2043 # -L didn't work. 2044 set X `ls -t $srcdir/configure conftest.file` 2045 fi 2046 rm -f conftest.file 2047 if test "$*" != "X $srcdir/configure conftest.file" \ 2048 && test "$*" != "X conftest.file $srcdir/configure"; then 2049 2050 # If neither matched, then we have a broken ls. This can happen 2051 # if, for instance, CONFIG_SHELL is bash and it inherits a 2052 # broken ls alias from the environment. This has actually 2053 # happened. Such a system could not be considered "sane". 2054 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2055alias in your environment" >&5 2056echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2057alias in your environment" >&2;} 2058 { (exit 1); exit 1; }; } 2059 fi 2060 2061 test "$2" = conftest.file 2062 ) 2063then 2064 # Ok. 2065 : 2066else 2067 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2068Check your system clock" >&5 2069echo "$as_me: error: newly created file is older than distributed files! 2070Check your system clock" >&2;} 2071 { (exit 1); exit 1; }; } 2072fi 2073{ echo "$as_me:$LINENO: result: yes" >&5 2074echo "${ECHO_T}yes" >&6; } 2075test "$program_prefix" != NONE && 2076 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2077# Use a double $ so make ignores it. 2078test "$program_suffix" != NONE && 2079 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2080# Double any \ or $. echo might interpret backslashes. 2081# By default was `s,x,x', remove it if useless. 2082cat <<\_ACEOF >conftest.sed 2083s/[\\$]/&&/g;s/;s,x,x,$// 2084_ACEOF 2085program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2086rm -f conftest.sed 2087 2088# expand $ac_aux_dir to an absolute path 2089am_aux_dir=`cd $ac_aux_dir && pwd` 2090 2091test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2092# Use eval to expand $SHELL 2093if eval "$MISSING --run true"; then 2094 am_missing_run="$MISSING --run " 2095else 2096 am_missing_run= 2097 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2098echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2099fi 2100 2101if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2102 # We used to keeping the `.' as first argument, in order to 2103 # allow $(mkdir_p) to be used without argument. As in 2104 # $(mkdir_p) $(somedir) 2105 # where $(somedir) is conditionally defined. However this is wrong 2106 # for two reasons: 2107 # 1. if the package is installed by a user who cannot write `.' 2108 # make install will fail, 2109 # 2. the above comment should most certainly read 2110 # $(mkdir_p) $(DESTDIR)$(somedir) 2111 # so it does not work when $(somedir) is undefined and 2112 # $(DESTDIR) is not. 2113 # To support the latter case, we have to write 2114 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2115 # so the `.' trick is pointless. 2116 mkdir_p='mkdir -p --' 2117else 2118 # On NextStep and OpenStep, the `mkdir' command does not 2119 # recognize any option. It will interpret all options as 2120 # directories to create, and then abort because `.' already 2121 # exists. 2122 for d in ./-p ./--version; 2123 do 2124 test -d $d && rmdir $d 2125 done 2126 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2127 if test -f "$ac_aux_dir/mkinstalldirs"; then 2128 mkdir_p='$(mkinstalldirs)' 2129 else 2130 mkdir_p='$(install_sh) -d' 2131 fi 2132fi 2133 2134for ac_prog in gawk mawk nawk awk 2135do 2136 # Extract the first word of "$ac_prog", so it can be a program name with args. 2137set dummy $ac_prog; ac_word=$2 2138{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2140if test "${ac_cv_prog_AWK+set}" = set; then 2141 echo $ECHO_N "(cached) $ECHO_C" >&6 2142else 2143 if test -n "$AWK"; then 2144 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2145else 2146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2147for as_dir in $PATH 2148do 2149 IFS=$as_save_IFS 2150 test -z "$as_dir" && as_dir=. 2151 for ac_exec_ext in '' $ac_executable_extensions; do 2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2153 ac_cv_prog_AWK="$ac_prog" 2154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2155 break 2 2156 fi 2157done 2158done 2159IFS=$as_save_IFS 2160 2161fi 2162fi 2163AWK=$ac_cv_prog_AWK 2164if test -n "$AWK"; then 2165 { echo "$as_me:$LINENO: result: $AWK" >&5 2166echo "${ECHO_T}$AWK" >&6; } 2167else 2168 { echo "$as_me:$LINENO: result: no" >&5 2169echo "${ECHO_T}no" >&6; } 2170fi 2171 2172 2173 test -n "$AWK" && break 2174done 2175 2176{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2177echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2178set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2179if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2180 echo $ECHO_N "(cached) $ECHO_C" >&6 2181else 2182 cat >conftest.make <<\_ACEOF 2183SHELL = /bin/sh 2184all: 2185 @echo '@@@%%%=$(MAKE)=@@@%%%' 2186_ACEOF 2187# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2188case `${MAKE-make} -f conftest.make 2>/dev/null` in 2189 *@@@%%%=?*=@@@%%%*) 2190 eval ac_cv_prog_make_${ac_make}_set=yes;; 2191 *) 2192 eval ac_cv_prog_make_${ac_make}_set=no;; 2193esac 2194rm -f conftest.make 2195fi 2196if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2197 { echo "$as_me:$LINENO: result: yes" >&5 2198echo "${ECHO_T}yes" >&6; } 2199 SET_MAKE= 2200else 2201 { echo "$as_me:$LINENO: result: no" >&5 2202echo "${ECHO_T}no" >&6; } 2203 SET_MAKE="MAKE=${MAKE-make}" 2204fi 2205 2206rm -rf .tst 2>/dev/null 2207mkdir .tst 2>/dev/null 2208if test -d .tst; then 2209 am__leading_dot=. 2210else 2211 am__leading_dot=_ 2212fi 2213rmdir .tst 2>/dev/null 2214 2215# test to see if srcdir already configured 2216if test "`cd $srcdir && pwd`" != "`pwd`" && 2217 test -f $srcdir/config.status; then 2218 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2219echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2220 { (exit 1); exit 1; }; } 2221fi 2222 2223# test whether we have cygpath 2224if test -z "$CYGPATH_W"; then 2225 if (cygpath --version) >/dev/null 2>/dev/null; then 2226 CYGPATH_W='cygpath -w' 2227 else 2228 CYGPATH_W=echo 2229 fi 2230fi 2231 2232 2233# Define the identity of the package. 2234 PACKAGE='libpthread-stubs' 2235 VERSION='0.1' 2236 2237 2238cat >>confdefs.h <<_ACEOF 2239#define PACKAGE "$PACKAGE" 2240_ACEOF 2241 2242 2243cat >>confdefs.h <<_ACEOF 2244#define VERSION "$VERSION" 2245_ACEOF 2246 2247# Some tools Automake needs. 2248 2249ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2250 2251 2252AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2253 2254 2255AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2256 2257 2258AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2259 2260 2261MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2262 2263install_sh=${install_sh-"$am_aux_dir/install-sh"} 2264 2265# Installed binaries are usually stripped using `strip' when the user 2266# run `make install-strip'. However `strip' might not be the right 2267# tool to use in cross-compilation environments, therefore Automake 2268# will honor the `STRIP' environment variable to overrule this program. 2269if test "$cross_compiling" != no; then 2270 if test -n "$ac_tool_prefix"; then 2271 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2272set dummy ${ac_tool_prefix}strip; ac_word=$2 2273{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2275if test "${ac_cv_prog_STRIP+set}" = set; then 2276 echo $ECHO_N "(cached) $ECHO_C" >&6 2277else 2278 if test -n "$STRIP"; then 2279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2280else 2281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2282for as_dir in $PATH 2283do 2284 IFS=$as_save_IFS 2285 test -z "$as_dir" && as_dir=. 2286 for ac_exec_ext in '' $ac_executable_extensions; do 2287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2288 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2290 break 2 2291 fi 2292done 2293done 2294IFS=$as_save_IFS 2295 2296fi 2297fi 2298STRIP=$ac_cv_prog_STRIP 2299if test -n "$STRIP"; then 2300 { echo "$as_me:$LINENO: result: $STRIP" >&5 2301echo "${ECHO_T}$STRIP" >&6; } 2302else 2303 { echo "$as_me:$LINENO: result: no" >&5 2304echo "${ECHO_T}no" >&6; } 2305fi 2306 2307 2308fi 2309if test -z "$ac_cv_prog_STRIP"; then 2310 ac_ct_STRIP=$STRIP 2311 # Extract the first word of "strip", so it can be a program name with args. 2312set dummy strip; ac_word=$2 2313{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2315if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2316 echo $ECHO_N "(cached) $ECHO_C" >&6 2317else 2318 if test -n "$ac_ct_STRIP"; then 2319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2320else 2321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2322for as_dir in $PATH 2323do 2324 IFS=$as_save_IFS 2325 test -z "$as_dir" && as_dir=. 2326 for ac_exec_ext in '' $ac_executable_extensions; do 2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2328 ac_cv_prog_ac_ct_STRIP="strip" 2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2330 break 2 2331 fi 2332done 2333done 2334IFS=$as_save_IFS 2335 2336fi 2337fi 2338ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2339if test -n "$ac_ct_STRIP"; then 2340 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2341echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2342else 2343 { echo "$as_me:$LINENO: result: no" >&5 2344echo "${ECHO_T}no" >&6; } 2345fi 2346 2347 if test "x$ac_ct_STRIP" = x; then 2348 STRIP=":" 2349 else 2350 case $cross_compiling:$ac_tool_warned in 2351yes:) 2352{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2353whose name does not start with the host triplet. If you think this 2354configuration is useful to you, please write to autoconf@gnu.org." >&5 2355echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2356whose name does not start with the host triplet. If you think this 2357configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2358ac_tool_warned=yes ;; 2359esac 2360 STRIP=$ac_ct_STRIP 2361 fi 2362else 2363 STRIP="$ac_cv_prog_STRIP" 2364fi 2365 2366fi 2367INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2368 2369# We need awk for the "check" target. The system "awk" is bad on 2370# some platforms. 2371# Always define AMTAR for backward compatibility. 2372 2373AMTAR=${AMTAR-"${am_missing_run}tar"} 2374 2375am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2376 2377 2378 2379 2380 2381 2382ac_config_headers="$ac_config_headers config.h" 2383 2384 2385# Check whether --enable-shared was given. 2386if test "${enable_shared+set}" = set; then 2387 enableval=$enable_shared; p=${PACKAGE-default} 2388 case $enableval in 2389 yes) enable_shared=yes ;; 2390 no) enable_shared=no ;; 2391 *) 2392 enable_shared=no 2393 # Look at the argument we got. We use all the common list separators. 2394 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2395 for pkg in $enableval; do 2396 IFS="$lt_save_ifs" 2397 if test "X$pkg" = "X$p"; then 2398 enable_shared=yes 2399 fi 2400 done 2401 IFS="$lt_save_ifs" 2402 ;; 2403 esac 2404else 2405 enable_shared=yes 2406fi 2407 2408 2409# Check whether --enable-static was given. 2410if test "${enable_static+set}" = set; then 2411 enableval=$enable_static; p=${PACKAGE-default} 2412 case $enableval in 2413 yes) enable_static=yes ;; 2414 no) enable_static=no ;; 2415 *) 2416 enable_static=no 2417 # Look at the argument we got. We use all the common list separators. 2418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2419 for pkg in $enableval; do 2420 IFS="$lt_save_ifs" 2421 if test "X$pkg" = "X$p"; then 2422 enable_static=yes 2423 fi 2424 done 2425 IFS="$lt_save_ifs" 2426 ;; 2427 esac 2428else 2429 enable_static=yes 2430fi 2431 2432 2433# Check whether --enable-fast-install was given. 2434if test "${enable_fast_install+set}" = set; then 2435 enableval=$enable_fast_install; p=${PACKAGE-default} 2436 case $enableval in 2437 yes) enable_fast_install=yes ;; 2438 no) enable_fast_install=no ;; 2439 *) 2440 enable_fast_install=no 2441 # Look at the argument we got. We use all the common list separators. 2442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2443 for pkg in $enableval; do 2444 IFS="$lt_save_ifs" 2445 if test "X$pkg" = "X$p"; then 2446 enable_fast_install=yes 2447 fi 2448 done 2449 IFS="$lt_save_ifs" 2450 ;; 2451 esac 2452else 2453 enable_fast_install=yes 2454fi 2455 2456 2457# Make sure we can run config.sub. 2458$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2459 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2460echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2461 { (exit 1); exit 1; }; } 2462 2463{ echo "$as_me:$LINENO: checking build system type" >&5 2464echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2465if test "${ac_cv_build+set}" = set; then 2466 echo $ECHO_N "(cached) $ECHO_C" >&6 2467else 2468 ac_build_alias=$build_alias 2469test "x$ac_build_alias" = x && 2470 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2471test "x$ac_build_alias" = x && 2472 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2473echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2474 { (exit 1); exit 1; }; } 2475ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2476 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2477echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2478 { (exit 1); exit 1; }; } 2479 2480fi 2481{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2482echo "${ECHO_T}$ac_cv_build" >&6; } 2483case $ac_cv_build in 2484*-*-*) ;; 2485*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2486echo "$as_me: error: invalid value of canonical build" >&2;} 2487 { (exit 1); exit 1; }; };; 2488esac 2489build=$ac_cv_build 2490ac_save_IFS=$IFS; IFS='-' 2491set x $ac_cv_build 2492shift 2493build_cpu=$1 2494build_vendor=$2 2495shift; shift 2496# Remember, the first character of IFS is used to create $*, 2497# except with old shells: 2498build_os=$* 2499IFS=$ac_save_IFS 2500case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2501 2502 2503{ echo "$as_me:$LINENO: checking host system type" >&5 2504echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2505if test "${ac_cv_host+set}" = set; then 2506 echo $ECHO_N "(cached) $ECHO_C" >&6 2507else 2508 if test "x$host_alias" = x; then 2509 ac_cv_host=$ac_cv_build 2510else 2511 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2512 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2513echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2514 { (exit 1); exit 1; }; } 2515fi 2516 2517fi 2518{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2519echo "${ECHO_T}$ac_cv_host" >&6; } 2520case $ac_cv_host in 2521*-*-*) ;; 2522*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2523echo "$as_me: error: invalid value of canonical host" >&2;} 2524 { (exit 1); exit 1; }; };; 2525esac 2526host=$ac_cv_host 2527ac_save_IFS=$IFS; IFS='-' 2528set x $ac_cv_host 2529shift 2530host_cpu=$1 2531host_vendor=$2 2532shift; shift 2533# Remember, the first character of IFS is used to create $*, 2534# except with old shells: 2535host_os=$* 2536IFS=$ac_save_IFS 2537case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2538 2539 2540DEPDIR="${am__leading_dot}deps" 2541 2542ac_config_commands="$ac_config_commands depfiles" 2543 2544 2545am_make=${MAKE-make} 2546cat > confinc << 'END' 2547am__doit: 2548 @echo done 2549.PHONY: am__doit 2550END 2551# If we don't find an include directive, just comment out the code. 2552{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2553echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 2554am__include="#" 2555am__quote= 2556_am_result=none 2557# First try GNU make style include. 2558echo "include confinc" > confmf 2559# We grep out `Entering directory' and `Leaving directory' 2560# messages which can occur if `w' ends up in MAKEFLAGS. 2561# In particular we don't look at `^make:' because GNU make might 2562# be invoked under some other name (usually "gmake"), in which 2563# case it prints its new name instead of `make'. 2564if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2565 am__include=include 2566 am__quote= 2567 _am_result=GNU 2568fi 2569# Now try BSD make style include. 2570if test "$am__include" = "#"; then 2571 echo '.include "confinc"' > confmf 2572 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2573 am__include=.include 2574 am__quote="\"" 2575 _am_result=BSD 2576 fi 2577fi 2578 2579 2580{ echo "$as_me:$LINENO: result: $_am_result" >&5 2581echo "${ECHO_T}$_am_result" >&6; } 2582rm -f confinc confmf 2583 2584# Check whether --enable-dependency-tracking was given. 2585if test "${enable_dependency_tracking+set}" = set; then 2586 enableval=$enable_dependency_tracking; 2587fi 2588 2589if test "x$enable_dependency_tracking" != xno; then 2590 am_depcomp="$ac_aux_dir/depcomp" 2591 AMDEPBACKSLASH='\' 2592fi 2593 2594 2595if test "x$enable_dependency_tracking" != xno; then 2596 AMDEP_TRUE= 2597 AMDEP_FALSE='#' 2598else 2599 AMDEP_TRUE='#' 2600 AMDEP_FALSE= 2601fi 2602 2603 2604 2605ac_ext=c 2606ac_cpp='$CPP $CPPFLAGS' 2607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2609ac_compiler_gnu=$ac_cv_c_compiler_gnu 2610if test -n "$ac_tool_prefix"; then 2611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2612set dummy ${ac_tool_prefix}gcc; ac_word=$2 2613{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2615if test "${ac_cv_prog_CC+set}" = set; then 2616 echo $ECHO_N "(cached) $ECHO_C" >&6 2617else 2618 if test -n "$CC"; then 2619 ac_cv_prog_CC="$CC" # Let the user override the test. 2620else 2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622for as_dir in $PATH 2623do 2624 IFS=$as_save_IFS 2625 test -z "$as_dir" && as_dir=. 2626 for ac_exec_ext in '' $ac_executable_extensions; do 2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2628 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633done 2634IFS=$as_save_IFS 2635 2636fi 2637fi 2638CC=$ac_cv_prog_CC 2639if test -n "$CC"; then 2640 { echo "$as_me:$LINENO: result: $CC" >&5 2641echo "${ECHO_T}$CC" >&6; } 2642else 2643 { echo "$as_me:$LINENO: result: no" >&5 2644echo "${ECHO_T}no" >&6; } 2645fi 2646 2647 2648fi 2649if test -z "$ac_cv_prog_CC"; then 2650 ac_ct_CC=$CC 2651 # Extract the first word of "gcc", so it can be a program name with args. 2652set dummy gcc; ac_word=$2 2653{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2656 echo $ECHO_N "(cached) $ECHO_C" >&6 2657else 2658 if test -n "$ac_ct_CC"; then 2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2660else 2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2662for as_dir in $PATH 2663do 2664 IFS=$as_save_IFS 2665 test -z "$as_dir" && as_dir=. 2666 for ac_exec_ext in '' $ac_executable_extensions; do 2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2668 ac_cv_prog_ac_ct_CC="gcc" 2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2670 break 2 2671 fi 2672done 2673done 2674IFS=$as_save_IFS 2675 2676fi 2677fi 2678ac_ct_CC=$ac_cv_prog_ac_ct_CC 2679if test -n "$ac_ct_CC"; then 2680 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2681echo "${ECHO_T}$ac_ct_CC" >&6; } 2682else 2683 { echo "$as_me:$LINENO: result: no" >&5 2684echo "${ECHO_T}no" >&6; } 2685fi 2686 2687 if test "x$ac_ct_CC" = x; then 2688 CC="" 2689 else 2690 case $cross_compiling:$ac_tool_warned in 2691yes:) 2692{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2693whose name does not start with the host triplet. If you think this 2694configuration is useful to you, please write to autoconf@gnu.org." >&5 2695echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2696whose name does not start with the host triplet. If you think this 2697configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2698ac_tool_warned=yes ;; 2699esac 2700 CC=$ac_ct_CC 2701 fi 2702else 2703 CC="$ac_cv_prog_CC" 2704fi 2705 2706if test -z "$CC"; then 2707 if test -n "$ac_tool_prefix"; then 2708 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2709set dummy ${ac_tool_prefix}cc; ac_word=$2 2710{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2712if test "${ac_cv_prog_CC+set}" = set; then 2713 echo $ECHO_N "(cached) $ECHO_C" >&6 2714else 2715 if test -n "$CC"; then 2716 ac_cv_prog_CC="$CC" # Let the user override the test. 2717else 2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2719for as_dir in $PATH 2720do 2721 IFS=$as_save_IFS 2722 test -z "$as_dir" && as_dir=. 2723 for ac_exec_ext in '' $ac_executable_extensions; do 2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2725 ac_cv_prog_CC="${ac_tool_prefix}cc" 2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2727 break 2 2728 fi 2729done 2730done 2731IFS=$as_save_IFS 2732 2733fi 2734fi 2735CC=$ac_cv_prog_CC 2736if test -n "$CC"; then 2737 { echo "$as_me:$LINENO: result: $CC" >&5 2738echo "${ECHO_T}$CC" >&6; } 2739else 2740 { echo "$as_me:$LINENO: result: no" >&5 2741echo "${ECHO_T}no" >&6; } 2742fi 2743 2744 2745 fi 2746fi 2747if test -z "$CC"; then 2748 # Extract the first word of "cc", so it can be a program name with args. 2749set dummy cc; ac_word=$2 2750{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2752if test "${ac_cv_prog_CC+set}" = set; then 2753 echo $ECHO_N "(cached) $ECHO_C" >&6 2754else 2755 if test -n "$CC"; then 2756 ac_cv_prog_CC="$CC" # Let the user override the test. 2757else 2758 ac_prog_rejected=no 2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2760for as_dir in $PATH 2761do 2762 IFS=$as_save_IFS 2763 test -z "$as_dir" && as_dir=. 2764 for ac_exec_ext in '' $ac_executable_extensions; do 2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2766 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2767 ac_prog_rejected=yes 2768 continue 2769 fi 2770 ac_cv_prog_CC="cc" 2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2772 break 2 2773 fi 2774done 2775done 2776IFS=$as_save_IFS 2777 2778if test $ac_prog_rejected = yes; then 2779 # We found a bogon in the path, so make sure we never use it. 2780 set dummy $ac_cv_prog_CC 2781 shift 2782 if test $# != 0; then 2783 # We chose a different compiler from the bogus one. 2784 # However, it has the same basename, so the bogon will be chosen 2785 # first if we set CC to just the basename; use the full file name. 2786 shift 2787 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2788 fi 2789fi 2790fi 2791fi 2792CC=$ac_cv_prog_CC 2793if test -n "$CC"; then 2794 { echo "$as_me:$LINENO: result: $CC" >&5 2795echo "${ECHO_T}$CC" >&6; } 2796else 2797 { echo "$as_me:$LINENO: result: no" >&5 2798echo "${ECHO_T}no" >&6; } 2799fi 2800 2801 2802fi 2803if test -z "$CC"; then 2804 if test -n "$ac_tool_prefix"; then 2805 for ac_prog in cl.exe 2806 do 2807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2808set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2809{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2811if test "${ac_cv_prog_CC+set}" = set; then 2812 echo $ECHO_N "(cached) $ECHO_C" >&6 2813else 2814 if test -n "$CC"; then 2815 ac_cv_prog_CC="$CC" # Let the user override the test. 2816else 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2824 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828done 2829done 2830IFS=$as_save_IFS 2831 2832fi 2833fi 2834CC=$ac_cv_prog_CC 2835if test -n "$CC"; then 2836 { echo "$as_me:$LINENO: result: $CC" >&5 2837echo "${ECHO_T}$CC" >&6; } 2838else 2839 { echo "$as_me:$LINENO: result: no" >&5 2840echo "${ECHO_T}no" >&6; } 2841fi 2842 2843 2844 test -n "$CC" && break 2845 done 2846fi 2847if test -z "$CC"; then 2848 ac_ct_CC=$CC 2849 for ac_prog in cl.exe 2850do 2851 # Extract the first word of "$ac_prog", so it can be a program name with args. 2852set dummy $ac_prog; ac_word=$2 2853{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2855if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2856 echo $ECHO_N "(cached) $ECHO_C" >&6 2857else 2858 if test -n "$ac_ct_CC"; then 2859 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2860else 2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2862for as_dir in $PATH 2863do 2864 IFS=$as_save_IFS 2865 test -z "$as_dir" && as_dir=. 2866 for ac_exec_ext in '' $ac_executable_extensions; do 2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2868 ac_cv_prog_ac_ct_CC="$ac_prog" 2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2870 break 2 2871 fi 2872done 2873done 2874IFS=$as_save_IFS 2875 2876fi 2877fi 2878ac_ct_CC=$ac_cv_prog_ac_ct_CC 2879if test -n "$ac_ct_CC"; then 2880 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2881echo "${ECHO_T}$ac_ct_CC" >&6; } 2882else 2883 { echo "$as_me:$LINENO: result: no" >&5 2884echo "${ECHO_T}no" >&6; } 2885fi 2886 2887 2888 test -n "$ac_ct_CC" && break 2889done 2890 2891 if test "x$ac_ct_CC" = x; then 2892 CC="" 2893 else 2894 case $cross_compiling:$ac_tool_warned in 2895yes:) 2896{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2897whose name does not start with the host triplet. If you think this 2898configuration is useful to you, please write to autoconf@gnu.org." >&5 2899echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2900whose name does not start with the host triplet. If you think this 2901configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2902ac_tool_warned=yes ;; 2903esac 2904 CC=$ac_ct_CC 2905 fi 2906fi 2907 2908fi 2909 2910 2911test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2912See \`config.log' for more details." >&5 2913echo "$as_me: error: no acceptable C compiler found in \$PATH 2914See \`config.log' for more details." >&2;} 2915 { (exit 1); exit 1; }; } 2916 2917# Provide some information about the compiler. 2918echo "$as_me:$LINENO: checking for C compiler version" >&5 2919ac_compiler=`set X $ac_compile; echo $2` 2920{ (ac_try="$ac_compiler --version >&5" 2921case "(($ac_try" in 2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2923 *) ac_try_echo=$ac_try;; 2924esac 2925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2926 (eval "$ac_compiler --version >&5") 2>&5 2927 ac_status=$? 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); } 2930{ (ac_try="$ac_compiler -v >&5" 2931case "(($ac_try" in 2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2933 *) ac_try_echo=$ac_try;; 2934esac 2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2936 (eval "$ac_compiler -v >&5") 2>&5 2937 ac_status=$? 2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2939 (exit $ac_status); } 2940{ (ac_try="$ac_compiler -V >&5" 2941case "(($ac_try" in 2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2943 *) ac_try_echo=$ac_try;; 2944esac 2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2946 (eval "$ac_compiler -V >&5") 2>&5 2947 ac_status=$? 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); } 2950 2951cat >conftest.$ac_ext <<_ACEOF 2952/* confdefs.h. */ 2953_ACEOF 2954cat confdefs.h >>conftest.$ac_ext 2955cat >>conftest.$ac_ext <<_ACEOF 2956/* end confdefs.h. */ 2957 2958int 2959main () 2960{ 2961 2962 ; 2963 return 0; 2964} 2965_ACEOF 2966ac_clean_files_save=$ac_clean_files 2967ac_clean_files="$ac_clean_files a.out a.exe b.out" 2968# Try to create an executable without -o first, disregard a.out. 2969# It will help us diagnose broken compilers, and finding out an intuition 2970# of exeext. 2971{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2972echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2973ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2974# 2975# List of possible output files, starting from the most likely. 2976# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2977# only as a last resort. b.out is created by i960 compilers. 2978ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2979# 2980# The IRIX 6 linker writes into existing files which may not be 2981# executable, retaining their permissions. Remove them first so a 2982# subsequent execution test works. 2983ac_rmfiles= 2984for ac_file in $ac_files 2985do 2986 case $ac_file in 2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2989 esac 2990done 2991rm -f $ac_rmfiles 2992 2993if { (ac_try="$ac_link_default" 2994case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2999 (eval "$ac_link_default") 2>&5 3000 ac_status=$? 3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3002 (exit $ac_status); }; then 3003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3004# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3005# in a Makefile. We should not override ac_cv_exeext if it was cached, 3006# so that the user can short-circuit this test for compilers unknown to 3007# Autoconf. 3008for ac_file in $ac_files '' 3009do 3010 test -f "$ac_file" || continue 3011 case $ac_file in 3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3013 ;; 3014 [ab].out ) 3015 # We found the default executable, but exeext='' is most 3016 # certainly right. 3017 break;; 3018 *.* ) 3019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3020 then :; else 3021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3022 fi 3023 # We set ac_cv_exeext here because the later test for it is not 3024 # safe: cross compilers may not add the suffix if given an `-o' 3025 # argument, so we may need to know it at that point already. 3026 # Even if this section looks crufty: it has the advantage of 3027 # actually working. 3028 break;; 3029 * ) 3030 break;; 3031 esac 3032done 3033test "$ac_cv_exeext" = no && ac_cv_exeext= 3034 3035else 3036 ac_file='' 3037fi 3038 3039{ echo "$as_me:$LINENO: result: $ac_file" >&5 3040echo "${ECHO_T}$ac_file" >&6; } 3041if test -z "$ac_file"; then 3042 echo "$as_me: failed program was:" >&5 3043sed 's/^/| /' conftest.$ac_ext >&5 3044 3045{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3046See \`config.log' for more details." >&5 3047echo "$as_me: error: C compiler cannot create executables 3048See \`config.log' for more details." >&2;} 3049 { (exit 77); exit 77; }; } 3050fi 3051 3052ac_exeext=$ac_cv_exeext 3053 3054# Check that the compiler produces executables we can run. If not, either 3055# the compiler is broken, or we cross compile. 3056{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3057echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3058# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3059# If not cross compiling, check that we can run a simple program. 3060if test "$cross_compiling" != yes; then 3061 if { ac_try='./$ac_file' 3062 { (case "(($ac_try" in 3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3064 *) ac_try_echo=$ac_try;; 3065esac 3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3067 (eval "$ac_try") 2>&5 3068 ac_status=$? 3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); }; }; then 3071 cross_compiling=no 3072 else 3073 if test "$cross_compiling" = maybe; then 3074 cross_compiling=yes 3075 else 3076 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3077If you meant to cross compile, use \`--host'. 3078See \`config.log' for more details." >&5 3079echo "$as_me: error: cannot run C compiled programs. 3080If you meant to cross compile, use \`--host'. 3081See \`config.log' for more details." >&2;} 3082 { (exit 1); exit 1; }; } 3083 fi 3084 fi 3085fi 3086{ echo "$as_me:$LINENO: result: yes" >&5 3087echo "${ECHO_T}yes" >&6; } 3088 3089rm -f a.out a.exe conftest$ac_cv_exeext b.out 3090ac_clean_files=$ac_clean_files_save 3091# Check that the compiler produces executables we can run. If not, either 3092# the compiler is broken, or we cross compile. 3093{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3094echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3095{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3096echo "${ECHO_T}$cross_compiling" >&6; } 3097 3098{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3099echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3100if { (ac_try="$ac_link" 3101case "(($ac_try" in 3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3103 *) ac_try_echo=$ac_try;; 3104esac 3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3106 (eval "$ac_link") 2>&5 3107 ac_status=$? 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); }; then 3110 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3111# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3112# work properly (i.e., refer to `conftest.exe'), while it won't with 3113# `rm'. 3114for ac_file in conftest.exe conftest conftest.*; do 3115 test -f "$ac_file" || continue 3116 case $ac_file in 3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3118 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3119 break;; 3120 * ) break;; 3121 esac 3122done 3123else 3124 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3125See \`config.log' for more details." >&5 3126echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3127See \`config.log' for more details." >&2;} 3128 { (exit 1); exit 1; }; } 3129fi 3130 3131rm -f conftest$ac_cv_exeext 3132{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3133echo "${ECHO_T}$ac_cv_exeext" >&6; } 3134 3135rm -f conftest.$ac_ext 3136EXEEXT=$ac_cv_exeext 3137ac_exeext=$EXEEXT 3138{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3139echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3140if test "${ac_cv_objext+set}" = set; then 3141 echo $ECHO_N "(cached) $ECHO_C" >&6 3142else 3143 cat >conftest.$ac_ext <<_ACEOF 3144/* confdefs.h. */ 3145_ACEOF 3146cat confdefs.h >>conftest.$ac_ext 3147cat >>conftest.$ac_ext <<_ACEOF 3148/* end confdefs.h. */ 3149 3150int 3151main () 3152{ 3153 3154 ; 3155 return 0; 3156} 3157_ACEOF 3158rm -f conftest.o conftest.obj 3159if { (ac_try="$ac_compile" 3160case "(($ac_try" in 3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3162 *) ac_try_echo=$ac_try;; 3163esac 3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3165 (eval "$ac_compile") 2>&5 3166 ac_status=$? 3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3168 (exit $ac_status); }; then 3169 for ac_file in conftest.o conftest.obj conftest.*; do 3170 test -f "$ac_file" || continue; 3171 case $ac_file in 3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3174 break;; 3175 esac 3176done 3177else 3178 echo "$as_me: failed program was:" >&5 3179sed 's/^/| /' conftest.$ac_ext >&5 3180 3181{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3182See \`config.log' for more details." >&5 3183echo "$as_me: error: cannot compute suffix of object files: cannot compile 3184See \`config.log' for more details." >&2;} 3185 { (exit 1); exit 1; }; } 3186fi 3187 3188rm -f conftest.$ac_cv_objext conftest.$ac_ext 3189fi 3190{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3191echo "${ECHO_T}$ac_cv_objext" >&6; } 3192OBJEXT=$ac_cv_objext 3193ac_objext=$OBJEXT 3194{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3195echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3196if test "${ac_cv_c_compiler_gnu+set}" = set; then 3197 echo $ECHO_N "(cached) $ECHO_C" >&6 3198else 3199 cat >conftest.$ac_ext <<_ACEOF 3200/* confdefs.h. */ 3201_ACEOF 3202cat confdefs.h >>conftest.$ac_ext 3203cat >>conftest.$ac_ext <<_ACEOF 3204/* end confdefs.h. */ 3205 3206int 3207main () 3208{ 3209#ifndef __GNUC__ 3210 choke me 3211#endif 3212 3213 ; 3214 return 0; 3215} 3216_ACEOF 3217rm -f conftest.$ac_objext 3218if { (ac_try="$ac_compile" 3219case "(($ac_try" in 3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3221 *) ac_try_echo=$ac_try;; 3222esac 3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3224 (eval "$ac_compile") 2>conftest.er1 3225 ac_status=$? 3226 grep -v '^ *+' conftest.er1 >conftest.err 3227 rm -f conftest.er1 3228 cat conftest.err >&5 3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); } && 3231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3232 { (case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235esac 3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3237 (eval "$ac_try") 2>&5 3238 ac_status=$? 3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3240 (exit $ac_status); }; } && 3241 { ac_try='test -s conftest.$ac_objext' 3242 { (case "(($ac_try" in 3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3244 *) ac_try_echo=$ac_try;; 3245esac 3246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3247 (eval "$ac_try") 2>&5 3248 ac_status=$? 3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3250 (exit $ac_status); }; }; then 3251 ac_compiler_gnu=yes 3252else 3253 echo "$as_me: failed program was:" >&5 3254sed 's/^/| /' conftest.$ac_ext >&5 3255 3256 ac_compiler_gnu=no 3257fi 3258 3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3260ac_cv_c_compiler_gnu=$ac_compiler_gnu 3261 3262fi 3263{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3264echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3265GCC=`test $ac_compiler_gnu = yes && echo yes` 3266ac_test_CFLAGS=${CFLAGS+set} 3267ac_save_CFLAGS=$CFLAGS 3268{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3269echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3270if test "${ac_cv_prog_cc_g+set}" = set; then 3271 echo $ECHO_N "(cached) $ECHO_C" >&6 3272else 3273 ac_save_c_werror_flag=$ac_c_werror_flag 3274 ac_c_werror_flag=yes 3275 ac_cv_prog_cc_g=no 3276 CFLAGS="-g" 3277 cat >conftest.$ac_ext <<_ACEOF 3278/* confdefs.h. */ 3279_ACEOF 3280cat confdefs.h >>conftest.$ac_ext 3281cat >>conftest.$ac_ext <<_ACEOF 3282/* end confdefs.h. */ 3283 3284int 3285main () 3286{ 3287 3288 ; 3289 return 0; 3290} 3291_ACEOF 3292rm -f conftest.$ac_objext 3293if { (ac_try="$ac_compile" 3294case "(($ac_try" in 3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3296 *) ac_try_echo=$ac_try;; 3297esac 3298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3299 (eval "$ac_compile") 2>conftest.er1 3300 ac_status=$? 3301 grep -v '^ *+' conftest.er1 >conftest.err 3302 rm -f conftest.er1 3303 cat conftest.err >&5 3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3305 (exit $ac_status); } && 3306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3307 { (case "(($ac_try" in 3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3309 *) ac_try_echo=$ac_try;; 3310esac 3311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3312 (eval "$ac_try") 2>&5 3313 ac_status=$? 3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3315 (exit $ac_status); }; } && 3316 { ac_try='test -s conftest.$ac_objext' 3317 { (case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320esac 3321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3322 (eval "$ac_try") 2>&5 3323 ac_status=$? 3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3325 (exit $ac_status); }; }; then 3326 ac_cv_prog_cc_g=yes 3327else 3328 echo "$as_me: failed program was:" >&5 3329sed 's/^/| /' conftest.$ac_ext >&5 3330 3331 CFLAGS="" 3332 cat >conftest.$ac_ext <<_ACEOF 3333/* confdefs.h. */ 3334_ACEOF 3335cat confdefs.h >>conftest.$ac_ext 3336cat >>conftest.$ac_ext <<_ACEOF 3337/* end confdefs.h. */ 3338 3339int 3340main () 3341{ 3342 3343 ; 3344 return 0; 3345} 3346_ACEOF 3347rm -f conftest.$ac_objext 3348if { (ac_try="$ac_compile" 3349case "(($ac_try" in 3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3351 *) ac_try_echo=$ac_try;; 3352esac 3353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3354 (eval "$ac_compile") 2>conftest.er1 3355 ac_status=$? 3356 grep -v '^ *+' conftest.er1 >conftest.err 3357 rm -f conftest.er1 3358 cat conftest.err >&5 3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3360 (exit $ac_status); } && 3361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3362 { (case "(($ac_try" in 3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3364 *) ac_try_echo=$ac_try;; 3365esac 3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3367 (eval "$ac_try") 2>&5 3368 ac_status=$? 3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3370 (exit $ac_status); }; } && 3371 { ac_try='test -s conftest.$ac_objext' 3372 { (case "(($ac_try" in 3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3374 *) ac_try_echo=$ac_try;; 3375esac 3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3377 (eval "$ac_try") 2>&5 3378 ac_status=$? 3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3380 (exit $ac_status); }; }; then 3381 : 3382else 3383 echo "$as_me: failed program was:" >&5 3384sed 's/^/| /' conftest.$ac_ext >&5 3385 3386 ac_c_werror_flag=$ac_save_c_werror_flag 3387 CFLAGS="-g" 3388 cat >conftest.$ac_ext <<_ACEOF 3389/* confdefs.h. */ 3390_ACEOF 3391cat confdefs.h >>conftest.$ac_ext 3392cat >>conftest.$ac_ext <<_ACEOF 3393/* end confdefs.h. */ 3394 3395int 3396main () 3397{ 3398 3399 ; 3400 return 0; 3401} 3402_ACEOF 3403rm -f conftest.$ac_objext 3404if { (ac_try="$ac_compile" 3405case "(($ac_try" in 3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3407 *) ac_try_echo=$ac_try;; 3408esac 3409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3410 (eval "$ac_compile") 2>conftest.er1 3411 ac_status=$? 3412 grep -v '^ *+' conftest.er1 >conftest.err 3413 rm -f conftest.er1 3414 cat conftest.err >&5 3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3416 (exit $ac_status); } && 3417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3418 { (case "(($ac_try" in 3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3420 *) ac_try_echo=$ac_try;; 3421esac 3422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3423 (eval "$ac_try") 2>&5 3424 ac_status=$? 3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3426 (exit $ac_status); }; } && 3427 { ac_try='test -s conftest.$ac_objext' 3428 { (case "(($ac_try" in 3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3430 *) ac_try_echo=$ac_try;; 3431esac 3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3433 (eval "$ac_try") 2>&5 3434 ac_status=$? 3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3436 (exit $ac_status); }; }; then 3437 ac_cv_prog_cc_g=yes 3438else 3439 echo "$as_me: failed program was:" >&5 3440sed 's/^/| /' conftest.$ac_ext >&5 3441 3442 3443fi 3444 3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3446fi 3447 3448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3449fi 3450 3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3452 ac_c_werror_flag=$ac_save_c_werror_flag 3453fi 3454{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3455echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3456if test "$ac_test_CFLAGS" = set; then 3457 CFLAGS=$ac_save_CFLAGS 3458elif test $ac_cv_prog_cc_g = yes; then 3459 if test "$GCC" = yes; then 3460 CFLAGS="-g -O2" 3461 else 3462 CFLAGS="-g" 3463 fi 3464else 3465 if test "$GCC" = yes; then 3466 CFLAGS="-O2" 3467 else 3468 CFLAGS= 3469 fi 3470fi 3471{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3472echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3473if test "${ac_cv_prog_cc_c89+set}" = set; then 3474 echo $ECHO_N "(cached) $ECHO_C" >&6 3475else 3476 ac_cv_prog_cc_c89=no 3477ac_save_CC=$CC 3478cat >conftest.$ac_ext <<_ACEOF 3479/* confdefs.h. */ 3480_ACEOF 3481cat confdefs.h >>conftest.$ac_ext 3482cat >>conftest.$ac_ext <<_ACEOF 3483/* end confdefs.h. */ 3484#include <stdarg.h> 3485#include <stdio.h> 3486#include <sys/types.h> 3487#include <sys/stat.h> 3488/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3489struct buf { int x; }; 3490FILE * (*rcsopen) (struct buf *, struct stat *, int); 3491static char *e (p, i) 3492 char **p; 3493 int i; 3494{ 3495 return p[i]; 3496} 3497static char *f (char * (*g) (char **, int), char **p, ...) 3498{ 3499 char *s; 3500 va_list v; 3501 va_start (v,p); 3502 s = g (p, va_arg (v,int)); 3503 va_end (v); 3504 return s; 3505} 3506 3507/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3508 function prototypes and stuff, but not '\xHH' hex character constants. 3509 These don't provoke an error unfortunately, instead are silently treated 3510 as 'x'. The following induces an error, until -std is added to get 3511 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3512 array size at least. It's necessary to write '\x00'==0 to get something 3513 that's true only with -std. */ 3514int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3515 3516/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3517 inside strings and character constants. */ 3518#define FOO(x) 'x' 3519int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3520 3521int test (int i, double x); 3522struct s1 {int (*f) (int a);}; 3523struct s2 {int (*f) (double a);}; 3524int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3525int argc; 3526char **argv; 3527int 3528main () 3529{ 3530return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3531 ; 3532 return 0; 3533} 3534_ACEOF 3535for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3536 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3537do 3538 CC="$ac_save_CC $ac_arg" 3539 rm -f conftest.$ac_objext 3540if { (ac_try="$ac_compile" 3541case "(($ac_try" in 3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3543 *) ac_try_echo=$ac_try;; 3544esac 3545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3546 (eval "$ac_compile") 2>conftest.er1 3547 ac_status=$? 3548 grep -v '^ *+' conftest.er1 >conftest.err 3549 rm -f conftest.er1 3550 cat conftest.err >&5 3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3552 (exit $ac_status); } && 3553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3554 { (case "(($ac_try" in 3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3556 *) ac_try_echo=$ac_try;; 3557esac 3558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3559 (eval "$ac_try") 2>&5 3560 ac_status=$? 3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3562 (exit $ac_status); }; } && 3563 { ac_try='test -s conftest.$ac_objext' 3564 { (case "(($ac_try" in 3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3566 *) ac_try_echo=$ac_try;; 3567esac 3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3569 (eval "$ac_try") 2>&5 3570 ac_status=$? 3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3572 (exit $ac_status); }; }; then 3573 ac_cv_prog_cc_c89=$ac_arg 3574else 3575 echo "$as_me: failed program was:" >&5 3576sed 's/^/| /' conftest.$ac_ext >&5 3577 3578 3579fi 3580 3581rm -f core conftest.err conftest.$ac_objext 3582 test "x$ac_cv_prog_cc_c89" != "xno" && break 3583done 3584rm -f conftest.$ac_ext 3585CC=$ac_save_CC 3586 3587fi 3588# AC_CACHE_VAL 3589case "x$ac_cv_prog_cc_c89" in 3590 x) 3591 { echo "$as_me:$LINENO: result: none needed" >&5 3592echo "${ECHO_T}none needed" >&6; } ;; 3593 xno) 3594 { echo "$as_me:$LINENO: result: unsupported" >&5 3595echo "${ECHO_T}unsupported" >&6; } ;; 3596 *) 3597 CC="$CC $ac_cv_prog_cc_c89" 3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3599echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3600esac 3601 3602 3603ac_ext=c 3604ac_cpp='$CPP $CPPFLAGS' 3605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3607ac_compiler_gnu=$ac_cv_c_compiler_gnu 3608 3609depcc="$CC" am_compiler_list= 3610 3611{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3612echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3613if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3614 echo $ECHO_N "(cached) $ECHO_C" >&6 3615else 3616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3617 # We make a subdir and do the tests there. Otherwise we can end up 3618 # making bogus files that we don't know about and never remove. For 3619 # instance it was reported that on HP-UX the gcc test will end up 3620 # making a dummy file named `D' -- because `-MD' means `put the output 3621 # in D'. 3622 mkdir conftest.dir 3623 # Copy depcomp to subdir because otherwise we won't find it if we're 3624 # using a relative directory. 3625 cp "$am_depcomp" conftest.dir 3626 cd conftest.dir 3627 # We will build objects and dependencies in a subdirectory because 3628 # it helps to detect inapplicable dependency modes. For instance 3629 # both Tru64's cc and ICC support -MD to output dependencies as a 3630 # side effect of compilation, but ICC will put the dependencies in 3631 # the current directory while Tru64 will put them in the object 3632 # directory. 3633 mkdir sub 3634 3635 am_cv_CC_dependencies_compiler_type=none 3636 if test "$am_compiler_list" = ""; then 3637 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3638 fi 3639 for depmode in $am_compiler_list; do 3640 # Setup a source with many dependencies, because some compilers 3641 # like to wrap large dependency lists on column 80 (with \), and 3642 # we should not choose a depcomp mode which is confused by this. 3643 # 3644 # We need to recreate these files for each test, as the compiler may 3645 # overwrite some of them when testing with obscure command lines. 3646 # This happens at least with the AIX C compiler. 3647 : > sub/conftest.c 3648 for i in 1 2 3 4 5 6; do 3649 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3650 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3651 # Solaris 8's {/usr,}/bin/sh. 3652 touch sub/conftst$i.h 3653 done 3654 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3655 3656 case $depmode in 3657 nosideeffect) 3658 # after this tag, mechanisms are not by side-effect, so they'll 3659 # only be used when explicitly requested 3660 if test "x$enable_dependency_tracking" = xyes; then 3661 continue 3662 else 3663 break 3664 fi 3665 ;; 3666 none) break ;; 3667 esac 3668 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3669 # mode. It turns out that the SunPro C++ compiler does not properly 3670 # handle `-M -o', and we need to detect this. 3671 if depmode=$depmode \ 3672 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3673 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3674 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3675 >/dev/null 2>conftest.err && 3676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3677 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3679 # icc doesn't choke on unknown options, it will just issue warnings 3680 # or remarks (even with -Werror). So we grep stderr for any message 3681 # that says an option was ignored or not supported. 3682 # When given -MP, icc 7.0 and 7.1 complain thusly: 3683 # icc: Command line warning: ignoring option '-M'; no argument required 3684 # The diagnosis changed in icc 8.0: 3685 # icc: Command line remark: option '-MP' not supported 3686 if (grep 'ignoring option' conftest.err || 3687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3688 am_cv_CC_dependencies_compiler_type=$depmode 3689 break 3690 fi 3691 fi 3692 done 3693 3694 cd .. 3695 rm -rf conftest.dir 3696else 3697 am_cv_CC_dependencies_compiler_type=none 3698fi 3699 3700fi 3701{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3702echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3703CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3704 3705 3706 3707if 3708 test "x$enable_dependency_tracking" != xno \ 3709 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3710 am__fastdepCC_TRUE= 3711 am__fastdepCC_FALSE='#' 3712else 3713 am__fastdepCC_TRUE='#' 3714 am__fastdepCC_FALSE= 3715fi 3716 3717 3718{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3719echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3720if test "${lt_cv_path_SED+set}" = set; then 3721 echo $ECHO_N "(cached) $ECHO_C" >&6 3722else 3723 # Loop through the user's path and test for sed and gsed. 3724# Then use that list of sed's as ones to test for truncation. 3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3726for as_dir in $PATH 3727do 3728 IFS=$as_save_IFS 3729 test -z "$as_dir" && as_dir=. 3730 for lt_ac_prog in sed gsed; do 3731 for ac_exec_ext in '' $ac_executable_extensions; do 3732 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3733 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3734 fi 3735 done 3736 done 3737done 3738lt_ac_max=0 3739lt_ac_count=0 3740# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3741# along with /bin/sed that truncates output. 3742for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3743 test ! -f $lt_ac_sed && continue 3744 cat /dev/null > conftest.in 3745 lt_ac_count=0 3746 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3747 # Check for GNU sed and select it if it is found. 3748 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3749 lt_cv_path_SED=$lt_ac_sed 3750 break 3751 fi 3752 while true; do 3753 cat conftest.in conftest.in >conftest.tmp 3754 mv conftest.tmp conftest.in 3755 cp conftest.in conftest.nl 3756 echo >>conftest.nl 3757 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3758 cmp -s conftest.out conftest.nl || break 3759 # 10000 chars as input seems more than enough 3760 test $lt_ac_count -gt 10 && break 3761 lt_ac_count=`expr $lt_ac_count + 1` 3762 if test $lt_ac_count -gt $lt_ac_max; then 3763 lt_ac_max=$lt_ac_count 3764 lt_cv_path_SED=$lt_ac_sed 3765 fi 3766 done 3767done 3768 3769fi 3770 3771SED=$lt_cv_path_SED 3772{ echo "$as_me:$LINENO: result: $SED" >&5 3773echo "${ECHO_T}$SED" >&6; } 3774 3775{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3776echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3777if test "${ac_cv_path_GREP+set}" = set; then 3778 echo $ECHO_N "(cached) $ECHO_C" >&6 3779else 3780 # Extract the first word of "grep ggrep" to use in msg output 3781if test -z "$GREP"; then 3782set dummy grep ggrep; ac_prog_name=$2 3783if test "${ac_cv_path_GREP+set}" = set; then 3784 echo $ECHO_N "(cached) $ECHO_C" >&6 3785else 3786 ac_path_GREP_found=false 3787# Loop through the user's path and test for each of PROGNAME-LIST 3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3789for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3790do 3791 IFS=$as_save_IFS 3792 test -z "$as_dir" && as_dir=. 3793 for ac_prog in grep ggrep; do 3794 for ac_exec_ext in '' $ac_executable_extensions; do 3795 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3796 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3797 # Check for GNU ac_path_GREP and select it if it is found. 3798 # Check for GNU $ac_path_GREP 3799case `"$ac_path_GREP" --version 2>&1` in 3800*GNU*) 3801 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3802*) 3803 ac_count=0 3804 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3805 while : 3806 do 3807 cat "conftest.in" "conftest.in" >"conftest.tmp" 3808 mv "conftest.tmp" "conftest.in" 3809 cp "conftest.in" "conftest.nl" 3810 echo 'GREP' >> "conftest.nl" 3811 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3813 ac_count=`expr $ac_count + 1` 3814 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3815 # Best one so far, save it but keep looking for a better one 3816 ac_cv_path_GREP="$ac_path_GREP" 3817 ac_path_GREP_max=$ac_count 3818 fi 3819 # 10*(2^10) chars as input seems more than enough 3820 test $ac_count -gt 10 && break 3821 done 3822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3823esac 3824 3825 3826 $ac_path_GREP_found && break 3 3827 done 3828done 3829 3830done 3831IFS=$as_save_IFS 3832 3833 3834fi 3835 3836GREP="$ac_cv_path_GREP" 3837if test -z "$GREP"; then 3838 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3839echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3840 { (exit 1); exit 1; }; } 3841fi 3842 3843else 3844 ac_cv_path_GREP=$GREP 3845fi 3846 3847 3848fi 3849{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3850echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3851 GREP="$ac_cv_path_GREP" 3852 3853 3854{ echo "$as_me:$LINENO: checking for egrep" >&5 3855echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3856if test "${ac_cv_path_EGREP+set}" = set; then 3857 echo $ECHO_N "(cached) $ECHO_C" >&6 3858else 3859 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3860 then ac_cv_path_EGREP="$GREP -E" 3861 else 3862 # Extract the first word of "egrep" to use in msg output 3863if test -z "$EGREP"; then 3864set dummy egrep; ac_prog_name=$2 3865if test "${ac_cv_path_EGREP+set}" = set; then 3866 echo $ECHO_N "(cached) $ECHO_C" >&6 3867else 3868 ac_path_EGREP_found=false 3869# Loop through the user's path and test for each of PROGNAME-LIST 3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3871for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3872do 3873 IFS=$as_save_IFS 3874 test -z "$as_dir" && as_dir=. 3875 for ac_prog in egrep; do 3876 for ac_exec_ext in '' $ac_executable_extensions; do 3877 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3878 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3879 # Check for GNU ac_path_EGREP and select it if it is found. 3880 # Check for GNU $ac_path_EGREP 3881case `"$ac_path_EGREP" --version 2>&1` in 3882*GNU*) 3883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3884*) 3885 ac_count=0 3886 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3887 while : 3888 do 3889 cat "conftest.in" "conftest.in" >"conftest.tmp" 3890 mv "conftest.tmp" "conftest.in" 3891 cp "conftest.in" "conftest.nl" 3892 echo 'EGREP' >> "conftest.nl" 3893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3895 ac_count=`expr $ac_count + 1` 3896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3897 # Best one so far, save it but keep looking for a better one 3898 ac_cv_path_EGREP="$ac_path_EGREP" 3899 ac_path_EGREP_max=$ac_count 3900 fi 3901 # 10*(2^10) chars as input seems more than enough 3902 test $ac_count -gt 10 && break 3903 done 3904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3905esac 3906 3907 3908 $ac_path_EGREP_found && break 3 3909 done 3910done 3911 3912done 3913IFS=$as_save_IFS 3914 3915 3916fi 3917 3918EGREP="$ac_cv_path_EGREP" 3919if test -z "$EGREP"; then 3920 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3921echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3922 { (exit 1); exit 1; }; } 3923fi 3924 3925else 3926 ac_cv_path_EGREP=$EGREP 3927fi 3928 3929 3930 fi 3931fi 3932{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3933echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3934 EGREP="$ac_cv_path_EGREP" 3935 3936 3937 3938# Check whether --with-gnu-ld was given. 3939if test "${with_gnu_ld+set}" = set; then 3940 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3941else 3942 with_gnu_ld=no 3943fi 3944 3945ac_prog=ld 3946if test "$GCC" = yes; then 3947 # Check if gcc -print-prog-name=ld gives a path. 3948 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3949echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3950 case $host in 3951 *-*-mingw*) 3952 # gcc leaves a trailing carriage return which upsets mingw 3953 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3954 *) 3955 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3956 esac 3957 case $ac_prog in 3958 # Accept absolute paths. 3959 [\\/]* | ?:[\\/]*) 3960 re_direlt='/[^/][^/]*/\.\./' 3961 # Canonicalize the pathname of ld 3962 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3963 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3964 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3965 done 3966 test -z "$LD" && LD="$ac_prog" 3967 ;; 3968 "") 3969 # If it fails, then pretend we aren't using GCC. 3970 ac_prog=ld 3971 ;; 3972 *) 3973 # If it is relative, then search for the first ld in PATH. 3974 with_gnu_ld=unknown 3975 ;; 3976 esac 3977elif test "$with_gnu_ld" = yes; then 3978 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3979echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3980else 3981 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3982echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3983fi 3984if test "${lt_cv_path_LD+set}" = set; then 3985 echo $ECHO_N "(cached) $ECHO_C" >&6 3986else 3987 if test -z "$LD"; then 3988 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3989 for ac_dir in $PATH; do 3990 IFS="$lt_save_ifs" 3991 test -z "$ac_dir" && ac_dir=. 3992 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3993 lt_cv_path_LD="$ac_dir/$ac_prog" 3994 # Check to see if the program is GNU ld. I'd rather use --version, 3995 # but apparently some variants of GNU ld only accept -v. 3996 # Break only if it was the GNU/non-GNU ld that we prefer. 3997 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3998 *GNU* | *'with BFD'*) 3999 test "$with_gnu_ld" != no && break 4000 ;; 4001 *) 4002 test "$with_gnu_ld" != yes && break 4003 ;; 4004 esac 4005 fi 4006 done 4007 IFS="$lt_save_ifs" 4008else 4009 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4010fi 4011fi 4012 4013LD="$lt_cv_path_LD" 4014if test -n "$LD"; then 4015 { echo "$as_me:$LINENO: result: $LD" >&5 4016echo "${ECHO_T}$LD" >&6; } 4017else 4018 { echo "$as_me:$LINENO: result: no" >&5 4019echo "${ECHO_T}no" >&6; } 4020fi 4021test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4022echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4023 { (exit 1); exit 1; }; } 4024{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4025echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4026if test "${lt_cv_prog_gnu_ld+set}" = set; then 4027 echo $ECHO_N "(cached) $ECHO_C" >&6 4028else 4029 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4030case `$LD -v 2>&1 </dev/null` in 4031*GNU* | *'with BFD'*) 4032 lt_cv_prog_gnu_ld=yes 4033 ;; 4034*) 4035 lt_cv_prog_gnu_ld=no 4036 ;; 4037esac 4038fi 4039{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4040echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4041with_gnu_ld=$lt_cv_prog_gnu_ld 4042 4043 4044{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4045echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4046if test "${lt_cv_ld_reload_flag+set}" = set; then 4047 echo $ECHO_N "(cached) $ECHO_C" >&6 4048else 4049 lt_cv_ld_reload_flag='-r' 4050fi 4051{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4052echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4053reload_flag=$lt_cv_ld_reload_flag 4054case $reload_flag in 4055"" | " "*) ;; 4056*) reload_flag=" $reload_flag" ;; 4057esac 4058reload_cmds='$LD$reload_flag -o $output$reload_objs' 4059case $host_os in 4060 darwin*) 4061 if test "$GCC" = yes; then 4062 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4063 else 4064 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4065 fi 4066 ;; 4067esac 4068 4069{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4070echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4071if test "${lt_cv_path_NM+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073else 4074 if test -n "$NM"; then 4075 # Let the user override the test. 4076 lt_cv_path_NM="$NM" 4077else 4078 lt_nm_to_check="${ac_tool_prefix}nm" 4079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4080 lt_nm_to_check="$lt_nm_to_check nm" 4081 fi 4082 for lt_tmp_nm in $lt_nm_to_check; do 4083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4085 IFS="$lt_save_ifs" 4086 test -z "$ac_dir" && ac_dir=. 4087 tmp_nm="$ac_dir/$lt_tmp_nm" 4088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4089 # Check to see if the nm accepts a BSD-compat flag. 4090 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4091 # nm: unknown option "B" ignored 4092 # Tru64's nm complains that /dev/null is an invalid object file 4093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4094 */dev/null* | *'Invalid file or object type'*) 4095 lt_cv_path_NM="$tmp_nm -B" 4096 break 4097 ;; 4098 *) 4099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4100 */dev/null*) 4101 lt_cv_path_NM="$tmp_nm -p" 4102 break 4103 ;; 4104 *) 4105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4106 continue # so that we can try to find one that supports BSD flags 4107 ;; 4108 esac 4109 ;; 4110 esac 4111 fi 4112 done 4113 IFS="$lt_save_ifs" 4114 done 4115 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4116fi 4117fi 4118{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4119echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4120NM="$lt_cv_path_NM" 4121 4122{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4123echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4124LN_S=$as_ln_s 4125if test "$LN_S" = "ln -s"; then 4126 { echo "$as_me:$LINENO: result: yes" >&5 4127echo "${ECHO_T}yes" >&6; } 4128else 4129 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4130echo "${ECHO_T}no, using $LN_S" >&6; } 4131fi 4132 4133{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4134echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4135if test "${lt_cv_deplibs_check_method+set}" = set; then 4136 echo $ECHO_N "(cached) $ECHO_C" >&6 4137else 4138 lt_cv_file_magic_cmd='$MAGIC_CMD' 4139lt_cv_file_magic_test_file= 4140lt_cv_deplibs_check_method='unknown' 4141# Need to set the preceding variable on all platforms that support 4142# interlibrary dependencies. 4143# 'none' -- dependencies not supported. 4144# `unknown' -- same as none, but documents that we really don't know. 4145# 'pass_all' -- all dependencies passed with no checks. 4146# 'test_compile' -- check by making test program. 4147# 'file_magic [[regex]]' -- check by looking for files in library path 4148# which responds to the $file_magic_cmd with a given extended regex. 4149# If you have `file' or equivalent on your system and you're not sure 4150# whether `pass_all' will *always* work, you probably want this one. 4151 4152case $host_os in 4153aix4* | aix5*) 4154 lt_cv_deplibs_check_method=pass_all 4155 ;; 4156 4157beos*) 4158 lt_cv_deplibs_check_method=pass_all 4159 ;; 4160 4161bsdi[45]*) 4162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4163 lt_cv_file_magic_cmd='/usr/bin/file -L' 4164 lt_cv_file_magic_test_file=/shlib/libc.so 4165 ;; 4166 4167cygwin*) 4168 # func_win32_libid is a shell function defined in ltmain.sh 4169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4170 lt_cv_file_magic_cmd='func_win32_libid' 4171 ;; 4172 4173mingw* | pw32*) 4174 # Base MSYS/MinGW do not provide the 'file' command needed by 4175 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4176 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4177 lt_cv_file_magic_cmd='$OBJDUMP -f' 4178 ;; 4179 4180darwin* | rhapsody*) 4181 lt_cv_deplibs_check_method=pass_all 4182 ;; 4183 4184freebsd* | dragonfly*) 4185 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4186 case $host_cpu in 4187 i*86 ) 4188 # Not sure whether the presence of OpenBSD here was a mistake. 4189 # Let's accept both of them until this is cleared up. 4190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4191 lt_cv_file_magic_cmd=/usr/bin/file 4192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4193 ;; 4194 esac 4195 else 4196 lt_cv_deplibs_check_method=pass_all 4197 fi 4198 ;; 4199 4200gnu*) 4201 lt_cv_deplibs_check_method=pass_all 4202 ;; 4203 4204hpux10.20* | hpux11*) 4205 lt_cv_file_magic_cmd=/usr/bin/file 4206 case $host_cpu in 4207 ia64*) 4208 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4209 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4210 ;; 4211 hppa*64*) 4212 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]' 4213 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4214 ;; 4215 *) 4216 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4217 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4218 ;; 4219 esac 4220 ;; 4221 4222interix3*) 4223 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4225 ;; 4226 4227irix5* | irix6* | nonstopux*) 4228 case $LD in 4229 *-32|*"-32 ") libmagic=32-bit;; 4230 *-n32|*"-n32 ") libmagic=N32;; 4231 *-64|*"-64 ") libmagic=64-bit;; 4232 *) libmagic=never-match;; 4233 esac 4234 lt_cv_deplibs_check_method=pass_all 4235 ;; 4236 4237# This must be Linux ELF. 4238linux* | k*bsd*-gnu) 4239 lt_cv_deplibs_check_method=pass_all 4240 ;; 4241 4242netbsd* | netbsdelf*-gnu) 4243 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4245 else 4246 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4247 fi 4248 ;; 4249 4250newos6*) 4251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4252 lt_cv_file_magic_cmd=/usr/bin/file 4253 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4254 ;; 4255 4256nto-qnx*) 4257 lt_cv_deplibs_check_method=unknown 4258 ;; 4259 4260openbsd*) 4261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4263 else 4264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4265 fi 4266 ;; 4267 4268osf3* | osf4* | osf5*) 4269 lt_cv_deplibs_check_method=pass_all 4270 ;; 4271 4272solaris*) 4273 lt_cv_deplibs_check_method=pass_all 4274 ;; 4275 4276sysv4 | sysv4.3*) 4277 case $host_vendor in 4278 motorola) 4279 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]' 4280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4281 ;; 4282 ncr) 4283 lt_cv_deplibs_check_method=pass_all 4284 ;; 4285 sequent) 4286 lt_cv_file_magic_cmd='/bin/file' 4287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4288 ;; 4289 sni) 4290 lt_cv_file_magic_cmd='/bin/file' 4291 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4292 lt_cv_file_magic_test_file=/lib/libc.so 4293 ;; 4294 siemens) 4295 lt_cv_deplibs_check_method=pass_all 4296 ;; 4297 pc) 4298 lt_cv_deplibs_check_method=pass_all 4299 ;; 4300 esac 4301 ;; 4302 4303sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4304 lt_cv_deplibs_check_method=pass_all 4305 ;; 4306esac 4307 4308fi 4309{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4310echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4311file_magic_cmd=$lt_cv_file_magic_cmd 4312deplibs_check_method=$lt_cv_deplibs_check_method 4313test -z "$deplibs_check_method" && deplibs_check_method=unknown 4314 4315 4316 4317 4318# If no C compiler was specified, use CC. 4319LTCC=${LTCC-"$CC"} 4320 4321# If no C compiler flags were specified, use CFLAGS. 4322LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4323 4324# Allow CC to be a program name with arguments. 4325compiler=$CC 4326 4327 4328# Check whether --enable-libtool-lock was given. 4329if test "${enable_libtool_lock+set}" = set; then 4330 enableval=$enable_libtool_lock; 4331fi 4332 4333test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4334 4335# Some flags need to be propagated to the compiler or linker for good 4336# libtool support. 4337case $host in 4338ia64-*-hpux*) 4339 # Find out which ABI we are using. 4340 echo 'int i;' > conftest.$ac_ext 4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4342 (eval $ac_compile) 2>&5 4343 ac_status=$? 4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4345 (exit $ac_status); }; then 4346 case `/usr/bin/file conftest.$ac_objext` in 4347 *ELF-32*) 4348 HPUX_IA64_MODE="32" 4349 ;; 4350 *ELF-64*) 4351 HPUX_IA64_MODE="64" 4352 ;; 4353 esac 4354 fi 4355 rm -rf conftest* 4356 ;; 4357*-*-irix6*) 4358 # Find out which ABI we are using. 4359 echo '#line 4359 "configure"' > conftest.$ac_ext 4360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4361 (eval $ac_compile) 2>&5 4362 ac_status=$? 4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4364 (exit $ac_status); }; then 4365 if test "$lt_cv_prog_gnu_ld" = yes; then 4366 case `/usr/bin/file conftest.$ac_objext` in 4367 *32-bit*) 4368 LD="${LD-ld} -melf32bsmip" 4369 ;; 4370 *N32*) 4371 LD="${LD-ld} -melf32bmipn32" 4372 ;; 4373 *64-bit*) 4374 LD="${LD-ld} -melf64bmip" 4375 ;; 4376 esac 4377 else 4378 case `/usr/bin/file conftest.$ac_objext` in 4379 *32-bit*) 4380 LD="${LD-ld} -32" 4381 ;; 4382 *N32*) 4383 LD="${LD-ld} -n32" 4384 ;; 4385 *64-bit*) 4386 LD="${LD-ld} -64" 4387 ;; 4388 esac 4389 fi 4390 fi 4391 rm -rf conftest* 4392 ;; 4393 4394x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4395 # Find out which ABI we are using. 4396 echo 'int i;' > conftest.$ac_ext 4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4398 (eval $ac_compile) 2>&5 4399 ac_status=$? 4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4401 (exit $ac_status); }; then 4402 case `/usr/bin/file conftest.o` in 4403 *32-bit*) 4404 case $host in 4405 x86_64-*linux*) 4406 LD="${LD-ld} -m elf_i386" 4407 ;; 4408 ppc64-*linux*|powerpc64-*linux*) 4409 LD="${LD-ld} -m elf32ppclinux" 4410 ;; 4411 s390x-*linux*) 4412 LD="${LD-ld} -m elf_s390" 4413 ;; 4414 sparc64-*linux*) 4415 LD="${LD-ld} -m elf32_sparc" 4416 ;; 4417 esac 4418 ;; 4419 *64-bit*) 4420 case $host in 4421 x86_64-*linux*) 4422 LD="${LD-ld} -m elf_x86_64" 4423 ;; 4424 ppc*-*linux*|powerpc*-*linux*) 4425 LD="${LD-ld} -m elf64ppc" 4426 ;; 4427 s390*-*linux*) 4428 LD="${LD-ld} -m elf64_s390" 4429 ;; 4430 sparc*-*linux*) 4431 LD="${LD-ld} -m elf64_sparc" 4432 ;; 4433 esac 4434 ;; 4435 esac 4436 fi 4437 rm -rf conftest* 4438 ;; 4439 4440*-*-sco3.2v5*) 4441 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4442 SAVE_CFLAGS="$CFLAGS" 4443 CFLAGS="$CFLAGS -belf" 4444 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4445echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4446if test "${lt_cv_cc_needs_belf+set}" = set; then 4447 echo $ECHO_N "(cached) $ECHO_C" >&6 4448else 4449 ac_ext=c 4450ac_cpp='$CPP $CPPFLAGS' 4451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4453ac_compiler_gnu=$ac_cv_c_compiler_gnu 4454 4455 cat >conftest.$ac_ext <<_ACEOF 4456/* confdefs.h. */ 4457_ACEOF 4458cat confdefs.h >>conftest.$ac_ext 4459cat >>conftest.$ac_ext <<_ACEOF 4460/* end confdefs.h. */ 4461 4462int 4463main () 4464{ 4465 4466 ; 4467 return 0; 4468} 4469_ACEOF 4470rm -f conftest.$ac_objext conftest$ac_exeext 4471if { (ac_try="$ac_link" 4472case "(($ac_try" in 4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4474 *) ac_try_echo=$ac_try;; 4475esac 4476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4477 (eval "$ac_link") 2>conftest.er1 4478 ac_status=$? 4479 grep -v '^ *+' conftest.er1 >conftest.err 4480 rm -f conftest.er1 4481 cat conftest.err >&5 4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); } && 4484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4485 { (case "(($ac_try" in 4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4487 *) ac_try_echo=$ac_try;; 4488esac 4489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4490 (eval "$ac_try") 2>&5 4491 ac_status=$? 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); }; } && 4494 { ac_try='test -s conftest$ac_exeext' 4495 { (case "(($ac_try" in 4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4497 *) ac_try_echo=$ac_try;; 4498esac 4499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4500 (eval "$ac_try") 2>&5 4501 ac_status=$? 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); }; }; then 4504 lt_cv_cc_needs_belf=yes 4505else 4506 echo "$as_me: failed program was:" >&5 4507sed 's/^/| /' conftest.$ac_ext >&5 4508 4509 lt_cv_cc_needs_belf=no 4510fi 4511 4512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4513 conftest$ac_exeext conftest.$ac_ext 4514 ac_ext=c 4515ac_cpp='$CPP $CPPFLAGS' 4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4518ac_compiler_gnu=$ac_cv_c_compiler_gnu 4519 4520fi 4521{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4522echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4523 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4524 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4525 CFLAGS="$SAVE_CFLAGS" 4526 fi 4527 ;; 4528sparc*-*solaris*) 4529 # Find out which ABI we are using. 4530 echo 'int i;' > conftest.$ac_ext 4531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4532 (eval $ac_compile) 2>&5 4533 ac_status=$? 4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4535 (exit $ac_status); }; then 4536 case `/usr/bin/file conftest.o` in 4537 *64-bit*) 4538 case $lt_cv_prog_gnu_ld in 4539 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4540 *) LD="${LD-ld} -64" ;; 4541 esac 4542 ;; 4543 esac 4544 fi 4545 rm -rf conftest* 4546 ;; 4547 4548 4549esac 4550 4551need_locks="$enable_libtool_lock" 4552 4553 4554ac_ext=c 4555ac_cpp='$CPP $CPPFLAGS' 4556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4558ac_compiler_gnu=$ac_cv_c_compiler_gnu 4559{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4560echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4561# On Suns, sometimes $CPP names a directory. 4562if test -n "$CPP" && test -d "$CPP"; then 4563 CPP= 4564fi 4565if test -z "$CPP"; then 4566 if test "${ac_cv_prog_CPP+set}" = set; then 4567 echo $ECHO_N "(cached) $ECHO_C" >&6 4568else 4569 # Double quotes because CPP needs to be expanded 4570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4571 do 4572 ac_preproc_ok=false 4573for ac_c_preproc_warn_flag in '' yes 4574do 4575 # Use a header file that comes with gcc, so configuring glibc 4576 # with a fresh cross-compiler works. 4577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4578 # <limits.h> exists even on freestanding compilers. 4579 # On the NeXT, cc -E runs the code through the compiler's parser, 4580 # not just through cpp. "Syntax error" is here to catch this case. 4581 cat >conftest.$ac_ext <<_ACEOF 4582/* confdefs.h. */ 4583_ACEOF 4584cat confdefs.h >>conftest.$ac_ext 4585cat >>conftest.$ac_ext <<_ACEOF 4586/* end confdefs.h. */ 4587#ifdef __STDC__ 4588# include <limits.h> 4589#else 4590# include <assert.h> 4591#endif 4592 Syntax error 4593_ACEOF 4594if { (ac_try="$ac_cpp conftest.$ac_ext" 4595case "(($ac_try" in 4596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4597 *) ac_try_echo=$ac_try;; 4598esac 4599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4601 ac_status=$? 4602 grep -v '^ *+' conftest.er1 >conftest.err 4603 rm -f conftest.er1 4604 cat conftest.err >&5 4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4606 (exit $ac_status); } >/dev/null; then 4607 if test -s conftest.err; then 4608 ac_cpp_err=$ac_c_preproc_warn_flag 4609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4610 else 4611 ac_cpp_err= 4612 fi 4613else 4614 ac_cpp_err=yes 4615fi 4616if test -z "$ac_cpp_err"; then 4617 : 4618else 4619 echo "$as_me: failed program was:" >&5 4620sed 's/^/| /' conftest.$ac_ext >&5 4621 4622 # Broken: fails on valid input. 4623continue 4624fi 4625 4626rm -f conftest.err conftest.$ac_ext 4627 4628 # OK, works on sane cases. Now check whether nonexistent headers 4629 # can be detected and how. 4630 cat >conftest.$ac_ext <<_ACEOF 4631/* confdefs.h. */ 4632_ACEOF 4633cat confdefs.h >>conftest.$ac_ext 4634cat >>conftest.$ac_ext <<_ACEOF 4635/* end confdefs.h. */ 4636#include <ac_nonexistent.h> 4637_ACEOF 4638if { (ac_try="$ac_cpp conftest.$ac_ext" 4639case "(($ac_try" in 4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4641 *) ac_try_echo=$ac_try;; 4642esac 4643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4645 ac_status=$? 4646 grep -v '^ *+' conftest.er1 >conftest.err 4647 rm -f conftest.er1 4648 cat conftest.err >&5 4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4650 (exit $ac_status); } >/dev/null; then 4651 if test -s conftest.err; then 4652 ac_cpp_err=$ac_c_preproc_warn_flag 4653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4654 else 4655 ac_cpp_err= 4656 fi 4657else 4658 ac_cpp_err=yes 4659fi 4660if test -z "$ac_cpp_err"; then 4661 # Broken: success on invalid input. 4662continue 4663else 4664 echo "$as_me: failed program was:" >&5 4665sed 's/^/| /' conftest.$ac_ext >&5 4666 4667 # Passes both tests. 4668ac_preproc_ok=: 4669break 4670fi 4671 4672rm -f conftest.err conftest.$ac_ext 4673 4674done 4675# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4676rm -f conftest.err conftest.$ac_ext 4677if $ac_preproc_ok; then 4678 break 4679fi 4680 4681 done 4682 ac_cv_prog_CPP=$CPP 4683 4684fi 4685 CPP=$ac_cv_prog_CPP 4686else 4687 ac_cv_prog_CPP=$CPP 4688fi 4689{ echo "$as_me:$LINENO: result: $CPP" >&5 4690echo "${ECHO_T}$CPP" >&6; } 4691ac_preproc_ok=false 4692for ac_c_preproc_warn_flag in '' yes 4693do 4694 # Use a header file that comes with gcc, so configuring glibc 4695 # with a fresh cross-compiler works. 4696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4697 # <limits.h> exists even on freestanding compilers. 4698 # On the NeXT, cc -E runs the code through the compiler's parser, 4699 # not just through cpp. "Syntax error" is here to catch this case. 4700 cat >conftest.$ac_ext <<_ACEOF 4701/* confdefs.h. */ 4702_ACEOF 4703cat confdefs.h >>conftest.$ac_ext 4704cat >>conftest.$ac_ext <<_ACEOF 4705/* end confdefs.h. */ 4706#ifdef __STDC__ 4707# include <limits.h> 4708#else 4709# include <assert.h> 4710#endif 4711 Syntax error 4712_ACEOF 4713if { (ac_try="$ac_cpp conftest.$ac_ext" 4714case "(($ac_try" in 4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4716 *) ac_try_echo=$ac_try;; 4717esac 4718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4720 ac_status=$? 4721 grep -v '^ *+' conftest.er1 >conftest.err 4722 rm -f conftest.er1 4723 cat conftest.err >&5 4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4725 (exit $ac_status); } >/dev/null; then 4726 if test -s conftest.err; then 4727 ac_cpp_err=$ac_c_preproc_warn_flag 4728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4729 else 4730 ac_cpp_err= 4731 fi 4732else 4733 ac_cpp_err=yes 4734fi 4735if test -z "$ac_cpp_err"; then 4736 : 4737else 4738 echo "$as_me: failed program was:" >&5 4739sed 's/^/| /' conftest.$ac_ext >&5 4740 4741 # Broken: fails on valid input. 4742continue 4743fi 4744 4745rm -f conftest.err conftest.$ac_ext 4746 4747 # OK, works on sane cases. Now check whether nonexistent headers 4748 # can be detected and how. 4749 cat >conftest.$ac_ext <<_ACEOF 4750/* confdefs.h. */ 4751_ACEOF 4752cat confdefs.h >>conftest.$ac_ext 4753cat >>conftest.$ac_ext <<_ACEOF 4754/* end confdefs.h. */ 4755#include <ac_nonexistent.h> 4756_ACEOF 4757if { (ac_try="$ac_cpp conftest.$ac_ext" 4758case "(($ac_try" in 4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4760 *) ac_try_echo=$ac_try;; 4761esac 4762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4764 ac_status=$? 4765 grep -v '^ *+' conftest.er1 >conftest.err 4766 rm -f conftest.er1 4767 cat conftest.err >&5 4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4769 (exit $ac_status); } >/dev/null; then 4770 if test -s conftest.err; then 4771 ac_cpp_err=$ac_c_preproc_warn_flag 4772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4773 else 4774 ac_cpp_err= 4775 fi 4776else 4777 ac_cpp_err=yes 4778fi 4779if test -z "$ac_cpp_err"; then 4780 # Broken: success on invalid input. 4781continue 4782else 4783 echo "$as_me: failed program was:" >&5 4784sed 's/^/| /' conftest.$ac_ext >&5 4785 4786 # Passes both tests. 4787ac_preproc_ok=: 4788break 4789fi 4790 4791rm -f conftest.err conftest.$ac_ext 4792 4793done 4794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4795rm -f conftest.err conftest.$ac_ext 4796if $ac_preproc_ok; then 4797 : 4798else 4799 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4800See \`config.log' for more details." >&5 4801echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4802See \`config.log' for more details." >&2;} 4803 { (exit 1); exit 1; }; } 4804fi 4805 4806ac_ext=c 4807ac_cpp='$CPP $CPPFLAGS' 4808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4810ac_compiler_gnu=$ac_cv_c_compiler_gnu 4811 4812 4813{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4814echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4815if test "${ac_cv_header_stdc+set}" = set; then 4816 echo $ECHO_N "(cached) $ECHO_C" >&6 4817else 4818 cat >conftest.$ac_ext <<_ACEOF 4819/* confdefs.h. */ 4820_ACEOF 4821cat confdefs.h >>conftest.$ac_ext 4822cat >>conftest.$ac_ext <<_ACEOF 4823/* end confdefs.h. */ 4824#include <stdlib.h> 4825#include <stdarg.h> 4826#include <string.h> 4827#include <float.h> 4828 4829int 4830main () 4831{ 4832 4833 ; 4834 return 0; 4835} 4836_ACEOF 4837rm -f conftest.$ac_objext 4838if { (ac_try="$ac_compile" 4839case "(($ac_try" in 4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4841 *) ac_try_echo=$ac_try;; 4842esac 4843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4844 (eval "$ac_compile") 2>conftest.er1 4845 ac_status=$? 4846 grep -v '^ *+' conftest.er1 >conftest.err 4847 rm -f conftest.er1 4848 cat conftest.err >&5 4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4850 (exit $ac_status); } && 4851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4852 { (case "(($ac_try" in 4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4854 *) ac_try_echo=$ac_try;; 4855esac 4856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4857 (eval "$ac_try") 2>&5 4858 ac_status=$? 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4860 (exit $ac_status); }; } && 4861 { ac_try='test -s conftest.$ac_objext' 4862 { (case "(($ac_try" in 4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4864 *) ac_try_echo=$ac_try;; 4865esac 4866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4867 (eval "$ac_try") 2>&5 4868 ac_status=$? 4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4870 (exit $ac_status); }; }; then 4871 ac_cv_header_stdc=yes 4872else 4873 echo "$as_me: failed program was:" >&5 4874sed 's/^/| /' conftest.$ac_ext >&5 4875 4876 ac_cv_header_stdc=no 4877fi 4878 4879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4880 4881if test $ac_cv_header_stdc = yes; then 4882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4883 cat >conftest.$ac_ext <<_ACEOF 4884/* confdefs.h. */ 4885_ACEOF 4886cat confdefs.h >>conftest.$ac_ext 4887cat >>conftest.$ac_ext <<_ACEOF 4888/* end confdefs.h. */ 4889#include <string.h> 4890 4891_ACEOF 4892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4893 $EGREP "memchr" >/dev/null 2>&1; then 4894 : 4895else 4896 ac_cv_header_stdc=no 4897fi 4898rm -f conftest* 4899 4900fi 4901 4902if test $ac_cv_header_stdc = yes; then 4903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4904 cat >conftest.$ac_ext <<_ACEOF 4905/* confdefs.h. */ 4906_ACEOF 4907cat confdefs.h >>conftest.$ac_ext 4908cat >>conftest.$ac_ext <<_ACEOF 4909/* end confdefs.h. */ 4910#include <stdlib.h> 4911 4912_ACEOF 4913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4914 $EGREP "free" >/dev/null 2>&1; then 4915 : 4916else 4917 ac_cv_header_stdc=no 4918fi 4919rm -f conftest* 4920 4921fi 4922 4923if test $ac_cv_header_stdc = yes; then 4924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4925 if test "$cross_compiling" = yes; then 4926 : 4927else 4928 cat >conftest.$ac_ext <<_ACEOF 4929/* confdefs.h. */ 4930_ACEOF 4931cat confdefs.h >>conftest.$ac_ext 4932cat >>conftest.$ac_ext <<_ACEOF 4933/* end confdefs.h. */ 4934#include <ctype.h> 4935#include <stdlib.h> 4936#if ((' ' & 0x0FF) == 0x020) 4937# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4938# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4939#else 4940# define ISLOWER(c) \ 4941 (('a' <= (c) && (c) <= 'i') \ 4942 || ('j' <= (c) && (c) <= 'r') \ 4943 || ('s' <= (c) && (c) <= 'z')) 4944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4945#endif 4946 4947#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4948int 4949main () 4950{ 4951 int i; 4952 for (i = 0; i < 256; i++) 4953 if (XOR (islower (i), ISLOWER (i)) 4954 || toupper (i) != TOUPPER (i)) 4955 return 2; 4956 return 0; 4957} 4958_ACEOF 4959rm -f conftest$ac_exeext 4960if { (ac_try="$ac_link" 4961case "(($ac_try" in 4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4963 *) ac_try_echo=$ac_try;; 4964esac 4965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4966 (eval "$ac_link") 2>&5 4967 ac_status=$? 4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4970 { (case "(($ac_try" in 4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4972 *) ac_try_echo=$ac_try;; 4973esac 4974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4975 (eval "$ac_try") 2>&5 4976 ac_status=$? 4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4978 (exit $ac_status); }; }; then 4979 : 4980else 4981 echo "$as_me: program exited with status $ac_status" >&5 4982echo "$as_me: failed program was:" >&5 4983sed 's/^/| /' conftest.$ac_ext >&5 4984 4985( exit $ac_status ) 4986ac_cv_header_stdc=no 4987fi 4988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4989fi 4990 4991 4992fi 4993fi 4994{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4995echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4996if test $ac_cv_header_stdc = yes; then 4997 4998cat >>confdefs.h <<\_ACEOF 4999#define STDC_HEADERS 1 5000_ACEOF 5001 5002fi 5003 5004# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5015 inttypes.h stdint.h unistd.h 5016do 5017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5018{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5021 echo $ECHO_N "(cached) $ECHO_C" >&6 5022else 5023 cat >conftest.$ac_ext <<_ACEOF 5024/* confdefs.h. */ 5025_ACEOF 5026cat confdefs.h >>conftest.$ac_ext 5027cat >>conftest.$ac_ext <<_ACEOF 5028/* end confdefs.h. */ 5029$ac_includes_default 5030 5031#include <$ac_header> 5032_ACEOF 5033rm -f conftest.$ac_objext 5034if { (ac_try="$ac_compile" 5035case "(($ac_try" in 5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5037 *) ac_try_echo=$ac_try;; 5038esac 5039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5040 (eval "$ac_compile") 2>conftest.er1 5041 ac_status=$? 5042 grep -v '^ *+' conftest.er1 >conftest.err 5043 rm -f conftest.er1 5044 cat conftest.err >&5 5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5046 (exit $ac_status); } && 5047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5048 { (case "(($ac_try" in 5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5050 *) ac_try_echo=$ac_try;; 5051esac 5052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5053 (eval "$ac_try") 2>&5 5054 ac_status=$? 5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5056 (exit $ac_status); }; } && 5057 { ac_try='test -s conftest.$ac_objext' 5058 { (case "(($ac_try" in 5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5060 *) ac_try_echo=$ac_try;; 5061esac 5062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5063 (eval "$ac_try") 2>&5 5064 ac_status=$? 5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5066 (exit $ac_status); }; }; then 5067 eval "$as_ac_Header=yes" 5068else 5069 echo "$as_me: failed program was:" >&5 5070sed 's/^/| /' conftest.$ac_ext >&5 5071 5072 eval "$as_ac_Header=no" 5073fi 5074 5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5076fi 5077ac_res=`eval echo '${'$as_ac_Header'}'` 5078 { echo "$as_me:$LINENO: result: $ac_res" >&5 5079echo "${ECHO_T}$ac_res" >&6; } 5080if test `eval echo '${'$as_ac_Header'}'` = yes; then 5081 cat >>confdefs.h <<_ACEOF 5082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5083_ACEOF 5084 5085fi 5086 5087done 5088 5089 5090 5091for ac_header in dlfcn.h 5092do 5093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5095 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5098 echo $ECHO_N "(cached) $ECHO_C" >&6 5099fi 5100ac_res=`eval echo '${'$as_ac_Header'}'` 5101 { echo "$as_me:$LINENO: result: $ac_res" >&5 5102echo "${ECHO_T}$ac_res" >&6; } 5103else 5104 # Is the header compilable? 5105{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5106echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5107cat >conftest.$ac_ext <<_ACEOF 5108/* confdefs.h. */ 5109_ACEOF 5110cat confdefs.h >>conftest.$ac_ext 5111cat >>conftest.$ac_ext <<_ACEOF 5112/* end confdefs.h. */ 5113$ac_includes_default 5114#include <$ac_header> 5115_ACEOF 5116rm -f conftest.$ac_objext 5117if { (ac_try="$ac_compile" 5118case "(($ac_try" in 5119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5120 *) ac_try_echo=$ac_try;; 5121esac 5122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5123 (eval "$ac_compile") 2>conftest.er1 5124 ac_status=$? 5125 grep -v '^ *+' conftest.er1 >conftest.err 5126 rm -f conftest.er1 5127 cat conftest.err >&5 5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5129 (exit $ac_status); } && 5130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5131 { (case "(($ac_try" in 5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5133 *) ac_try_echo=$ac_try;; 5134esac 5135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5136 (eval "$ac_try") 2>&5 5137 ac_status=$? 5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5139 (exit $ac_status); }; } && 5140 { ac_try='test -s conftest.$ac_objext' 5141 { (case "(($ac_try" in 5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5143 *) ac_try_echo=$ac_try;; 5144esac 5145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5146 (eval "$ac_try") 2>&5 5147 ac_status=$? 5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5149 (exit $ac_status); }; }; then 5150 ac_header_compiler=yes 5151else 5152 echo "$as_me: failed program was:" >&5 5153sed 's/^/| /' conftest.$ac_ext >&5 5154 5155 ac_header_compiler=no 5156fi 5157 5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5159{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5160echo "${ECHO_T}$ac_header_compiler" >&6; } 5161 5162# Is the header present? 5163{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5165cat >conftest.$ac_ext <<_ACEOF 5166/* confdefs.h. */ 5167_ACEOF 5168cat confdefs.h >>conftest.$ac_ext 5169cat >>conftest.$ac_ext <<_ACEOF 5170/* end confdefs.h. */ 5171#include <$ac_header> 5172_ACEOF 5173if { (ac_try="$ac_cpp conftest.$ac_ext" 5174case "(($ac_try" in 5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5176 *) ac_try_echo=$ac_try;; 5177esac 5178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5180 ac_status=$? 5181 grep -v '^ *+' conftest.er1 >conftest.err 5182 rm -f conftest.er1 5183 cat conftest.err >&5 5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5185 (exit $ac_status); } >/dev/null; then 5186 if test -s conftest.err; then 5187 ac_cpp_err=$ac_c_preproc_warn_flag 5188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5189 else 5190 ac_cpp_err= 5191 fi 5192else 5193 ac_cpp_err=yes 5194fi 5195if test -z "$ac_cpp_err"; then 5196 ac_header_preproc=yes 5197else 5198 echo "$as_me: failed program was:" >&5 5199sed 's/^/| /' conftest.$ac_ext >&5 5200 5201 ac_header_preproc=no 5202fi 5203 5204rm -f conftest.err conftest.$ac_ext 5205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5206echo "${ECHO_T}$ac_header_preproc" >&6; } 5207 5208# So? What about this header? 5209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5210 yes:no: ) 5211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5215 ac_header_preproc=yes 5216 ;; 5217 no:yes:* ) 5218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5230 ( cat <<\_ASBOX 5231## ---------------------------------------- ## 5232## Report this to xcb@lists.freedesktop.org ## 5233## ---------------------------------------- ## 5234_ASBOX 5235 ) | sed "s/^/$as_me: WARNING: /" >&2 5236 ;; 5237esac 5238{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5241 echo $ECHO_N "(cached) $ECHO_C" >&6 5242else 5243 eval "$as_ac_Header=\$ac_header_preproc" 5244fi 5245ac_res=`eval echo '${'$as_ac_Header'}'` 5246 { echo "$as_me:$LINENO: result: $ac_res" >&5 5247echo "${ECHO_T}$ac_res" >&6; } 5248 5249fi 5250if test `eval echo '${'$as_ac_Header'}'` = yes; then 5251 cat >>confdefs.h <<_ACEOF 5252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5253_ACEOF 5254 5255fi 5256 5257done 5258 5259ac_ext=cpp 5260ac_cpp='$CXXCPP $CPPFLAGS' 5261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5264if test -z "$CXX"; then 5265 if test -n "$CCC"; then 5266 CXX=$CCC 5267 else 5268 if test -n "$ac_tool_prefix"; then 5269 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5270 do 5271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5272set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5273{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5275if test "${ac_cv_prog_CXX+set}" = set; then 5276 echo $ECHO_N "(cached) $ECHO_C" >&6 5277else 5278 if test -n "$CXX"; then 5279 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5280else 5281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5282for as_dir in $PATH 5283do 5284 IFS=$as_save_IFS 5285 test -z "$as_dir" && as_dir=. 5286 for ac_exec_ext in '' $ac_executable_extensions; do 5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5288 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5290 break 2 5291 fi 5292done 5293done 5294IFS=$as_save_IFS 5295 5296fi 5297fi 5298CXX=$ac_cv_prog_CXX 5299if test -n "$CXX"; then 5300 { echo "$as_me:$LINENO: result: $CXX" >&5 5301echo "${ECHO_T}$CXX" >&6; } 5302else 5303 { echo "$as_me:$LINENO: result: no" >&5 5304echo "${ECHO_T}no" >&6; } 5305fi 5306 5307 5308 test -n "$CXX" && break 5309 done 5310fi 5311if test -z "$CXX"; then 5312 ac_ct_CXX=$CXX 5313 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5314do 5315 # Extract the first word of "$ac_prog", so it can be a program name with args. 5316set dummy $ac_prog; ac_word=$2 5317{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5319if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5320 echo $ECHO_N "(cached) $ECHO_C" >&6 5321else 5322 if test -n "$ac_ct_CXX"; then 5323 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5324else 5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5326for as_dir in $PATH 5327do 5328 IFS=$as_save_IFS 5329 test -z "$as_dir" && as_dir=. 5330 for ac_exec_ext in '' $ac_executable_extensions; do 5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5332 ac_cv_prog_ac_ct_CXX="$ac_prog" 5333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5334 break 2 5335 fi 5336done 5337done 5338IFS=$as_save_IFS 5339 5340fi 5341fi 5342ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5343if test -n "$ac_ct_CXX"; then 5344 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5345echo "${ECHO_T}$ac_ct_CXX" >&6; } 5346else 5347 { echo "$as_me:$LINENO: result: no" >&5 5348echo "${ECHO_T}no" >&6; } 5349fi 5350 5351 5352 test -n "$ac_ct_CXX" && break 5353done 5354 5355 if test "x$ac_ct_CXX" = x; then 5356 CXX="g++" 5357 else 5358 case $cross_compiling:$ac_tool_warned in 5359yes:) 5360{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5361whose name does not start with the host triplet. If you think this 5362configuration is useful to you, please write to autoconf@gnu.org." >&5 5363echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5364whose name does not start with the host triplet. If you think this 5365configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5366ac_tool_warned=yes ;; 5367esac 5368 CXX=$ac_ct_CXX 5369 fi 5370fi 5371 5372 fi 5373fi 5374# Provide some information about the compiler. 5375echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5376ac_compiler=`set X $ac_compile; echo $2` 5377{ (ac_try="$ac_compiler --version >&5" 5378case "(($ac_try" in 5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5380 *) ac_try_echo=$ac_try;; 5381esac 5382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5383 (eval "$ac_compiler --version >&5") 2>&5 5384 ac_status=$? 5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5386 (exit $ac_status); } 5387{ (ac_try="$ac_compiler -v >&5" 5388case "(($ac_try" in 5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5390 *) ac_try_echo=$ac_try;; 5391esac 5392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5393 (eval "$ac_compiler -v >&5") 2>&5 5394 ac_status=$? 5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5396 (exit $ac_status); } 5397{ (ac_try="$ac_compiler -V >&5" 5398case "(($ac_try" in 5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5400 *) ac_try_echo=$ac_try;; 5401esac 5402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5403 (eval "$ac_compiler -V >&5") 2>&5 5404 ac_status=$? 5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5406 (exit $ac_status); } 5407 5408{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5409echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5410if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5411 echo $ECHO_N "(cached) $ECHO_C" >&6 5412else 5413 cat >conftest.$ac_ext <<_ACEOF 5414/* confdefs.h. */ 5415_ACEOF 5416cat confdefs.h >>conftest.$ac_ext 5417cat >>conftest.$ac_ext <<_ACEOF 5418/* end confdefs.h. */ 5419 5420int 5421main () 5422{ 5423#ifndef __GNUC__ 5424 choke me 5425#endif 5426 5427 ; 5428 return 0; 5429} 5430_ACEOF 5431rm -f conftest.$ac_objext 5432if { (ac_try="$ac_compile" 5433case "(($ac_try" in 5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5435 *) ac_try_echo=$ac_try;; 5436esac 5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5438 (eval "$ac_compile") 2>conftest.er1 5439 ac_status=$? 5440 grep -v '^ *+' conftest.er1 >conftest.err 5441 rm -f conftest.er1 5442 cat conftest.err >&5 5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5444 (exit $ac_status); } && 5445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5446 { (case "(($ac_try" in 5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5448 *) ac_try_echo=$ac_try;; 5449esac 5450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5451 (eval "$ac_try") 2>&5 5452 ac_status=$? 5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5454 (exit $ac_status); }; } && 5455 { ac_try='test -s conftest.$ac_objext' 5456 { (case "(($ac_try" in 5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5458 *) ac_try_echo=$ac_try;; 5459esac 5460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5461 (eval "$ac_try") 2>&5 5462 ac_status=$? 5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5464 (exit $ac_status); }; }; then 5465 ac_compiler_gnu=yes 5466else 5467 echo "$as_me: failed program was:" >&5 5468sed 's/^/| /' conftest.$ac_ext >&5 5469 5470 ac_compiler_gnu=no 5471fi 5472 5473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5474ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5475 5476fi 5477{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5478echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5479GXX=`test $ac_compiler_gnu = yes && echo yes` 5480ac_test_CXXFLAGS=${CXXFLAGS+set} 5481ac_save_CXXFLAGS=$CXXFLAGS 5482{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5483echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5484if test "${ac_cv_prog_cxx_g+set}" = set; then 5485 echo $ECHO_N "(cached) $ECHO_C" >&6 5486else 5487 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5488 ac_cxx_werror_flag=yes 5489 ac_cv_prog_cxx_g=no 5490 CXXFLAGS="-g" 5491 cat >conftest.$ac_ext <<_ACEOF 5492/* confdefs.h. */ 5493_ACEOF 5494cat confdefs.h >>conftest.$ac_ext 5495cat >>conftest.$ac_ext <<_ACEOF 5496/* end confdefs.h. */ 5497 5498int 5499main () 5500{ 5501 5502 ; 5503 return 0; 5504} 5505_ACEOF 5506rm -f conftest.$ac_objext 5507if { (ac_try="$ac_compile" 5508case "(($ac_try" in 5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5510 *) ac_try_echo=$ac_try;; 5511esac 5512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5513 (eval "$ac_compile") 2>conftest.er1 5514 ac_status=$? 5515 grep -v '^ *+' conftest.er1 >conftest.err 5516 rm -f conftest.er1 5517 cat conftest.err >&5 5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519 (exit $ac_status); } && 5520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5521 { (case "(($ac_try" in 5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5523 *) ac_try_echo=$ac_try;; 5524esac 5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5526 (eval "$ac_try") 2>&5 5527 ac_status=$? 5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5529 (exit $ac_status); }; } && 5530 { ac_try='test -s conftest.$ac_objext' 5531 { (case "(($ac_try" in 5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5533 *) ac_try_echo=$ac_try;; 5534esac 5535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5536 (eval "$ac_try") 2>&5 5537 ac_status=$? 5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5539 (exit $ac_status); }; }; then 5540 ac_cv_prog_cxx_g=yes 5541else 5542 echo "$as_me: failed program was:" >&5 5543sed 's/^/| /' conftest.$ac_ext >&5 5544 5545 CXXFLAGS="" 5546 cat >conftest.$ac_ext <<_ACEOF 5547/* confdefs.h. */ 5548_ACEOF 5549cat confdefs.h >>conftest.$ac_ext 5550cat >>conftest.$ac_ext <<_ACEOF 5551/* end confdefs.h. */ 5552 5553int 5554main () 5555{ 5556 5557 ; 5558 return 0; 5559} 5560_ACEOF 5561rm -f conftest.$ac_objext 5562if { (ac_try="$ac_compile" 5563case "(($ac_try" in 5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5565 *) ac_try_echo=$ac_try;; 5566esac 5567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5568 (eval "$ac_compile") 2>conftest.er1 5569 ac_status=$? 5570 grep -v '^ *+' conftest.er1 >conftest.err 5571 rm -f conftest.er1 5572 cat conftest.err >&5 5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5574 (exit $ac_status); } && 5575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5576 { (case "(($ac_try" in 5577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5578 *) ac_try_echo=$ac_try;; 5579esac 5580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5581 (eval "$ac_try") 2>&5 5582 ac_status=$? 5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 (exit $ac_status); }; } && 5585 { ac_try='test -s conftest.$ac_objext' 5586 { (case "(($ac_try" in 5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5588 *) ac_try_echo=$ac_try;; 5589esac 5590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5591 (eval "$ac_try") 2>&5 5592 ac_status=$? 5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5594 (exit $ac_status); }; }; then 5595 : 5596else 5597 echo "$as_me: failed program was:" >&5 5598sed 's/^/| /' conftest.$ac_ext >&5 5599 5600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5601 CXXFLAGS="-g" 5602 cat >conftest.$ac_ext <<_ACEOF 5603/* confdefs.h. */ 5604_ACEOF 5605cat confdefs.h >>conftest.$ac_ext 5606cat >>conftest.$ac_ext <<_ACEOF 5607/* end confdefs.h. */ 5608 5609int 5610main () 5611{ 5612 5613 ; 5614 return 0; 5615} 5616_ACEOF 5617rm -f conftest.$ac_objext 5618if { (ac_try="$ac_compile" 5619case "(($ac_try" in 5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5621 *) ac_try_echo=$ac_try;; 5622esac 5623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5624 (eval "$ac_compile") 2>conftest.er1 5625 ac_status=$? 5626 grep -v '^ *+' conftest.er1 >conftest.err 5627 rm -f conftest.er1 5628 cat conftest.err >&5 5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5630 (exit $ac_status); } && 5631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5632 { (case "(($ac_try" in 5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5634 *) ac_try_echo=$ac_try;; 5635esac 5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5637 (eval "$ac_try") 2>&5 5638 ac_status=$? 5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5640 (exit $ac_status); }; } && 5641 { ac_try='test -s conftest.$ac_objext' 5642 { (case "(($ac_try" in 5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5644 *) ac_try_echo=$ac_try;; 5645esac 5646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5647 (eval "$ac_try") 2>&5 5648 ac_status=$? 5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5650 (exit $ac_status); }; }; then 5651 ac_cv_prog_cxx_g=yes 5652else 5653 echo "$as_me: failed program was:" >&5 5654sed 's/^/| /' conftest.$ac_ext >&5 5655 5656 5657fi 5658 5659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5660fi 5661 5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5663fi 5664 5665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5667fi 5668{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5669echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5670if test "$ac_test_CXXFLAGS" = set; then 5671 CXXFLAGS=$ac_save_CXXFLAGS 5672elif test $ac_cv_prog_cxx_g = yes; then 5673 if test "$GXX" = yes; then 5674 CXXFLAGS="-g -O2" 5675 else 5676 CXXFLAGS="-g" 5677 fi 5678else 5679 if test "$GXX" = yes; then 5680 CXXFLAGS="-O2" 5681 else 5682 CXXFLAGS= 5683 fi 5684fi 5685ac_ext=cpp 5686ac_cpp='$CXXCPP $CPPFLAGS' 5687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5690 5691depcc="$CXX" am_compiler_list= 5692 5693{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5694echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5695if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5696 echo $ECHO_N "(cached) $ECHO_C" >&6 5697else 5698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5699 # We make a subdir and do the tests there. Otherwise we can end up 5700 # making bogus files that we don't know about and never remove. For 5701 # instance it was reported that on HP-UX the gcc test will end up 5702 # making a dummy file named `D' -- because `-MD' means `put the output 5703 # in D'. 5704 mkdir conftest.dir 5705 # Copy depcomp to subdir because otherwise we won't find it if we're 5706 # using a relative directory. 5707 cp "$am_depcomp" conftest.dir 5708 cd conftest.dir 5709 # We will build objects and dependencies in a subdirectory because 5710 # it helps to detect inapplicable dependency modes. For instance 5711 # both Tru64's cc and ICC support -MD to output dependencies as a 5712 # side effect of compilation, but ICC will put the dependencies in 5713 # the current directory while Tru64 will put them in the object 5714 # directory. 5715 mkdir sub 5716 5717 am_cv_CXX_dependencies_compiler_type=none 5718 if test "$am_compiler_list" = ""; then 5719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5720 fi 5721 for depmode in $am_compiler_list; do 5722 # Setup a source with many dependencies, because some compilers 5723 # like to wrap large dependency lists on column 80 (with \), and 5724 # we should not choose a depcomp mode which is confused by this. 5725 # 5726 # We need to recreate these files for each test, as the compiler may 5727 # overwrite some of them when testing with obscure command lines. 5728 # This happens at least with the AIX C compiler. 5729 : > sub/conftest.c 5730 for i in 1 2 3 4 5 6; do 5731 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5732 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5733 # Solaris 8's {/usr,}/bin/sh. 5734 touch sub/conftst$i.h 5735 done 5736 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5737 5738 case $depmode in 5739 nosideeffect) 5740 # after this tag, mechanisms are not by side-effect, so they'll 5741 # only be used when explicitly requested 5742 if test "x$enable_dependency_tracking" = xyes; then 5743 continue 5744 else 5745 break 5746 fi 5747 ;; 5748 none) break ;; 5749 esac 5750 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5751 # mode. It turns out that the SunPro C++ compiler does not properly 5752 # handle `-M -o', and we need to detect this. 5753 if depmode=$depmode \ 5754 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5756 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5757 >/dev/null 2>conftest.err && 5758 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5759 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5760 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5761 # icc doesn't choke on unknown options, it will just issue warnings 5762 # or remarks (even with -Werror). So we grep stderr for any message 5763 # that says an option was ignored or not supported. 5764 # When given -MP, icc 7.0 and 7.1 complain thusly: 5765 # icc: Command line warning: ignoring option '-M'; no argument required 5766 # The diagnosis changed in icc 8.0: 5767 # icc: Command line remark: option '-MP' not supported 5768 if (grep 'ignoring option' conftest.err || 5769 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5770 am_cv_CXX_dependencies_compiler_type=$depmode 5771 break 5772 fi 5773 fi 5774 done 5775 5776 cd .. 5777 rm -rf conftest.dir 5778else 5779 am_cv_CXX_dependencies_compiler_type=none 5780fi 5781 5782fi 5783{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5784echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5785CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5786 5787 5788 5789if 5790 test "x$enable_dependency_tracking" != xno \ 5791 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5792 am__fastdepCXX_TRUE= 5793 am__fastdepCXX_FALSE='#' 5794else 5795 am__fastdepCXX_TRUE='#' 5796 am__fastdepCXX_FALSE= 5797fi 5798 5799 5800 5801 5802if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5803 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5804 (test "X$CXX" != "Xg++"))) ; then 5805 ac_ext=cpp 5806ac_cpp='$CXXCPP $CPPFLAGS' 5807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5810{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5811echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5812if test -z "$CXXCPP"; then 5813 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5814 echo $ECHO_N "(cached) $ECHO_C" >&6 5815else 5816 # Double quotes because CXXCPP needs to be expanded 5817 for CXXCPP in "$CXX -E" "/lib/cpp" 5818 do 5819 ac_preproc_ok=false 5820for ac_cxx_preproc_warn_flag in '' yes 5821do 5822 # Use a header file that comes with gcc, so configuring glibc 5823 # with a fresh cross-compiler works. 5824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5825 # <limits.h> exists even on freestanding compilers. 5826 # On the NeXT, cc -E runs the code through the compiler's parser, 5827 # not just through cpp. "Syntax error" is here to catch this case. 5828 cat >conftest.$ac_ext <<_ACEOF 5829/* confdefs.h. */ 5830_ACEOF 5831cat confdefs.h >>conftest.$ac_ext 5832cat >>conftest.$ac_ext <<_ACEOF 5833/* end confdefs.h. */ 5834#ifdef __STDC__ 5835# include <limits.h> 5836#else 5837# include <assert.h> 5838#endif 5839 Syntax error 5840_ACEOF 5841if { (ac_try="$ac_cpp conftest.$ac_ext" 5842case "(($ac_try" in 5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5844 *) ac_try_echo=$ac_try;; 5845esac 5846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5848 ac_status=$? 5849 grep -v '^ *+' conftest.er1 >conftest.err 5850 rm -f conftest.er1 5851 cat conftest.err >&5 5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5853 (exit $ac_status); } >/dev/null; then 5854 if test -s conftest.err; then 5855 ac_cpp_err=$ac_cxx_preproc_warn_flag 5856 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5857 else 5858 ac_cpp_err= 5859 fi 5860else 5861 ac_cpp_err=yes 5862fi 5863if test -z "$ac_cpp_err"; then 5864 : 5865else 5866 echo "$as_me: failed program was:" >&5 5867sed 's/^/| /' conftest.$ac_ext >&5 5868 5869 # Broken: fails on valid input. 5870continue 5871fi 5872 5873rm -f conftest.err conftest.$ac_ext 5874 5875 # OK, works on sane cases. Now check whether nonexistent headers 5876 # can be detected and how. 5877 cat >conftest.$ac_ext <<_ACEOF 5878/* confdefs.h. */ 5879_ACEOF 5880cat confdefs.h >>conftest.$ac_ext 5881cat >>conftest.$ac_ext <<_ACEOF 5882/* end confdefs.h. */ 5883#include <ac_nonexistent.h> 5884_ACEOF 5885if { (ac_try="$ac_cpp conftest.$ac_ext" 5886case "(($ac_try" in 5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5888 *) ac_try_echo=$ac_try;; 5889esac 5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5892 ac_status=$? 5893 grep -v '^ *+' conftest.er1 >conftest.err 5894 rm -f conftest.er1 5895 cat conftest.err >&5 5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5897 (exit $ac_status); } >/dev/null; then 5898 if test -s conftest.err; then 5899 ac_cpp_err=$ac_cxx_preproc_warn_flag 5900 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5901 else 5902 ac_cpp_err= 5903 fi 5904else 5905 ac_cpp_err=yes 5906fi 5907if test -z "$ac_cpp_err"; then 5908 # Broken: success on invalid input. 5909continue 5910else 5911 echo "$as_me: failed program was:" >&5 5912sed 's/^/| /' conftest.$ac_ext >&5 5913 5914 # Passes both tests. 5915ac_preproc_ok=: 5916break 5917fi 5918 5919rm -f conftest.err conftest.$ac_ext 5920 5921done 5922# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5923rm -f conftest.err conftest.$ac_ext 5924if $ac_preproc_ok; then 5925 break 5926fi 5927 5928 done 5929 ac_cv_prog_CXXCPP=$CXXCPP 5930 5931fi 5932 CXXCPP=$ac_cv_prog_CXXCPP 5933else 5934 ac_cv_prog_CXXCPP=$CXXCPP 5935fi 5936{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5937echo "${ECHO_T}$CXXCPP" >&6; } 5938ac_preproc_ok=false 5939for ac_cxx_preproc_warn_flag in '' yes 5940do 5941 # Use a header file that comes with gcc, so configuring glibc 5942 # with a fresh cross-compiler works. 5943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5944 # <limits.h> exists even on freestanding compilers. 5945 # On the NeXT, cc -E runs the code through the compiler's parser, 5946 # not just through cpp. "Syntax error" is here to catch this case. 5947 cat >conftest.$ac_ext <<_ACEOF 5948/* confdefs.h. */ 5949_ACEOF 5950cat confdefs.h >>conftest.$ac_ext 5951cat >>conftest.$ac_ext <<_ACEOF 5952/* end confdefs.h. */ 5953#ifdef __STDC__ 5954# include <limits.h> 5955#else 5956# include <assert.h> 5957#endif 5958 Syntax error 5959_ACEOF 5960if { (ac_try="$ac_cpp conftest.$ac_ext" 5961case "(($ac_try" in 5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5963 *) ac_try_echo=$ac_try;; 5964esac 5965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5967 ac_status=$? 5968 grep -v '^ *+' conftest.er1 >conftest.err 5969 rm -f conftest.er1 5970 cat conftest.err >&5 5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5972 (exit $ac_status); } >/dev/null; then 5973 if test -s conftest.err; then 5974 ac_cpp_err=$ac_cxx_preproc_warn_flag 5975 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5976 else 5977 ac_cpp_err= 5978 fi 5979else 5980 ac_cpp_err=yes 5981fi 5982if test -z "$ac_cpp_err"; then 5983 : 5984else 5985 echo "$as_me: failed program was:" >&5 5986sed 's/^/| /' conftest.$ac_ext >&5 5987 5988 # Broken: fails on valid input. 5989continue 5990fi 5991 5992rm -f conftest.err conftest.$ac_ext 5993 5994 # OK, works on sane cases. Now check whether nonexistent headers 5995 # can be detected and how. 5996 cat >conftest.$ac_ext <<_ACEOF 5997/* confdefs.h. */ 5998_ACEOF 5999cat confdefs.h >>conftest.$ac_ext 6000cat >>conftest.$ac_ext <<_ACEOF 6001/* end confdefs.h. */ 6002#include <ac_nonexistent.h> 6003_ACEOF 6004if { (ac_try="$ac_cpp conftest.$ac_ext" 6005case "(($ac_try" in 6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6007 *) ac_try_echo=$ac_try;; 6008esac 6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6011 ac_status=$? 6012 grep -v '^ *+' conftest.er1 >conftest.err 6013 rm -f conftest.er1 6014 cat conftest.err >&5 6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6016 (exit $ac_status); } >/dev/null; then 6017 if test -s conftest.err; then 6018 ac_cpp_err=$ac_cxx_preproc_warn_flag 6019 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6020 else 6021 ac_cpp_err= 6022 fi 6023else 6024 ac_cpp_err=yes 6025fi 6026if test -z "$ac_cpp_err"; then 6027 # Broken: success on invalid input. 6028continue 6029else 6030 echo "$as_me: failed program was:" >&5 6031sed 's/^/| /' conftest.$ac_ext >&5 6032 6033 # Passes both tests. 6034ac_preproc_ok=: 6035break 6036fi 6037 6038rm -f conftest.err conftest.$ac_ext 6039 6040done 6041# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6042rm -f conftest.err conftest.$ac_ext 6043if $ac_preproc_ok; then 6044 : 6045else 6046 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6047See \`config.log' for more details." >&5 6048echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6049See \`config.log' for more details." >&2;} 6050 { (exit 1); exit 1; }; } 6051fi 6052 6053ac_ext=cpp 6054ac_cpp='$CXXCPP $CPPFLAGS' 6055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6058 6059fi 6060 6061 6062ac_ext=f 6063ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6064ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6065ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6066if test -n "$ac_tool_prefix"; then 6067 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6068 do 6069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6070set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6071{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6073if test "${ac_cv_prog_F77+set}" = set; then 6074 echo $ECHO_N "(cached) $ECHO_C" >&6 6075else 6076 if test -n "$F77"; then 6077 ac_cv_prog_F77="$F77" # Let the user override the test. 6078else 6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6080for as_dir in $PATH 6081do 6082 IFS=$as_save_IFS 6083 test -z "$as_dir" && as_dir=. 6084 for ac_exec_ext in '' $ac_executable_extensions; do 6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6086 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6088 break 2 6089 fi 6090done 6091done 6092IFS=$as_save_IFS 6093 6094fi 6095fi 6096F77=$ac_cv_prog_F77 6097if test -n "$F77"; then 6098 { echo "$as_me:$LINENO: result: $F77" >&5 6099echo "${ECHO_T}$F77" >&6; } 6100else 6101 { echo "$as_me:$LINENO: result: no" >&5 6102echo "${ECHO_T}no" >&6; } 6103fi 6104 6105 6106 test -n "$F77" && break 6107 done 6108fi 6109if test -z "$F77"; then 6110 ac_ct_F77=$F77 6111 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6112do 6113 # Extract the first word of "$ac_prog", so it can be a program name with args. 6114set dummy $ac_prog; ac_word=$2 6115{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6117if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6118 echo $ECHO_N "(cached) $ECHO_C" >&6 6119else 6120 if test -n "$ac_ct_F77"; then 6121 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6122else 6123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6124for as_dir in $PATH 6125do 6126 IFS=$as_save_IFS 6127 test -z "$as_dir" && as_dir=. 6128 for ac_exec_ext in '' $ac_executable_extensions; do 6129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6130 ac_cv_prog_ac_ct_F77="$ac_prog" 6131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6132 break 2 6133 fi 6134done 6135done 6136IFS=$as_save_IFS 6137 6138fi 6139fi 6140ac_ct_F77=$ac_cv_prog_ac_ct_F77 6141if test -n "$ac_ct_F77"; then 6142 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6143echo "${ECHO_T}$ac_ct_F77" >&6; } 6144else 6145 { echo "$as_me:$LINENO: result: no" >&5 6146echo "${ECHO_T}no" >&6; } 6147fi 6148 6149 6150 test -n "$ac_ct_F77" && break 6151done 6152 6153 if test "x$ac_ct_F77" = x; then 6154 F77="" 6155 else 6156 case $cross_compiling:$ac_tool_warned in 6157yes:) 6158{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6159whose name does not start with the host triplet. If you think this 6160configuration is useful to you, please write to autoconf@gnu.org." >&5 6161echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6162whose name does not start with the host triplet. If you think this 6163configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6164ac_tool_warned=yes ;; 6165esac 6166 F77=$ac_ct_F77 6167 fi 6168fi 6169 6170 6171# Provide some information about the compiler. 6172echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6173ac_compiler=`set X $ac_compile; echo $2` 6174{ (ac_try="$ac_compiler --version >&5" 6175case "(($ac_try" in 6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6177 *) ac_try_echo=$ac_try;; 6178esac 6179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6180 (eval "$ac_compiler --version >&5") 2>&5 6181 ac_status=$? 6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); } 6184{ (ac_try="$ac_compiler -v >&5" 6185case "(($ac_try" in 6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6187 *) ac_try_echo=$ac_try;; 6188esac 6189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6190 (eval "$ac_compiler -v >&5") 2>&5 6191 ac_status=$? 6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6193 (exit $ac_status); } 6194{ (ac_try="$ac_compiler -V >&5" 6195case "(($ac_try" in 6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6197 *) ac_try_echo=$ac_try;; 6198esac 6199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6200 (eval "$ac_compiler -V >&5") 2>&5 6201 ac_status=$? 6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6203 (exit $ac_status); } 6204rm -f a.out 6205 6206# If we don't use `.F' as extension, the preprocessor is not run on the 6207# input file. (Note that this only needs to work for GNU compilers.) 6208ac_save_ext=$ac_ext 6209ac_ext=F 6210{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6211echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6212if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6213 echo $ECHO_N "(cached) $ECHO_C" >&6 6214else 6215 cat >conftest.$ac_ext <<_ACEOF 6216 program main 6217#ifndef __GNUC__ 6218 choke me 6219#endif 6220 6221 end 6222_ACEOF 6223rm -f conftest.$ac_objext 6224if { (ac_try="$ac_compile" 6225case "(($ac_try" in 6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6227 *) ac_try_echo=$ac_try;; 6228esac 6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6230 (eval "$ac_compile") 2>conftest.er1 6231 ac_status=$? 6232 grep -v '^ *+' conftest.er1 >conftest.err 6233 rm -f conftest.er1 6234 cat conftest.err >&5 6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6236 (exit $ac_status); } && 6237 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6238 { (case "(($ac_try" in 6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6240 *) ac_try_echo=$ac_try;; 6241esac 6242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6243 (eval "$ac_try") 2>&5 6244 ac_status=$? 6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6246 (exit $ac_status); }; } && 6247 { ac_try='test -s conftest.$ac_objext' 6248 { (case "(($ac_try" in 6249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6250 *) ac_try_echo=$ac_try;; 6251esac 6252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6253 (eval "$ac_try") 2>&5 6254 ac_status=$? 6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6256 (exit $ac_status); }; }; then 6257 ac_compiler_gnu=yes 6258else 6259 echo "$as_me: failed program was:" >&5 6260sed 's/^/| /' conftest.$ac_ext >&5 6261 6262 ac_compiler_gnu=no 6263fi 6264 6265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6266ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6267 6268fi 6269{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6270echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6271ac_ext=$ac_save_ext 6272ac_test_FFLAGS=${FFLAGS+set} 6273ac_save_FFLAGS=$FFLAGS 6274FFLAGS= 6275{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6276echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6277if test "${ac_cv_prog_f77_g+set}" = set; then 6278 echo $ECHO_N "(cached) $ECHO_C" >&6 6279else 6280 FFLAGS=-g 6281cat >conftest.$ac_ext <<_ACEOF 6282 program main 6283 6284 end 6285_ACEOF 6286rm -f conftest.$ac_objext 6287if { (ac_try="$ac_compile" 6288case "(($ac_try" in 6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6290 *) ac_try_echo=$ac_try;; 6291esac 6292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6293 (eval "$ac_compile") 2>conftest.er1 6294 ac_status=$? 6295 grep -v '^ *+' conftest.er1 >conftest.err 6296 rm -f conftest.er1 6297 cat conftest.err >&5 6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6299 (exit $ac_status); } && 6300 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6301 { (case "(($ac_try" in 6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6303 *) ac_try_echo=$ac_try;; 6304esac 6305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6306 (eval "$ac_try") 2>&5 6307 ac_status=$? 6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6309 (exit $ac_status); }; } && 6310 { ac_try='test -s conftest.$ac_objext' 6311 { (case "(($ac_try" in 6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6313 *) ac_try_echo=$ac_try;; 6314esac 6315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6316 (eval "$ac_try") 2>&5 6317 ac_status=$? 6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6319 (exit $ac_status); }; }; then 6320 ac_cv_prog_f77_g=yes 6321else 6322 echo "$as_me: failed program was:" >&5 6323sed 's/^/| /' conftest.$ac_ext >&5 6324 6325 ac_cv_prog_f77_g=no 6326fi 6327 6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6329 6330fi 6331{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6332echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6333if test "$ac_test_FFLAGS" = set; then 6334 FFLAGS=$ac_save_FFLAGS 6335elif test $ac_cv_prog_f77_g = yes; then 6336 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6337 FFLAGS="-g -O2" 6338 else 6339 FFLAGS="-g" 6340 fi 6341else 6342 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6343 FFLAGS="-O2" 6344 else 6345 FFLAGS= 6346 fi 6347fi 6348 6349G77=`test $ac_compiler_gnu = yes && echo yes` 6350ac_ext=c 6351ac_cpp='$CPP $CPPFLAGS' 6352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6354ac_compiler_gnu=$ac_cv_c_compiler_gnu 6355 6356 6357 6358# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6359 6360# find the maximum length of command line arguments 6361{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6362echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6363if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6364 echo $ECHO_N "(cached) $ECHO_C" >&6 6365else 6366 i=0 6367 teststring="ABCD" 6368 6369 case $build_os in 6370 msdosdjgpp*) 6371 # On DJGPP, this test can blow up pretty badly due to problems in libc 6372 # (any single argument exceeding 2000 bytes causes a buffer overrun 6373 # during glob expansion). Even if it were fixed, the result of this 6374 # check would be larger than it should be. 6375 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6376 ;; 6377 6378 gnu*) 6379 # Under GNU Hurd, this test is not required because there is 6380 # no limit to the length of command line arguments. 6381 # Libtool will interpret -1 as no limit whatsoever 6382 lt_cv_sys_max_cmd_len=-1; 6383 ;; 6384 6385 cygwin* | mingw*) 6386 # On Win9x/ME, this test blows up -- it succeeds, but takes 6387 # about 5 minutes as the teststring grows exponentially. 6388 # Worse, since 9x/ME are not pre-emptively multitasking, 6389 # you end up with a "frozen" computer, even though with patience 6390 # the test eventually succeeds (with a max line length of 256k). 6391 # Instead, let's just punt: use the minimum linelength reported by 6392 # all of the supported platforms: 8192 (on NT/2K/XP). 6393 lt_cv_sys_max_cmd_len=8192; 6394 ;; 6395 6396 amigaos*) 6397 # On AmigaOS with pdksh, this test takes hours, literally. 6398 # So we just punt and use a minimum line length of 8192. 6399 lt_cv_sys_max_cmd_len=8192; 6400 ;; 6401 6402 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6403 # This has been around since 386BSD, at least. Likely further. 6404 if test -x /sbin/sysctl; then 6405 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6406 elif test -x /usr/sbin/sysctl; then 6407 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6408 else 6409 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6410 fi 6411 # And add a safety zone 6412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6414 ;; 6415 6416 interix*) 6417 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6418 lt_cv_sys_max_cmd_len=196608 6419 ;; 6420 6421 osf*) 6422 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6423 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6424 # nice to cause kernel panics so lets avoid the loop below. 6425 # First set a reasonable default. 6426 lt_cv_sys_max_cmd_len=16384 6427 # 6428 if test -x /sbin/sysconfig; then 6429 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6430 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6431 esac 6432 fi 6433 ;; 6434 sco3.2v5*) 6435 lt_cv_sys_max_cmd_len=102400 6436 ;; 6437 sysv5* | sco5v6* | sysv4.2uw2*) 6438 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6439 if test -n "$kargmax"; then 6440 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6441 else 6442 lt_cv_sys_max_cmd_len=32768 6443 fi 6444 ;; 6445 *) 6446 # If test is not a shell built-in, we'll probably end up computing a 6447 # maximum length that is only half of the actual maximum length, but 6448 # we can't tell. 6449 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6450 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6451 = "XX$teststring") >/dev/null 2>&1 && 6452 new_result=`expr "X$teststring" : ".*" 2>&1` && 6453 lt_cv_sys_max_cmd_len=$new_result && 6454 test $i != 17 # 1/2 MB should be enough 6455 do 6456 i=`expr $i + 1` 6457 teststring=$teststring$teststring 6458 done 6459 teststring= 6460 # Add a significant safety factor because C++ compilers can tack on massive 6461 # amounts of additional arguments before passing them to the linker. 6462 # It appears as though 1/2 is a usable value. 6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6464 ;; 6465 esac 6466 6467fi 6468 6469if test -n $lt_cv_sys_max_cmd_len ; then 6470 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6471echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6472else 6473 { echo "$as_me:$LINENO: result: none" >&5 6474echo "${ECHO_T}none" >&6; } 6475fi 6476 6477 6478 6479 6480# Check for command to grab the raw symbol name followed by C symbol from nm. 6481{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6482echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6483if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6484 echo $ECHO_N "(cached) $ECHO_C" >&6 6485else 6486 6487# These are sane defaults that work on at least a few old systems. 6488# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6489 6490# Character class describing NM global symbol codes. 6491symcode='[BCDEGRST]' 6492 6493# Regexp to match symbols that can be accessed directly from C. 6494sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6495 6496# Transform an extracted symbol line into a proper C declaration 6497lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6498 6499# Transform an extracted symbol line into symbol name and symbol address 6500lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6501 6502# Define system-specific variables. 6503case $host_os in 6504aix*) 6505 symcode='[BCDT]' 6506 ;; 6507cygwin* | mingw* | pw32*) 6508 symcode='[ABCDGISTW]' 6509 ;; 6510hpux*) # Its linker distinguishes data from code symbols 6511 if test "$host_cpu" = ia64; then 6512 symcode='[ABCDEGRST]' 6513 fi 6514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6515 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6516 ;; 6517linux* | k*bsd*-gnu) 6518 if test "$host_cpu" = ia64; then 6519 symcode='[ABCDGIRSTW]' 6520 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6521 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6522 fi 6523 ;; 6524irix* | nonstopux*) 6525 symcode='[BCDEGRST]' 6526 ;; 6527osf*) 6528 symcode='[BCDEGQRST]' 6529 ;; 6530solaris*) 6531 symcode='[BDRT]' 6532 ;; 6533sco3.2v5*) 6534 symcode='[DT]' 6535 ;; 6536sysv4.2uw2*) 6537 symcode='[DT]' 6538 ;; 6539sysv5* | sco5v6* | unixware* | OpenUNIX*) 6540 symcode='[ABDT]' 6541 ;; 6542sysv4) 6543 symcode='[DFNSTU]' 6544 ;; 6545esac 6546 6547# Handle CRLF in mingw tool chain 6548opt_cr= 6549case $build_os in 6550mingw*) 6551 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6552 ;; 6553esac 6554 6555# If we're using GNU nm, then use its standard symbol codes. 6556case `$NM -V 2>&1` in 6557*GNU* | *'with BFD'*) 6558 symcode='[ABCDGIRSTW]' ;; 6559esac 6560 6561# Try without a prefix undercore, then with it. 6562for ac_symprfx in "" "_"; do 6563 6564 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6565 symxfrm="\\1 $ac_symprfx\\2 \\2" 6566 6567 # Write the raw and C identifiers. 6568 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6569 6570 # Check to see that the pipe works correctly. 6571 pipe_works=no 6572 6573 rm -f conftest* 6574 cat > conftest.$ac_ext <<EOF 6575#ifdef __cplusplus 6576extern "C" { 6577#endif 6578char nm_test_var; 6579void nm_test_func(){} 6580#ifdef __cplusplus 6581} 6582#endif 6583int main(){nm_test_var='a';nm_test_func();return(0);} 6584EOF 6585 6586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6587 (eval $ac_compile) 2>&5 6588 ac_status=$? 6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6590 (exit $ac_status); }; then 6591 # Now try to grab the symbols. 6592 nlist=conftest.nm 6593 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6594 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6595 ac_status=$? 6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6597 (exit $ac_status); } && test -s "$nlist"; then 6598 # Try sorting and uniquifying the output. 6599 if sort "$nlist" | uniq > "$nlist"T; then 6600 mv -f "$nlist"T "$nlist" 6601 else 6602 rm -f "$nlist"T 6603 fi 6604 6605 # Make sure that we snagged all the symbols we need. 6606 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6607 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6608 cat <<EOF > conftest.$ac_ext 6609#ifdef __cplusplus 6610extern "C" { 6611#endif 6612 6613EOF 6614 # Now generate the symbol file. 6615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6616 6617 cat <<EOF >> conftest.$ac_ext 6618#if defined (__STDC__) && __STDC__ 6619# define lt_ptr_t void * 6620#else 6621# define lt_ptr_t char * 6622# define const 6623#endif 6624 6625/* The mapping between symbol names and symbols. */ 6626const struct { 6627 const char *name; 6628 lt_ptr_t address; 6629} 6630lt_preloaded_symbols[] = 6631{ 6632EOF 6633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6634 cat <<\EOF >> conftest.$ac_ext 6635 {0, (lt_ptr_t) 0} 6636}; 6637 6638#ifdef __cplusplus 6639} 6640#endif 6641EOF 6642 # Now try linking the two files. 6643 mv conftest.$ac_objext conftstm.$ac_objext 6644 lt_save_LIBS="$LIBS" 6645 lt_save_CFLAGS="$CFLAGS" 6646 LIBS="conftstm.$ac_objext" 6647 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6649 (eval $ac_link) 2>&5 6650 ac_status=$? 6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6652 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6653 pipe_works=yes 6654 fi 6655 LIBS="$lt_save_LIBS" 6656 CFLAGS="$lt_save_CFLAGS" 6657 else 6658 echo "cannot find nm_test_func in $nlist" >&5 6659 fi 6660 else 6661 echo "cannot find nm_test_var in $nlist" >&5 6662 fi 6663 else 6664 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6665 fi 6666 else 6667 echo "$progname: failed program was:" >&5 6668 cat conftest.$ac_ext >&5 6669 fi 6670 rm -f conftest* conftst* 6671 6672 # Do not use the global_symbol_pipe unless it works. 6673 if test "$pipe_works" = yes; then 6674 break 6675 else 6676 lt_cv_sys_global_symbol_pipe= 6677 fi 6678done 6679 6680fi 6681 6682if test -z "$lt_cv_sys_global_symbol_pipe"; then 6683 lt_cv_sys_global_symbol_to_cdecl= 6684fi 6685if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6686 { echo "$as_me:$LINENO: result: failed" >&5 6687echo "${ECHO_T}failed" >&6; } 6688else 6689 { echo "$as_me:$LINENO: result: ok" >&5 6690echo "${ECHO_T}ok" >&6; } 6691fi 6692 6693{ echo "$as_me:$LINENO: checking for objdir" >&5 6694echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6695if test "${lt_cv_objdir+set}" = set; then 6696 echo $ECHO_N "(cached) $ECHO_C" >&6 6697else 6698 rm -f .libs 2>/dev/null 6699mkdir .libs 2>/dev/null 6700if test -d .libs; then 6701 lt_cv_objdir=.libs 6702else 6703 # MS-DOS does not allow filenames that begin with a dot. 6704 lt_cv_objdir=_libs 6705fi 6706rmdir .libs 2>/dev/null 6707fi 6708{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6709echo "${ECHO_T}$lt_cv_objdir" >&6; } 6710objdir=$lt_cv_objdir 6711 6712 6713 6714 6715 6716case $host_os in 6717aix3*) 6718 # AIX sometimes has problems with the GCC collect2 program. For some 6719 # reason, if we set the COLLECT_NAMES environment variable, the problems 6720 # vanish in a puff of smoke. 6721 if test "X${COLLECT_NAMES+set}" != Xset; then 6722 COLLECT_NAMES= 6723 export COLLECT_NAMES 6724 fi 6725 ;; 6726esac 6727 6728# Sed substitution that helps us do robust quoting. It backslashifies 6729# metacharacters that are still active within double-quoted strings. 6730Xsed='sed -e 1s/^X//' 6731sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6732 6733# Same as above, but do not quote variable references. 6734double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6735 6736# Sed substitution to delay expansion of an escaped shell variable in a 6737# double_quote_subst'ed string. 6738delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6739 6740# Sed substitution to avoid accidental globbing in evaled expressions 6741no_glob_subst='s/\*/\\\*/g' 6742 6743# Constants: 6744rm="rm -f" 6745 6746# Global variables: 6747default_ofile=libtool 6748can_build_shared=yes 6749 6750# All known linkers require a `.a' archive for static linking (except MSVC, 6751# which needs '.lib'). 6752libext=a 6753ltmain="$ac_aux_dir/ltmain.sh" 6754ofile="$default_ofile" 6755with_gnu_ld="$lt_cv_prog_gnu_ld" 6756 6757if test -n "$ac_tool_prefix"; then 6758 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6759set dummy ${ac_tool_prefix}ar; ac_word=$2 6760{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6762if test "${ac_cv_prog_AR+set}" = set; then 6763 echo $ECHO_N "(cached) $ECHO_C" >&6 6764else 6765 if test -n "$AR"; then 6766 ac_cv_prog_AR="$AR" # Let the user override the test. 6767else 6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6769for as_dir in $PATH 6770do 6771 IFS=$as_save_IFS 6772 test -z "$as_dir" && as_dir=. 6773 for ac_exec_ext in '' $ac_executable_extensions; do 6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6775 ac_cv_prog_AR="${ac_tool_prefix}ar" 6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6777 break 2 6778 fi 6779done 6780done 6781IFS=$as_save_IFS 6782 6783fi 6784fi 6785AR=$ac_cv_prog_AR 6786if test -n "$AR"; then 6787 { echo "$as_me:$LINENO: result: $AR" >&5 6788echo "${ECHO_T}$AR" >&6; } 6789else 6790 { echo "$as_me:$LINENO: result: no" >&5 6791echo "${ECHO_T}no" >&6; } 6792fi 6793 6794 6795fi 6796if test -z "$ac_cv_prog_AR"; then 6797 ac_ct_AR=$AR 6798 # Extract the first word of "ar", so it can be a program name with args. 6799set dummy ar; ac_word=$2 6800{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6802if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6803 echo $ECHO_N "(cached) $ECHO_C" >&6 6804else 6805 if test -n "$ac_ct_AR"; then 6806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6815 ac_cv_prog_ac_ct_AR="ar" 6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825ac_ct_AR=$ac_cv_prog_ac_ct_AR 6826if test -n "$ac_ct_AR"; then 6827 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6828echo "${ECHO_T}$ac_ct_AR" >&6; } 6829else 6830 { echo "$as_me:$LINENO: result: no" >&5 6831echo "${ECHO_T}no" >&6; } 6832fi 6833 6834 if test "x$ac_ct_AR" = x; then 6835 AR="false" 6836 else 6837 case $cross_compiling:$ac_tool_warned in 6838yes:) 6839{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6840whose name does not start with the host triplet. If you think this 6841configuration is useful to you, please write to autoconf@gnu.org." >&5 6842echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6843whose name does not start with the host triplet. If you think this 6844configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6845ac_tool_warned=yes ;; 6846esac 6847 AR=$ac_ct_AR 6848 fi 6849else 6850 AR="$ac_cv_prog_AR" 6851fi 6852 6853if test -n "$ac_tool_prefix"; then 6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6855set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6858if test "${ac_cv_prog_RANLIB+set}" = set; then 6859 echo $ECHO_N "(cached) $ECHO_C" >&6 6860else 6861 if test -n "$RANLIB"; then 6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6863else 6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865for as_dir in $PATH 6866do 6867 IFS=$as_save_IFS 6868 test -z "$as_dir" && as_dir=. 6869 for ac_exec_ext in '' $ac_executable_extensions; do 6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6873 break 2 6874 fi 6875done 6876done 6877IFS=$as_save_IFS 6878 6879fi 6880fi 6881RANLIB=$ac_cv_prog_RANLIB 6882if test -n "$RANLIB"; then 6883 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6884echo "${ECHO_T}$RANLIB" >&6; } 6885else 6886 { echo "$as_me:$LINENO: result: no" >&5 6887echo "${ECHO_T}no" >&6; } 6888fi 6889 6890 6891fi 6892if test -z "$ac_cv_prog_RANLIB"; then 6893 ac_ct_RANLIB=$RANLIB 6894 # Extract the first word of "ranlib", so it can be a program name with args. 6895set dummy ranlib; ac_word=$2 6896{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6898if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6899 echo $ECHO_N "(cached) $ECHO_C" >&6 6900else 6901 if test -n "$ac_ct_RANLIB"; then 6902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6903else 6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905for as_dir in $PATH 6906do 6907 IFS=$as_save_IFS 6908 test -z "$as_dir" && as_dir=. 6909 for ac_exec_ext in '' $ac_executable_extensions; do 6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6911 ac_cv_prog_ac_ct_RANLIB="ranlib" 6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6913 break 2 6914 fi 6915done 6916done 6917IFS=$as_save_IFS 6918 6919fi 6920fi 6921ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6922if test -n "$ac_ct_RANLIB"; then 6923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6924echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6925else 6926 { echo "$as_me:$LINENO: result: no" >&5 6927echo "${ECHO_T}no" >&6; } 6928fi 6929 6930 if test "x$ac_ct_RANLIB" = x; then 6931 RANLIB=":" 6932 else 6933 case $cross_compiling:$ac_tool_warned in 6934yes:) 6935{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6936whose name does not start with the host triplet. If you think this 6937configuration is useful to you, please write to autoconf@gnu.org." >&5 6938echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6939whose name does not start with the host triplet. If you think this 6940configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6941ac_tool_warned=yes ;; 6942esac 6943 RANLIB=$ac_ct_RANLIB 6944 fi 6945else 6946 RANLIB="$ac_cv_prog_RANLIB" 6947fi 6948 6949if test -n "$ac_tool_prefix"; then 6950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6951set dummy ${ac_tool_prefix}strip; ac_word=$2 6952{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6954if test "${ac_cv_prog_STRIP+set}" = set; then 6955 echo $ECHO_N "(cached) $ECHO_C" >&6 6956else 6957 if test -n "$STRIP"; then 6958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6959else 6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961for as_dir in $PATH 6962do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_exec_ext in '' $ac_executable_extensions; do 6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6967 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6969 break 2 6970 fi 6971done 6972done 6973IFS=$as_save_IFS 6974 6975fi 6976fi 6977STRIP=$ac_cv_prog_STRIP 6978if test -n "$STRIP"; then 6979 { echo "$as_me:$LINENO: result: $STRIP" >&5 6980echo "${ECHO_T}$STRIP" >&6; } 6981else 6982 { echo "$as_me:$LINENO: result: no" >&5 6983echo "${ECHO_T}no" >&6; } 6984fi 6985 6986 6987fi 6988if test -z "$ac_cv_prog_STRIP"; then 6989 ac_ct_STRIP=$STRIP 6990 # Extract the first word of "strip", so it can be a program name with args. 6991set dummy strip; ac_word=$2 6992{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6994if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6995 echo $ECHO_N "(cached) $ECHO_C" >&6 6996else 6997 if test -n "$ac_ct_STRIP"; then 6998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6999else 7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7001for as_dir in $PATH 7002do 7003 IFS=$as_save_IFS 7004 test -z "$as_dir" && as_dir=. 7005 for ac_exec_ext in '' $ac_executable_extensions; do 7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7007 ac_cv_prog_ac_ct_STRIP="strip" 7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7009 break 2 7010 fi 7011done 7012done 7013IFS=$as_save_IFS 7014 7015fi 7016fi 7017ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7018if test -n "$ac_ct_STRIP"; then 7019 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7020echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7021else 7022 { echo "$as_me:$LINENO: result: no" >&5 7023echo "${ECHO_T}no" >&6; } 7024fi 7025 7026 if test "x$ac_ct_STRIP" = x; then 7027 STRIP=":" 7028 else 7029 case $cross_compiling:$ac_tool_warned in 7030yes:) 7031{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7032whose name does not start with the host triplet. If you think this 7033configuration is useful to you, please write to autoconf@gnu.org." >&5 7034echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7035whose name does not start with the host triplet. If you think this 7036configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7037ac_tool_warned=yes ;; 7038esac 7039 STRIP=$ac_ct_STRIP 7040 fi 7041else 7042 STRIP="$ac_cv_prog_STRIP" 7043fi 7044 7045 7046old_CC="$CC" 7047old_CFLAGS="$CFLAGS" 7048 7049# Set sane defaults for various variables 7050test -z "$AR" && AR=ar 7051test -z "$AR_FLAGS" && AR_FLAGS=cru 7052test -z "$AS" && AS=as 7053test -z "$CC" && CC=cc 7054test -z "$LTCC" && LTCC=$CC 7055test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7056test -z "$DLLTOOL" && DLLTOOL=dlltool 7057test -z "$LD" && LD=ld 7058test -z "$LN_S" && LN_S="ln -s" 7059test -z "$MAGIC_CMD" && MAGIC_CMD=file 7060test -z "$NM" && NM=nm 7061test -z "$SED" && SED=sed 7062test -z "$OBJDUMP" && OBJDUMP=objdump 7063test -z "$RANLIB" && RANLIB=: 7064test -z "$STRIP" && STRIP=: 7065test -z "$ac_objext" && ac_objext=o 7066 7067# Determine commands to create old-style static archives. 7068old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7069old_postinstall_cmds='chmod 644 $oldlib' 7070old_postuninstall_cmds= 7071 7072if test -n "$RANLIB"; then 7073 case $host_os in 7074 openbsd*) 7075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7076 ;; 7077 *) 7078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7079 ;; 7080 esac 7081 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7082fi 7083 7084for cc_temp in $compiler""; do 7085 case $cc_temp in 7086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7088 \-*) ;; 7089 *) break;; 7090 esac 7091done 7092cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7093 7094 7095# Only perform the check for file, if the check method requires it 7096case $deplibs_check_method in 7097file_magic*) 7098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7099 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7100echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7101if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7102 echo $ECHO_N "(cached) $ECHO_C" >&6 7103else 7104 case $MAGIC_CMD in 7105[\\/*] | ?:[\\/]*) 7106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7107 ;; 7108*) 7109 lt_save_MAGIC_CMD="$MAGIC_CMD" 7110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7112 for ac_dir in $ac_dummy; do 7113 IFS="$lt_save_ifs" 7114 test -z "$ac_dir" && ac_dir=. 7115 if test -f $ac_dir/${ac_tool_prefix}file; then 7116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7117 if test -n "$file_magic_test_file"; then 7118 case $deplibs_check_method in 7119 "file_magic "*) 7120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7123 $EGREP "$file_magic_regex" > /dev/null; then 7124 : 7125 else 7126 cat <<EOF 1>&2 7127 7128*** Warning: the command libtool uses to detect shared libraries, 7129*** $file_magic_cmd, produces output that libtool cannot recognize. 7130*** The result is that libtool may fail to recognize shared libraries 7131*** as such. This will affect the creation of libtool libraries that 7132*** depend on shared libraries, but programs linked with such libtool 7133*** libraries will work regardless of this problem. Nevertheless, you 7134*** may want to report the problem to your system manager and/or to 7135*** bug-libtool@gnu.org 7136 7137EOF 7138 fi ;; 7139 esac 7140 fi 7141 break 7142 fi 7143 done 7144 IFS="$lt_save_ifs" 7145 MAGIC_CMD="$lt_save_MAGIC_CMD" 7146 ;; 7147esac 7148fi 7149 7150MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7151if test -n "$MAGIC_CMD"; then 7152 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7153echo "${ECHO_T}$MAGIC_CMD" >&6; } 7154else 7155 { echo "$as_me:$LINENO: result: no" >&5 7156echo "${ECHO_T}no" >&6; } 7157fi 7158 7159if test -z "$lt_cv_path_MAGIC_CMD"; then 7160 if test -n "$ac_tool_prefix"; then 7161 { echo "$as_me:$LINENO: checking for file" >&5 7162echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7163if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7164 echo $ECHO_N "(cached) $ECHO_C" >&6 7165else 7166 case $MAGIC_CMD in 7167[\\/*] | ?:[\\/]*) 7168 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7169 ;; 7170*) 7171 lt_save_MAGIC_CMD="$MAGIC_CMD" 7172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7173 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7174 for ac_dir in $ac_dummy; do 7175 IFS="$lt_save_ifs" 7176 test -z "$ac_dir" && ac_dir=. 7177 if test -f $ac_dir/file; then 7178 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7179 if test -n "$file_magic_test_file"; then 7180 case $deplibs_check_method in 7181 "file_magic "*) 7182 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7185 $EGREP "$file_magic_regex" > /dev/null; then 7186 : 7187 else 7188 cat <<EOF 1>&2 7189 7190*** Warning: the command libtool uses to detect shared libraries, 7191*** $file_magic_cmd, produces output that libtool cannot recognize. 7192*** The result is that libtool may fail to recognize shared libraries 7193*** as such. This will affect the creation of libtool libraries that 7194*** depend on shared libraries, but programs linked with such libtool 7195*** libraries will work regardless of this problem. Nevertheless, you 7196*** may want to report the problem to your system manager and/or to 7197*** bug-libtool@gnu.org 7198 7199EOF 7200 fi ;; 7201 esac 7202 fi 7203 break 7204 fi 7205 done 7206 IFS="$lt_save_ifs" 7207 MAGIC_CMD="$lt_save_MAGIC_CMD" 7208 ;; 7209esac 7210fi 7211 7212MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7213if test -n "$MAGIC_CMD"; then 7214 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7215echo "${ECHO_T}$MAGIC_CMD" >&6; } 7216else 7217 { echo "$as_me:$LINENO: result: no" >&5 7218echo "${ECHO_T}no" >&6; } 7219fi 7220 7221 else 7222 MAGIC_CMD=: 7223 fi 7224fi 7225 7226 fi 7227 ;; 7228esac 7229 7230enable_dlopen=no 7231enable_win32_dll=no 7232 7233# Check whether --enable-libtool-lock was given. 7234if test "${enable_libtool_lock+set}" = set; then 7235 enableval=$enable_libtool_lock; 7236fi 7237 7238test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7239 7240 7241# Check whether --with-pic was given. 7242if test "${with_pic+set}" = set; then 7243 withval=$with_pic; pic_mode="$withval" 7244else 7245 pic_mode=default 7246fi 7247 7248test -z "$pic_mode" && pic_mode=default 7249 7250# Use C for the default configuration in the libtool script 7251tagname= 7252lt_save_CC="$CC" 7253ac_ext=c 7254ac_cpp='$CPP $CPPFLAGS' 7255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7257ac_compiler_gnu=$ac_cv_c_compiler_gnu 7258 7259 7260# Source file extension for C test sources. 7261ac_ext=c 7262 7263# Object file extension for compiled C test sources. 7264objext=o 7265objext=$objext 7266 7267# Code to be used in simple compile tests 7268lt_simple_compile_test_code="int some_variable = 0;\n" 7269 7270# Code to be used in simple link tests 7271lt_simple_link_test_code='int main(){return(0);}\n' 7272 7273 7274# If no C compiler was specified, use CC. 7275LTCC=${LTCC-"$CC"} 7276 7277# If no C compiler flags were specified, use CFLAGS. 7278LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7279 7280# Allow CC to be a program name with arguments. 7281compiler=$CC 7282 7283 7284# save warnings/boilerplate of simple test code 7285ac_outfile=conftest.$ac_objext 7286printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7288_lt_compiler_boilerplate=`cat conftest.err` 7289$rm conftest* 7290 7291ac_outfile=conftest.$ac_objext 7292printf "$lt_simple_link_test_code" >conftest.$ac_ext 7293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7294_lt_linker_boilerplate=`cat conftest.err` 7295$rm conftest* 7296 7297 7298 7299lt_prog_compiler_no_builtin_flag= 7300 7301if test "$GCC" = yes; then 7302 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7303 7304 7305{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7306echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7307if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7308 echo $ECHO_N "(cached) $ECHO_C" >&6 7309else 7310 lt_cv_prog_compiler_rtti_exceptions=no 7311 ac_outfile=conftest.$ac_objext 7312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7313 lt_compiler_flag="-fno-rtti -fno-exceptions" 7314 # Insert the option either (1) after the last *FLAGS variable, or 7315 # (2) before a word containing "conftest.", or (3) at the end. 7316 # Note that $ac_compile itself does not contain backslashes and begins 7317 # with a dollar sign (not a hyphen), so the echo should work correctly. 7318 # The option is referenced via a variable to avoid confusing sed. 7319 lt_compile=`echo "$ac_compile" | $SED \ 7320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7322 -e 's:$: $lt_compiler_flag:'` 7323 (eval echo "\"\$as_me:7323: $lt_compile\"" >&5) 7324 (eval "$lt_compile" 2>conftest.err) 7325 ac_status=$? 7326 cat conftest.err >&5 7327 echo "$as_me:7327: \$? = $ac_status" >&5 7328 if (exit $ac_status) && test -s "$ac_outfile"; then 7329 # The compiler can only warn and ignore the option if not recognized 7330 # So say no if there are warnings other than the usual output. 7331 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7333 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7334 lt_cv_prog_compiler_rtti_exceptions=yes 7335 fi 7336 fi 7337 $rm conftest* 7338 7339fi 7340{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7341echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7342 7343if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7344 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7345else 7346 : 7347fi 7348 7349fi 7350 7351lt_prog_compiler_wl= 7352lt_prog_compiler_pic= 7353lt_prog_compiler_static= 7354 7355{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7356echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7357 7358 if test "$GCC" = yes; then 7359 lt_prog_compiler_wl='-Wl,' 7360 lt_prog_compiler_static='-static' 7361 7362 case $host_os in 7363 aix*) 7364 # All AIX code is PIC. 7365 if test "$host_cpu" = ia64; then 7366 # AIX 5 now supports IA64 processor 7367 lt_prog_compiler_static='-Bstatic' 7368 fi 7369 ;; 7370 7371 amigaos*) 7372 # FIXME: we need at least 68020 code to build shared libraries, but 7373 # adding the `-m68020' flag to GCC prevents building anything better, 7374 # like `-m68040'. 7375 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7376 ;; 7377 7378 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7379 # PIC is the default for these OSes. 7380 ;; 7381 7382 mingw* | pw32* | os2*) 7383 # This hack is so that the source file can tell whether it is being 7384 # built for inclusion in a dll (and should export symbols for example). 7385 lt_prog_compiler_pic='-DDLL_EXPORT' 7386 ;; 7387 7388 darwin* | rhapsody*) 7389 # PIC is the default on this platform 7390 # Common symbols not allowed in MH_DYLIB files 7391 lt_prog_compiler_pic='-fno-common' 7392 ;; 7393 7394 interix3*) 7395 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7396 # Instead, we relocate shared libraries at runtime. 7397 ;; 7398 7399 msdosdjgpp*) 7400 # Just because we use GCC doesn't mean we suddenly get shared libraries 7401 # on systems that don't support them. 7402 lt_prog_compiler_can_build_shared=no 7403 enable_shared=no 7404 ;; 7405 7406 sysv4*MP*) 7407 if test -d /usr/nec; then 7408 lt_prog_compiler_pic=-Kconform_pic 7409 fi 7410 ;; 7411 7412 hpux*) 7413 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7414 # not for PA HP-UX. 7415 case $host_cpu in 7416 hppa*64*|ia64*) 7417 # +Z the default 7418 ;; 7419 *) 7420 lt_prog_compiler_pic='-fPIC' 7421 ;; 7422 esac 7423 ;; 7424 7425 *) 7426 lt_prog_compiler_pic='-fPIC' 7427 ;; 7428 esac 7429 else 7430 # PORTME Check for flag to pass linker flags through the system compiler. 7431 case $host_os in 7432 aix*) 7433 lt_prog_compiler_wl='-Wl,' 7434 if test "$host_cpu" = ia64; then 7435 # AIX 5 now supports IA64 processor 7436 lt_prog_compiler_static='-Bstatic' 7437 else 7438 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7439 fi 7440 ;; 7441 darwin*) 7442 # PIC is the default on this platform 7443 # Common symbols not allowed in MH_DYLIB files 7444 case $cc_basename in 7445 xlc*) 7446 lt_prog_compiler_pic='-qnocommon' 7447 lt_prog_compiler_wl='-Wl,' 7448 ;; 7449 esac 7450 ;; 7451 7452 mingw* | pw32* | os2*) 7453 # This hack is so that the source file can tell whether it is being 7454 # built for inclusion in a dll (and should export symbols for example). 7455 lt_prog_compiler_pic='-DDLL_EXPORT' 7456 ;; 7457 7458 hpux9* | hpux10* | hpux11*) 7459 lt_prog_compiler_wl='-Wl,' 7460 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7461 # not for PA HP-UX. 7462 case $host_cpu in 7463 hppa*64*|ia64*) 7464 # +Z the default 7465 ;; 7466 *) 7467 lt_prog_compiler_pic='+Z' 7468 ;; 7469 esac 7470 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7471 lt_prog_compiler_static='${wl}-a ${wl}archive' 7472 ;; 7473 7474 irix5* | irix6* | nonstopux*) 7475 lt_prog_compiler_wl='-Wl,' 7476 # PIC (with -KPIC) is the default. 7477 lt_prog_compiler_static='-non_shared' 7478 ;; 7479 7480 newsos6) 7481 lt_prog_compiler_pic='-KPIC' 7482 lt_prog_compiler_static='-Bstatic' 7483 ;; 7484 7485 linux* | k*bsd*-gnu) 7486 case $cc_basename in 7487 icc* | ecc*) 7488 lt_prog_compiler_wl='-Wl,' 7489 lt_prog_compiler_pic='-KPIC' 7490 lt_prog_compiler_static='-static' 7491 ;; 7492 pgcc* | pgf77* | pgf90* | pgf95*) 7493 # Portland Group compilers (*not* the Pentium gcc compiler, 7494 # which looks to be a dead project) 7495 lt_prog_compiler_wl='-Wl,' 7496 lt_prog_compiler_pic='-fpic' 7497 lt_prog_compiler_static='-Bstatic' 7498 ;; 7499 ccc*) 7500 lt_prog_compiler_wl='-Wl,' 7501 # All Alpha code is PIC. 7502 lt_prog_compiler_static='-non_shared' 7503 ;; 7504 esac 7505 ;; 7506 7507 osf3* | osf4* | osf5*) 7508 lt_prog_compiler_wl='-Wl,' 7509 # All OSF/1 code is PIC. 7510 lt_prog_compiler_static='-non_shared' 7511 ;; 7512 7513 solaris*) 7514 lt_prog_compiler_pic='-KPIC' 7515 lt_prog_compiler_static='-Bstatic' 7516 case $cc_basename in 7517 f77* | f90* | f95*) 7518 lt_prog_compiler_wl='-Qoption ld ';; 7519 *) 7520 lt_prog_compiler_wl='-Wl,';; 7521 esac 7522 ;; 7523 7524 sunos4*) 7525 lt_prog_compiler_wl='-Qoption ld ' 7526 lt_prog_compiler_pic='-PIC' 7527 lt_prog_compiler_static='-Bstatic' 7528 ;; 7529 7530 sysv4 | sysv4.2uw2* | sysv4.3*) 7531 lt_prog_compiler_wl='-Wl,' 7532 lt_prog_compiler_pic='-KPIC' 7533 lt_prog_compiler_static='-Bstatic' 7534 ;; 7535 7536 sysv4*MP*) 7537 if test -d /usr/nec ;then 7538 lt_prog_compiler_pic='-Kconform_pic' 7539 lt_prog_compiler_static='-Bstatic' 7540 fi 7541 ;; 7542 7543 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7544 lt_prog_compiler_wl='-Wl,' 7545 lt_prog_compiler_pic='-KPIC' 7546 lt_prog_compiler_static='-Bstatic' 7547 ;; 7548 7549 unicos*) 7550 lt_prog_compiler_wl='-Wl,' 7551 lt_prog_compiler_can_build_shared=no 7552 ;; 7553 7554 uts4*) 7555 lt_prog_compiler_pic='-pic' 7556 lt_prog_compiler_static='-Bstatic' 7557 ;; 7558 7559 *) 7560 lt_prog_compiler_can_build_shared=no 7561 ;; 7562 esac 7563 fi 7564 7565{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7566echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7567 7568# 7569# Check to make sure the PIC flag actually works. 7570# 7571if test -n "$lt_prog_compiler_pic"; then 7572 7573{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7574echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7575if test "${lt_prog_compiler_pic_works+set}" = set; then 7576 echo $ECHO_N "(cached) $ECHO_C" >&6 7577else 7578 lt_prog_compiler_pic_works=no 7579 ac_outfile=conftest.$ac_objext 7580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7581 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7582 # Insert the option either (1) after the last *FLAGS variable, or 7583 # (2) before a word containing "conftest.", or (3) at the end. 7584 # Note that $ac_compile itself does not contain backslashes and begins 7585 # with a dollar sign (not a hyphen), so the echo should work correctly. 7586 # The option is referenced via a variable to avoid confusing sed. 7587 lt_compile=`echo "$ac_compile" | $SED \ 7588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7590 -e 's:$: $lt_compiler_flag:'` 7591 (eval echo "\"\$as_me:7591: $lt_compile\"" >&5) 7592 (eval "$lt_compile" 2>conftest.err) 7593 ac_status=$? 7594 cat conftest.err >&5 7595 echo "$as_me:7595: \$? = $ac_status" >&5 7596 if (exit $ac_status) && test -s "$ac_outfile"; then 7597 # The compiler can only warn and ignore the option if not recognized 7598 # So say no if there are warnings other than the usual output. 7599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7602 lt_prog_compiler_pic_works=yes 7603 fi 7604 fi 7605 $rm conftest* 7606 7607fi 7608{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7609echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7610 7611if test x"$lt_prog_compiler_pic_works" = xyes; then 7612 case $lt_prog_compiler_pic in 7613 "" | " "*) ;; 7614 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7615 esac 7616else 7617 lt_prog_compiler_pic= 7618 lt_prog_compiler_can_build_shared=no 7619fi 7620 7621fi 7622case $host_os in 7623 # For platforms which do not support PIC, -DPIC is meaningless: 7624 *djgpp*) 7625 lt_prog_compiler_pic= 7626 ;; 7627 *) 7628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7629 ;; 7630esac 7631 7632# 7633# Check to make sure the static flag actually works. 7634# 7635wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7636{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7637echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7638if test "${lt_prog_compiler_static_works+set}" = set; then 7639 echo $ECHO_N "(cached) $ECHO_C" >&6 7640else 7641 lt_prog_compiler_static_works=no 7642 save_LDFLAGS="$LDFLAGS" 7643 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7644 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7646 # The linker can only warn and ignore the option if not recognized 7647 # So say no if there are warnings 7648 if test -s conftest.err; then 7649 # Append any errors to the config.log. 7650 cat conftest.err 1>&5 7651 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7653 if diff conftest.exp conftest.er2 >/dev/null; then 7654 lt_prog_compiler_static_works=yes 7655 fi 7656 else 7657 lt_prog_compiler_static_works=yes 7658 fi 7659 fi 7660 $rm conftest* 7661 LDFLAGS="$save_LDFLAGS" 7662 7663fi 7664{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7665echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7666 7667if test x"$lt_prog_compiler_static_works" = xyes; then 7668 : 7669else 7670 lt_prog_compiler_static= 7671fi 7672 7673 7674{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7675echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7676if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7677 echo $ECHO_N "(cached) $ECHO_C" >&6 7678else 7679 lt_cv_prog_compiler_c_o=no 7680 $rm -r conftest 2>/dev/null 7681 mkdir conftest 7682 cd conftest 7683 mkdir out 7684 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7685 7686 lt_compiler_flag="-o out/conftest2.$ac_objext" 7687 # Insert the option either (1) after the last *FLAGS variable, or 7688 # (2) before a word containing "conftest.", or (3) at the end. 7689 # Note that $ac_compile itself does not contain backslashes and begins 7690 # with a dollar sign (not a hyphen), so the echo should work correctly. 7691 lt_compile=`echo "$ac_compile" | $SED \ 7692 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7693 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7694 -e 's:$: $lt_compiler_flag:'` 7695 (eval echo "\"\$as_me:7695: $lt_compile\"" >&5) 7696 (eval "$lt_compile" 2>out/conftest.err) 7697 ac_status=$? 7698 cat out/conftest.err >&5 7699 echo "$as_me:7699: \$? = $ac_status" >&5 7700 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7701 then 7702 # The compiler can only warn and ignore the option if not recognized 7703 # So say no if there are warnings 7704 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7705 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7706 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7707 lt_cv_prog_compiler_c_o=yes 7708 fi 7709 fi 7710 chmod u+w . 2>&5 7711 $rm conftest* 7712 # SGI C++ compiler will create directory out/ii_files/ for 7713 # template instantiation 7714 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7715 $rm out/* && rmdir out 7716 cd .. 7717 rmdir conftest 7718 $rm conftest* 7719 7720fi 7721{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7722echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7723 7724 7725hard_links="nottested" 7726if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7727 # do not overwrite the value of need_locks provided by the user 7728 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7729echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7730 hard_links=yes 7731 $rm conftest* 7732 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7733 touch conftest.a 7734 ln conftest.a conftest.b 2>&5 || hard_links=no 7735 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7736 { echo "$as_me:$LINENO: result: $hard_links" >&5 7737echo "${ECHO_T}$hard_links" >&6; } 7738 if test "$hard_links" = no; then 7739 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7740echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7741 need_locks=warn 7742 fi 7743else 7744 need_locks=no 7745fi 7746 7747{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7748echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7749 7750 runpath_var= 7751 allow_undefined_flag= 7752 enable_shared_with_static_runtimes=no 7753 archive_cmds= 7754 archive_expsym_cmds= 7755 old_archive_From_new_cmds= 7756 old_archive_from_expsyms_cmds= 7757 export_dynamic_flag_spec= 7758 whole_archive_flag_spec= 7759 thread_safe_flag_spec= 7760 hardcode_libdir_flag_spec= 7761 hardcode_libdir_flag_spec_ld= 7762 hardcode_libdir_separator= 7763 hardcode_direct=no 7764 hardcode_minus_L=no 7765 hardcode_shlibpath_var=unsupported 7766 link_all_deplibs=unknown 7767 hardcode_automatic=no 7768 module_cmds= 7769 module_expsym_cmds= 7770 always_export_symbols=no 7771 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7772 # include_expsyms should be a list of space-separated symbols to be *always* 7773 # included in the symbol list 7774 include_expsyms= 7775 # exclude_expsyms can be an extended regexp of symbols to exclude 7776 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7777 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7778 # as well as any symbol that contains `d'. 7779 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7780 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7781 # platforms (ab)use it in PIC code, but their linkers get confused if 7782 # the symbol is explicitly referenced. Since portable code cannot 7783 # rely on this symbol name, it's probably fine to never include it in 7784 # preloaded symbol tables. 7785 extract_expsyms_cmds= 7786 # Just being paranoid about ensuring that cc_basename is set. 7787 for cc_temp in $compiler""; do 7788 case $cc_temp in 7789 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7790 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7791 \-*) ;; 7792 *) break;; 7793 esac 7794done 7795cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7796 7797 case $host_os in 7798 cygwin* | mingw* | pw32*) 7799 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7800 # When not using gcc, we currently assume that we are using 7801 # Microsoft Visual C++. 7802 if test "$GCC" != yes; then 7803 with_gnu_ld=no 7804 fi 7805 ;; 7806 interix*) 7807 # we just hope/assume this is gcc and not c89 (= MSVC++) 7808 with_gnu_ld=yes 7809 ;; 7810 openbsd*) 7811 with_gnu_ld=no 7812 ;; 7813 esac 7814 7815 ld_shlibs=yes 7816 if test "$with_gnu_ld" = yes; then 7817 # If archive_cmds runs LD, not CC, wlarc should be empty 7818 wlarc='${wl}' 7819 7820 # Set some defaults for GNU ld with shared library support. These 7821 # are reset later if shared libraries are not supported. Putting them 7822 # here allows them to be overridden if necessary. 7823 runpath_var=LD_RUN_PATH 7824 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7825 export_dynamic_flag_spec='${wl}--export-dynamic' 7826 # ancient GNU ld didn't support --whole-archive et. al. 7827 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7828 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7829 else 7830 whole_archive_flag_spec= 7831 fi 7832 supports_anon_versioning=no 7833 case `$LD -v 2>/dev/null` in 7834 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7835 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7836 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7837 *\ 2.11.*) ;; # other 2.11 versions 7838 *) supports_anon_versioning=yes ;; 7839 esac 7840 7841 # See if GNU ld supports shared libraries. 7842 case $host_os in 7843 aix3* | aix4* | aix5*) 7844 # On AIX/PPC, the GNU linker is very broken 7845 if test "$host_cpu" != ia64; then 7846 ld_shlibs=no 7847 cat <<EOF 1>&2 7848 7849*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7850*** to be unable to reliably create shared libraries on AIX. 7851*** Therefore, libtool is disabling shared libraries support. If you 7852*** really care for shared libraries, you may want to modify your PATH 7853*** so that a non-GNU linker is found, and then restart. 7854 7855EOF 7856 fi 7857 ;; 7858 7859 amigaos*) 7860 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)' 7861 hardcode_libdir_flag_spec='-L$libdir' 7862 hardcode_minus_L=yes 7863 7864 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7865 # that the semantics of dynamic libraries on AmigaOS, at least up 7866 # to version 4, is to share data among multiple programs linked 7867 # with the same dynamic library. Since this doesn't match the 7868 # behavior of shared libraries on other platforms, we can't use 7869 # them. 7870 ld_shlibs=no 7871 ;; 7872 7873 beos*) 7874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7875 allow_undefined_flag=unsupported 7876 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7877 # support --undefined. This deserves some investigation. FIXME 7878 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7879 else 7880 ld_shlibs=no 7881 fi 7882 ;; 7883 7884 cygwin* | mingw* | pw32*) 7885 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7886 # as there is no search path for DLLs. 7887 hardcode_libdir_flag_spec='-L$libdir' 7888 allow_undefined_flag=unsupported 7889 always_export_symbols=no 7890 enable_shared_with_static_runtimes=yes 7891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7892 7893 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7894 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7895 # If the export-symbols file already is a .def file (1st line 7896 # is EXPORTS), use it as is; otherwise, prepend... 7897 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7898 cp $export_symbols $output_objdir/$soname.def; 7899 else 7900 echo EXPORTS > $output_objdir/$soname.def; 7901 cat $export_symbols >> $output_objdir/$soname.def; 7902 fi~ 7903 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7904 else 7905 ld_shlibs=no 7906 fi 7907 ;; 7908 7909 interix3*) 7910 hardcode_direct=no 7911 hardcode_shlibpath_var=no 7912 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7913 export_dynamic_flag_spec='${wl}-E' 7914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7915 # Instead, shared libraries are loaded at an image base (0x10000000 by 7916 # default) and relocated if they conflict, which is a slow very memory 7917 # consuming and fragmenting process. To avoid this, we pick a random, 7918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7919 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7921 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' 7922 ;; 7923 7924 linux* | k*bsd*-gnu) 7925 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7926 tmp_addflag= 7927 case $cc_basename,$host_cpu in 7928 pgcc*) # Portland Group C compiler 7929 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' 7930 tmp_addflag=' $pic_flag' 7931 ;; 7932 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7933 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' 7934 tmp_addflag=' $pic_flag -Mnomain' ;; 7935 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7936 tmp_addflag=' -i_dynamic' ;; 7937 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7938 tmp_addflag=' -i_dynamic -nofor_main' ;; 7939 ifc* | ifort*) # Intel Fortran compiler 7940 tmp_addflag=' -nofor_main' ;; 7941 esac 7942 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7943 7944 if test $supports_anon_versioning = yes; then 7945 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7947 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7948 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7949 fi 7950 link_all_deplibs=no 7951 else 7952 ld_shlibs=no 7953 fi 7954 ;; 7955 7956 netbsd* | netbsdelf*-gnu) 7957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7958 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7959 wlarc= 7960 else 7961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7962 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7963 fi 7964 ;; 7965 7966 solaris*) 7967 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7968 ld_shlibs=no 7969 cat <<EOF 1>&2 7970 7971*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7972*** create shared libraries on Solaris systems. Therefore, libtool 7973*** is disabling shared libraries support. We urge you to upgrade GNU 7974*** binutils to release 2.9.1 or newer. Another option is to modify 7975*** your PATH or compiler configuration so that the native linker is 7976*** used, and then restart. 7977 7978EOF 7979 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7982 else 7983 ld_shlibs=no 7984 fi 7985 ;; 7986 7987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7988 case `$LD -v 2>&1` in 7989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7990 ld_shlibs=no 7991 cat <<_LT_EOF 1>&2 7992 7993*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7994*** reliably create shared libraries on SCO systems. Therefore, libtool 7995*** is disabling shared libraries support. We urge you to upgrade GNU 7996*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7997*** your PATH or compiler configuration so that the native linker is 7998*** used, and then restart. 7999 8000_LT_EOF 8001 ;; 8002 *) 8003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8004 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8007 else 8008 ld_shlibs=no 8009 fi 8010 ;; 8011 esac 8012 ;; 8013 8014 sunos4*) 8015 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8016 wlarc= 8017 hardcode_direct=yes 8018 hardcode_shlibpath_var=no 8019 ;; 8020 8021 *) 8022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8024 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8025 else 8026 ld_shlibs=no 8027 fi 8028 ;; 8029 esac 8030 8031 if test "$ld_shlibs" = no; then 8032 runpath_var= 8033 hardcode_libdir_flag_spec= 8034 export_dynamic_flag_spec= 8035 whole_archive_flag_spec= 8036 fi 8037 else 8038 # PORTME fill in a description of your system's linker (not GNU ld) 8039 case $host_os in 8040 aix3*) 8041 allow_undefined_flag=unsupported 8042 always_export_symbols=yes 8043 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' 8044 # Note: this linker hardcodes the directories in LIBPATH if there 8045 # are no directories specified by -L. 8046 hardcode_minus_L=yes 8047 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8048 # Neither direct hardcoding nor static linking is supported with a 8049 # broken collect2. 8050 hardcode_direct=unsupported 8051 fi 8052 ;; 8053 8054 aix4* | aix5*) 8055 if test "$host_cpu" = ia64; then 8056 # On IA64, the linker does run time linking by default, so we don't 8057 # have to do anything special. 8058 aix_use_runtimelinking=no 8059 exp_sym_flag='-Bexport' 8060 no_entry_flag="" 8061 else 8062 # If we're using GNU nm, then we don't want the "-C" option. 8063 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8064 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8065 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' 8066 else 8067 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' 8068 fi 8069 aix_use_runtimelinking=no 8070 8071 # Test if we are trying to use run time linking or normal 8072 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8073 # need to do runtime linking. 8074 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8075 for ld_flag in $LDFLAGS; do 8076 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8077 aix_use_runtimelinking=yes 8078 break 8079 fi 8080 done 8081 ;; 8082 esac 8083 8084 exp_sym_flag='-bexport' 8085 no_entry_flag='-bnoentry' 8086 fi 8087 8088 # When large executables or shared objects are built, AIX ld can 8089 # have problems creating the table of contents. If linking a library 8090 # or program results in "error TOC overflow" add -mminimal-toc to 8091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8093 8094 archive_cmds='' 8095 hardcode_direct=yes 8096 hardcode_libdir_separator=':' 8097 link_all_deplibs=yes 8098 8099 if test "$GCC" = yes; then 8100 case $host_os in aix4.[012]|aix4.[012].*) 8101 # We only want to do this on AIX 4.2 and lower, the check 8102 # below for broken collect2 doesn't work under 4.3+ 8103 collect2name=`${CC} -print-prog-name=collect2` 8104 if test -f "$collect2name" && \ 8105 strings "$collect2name" | grep resolve_lib_name >/dev/null 8106 then 8107 # We have reworked collect2 8108 hardcode_direct=yes 8109 else 8110 # We have old collect2 8111 hardcode_direct=unsupported 8112 # It fails to find uninstalled libraries when the uninstalled 8113 # path is not listed in the libpath. Setting hardcode_minus_L 8114 # to unsupported forces relinking 8115 hardcode_minus_L=yes 8116 hardcode_libdir_flag_spec='-L$libdir' 8117 hardcode_libdir_separator= 8118 fi 8119 ;; 8120 esac 8121 shared_flag='-shared' 8122 if test "$aix_use_runtimelinking" = yes; then 8123 shared_flag="$shared_flag "'${wl}-G' 8124 fi 8125 else 8126 # not using gcc 8127 if test "$host_cpu" = ia64; then 8128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8129 # chokes on -Wl,-G. The following line is correct: 8130 shared_flag='-G' 8131 else 8132 if test "$aix_use_runtimelinking" = yes; then 8133 shared_flag='${wl}-G' 8134 else 8135 shared_flag='${wl}-bM:SRE' 8136 fi 8137 fi 8138 fi 8139 8140 # It seems that -bexpall does not export symbols beginning with 8141 # underscore (_), so it is better to generate a list of symbols to export. 8142 always_export_symbols=yes 8143 if test "$aix_use_runtimelinking" = yes; then 8144 # Warning - without using the other runtime loading flags (-brtl), 8145 # -berok will link without error, but may produce a broken library. 8146 allow_undefined_flag='-berok' 8147 # Determine the default libpath from the value encoded in an empty executable. 8148 cat >conftest.$ac_ext <<_ACEOF 8149/* confdefs.h. */ 8150_ACEOF 8151cat confdefs.h >>conftest.$ac_ext 8152cat >>conftest.$ac_ext <<_ACEOF 8153/* end confdefs.h. */ 8154 8155int 8156main () 8157{ 8158 8159 ; 8160 return 0; 8161} 8162_ACEOF 8163rm -f conftest.$ac_objext conftest$ac_exeext 8164if { (ac_try="$ac_link" 8165case "(($ac_try" in 8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8167 *) ac_try_echo=$ac_try;; 8168esac 8169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8170 (eval "$ac_link") 2>conftest.er1 8171 ac_status=$? 8172 grep -v '^ *+' conftest.er1 >conftest.err 8173 rm -f conftest.er1 8174 cat conftest.err >&5 8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8176 (exit $ac_status); } && 8177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8178 { (case "(($ac_try" in 8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8180 *) ac_try_echo=$ac_try;; 8181esac 8182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8183 (eval "$ac_try") 2>&5 8184 ac_status=$? 8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8186 (exit $ac_status); }; } && 8187 { ac_try='test -s conftest$ac_exeext' 8188 { (case "(($ac_try" in 8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8190 *) ac_try_echo=$ac_try;; 8191esac 8192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8193 (eval "$ac_try") 2>&5 8194 ac_status=$? 8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8196 (exit $ac_status); }; }; then 8197 8198aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8199}'` 8200# Check for a 64-bit object if we didn't find anything. 8201if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8202}'`; fi 8203else 8204 echo "$as_me: failed program was:" >&5 8205sed 's/^/| /' conftest.$ac_ext >&5 8206 8207 8208fi 8209 8210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8211 conftest$ac_exeext conftest.$ac_ext 8212if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8213 8214 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8215 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8216 else 8217 if test "$host_cpu" = ia64; then 8218 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8219 allow_undefined_flag="-z nodefs" 8220 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" 8221 else 8222 # Determine the default libpath from the value encoded in an empty executable. 8223 cat >conftest.$ac_ext <<_ACEOF 8224/* confdefs.h. */ 8225_ACEOF 8226cat confdefs.h >>conftest.$ac_ext 8227cat >>conftest.$ac_ext <<_ACEOF 8228/* end confdefs.h. */ 8229 8230int 8231main () 8232{ 8233 8234 ; 8235 return 0; 8236} 8237_ACEOF 8238rm -f conftest.$ac_objext conftest$ac_exeext 8239if { (ac_try="$ac_link" 8240case "(($ac_try" in 8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8242 *) ac_try_echo=$ac_try;; 8243esac 8244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8245 (eval "$ac_link") 2>conftest.er1 8246 ac_status=$? 8247 grep -v '^ *+' conftest.er1 >conftest.err 8248 rm -f conftest.er1 8249 cat conftest.err >&5 8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8251 (exit $ac_status); } && 8252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8253 { (case "(($ac_try" in 8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8255 *) ac_try_echo=$ac_try;; 8256esac 8257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8258 (eval "$ac_try") 2>&5 8259 ac_status=$? 8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 (exit $ac_status); }; } && 8262 { ac_try='test -s conftest$ac_exeext' 8263 { (case "(($ac_try" in 8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8265 *) ac_try_echo=$ac_try;; 8266esac 8267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8268 (eval "$ac_try") 2>&5 8269 ac_status=$? 8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8271 (exit $ac_status); }; }; then 8272 8273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8274}'` 8275# Check for a 64-bit object if we didn't find anything. 8276if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8277}'`; fi 8278else 8279 echo "$as_me: failed program was:" >&5 8280sed 's/^/| /' conftest.$ac_ext >&5 8281 8282 8283fi 8284 8285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8286 conftest$ac_exeext conftest.$ac_ext 8287if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8288 8289 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8290 # Warning - without using the other run time loading flags, 8291 # -berok will link without error, but may produce a broken library. 8292 no_undefined_flag=' ${wl}-bernotok' 8293 allow_undefined_flag=' ${wl}-berok' 8294 # Exported symbols can be pulled into shared objects from archives 8295 whole_archive_flag_spec='$convenience' 8296 archive_cmds_need_lc=yes 8297 # This is similar to how AIX traditionally builds its shared libraries. 8298 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' 8299 fi 8300 fi 8301 ;; 8302 8303 amigaos*) 8304 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)' 8305 hardcode_libdir_flag_spec='-L$libdir' 8306 hardcode_minus_L=yes 8307 # see comment about different semantics on the GNU ld section 8308 ld_shlibs=no 8309 ;; 8310 8311 bsdi[45]*) 8312 export_dynamic_flag_spec=-rdynamic 8313 ;; 8314 8315 cygwin* | mingw* | pw32*) 8316 # When not using gcc, we currently assume that we are using 8317 # Microsoft Visual C++. 8318 # hardcode_libdir_flag_spec is actually meaningless, as there is 8319 # no search path for DLLs. 8320 hardcode_libdir_flag_spec=' ' 8321 allow_undefined_flag=unsupported 8322 # Tell ltmain to make .lib files, not .a files. 8323 libext=lib 8324 # Tell ltmain to make .dll files, not .so files. 8325 shrext_cmds=".dll" 8326 # FIXME: Setting linknames here is a bad hack. 8327 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8328 # The linker will automatically build a .lib file if we build a DLL. 8329 old_archive_From_new_cmds='true' 8330 # FIXME: Should let the user specify the lib program. 8331 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8332 fix_srcfile_path='`cygpath -w "$srcfile"`' 8333 enable_shared_with_static_runtimes=yes 8334 ;; 8335 8336 darwin* | rhapsody*) 8337 case $host_os in 8338 rhapsody* | darwin1.[012]) 8339 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8340 ;; 8341 *) # Darwin 1.3 on 8342 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8343 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8344 else 8345 case ${MACOSX_DEPLOYMENT_TARGET} in 8346 10.[012]) 8347 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8348 ;; 8349 10.*) 8350 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8351 ;; 8352 esac 8353 fi 8354 ;; 8355 esac 8356 archive_cmds_need_lc=no 8357 hardcode_direct=no 8358 hardcode_automatic=yes 8359 hardcode_shlibpath_var=unsupported 8360 whole_archive_flag_spec='' 8361 link_all_deplibs=yes 8362 if test "$GCC" = yes ; then 8363 output_verbose_link_cmd='echo' 8364 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8365 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8366 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8367 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8368 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8369 else 8370 case $cc_basename in 8371 xlc*) 8372 output_verbose_link_cmd='echo' 8373 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8374 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8375 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8376 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8377 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8378 ;; 8379 *) 8380 ld_shlibs=no 8381 ;; 8382 esac 8383 fi 8384 ;; 8385 8386 dgux*) 8387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8388 hardcode_libdir_flag_spec='-L$libdir' 8389 hardcode_shlibpath_var=no 8390 ;; 8391 8392 freebsd1*) 8393 ld_shlibs=no 8394 ;; 8395 8396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8397 # support. Future versions do this automatically, but an explicit c++rt0.o 8398 # does not break anything, and helps significantly (at the cost of a little 8399 # extra space). 8400 freebsd2.2*) 8401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8402 hardcode_libdir_flag_spec='-R$libdir' 8403 hardcode_direct=yes 8404 hardcode_shlibpath_var=no 8405 ;; 8406 8407 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8408 freebsd2*) 8409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8410 hardcode_direct=yes 8411 hardcode_minus_L=yes 8412 hardcode_shlibpath_var=no 8413 ;; 8414 8415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8416 freebsd* | dragonfly*) 8417 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8418 hardcode_libdir_flag_spec='-R$libdir' 8419 hardcode_direct=yes 8420 hardcode_shlibpath_var=no 8421 ;; 8422 8423 hpux9*) 8424 if test "$GCC" = yes; then 8425 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' 8426 else 8427 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' 8428 fi 8429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8430 hardcode_libdir_separator=: 8431 hardcode_direct=yes 8432 8433 # hardcode_minus_L: Not really in the search PATH, 8434 # but as the default location of the library. 8435 hardcode_minus_L=yes 8436 export_dynamic_flag_spec='${wl}-E' 8437 ;; 8438 8439 hpux10*) 8440 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8441 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8442 else 8443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8444 fi 8445 if test "$with_gnu_ld" = no; then 8446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8447 hardcode_libdir_separator=: 8448 8449 hardcode_direct=yes 8450 export_dynamic_flag_spec='${wl}-E' 8451 8452 # hardcode_minus_L: Not really in the search PATH, 8453 # but as the default location of the library. 8454 hardcode_minus_L=yes 8455 fi 8456 ;; 8457 8458 hpux11*) 8459 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8460 case $host_cpu in 8461 hppa*64*) 8462 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8463 ;; 8464 ia64*) 8465 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8466 ;; 8467 *) 8468 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8469 ;; 8470 esac 8471 else 8472 case $host_cpu in 8473 hppa*64*) 8474 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8475 ;; 8476 ia64*) 8477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8478 ;; 8479 *) 8480 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8481 ;; 8482 esac 8483 fi 8484 if test "$with_gnu_ld" = no; then 8485 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8486 hardcode_libdir_separator=: 8487 8488 case $host_cpu in 8489 hppa*64*|ia64*) 8490 hardcode_libdir_flag_spec_ld='+b $libdir' 8491 hardcode_direct=no 8492 hardcode_shlibpath_var=no 8493 ;; 8494 *) 8495 hardcode_direct=yes 8496 export_dynamic_flag_spec='${wl}-E' 8497 8498 # hardcode_minus_L: Not really in the search PATH, 8499 # but as the default location of the library. 8500 hardcode_minus_L=yes 8501 ;; 8502 esac 8503 fi 8504 ;; 8505 8506 irix5* | irix6* | nonstopux*) 8507 if test "$GCC" = yes; then 8508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8509 else 8510 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8511 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8512 fi 8513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8514 hardcode_libdir_separator=: 8515 link_all_deplibs=yes 8516 ;; 8517 8518 netbsd* | netbsdelf*-gnu) 8519 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8521 else 8522 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8523 fi 8524 hardcode_libdir_flag_spec='-R$libdir' 8525 hardcode_direct=yes 8526 hardcode_shlibpath_var=no 8527 ;; 8528 8529 newsos6) 8530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8531 hardcode_direct=yes 8532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8533 hardcode_libdir_separator=: 8534 hardcode_shlibpath_var=no 8535 ;; 8536 8537 openbsd*) 8538 hardcode_direct=yes 8539 hardcode_shlibpath_var=no 8540 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8542 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8544 export_dynamic_flag_spec='${wl}-E' 8545 else 8546 case $host_os in 8547 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8549 hardcode_libdir_flag_spec='-R$libdir' 8550 ;; 8551 *) 8552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8554 ;; 8555 esac 8556 fi 8557 ;; 8558 8559 os2*) 8560 hardcode_libdir_flag_spec='-L$libdir' 8561 hardcode_minus_L=yes 8562 allow_undefined_flag=unsupported 8563 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' 8564 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8565 ;; 8566 8567 osf3*) 8568 if test "$GCC" = yes; then 8569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8570 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8571 else 8572 allow_undefined_flag=' -expect_unresolved \*' 8573 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8574 fi 8575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8576 hardcode_libdir_separator=: 8577 ;; 8578 8579 osf4* | osf5*) # as osf3* with the addition of -msym flag 8580 if test "$GCC" = yes; then 8581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8582 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8584 else 8585 allow_undefined_flag=' -expect_unresolved \*' 8586 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8587 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8588 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 8589 8590 # Both c and cxx compiler support -rpath directly 8591 hardcode_libdir_flag_spec='-rpath $libdir' 8592 fi 8593 hardcode_libdir_separator=: 8594 ;; 8595 8596 solaris*) 8597 no_undefined_flag=' -z text' 8598 if test "$GCC" = yes; then 8599 wlarc='${wl}' 8600 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8601 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8602 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8603 else 8604 wlarc='' 8605 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8606 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8608 fi 8609 hardcode_libdir_flag_spec='-R$libdir' 8610 hardcode_shlibpath_var=no 8611 case $host_os in 8612 solaris2.[0-5] | solaris2.[0-5].*) ;; 8613 *) 8614 # The compiler driver will combine linker options so we 8615 # cannot just pass the convience library names through 8616 # without $wl, iff we do not link with $LD. 8617 # Luckily, gcc supports the same syntax we need for Sun Studio. 8618 # Supported since Solaris 2.6 (maybe 2.5.1?) 8619 case $wlarc in 8620 '') 8621 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8622 *) 8623 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8624 esac ;; 8625 esac 8626 link_all_deplibs=yes 8627 ;; 8628 8629 sunos4*) 8630 if test "x$host_vendor" = xsequent; then 8631 # Use $CC to link under sequent, because it throws in some extra .o 8632 # files that make .init and .fini sections work. 8633 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8634 else 8635 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8636 fi 8637 hardcode_libdir_flag_spec='-L$libdir' 8638 hardcode_direct=yes 8639 hardcode_minus_L=yes 8640 hardcode_shlibpath_var=no 8641 ;; 8642 8643 sysv4) 8644 case $host_vendor in 8645 sni) 8646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8647 hardcode_direct=yes # is this really true??? 8648 ;; 8649 siemens) 8650 ## LD is ld it makes a PLAMLIB 8651 ## CC just makes a GrossModule. 8652 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8653 reload_cmds='$CC -r -o $output$reload_objs' 8654 hardcode_direct=no 8655 ;; 8656 motorola) 8657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8658 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8659 ;; 8660 esac 8661 runpath_var='LD_RUN_PATH' 8662 hardcode_shlibpath_var=no 8663 ;; 8664 8665 sysv4.3*) 8666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8667 hardcode_shlibpath_var=no 8668 export_dynamic_flag_spec='-Bexport' 8669 ;; 8670 8671 sysv4*MP*) 8672 if test -d /usr/nec; then 8673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8674 hardcode_shlibpath_var=no 8675 runpath_var=LD_RUN_PATH 8676 hardcode_runpath_var=yes 8677 ld_shlibs=yes 8678 fi 8679 ;; 8680 8681 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8682 no_undefined_flag='${wl}-z,text' 8683 archive_cmds_need_lc=no 8684 hardcode_shlibpath_var=no 8685 runpath_var='LD_RUN_PATH' 8686 8687 if test "$GCC" = yes; then 8688 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8689 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8690 else 8691 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8692 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8693 fi 8694 ;; 8695 8696 sysv5* | sco3.2v5* | sco5v6*) 8697 # Note: We can NOT use -z defs as we might desire, because we do not 8698 # link with -lc, and that would cause any symbols used from libc to 8699 # always be unresolved, which means just about no library would 8700 # ever link correctly. If we're not using GNU ld we use -z text 8701 # though, which does catch some bad symbols but isn't as heavy-handed 8702 # as -z defs. 8703 no_undefined_flag='${wl}-z,text' 8704 allow_undefined_flag='${wl}-z,nodefs' 8705 archive_cmds_need_lc=no 8706 hardcode_shlibpath_var=no 8707 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8708 hardcode_libdir_separator=':' 8709 link_all_deplibs=yes 8710 export_dynamic_flag_spec='${wl}-Bexport' 8711 runpath_var='LD_RUN_PATH' 8712 8713 if test "$GCC" = yes; then 8714 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8715 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8716 else 8717 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8718 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8719 fi 8720 ;; 8721 8722 uts4*) 8723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8724 hardcode_libdir_flag_spec='-L$libdir' 8725 hardcode_shlibpath_var=no 8726 ;; 8727 8728 *) 8729 ld_shlibs=no 8730 ;; 8731 esac 8732 fi 8733 8734{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8735echo "${ECHO_T}$ld_shlibs" >&6; } 8736test "$ld_shlibs" = no && can_build_shared=no 8737 8738# 8739# Do we need to explicitly link libc? 8740# 8741case "x$archive_cmds_need_lc" in 8742x|xyes) 8743 # Assume -lc should be added 8744 archive_cmds_need_lc=yes 8745 8746 if test "$enable_shared" = yes && test "$GCC" = yes; then 8747 case $archive_cmds in 8748 *'~'*) 8749 # FIXME: we may have to deal with multi-command sequences. 8750 ;; 8751 '$CC '*) 8752 # Test whether the compiler implicitly links with -lc since on some 8753 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8754 # to ld, don't add -lc before -lgcc. 8755 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8756echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8757 $rm conftest* 8758 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8759 8760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8761 (eval $ac_compile) 2>&5 8762 ac_status=$? 8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8764 (exit $ac_status); } 2>conftest.err; then 8765 soname=conftest 8766 lib=conftest 8767 libobjs=conftest.$ac_objext 8768 deplibs= 8769 wl=$lt_prog_compiler_wl 8770 pic_flag=$lt_prog_compiler_pic 8771 compiler_flags=-v 8772 linker_flags=-v 8773 verstring= 8774 output_objdir=. 8775 libname=conftest 8776 lt_save_allow_undefined_flag=$allow_undefined_flag 8777 allow_undefined_flag= 8778 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8779 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8780 ac_status=$? 8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8782 (exit $ac_status); } 8783 then 8784 archive_cmds_need_lc=no 8785 else 8786 archive_cmds_need_lc=yes 8787 fi 8788 allow_undefined_flag=$lt_save_allow_undefined_flag 8789 else 8790 cat conftest.err 1>&5 8791 fi 8792 $rm conftest* 8793 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8794echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8795 ;; 8796 esac 8797 fi 8798 ;; 8799esac 8800 8801{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8802echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8803library_names_spec= 8804libname_spec='lib$name' 8805soname_spec= 8806shrext_cmds=".so" 8807postinstall_cmds= 8808postuninstall_cmds= 8809finish_cmds= 8810finish_eval= 8811shlibpath_var= 8812shlibpath_overrides_runpath=unknown 8813version_type=none 8814dynamic_linker="$host_os ld.so" 8815sys_lib_dlsearch_path_spec="/lib /usr/lib" 8816if test "$GCC" = yes; then 8817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8818 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8819 # if the path contains ";" then we assume it to be the separator 8820 # otherwise default to the standard path separator (i.e. ":") - it is 8821 # assumed that no part of a normal pathname contains ";" but that should 8822 # okay in the real world where ";" in dirpaths is itself problematic. 8823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8824 else 8825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8826 fi 8827else 8828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8829fi 8830need_lib_prefix=unknown 8831hardcode_into_libs=no 8832 8833# when you set need_version to no, make sure it does not cause -set_version 8834# flags to be left without arguments 8835need_version=unknown 8836 8837case $host_os in 8838aix3*) 8839 version_type=linux 8840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8841 shlibpath_var=LIBPATH 8842 8843 # AIX 3 has no versioning support, so we append a major version to the name. 8844 soname_spec='${libname}${release}${shared_ext}$major' 8845 ;; 8846 8847aix4* | aix5*) 8848 version_type=linux 8849 need_lib_prefix=no 8850 need_version=no 8851 hardcode_into_libs=yes 8852 if test "$host_cpu" = ia64; then 8853 # AIX 5 supports IA64 8854 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8855 shlibpath_var=LD_LIBRARY_PATH 8856 else 8857 # With GCC up to 2.95.x, collect2 would create an import file 8858 # for dependence libraries. The import file would start with 8859 # the line `#! .'. This would cause the generated library to 8860 # depend on `.', always an invalid library. This was fixed in 8861 # development snapshots of GCC prior to 3.0. 8862 case $host_os in 8863 aix4 | aix4.[01] | aix4.[01].*) 8864 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8865 echo ' yes ' 8866 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8867 : 8868 else 8869 can_build_shared=no 8870 fi 8871 ;; 8872 esac 8873 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8874 # soname into executable. Probably we can add versioning support to 8875 # collect2, so additional links can be useful in future. 8876 if test "$aix_use_runtimelinking" = yes; then 8877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8878 # instead of lib<name>.a to let people know that these are not 8879 # typical AIX shared libraries. 8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8881 else 8882 # We preserve .a as extension for shared libraries through AIX4.2 8883 # and later when we are not doing run time linking. 8884 library_names_spec='${libname}${release}.a $libname.a' 8885 soname_spec='${libname}${release}${shared_ext}$major' 8886 fi 8887 shlibpath_var=LIBPATH 8888 fi 8889 ;; 8890 8891amigaos*) 8892 library_names_spec='$libname.ixlibrary $libname.a' 8893 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8894 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' 8895 ;; 8896 8897beos*) 8898 library_names_spec='${libname}${shared_ext}' 8899 dynamic_linker="$host_os ld.so" 8900 shlibpath_var=LIBRARY_PATH 8901 ;; 8902 8903bsdi[45]*) 8904 version_type=linux 8905 need_version=no 8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8907 soname_spec='${libname}${release}${shared_ext}$major' 8908 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8909 shlibpath_var=LD_LIBRARY_PATH 8910 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8911 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8912 # the default ld.so.conf also contains /usr/contrib/lib and 8913 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8914 # libtool to hard-code these into programs 8915 ;; 8916 8917cygwin* | mingw* | pw32*) 8918 version_type=windows 8919 shrext_cmds=".dll" 8920 need_version=no 8921 need_lib_prefix=no 8922 8923 case $GCC,$host_os in 8924 yes,cygwin* | yes,mingw* | yes,pw32*) 8925 library_names_spec='$libname.dll.a' 8926 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8927 postinstall_cmds='base_file=`basename \${file}`~ 8928 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8929 dldir=$destdir/`dirname \$dlpath`~ 8930 test -d \$dldir || mkdir -p \$dldir~ 8931 $install_prog $dir/$dlname \$dldir/$dlname~ 8932 chmod a+x \$dldir/$dlname' 8933 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8934 dlpath=$dir/\$dldll~ 8935 $rm \$dlpath' 8936 shlibpath_overrides_runpath=yes 8937 8938 case $host_os in 8939 cygwin*) 8940 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8941 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8942 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8943 ;; 8944 mingw*) 8945 # MinGW DLLs use traditional 'lib' prefix 8946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8947 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8948 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8949 # It is most probably a Windows format PATH printed by 8950 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8951 # path with ; separators, and with drive letters. We can handle the 8952 # drive letters (cygwin fileutils understands them), so leave them, 8953 # especially as we might pass files found there to a mingw objdump, 8954 # which wouldn't understand a cygwinified path. Ahh. 8955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8956 else 8957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8958 fi 8959 ;; 8960 pw32*) 8961 # pw32 DLLs use 'pw' prefix rather than 'lib' 8962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8963 ;; 8964 esac 8965 ;; 8966 8967 *) 8968 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8969 ;; 8970 esac 8971 dynamic_linker='Win32 ld.exe' 8972 # FIXME: first we should search . and the directory the executable is in 8973 shlibpath_var=PATH 8974 ;; 8975 8976darwin* | rhapsody*) 8977 dynamic_linker="$host_os dyld" 8978 version_type=darwin 8979 need_lib_prefix=no 8980 need_version=no 8981 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8982 soname_spec='${libname}${release}${major}$shared_ext' 8983 shlibpath_overrides_runpath=yes 8984 shlibpath_var=DYLD_LIBRARY_PATH 8985 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8986 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8987 if test "$GCC" = yes; then 8988 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8989 else 8990 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8991 fi 8992 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8993 ;; 8994 8995dgux*) 8996 version_type=linux 8997 need_lib_prefix=no 8998 need_version=no 8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9000 soname_spec='${libname}${release}${shared_ext}$major' 9001 shlibpath_var=LD_LIBRARY_PATH 9002 ;; 9003 9004freebsd1*) 9005 dynamic_linker=no 9006 ;; 9007 9008freebsd* | dragonfly*) 9009 # DragonFly does not have aout. When/if they implement a new 9010 # versioning mechanism, adjust this. 9011 if test -x /usr/bin/objformat; then 9012 objformat=`/usr/bin/objformat` 9013 else 9014 case $host_os in 9015 freebsd[123]*) objformat=aout ;; 9016 *) objformat=elf ;; 9017 esac 9018 fi 9019 version_type=freebsd-$objformat 9020 case $version_type in 9021 freebsd-elf*) 9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9023 need_version=no 9024 need_lib_prefix=no 9025 ;; 9026 freebsd-*) 9027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9028 need_version=yes 9029 ;; 9030 esac 9031 shlibpath_var=LD_LIBRARY_PATH 9032 case $host_os in 9033 freebsd2*) 9034 shlibpath_overrides_runpath=yes 9035 ;; 9036 freebsd3.[01]* | freebsdelf3.[01]*) 9037 shlibpath_overrides_runpath=yes 9038 hardcode_into_libs=yes 9039 ;; 9040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9042 shlibpath_overrides_runpath=no 9043 hardcode_into_libs=yes 9044 ;; 9045 freebsd*) # from 4.6 on 9046 shlibpath_overrides_runpath=yes 9047 hardcode_into_libs=yes 9048 ;; 9049 esac 9050 ;; 9051 9052gnu*) 9053 version_type=linux 9054 need_lib_prefix=no 9055 need_version=no 9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9057 soname_spec='${libname}${release}${shared_ext}$major' 9058 shlibpath_var=LD_LIBRARY_PATH 9059 hardcode_into_libs=yes 9060 ;; 9061 9062hpux9* | hpux10* | hpux11*) 9063 # Give a soname corresponding to the major version so that dld.sl refuses to 9064 # link against other versions. 9065 version_type=sunos 9066 need_lib_prefix=no 9067 need_version=no 9068 case $host_cpu in 9069 ia64*) 9070 shrext_cmds='.so' 9071 hardcode_into_libs=yes 9072 dynamic_linker="$host_os dld.so" 9073 shlibpath_var=LD_LIBRARY_PATH 9074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9076 soname_spec='${libname}${release}${shared_ext}$major' 9077 if test "X$HPUX_IA64_MODE" = X32; then 9078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9079 else 9080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9081 fi 9082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9083 ;; 9084 hppa*64*) 9085 shrext_cmds='.sl' 9086 hardcode_into_libs=yes 9087 dynamic_linker="$host_os dld.sl" 9088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9091 soname_spec='${libname}${release}${shared_ext}$major' 9092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9094 ;; 9095 *) 9096 shrext_cmds='.sl' 9097 dynamic_linker="$host_os dld.sl" 9098 shlibpath_var=SHLIB_PATH 9099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9101 soname_spec='${libname}${release}${shared_ext}$major' 9102 ;; 9103 esac 9104 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9105 postinstall_cmds='chmod 555 $lib' 9106 ;; 9107 9108interix3*) 9109 version_type=linux 9110 need_lib_prefix=no 9111 need_version=no 9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9113 soname_spec='${libname}${release}${shared_ext}$major' 9114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9115 shlibpath_var=LD_LIBRARY_PATH 9116 shlibpath_overrides_runpath=no 9117 hardcode_into_libs=yes 9118 ;; 9119 9120irix5* | irix6* | nonstopux*) 9121 case $host_os in 9122 nonstopux*) version_type=nonstopux ;; 9123 *) 9124 if test "$lt_cv_prog_gnu_ld" = yes; then 9125 version_type=linux 9126 else 9127 version_type=irix 9128 fi ;; 9129 esac 9130 need_lib_prefix=no 9131 need_version=no 9132 soname_spec='${libname}${release}${shared_ext}$major' 9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9134 case $host_os in 9135 irix5* | nonstopux*) 9136 libsuff= shlibsuff= 9137 ;; 9138 *) 9139 case $LD in # libtool.m4 will add one of these switches to LD 9140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9141 libsuff= shlibsuff= libmagic=32-bit;; 9142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9143 libsuff=32 shlibsuff=N32 libmagic=N32;; 9144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9145 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9146 *) libsuff= shlibsuff= libmagic=never-match;; 9147 esac 9148 ;; 9149 esac 9150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9151 shlibpath_overrides_runpath=no 9152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9154 hardcode_into_libs=yes 9155 ;; 9156 9157# No shared lib support for Linux oldld, aout, or coff. 9158linux*oldld* | linux*aout* | linux*coff*) 9159 dynamic_linker=no 9160 ;; 9161 9162# This must be Linux ELF. 9163linux* | k*bsd*-gnu) 9164 version_type=linux 9165 need_lib_prefix=no 9166 need_version=no 9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9168 soname_spec='${libname}${release}${shared_ext}$major' 9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9170 shlibpath_var=LD_LIBRARY_PATH 9171 shlibpath_overrides_runpath=no 9172 # This implies no fast_install, which is unacceptable. 9173 # Some rework will be needed to allow for fast_install 9174 # before this can be enabled. 9175 hardcode_into_libs=yes 9176 9177 # Append ld.so.conf contents to the search path 9178 if test -f /etc/ld.so.conf; then 9179 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9181 fi 9182 9183 # We used to test for /lib/ld.so.1 and disable shared libraries on 9184 # powerpc, because MkLinux only supported shared libraries with the 9185 # GNU dynamic linker. Since this was broken with cross compilers, 9186 # most powerpc-linux boxes support dynamic linking these days and 9187 # people can always --disable-shared, the test was removed, and we 9188 # assume the GNU/Linux dynamic linker is in use. 9189 dynamic_linker='GNU/Linux ld.so' 9190 ;; 9191 9192netbsdelf*-gnu) 9193 version_type=linux 9194 need_lib_prefix=no 9195 need_version=no 9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9197 soname_spec='${libname}${release}${shared_ext}$major' 9198 shlibpath_var=LD_LIBRARY_PATH 9199 shlibpath_overrides_runpath=no 9200 hardcode_into_libs=yes 9201 dynamic_linker='NetBSD ld.elf_so' 9202 ;; 9203 9204netbsd*) 9205 version_type=sunos 9206 need_lib_prefix=no 9207 need_version=no 9208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9211 dynamic_linker='NetBSD (a.out) ld.so' 9212 else 9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9214 soname_spec='${libname}${release}${shared_ext}$major' 9215 dynamic_linker='NetBSD ld.elf_so' 9216 fi 9217 shlibpath_var=LD_LIBRARY_PATH 9218 shlibpath_overrides_runpath=yes 9219 hardcode_into_libs=yes 9220 ;; 9221 9222newsos6) 9223 version_type=linux 9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9225 shlibpath_var=LD_LIBRARY_PATH 9226 shlibpath_overrides_runpath=yes 9227 ;; 9228 9229nto-qnx*) 9230 version_type=linux 9231 need_lib_prefix=no 9232 need_version=no 9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9234 soname_spec='${libname}${release}${shared_ext}$major' 9235 shlibpath_var=LD_LIBRARY_PATH 9236 shlibpath_overrides_runpath=yes 9237 ;; 9238 9239openbsd*) 9240 version_type=sunos 9241 sys_lib_dlsearch_path_spec="/usr/lib" 9242 need_lib_prefix=no 9243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9244 case $host_os in 9245 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9246 *) need_version=no ;; 9247 esac 9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9250 shlibpath_var=LD_LIBRARY_PATH 9251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9252 case $host_os in 9253 openbsd2.[89] | openbsd2.[89].*) 9254 shlibpath_overrides_runpath=no 9255 ;; 9256 *) 9257 shlibpath_overrides_runpath=yes 9258 ;; 9259 esac 9260 else 9261 shlibpath_overrides_runpath=yes 9262 fi 9263 ;; 9264 9265os2*) 9266 libname_spec='$name' 9267 shrext_cmds=".dll" 9268 need_lib_prefix=no 9269 library_names_spec='$libname${shared_ext} $libname.a' 9270 dynamic_linker='OS/2 ld.exe' 9271 shlibpath_var=LIBPATH 9272 ;; 9273 9274osf3* | osf4* | osf5*) 9275 version_type=osf 9276 need_lib_prefix=no 9277 need_version=no 9278 soname_spec='${libname}${release}${shared_ext}$major' 9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9280 shlibpath_var=LD_LIBRARY_PATH 9281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9283 ;; 9284 9285solaris*) 9286 version_type=linux 9287 need_lib_prefix=no 9288 need_version=no 9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9290 soname_spec='${libname}${release}${shared_ext}$major' 9291 shlibpath_var=LD_LIBRARY_PATH 9292 shlibpath_overrides_runpath=yes 9293 hardcode_into_libs=yes 9294 # ldd complains unless libraries are executable 9295 postinstall_cmds='chmod +x $lib' 9296 ;; 9297 9298sunos4*) 9299 version_type=sunos 9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9302 shlibpath_var=LD_LIBRARY_PATH 9303 shlibpath_overrides_runpath=yes 9304 if test "$with_gnu_ld" = yes; then 9305 need_lib_prefix=no 9306 fi 9307 need_version=yes 9308 ;; 9309 9310sysv4 | sysv4.3*) 9311 version_type=linux 9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9313 soname_spec='${libname}${release}${shared_ext}$major' 9314 shlibpath_var=LD_LIBRARY_PATH 9315 case $host_vendor in 9316 sni) 9317 shlibpath_overrides_runpath=no 9318 need_lib_prefix=no 9319 export_dynamic_flag_spec='${wl}-Blargedynsym' 9320 runpath_var=LD_RUN_PATH 9321 ;; 9322 siemens) 9323 need_lib_prefix=no 9324 ;; 9325 motorola) 9326 need_lib_prefix=no 9327 need_version=no 9328 shlibpath_overrides_runpath=no 9329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9330 ;; 9331 esac 9332 ;; 9333 9334sysv4*MP*) 9335 if test -d /usr/nec ;then 9336 version_type=linux 9337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9338 soname_spec='$libname${shared_ext}.$major' 9339 shlibpath_var=LD_LIBRARY_PATH 9340 fi 9341 ;; 9342 9343sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9344 version_type=freebsd-elf 9345 need_lib_prefix=no 9346 need_version=no 9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9348 soname_spec='${libname}${release}${shared_ext}$major' 9349 shlibpath_var=LD_LIBRARY_PATH 9350 hardcode_into_libs=yes 9351 if test "$with_gnu_ld" = yes; then 9352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9353 shlibpath_overrides_runpath=no 9354 else 9355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9356 shlibpath_overrides_runpath=yes 9357 case $host_os in 9358 sco3.2v5*) 9359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9360 ;; 9361 esac 9362 fi 9363 sys_lib_dlsearch_path_spec='/usr/lib' 9364 ;; 9365 9366uts4*) 9367 version_type=linux 9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9369 soname_spec='${libname}${release}${shared_ext}$major' 9370 shlibpath_var=LD_LIBRARY_PATH 9371 ;; 9372 9373*) 9374 dynamic_linker=no 9375 ;; 9376esac 9377{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9378echo "${ECHO_T}$dynamic_linker" >&6; } 9379test "$dynamic_linker" = no && can_build_shared=no 9380 9381variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9382if test "$GCC" = yes; then 9383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9384fi 9385 9386{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9387echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9388hardcode_action= 9389if test -n "$hardcode_libdir_flag_spec" || \ 9390 test -n "$runpath_var" || \ 9391 test "X$hardcode_automatic" = "Xyes" ; then 9392 9393 # We can hardcode non-existant directories. 9394 if test "$hardcode_direct" != no && 9395 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9396 # have to relink, otherwise we might link with an installed library 9397 # when we should be linking with a yet-to-be-installed one 9398 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9399 test "$hardcode_minus_L" != no; then 9400 # Linking always hardcodes the temporary library directory. 9401 hardcode_action=relink 9402 else 9403 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9404 hardcode_action=immediate 9405 fi 9406else 9407 # We cannot hardcode anything, or else we can only hardcode existing 9408 # directories. 9409 hardcode_action=unsupported 9410fi 9411{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9412echo "${ECHO_T}$hardcode_action" >&6; } 9413 9414if test "$hardcode_action" = relink; then 9415 # Fast installation is not supported 9416 enable_fast_install=no 9417elif test "$shlibpath_overrides_runpath" = yes || 9418 test "$enable_shared" = no; then 9419 # Fast installation is not necessary 9420 enable_fast_install=needless 9421fi 9422 9423striplib= 9424old_striplib= 9425{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9426echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9427if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9428 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9429 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9430 { echo "$as_me:$LINENO: result: yes" >&5 9431echo "${ECHO_T}yes" >&6; } 9432else 9433# FIXME - insert some real tests, host_os isn't really good enough 9434 case $host_os in 9435 darwin*) 9436 if test -n "$STRIP" ; then 9437 striplib="$STRIP -x" 9438 { echo "$as_me:$LINENO: result: yes" >&5 9439echo "${ECHO_T}yes" >&6; } 9440 else 9441 { echo "$as_me:$LINENO: result: no" >&5 9442echo "${ECHO_T}no" >&6; } 9443fi 9444 ;; 9445 *) 9446 { echo "$as_me:$LINENO: result: no" >&5 9447echo "${ECHO_T}no" >&6; } 9448 ;; 9449 esac 9450fi 9451 9452if test "x$enable_dlopen" != xyes; then 9453 enable_dlopen=unknown 9454 enable_dlopen_self=unknown 9455 enable_dlopen_self_static=unknown 9456else 9457 lt_cv_dlopen=no 9458 lt_cv_dlopen_libs= 9459 9460 case $host_os in 9461 beos*) 9462 lt_cv_dlopen="load_add_on" 9463 lt_cv_dlopen_libs= 9464 lt_cv_dlopen_self=yes 9465 ;; 9466 9467 mingw* | pw32*) 9468 lt_cv_dlopen="LoadLibrary" 9469 lt_cv_dlopen_libs= 9470 ;; 9471 9472 cygwin*) 9473 lt_cv_dlopen="dlopen" 9474 lt_cv_dlopen_libs= 9475 ;; 9476 9477 darwin*) 9478 # if libdl is installed we need to link against it 9479 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9480echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9481if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9482 echo $ECHO_N "(cached) $ECHO_C" >&6 9483else 9484 ac_check_lib_save_LIBS=$LIBS 9485LIBS="-ldl $LIBS" 9486cat >conftest.$ac_ext <<_ACEOF 9487/* confdefs.h. */ 9488_ACEOF 9489cat confdefs.h >>conftest.$ac_ext 9490cat >>conftest.$ac_ext <<_ACEOF 9491/* end confdefs.h. */ 9492 9493/* Override any GCC internal prototype to avoid an error. 9494 Use char because int might match the return type of a GCC 9495 builtin and then its argument prototype would still apply. */ 9496#ifdef __cplusplus 9497extern "C" 9498#endif 9499char dlopen (); 9500int 9501main () 9502{ 9503return dlopen (); 9504 ; 9505 return 0; 9506} 9507_ACEOF 9508rm -f conftest.$ac_objext conftest$ac_exeext 9509if { (ac_try="$ac_link" 9510case "(($ac_try" in 9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9512 *) ac_try_echo=$ac_try;; 9513esac 9514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9515 (eval "$ac_link") 2>conftest.er1 9516 ac_status=$? 9517 grep -v '^ *+' conftest.er1 >conftest.err 9518 rm -f conftest.er1 9519 cat conftest.err >&5 9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9521 (exit $ac_status); } && 9522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9523 { (case "(($ac_try" in 9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9525 *) ac_try_echo=$ac_try;; 9526esac 9527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9528 (eval "$ac_try") 2>&5 9529 ac_status=$? 9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9531 (exit $ac_status); }; } && 9532 { ac_try='test -s conftest$ac_exeext' 9533 { (case "(($ac_try" in 9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9535 *) ac_try_echo=$ac_try;; 9536esac 9537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9538 (eval "$ac_try") 2>&5 9539 ac_status=$? 9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9541 (exit $ac_status); }; }; then 9542 ac_cv_lib_dl_dlopen=yes 9543else 9544 echo "$as_me: failed program was:" >&5 9545sed 's/^/| /' conftest.$ac_ext >&5 9546 9547 ac_cv_lib_dl_dlopen=no 9548fi 9549 9550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9551 conftest$ac_exeext conftest.$ac_ext 9552LIBS=$ac_check_lib_save_LIBS 9553fi 9554{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9555echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9556if test $ac_cv_lib_dl_dlopen = yes; then 9557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9558else 9559 9560 lt_cv_dlopen="dyld" 9561 lt_cv_dlopen_libs= 9562 lt_cv_dlopen_self=yes 9563 9564fi 9565 9566 ;; 9567 9568 *) 9569 { echo "$as_me:$LINENO: checking for shl_load" >&5 9570echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9571if test "${ac_cv_func_shl_load+set}" = set; then 9572 echo $ECHO_N "(cached) $ECHO_C" >&6 9573else 9574 cat >conftest.$ac_ext <<_ACEOF 9575/* confdefs.h. */ 9576_ACEOF 9577cat confdefs.h >>conftest.$ac_ext 9578cat >>conftest.$ac_ext <<_ACEOF 9579/* end confdefs.h. */ 9580/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9581 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9582#define shl_load innocuous_shl_load 9583 9584/* System header to define __stub macros and hopefully few prototypes, 9585 which can conflict with char shl_load (); below. 9586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9587 <limits.h> exists even on freestanding compilers. */ 9588 9589#ifdef __STDC__ 9590# include <limits.h> 9591#else 9592# include <assert.h> 9593#endif 9594 9595#undef shl_load 9596 9597/* Override any GCC internal prototype to avoid an error. 9598 Use char because int might match the return type of a GCC 9599 builtin and then its argument prototype would still apply. */ 9600#ifdef __cplusplus 9601extern "C" 9602#endif 9603char shl_load (); 9604/* The GNU C library defines this for functions which it implements 9605 to always fail with ENOSYS. Some functions are actually named 9606 something starting with __ and the normal name is an alias. */ 9607#if defined __stub_shl_load || defined __stub___shl_load 9608choke me 9609#endif 9610 9611int 9612main () 9613{ 9614return shl_load (); 9615 ; 9616 return 0; 9617} 9618_ACEOF 9619rm -f conftest.$ac_objext conftest$ac_exeext 9620if { (ac_try="$ac_link" 9621case "(($ac_try" in 9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9623 *) ac_try_echo=$ac_try;; 9624esac 9625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9626 (eval "$ac_link") 2>conftest.er1 9627 ac_status=$? 9628 grep -v '^ *+' conftest.er1 >conftest.err 9629 rm -f conftest.er1 9630 cat conftest.err >&5 9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9632 (exit $ac_status); } && 9633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9634 { (case "(($ac_try" in 9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9636 *) ac_try_echo=$ac_try;; 9637esac 9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9639 (eval "$ac_try") 2>&5 9640 ac_status=$? 9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9642 (exit $ac_status); }; } && 9643 { ac_try='test -s conftest$ac_exeext' 9644 { (case "(($ac_try" in 9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9646 *) ac_try_echo=$ac_try;; 9647esac 9648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9649 (eval "$ac_try") 2>&5 9650 ac_status=$? 9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9652 (exit $ac_status); }; }; then 9653 ac_cv_func_shl_load=yes 9654else 9655 echo "$as_me: failed program was:" >&5 9656sed 's/^/| /' conftest.$ac_ext >&5 9657 9658 ac_cv_func_shl_load=no 9659fi 9660 9661rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9662 conftest$ac_exeext conftest.$ac_ext 9663fi 9664{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9665echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9666if test $ac_cv_func_shl_load = yes; then 9667 lt_cv_dlopen="shl_load" 9668else 9669 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9670echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9671if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9672 echo $ECHO_N "(cached) $ECHO_C" >&6 9673else 9674 ac_check_lib_save_LIBS=$LIBS 9675LIBS="-ldld $LIBS" 9676cat >conftest.$ac_ext <<_ACEOF 9677/* confdefs.h. */ 9678_ACEOF 9679cat confdefs.h >>conftest.$ac_ext 9680cat >>conftest.$ac_ext <<_ACEOF 9681/* end confdefs.h. */ 9682 9683/* Override any GCC internal prototype to avoid an error. 9684 Use char because int might match the return type of a GCC 9685 builtin and then its argument prototype would still apply. */ 9686#ifdef __cplusplus 9687extern "C" 9688#endif 9689char shl_load (); 9690int 9691main () 9692{ 9693return shl_load (); 9694 ; 9695 return 0; 9696} 9697_ACEOF 9698rm -f conftest.$ac_objext conftest$ac_exeext 9699if { (ac_try="$ac_link" 9700case "(($ac_try" in 9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9702 *) ac_try_echo=$ac_try;; 9703esac 9704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9705 (eval "$ac_link") 2>conftest.er1 9706 ac_status=$? 9707 grep -v '^ *+' conftest.er1 >conftest.err 9708 rm -f conftest.er1 9709 cat conftest.err >&5 9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9711 (exit $ac_status); } && 9712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9713 { (case "(($ac_try" in 9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9715 *) ac_try_echo=$ac_try;; 9716esac 9717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9718 (eval "$ac_try") 2>&5 9719 ac_status=$? 9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9721 (exit $ac_status); }; } && 9722 { ac_try='test -s conftest$ac_exeext' 9723 { (case "(($ac_try" in 9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9725 *) ac_try_echo=$ac_try;; 9726esac 9727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9728 (eval "$ac_try") 2>&5 9729 ac_status=$? 9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9731 (exit $ac_status); }; }; then 9732 ac_cv_lib_dld_shl_load=yes 9733else 9734 echo "$as_me: failed program was:" >&5 9735sed 's/^/| /' conftest.$ac_ext >&5 9736 9737 ac_cv_lib_dld_shl_load=no 9738fi 9739 9740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9741 conftest$ac_exeext conftest.$ac_ext 9742LIBS=$ac_check_lib_save_LIBS 9743fi 9744{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9745echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9746if test $ac_cv_lib_dld_shl_load = yes; then 9747 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9748else 9749 { echo "$as_me:$LINENO: checking for dlopen" >&5 9750echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9751if test "${ac_cv_func_dlopen+set}" = set; then 9752 echo $ECHO_N "(cached) $ECHO_C" >&6 9753else 9754 cat >conftest.$ac_ext <<_ACEOF 9755/* confdefs.h. */ 9756_ACEOF 9757cat confdefs.h >>conftest.$ac_ext 9758cat >>conftest.$ac_ext <<_ACEOF 9759/* end confdefs.h. */ 9760/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9761 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9762#define dlopen innocuous_dlopen 9763 9764/* System header to define __stub macros and hopefully few prototypes, 9765 which can conflict with char dlopen (); below. 9766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9767 <limits.h> exists even on freestanding compilers. */ 9768 9769#ifdef __STDC__ 9770# include <limits.h> 9771#else 9772# include <assert.h> 9773#endif 9774 9775#undef dlopen 9776 9777/* Override any GCC internal prototype to avoid an error. 9778 Use char because int might match the return type of a GCC 9779 builtin and then its argument prototype would still apply. */ 9780#ifdef __cplusplus 9781extern "C" 9782#endif 9783char dlopen (); 9784/* The GNU C library defines this for functions which it implements 9785 to always fail with ENOSYS. Some functions are actually named 9786 something starting with __ and the normal name is an alias. */ 9787#if defined __stub_dlopen || defined __stub___dlopen 9788choke me 9789#endif 9790 9791int 9792main () 9793{ 9794return dlopen (); 9795 ; 9796 return 0; 9797} 9798_ACEOF 9799rm -f conftest.$ac_objext conftest$ac_exeext 9800if { (ac_try="$ac_link" 9801case "(($ac_try" in 9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9803 *) ac_try_echo=$ac_try;; 9804esac 9805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9806 (eval "$ac_link") 2>conftest.er1 9807 ac_status=$? 9808 grep -v '^ *+' conftest.er1 >conftest.err 9809 rm -f conftest.er1 9810 cat conftest.err >&5 9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9812 (exit $ac_status); } && 9813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9814 { (case "(($ac_try" in 9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9816 *) ac_try_echo=$ac_try;; 9817esac 9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9819 (eval "$ac_try") 2>&5 9820 ac_status=$? 9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9822 (exit $ac_status); }; } && 9823 { ac_try='test -s conftest$ac_exeext' 9824 { (case "(($ac_try" in 9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9826 *) ac_try_echo=$ac_try;; 9827esac 9828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9829 (eval "$ac_try") 2>&5 9830 ac_status=$? 9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9832 (exit $ac_status); }; }; then 9833 ac_cv_func_dlopen=yes 9834else 9835 echo "$as_me: failed program was:" >&5 9836sed 's/^/| /' conftest.$ac_ext >&5 9837 9838 ac_cv_func_dlopen=no 9839fi 9840 9841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9842 conftest$ac_exeext conftest.$ac_ext 9843fi 9844{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9845echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9846if test $ac_cv_func_dlopen = yes; then 9847 lt_cv_dlopen="dlopen" 9848else 9849 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9850echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9851if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9852 echo $ECHO_N "(cached) $ECHO_C" >&6 9853else 9854 ac_check_lib_save_LIBS=$LIBS 9855LIBS="-ldl $LIBS" 9856cat >conftest.$ac_ext <<_ACEOF 9857/* confdefs.h. */ 9858_ACEOF 9859cat confdefs.h >>conftest.$ac_ext 9860cat >>conftest.$ac_ext <<_ACEOF 9861/* end confdefs.h. */ 9862 9863/* Override any GCC internal prototype to avoid an error. 9864 Use char because int might match the return type of a GCC 9865 builtin and then its argument prototype would still apply. */ 9866#ifdef __cplusplus 9867extern "C" 9868#endif 9869char dlopen (); 9870int 9871main () 9872{ 9873return dlopen (); 9874 ; 9875 return 0; 9876} 9877_ACEOF 9878rm -f conftest.$ac_objext conftest$ac_exeext 9879if { (ac_try="$ac_link" 9880case "(($ac_try" in 9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9882 *) ac_try_echo=$ac_try;; 9883esac 9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9885 (eval "$ac_link") 2>conftest.er1 9886 ac_status=$? 9887 grep -v '^ *+' conftest.er1 >conftest.err 9888 rm -f conftest.er1 9889 cat conftest.err >&5 9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9891 (exit $ac_status); } && 9892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9893 { (case "(($ac_try" in 9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9895 *) ac_try_echo=$ac_try;; 9896esac 9897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9898 (eval "$ac_try") 2>&5 9899 ac_status=$? 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); }; } && 9902 { ac_try='test -s conftest$ac_exeext' 9903 { (case "(($ac_try" in 9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9905 *) ac_try_echo=$ac_try;; 9906esac 9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9908 (eval "$ac_try") 2>&5 9909 ac_status=$? 9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9911 (exit $ac_status); }; }; then 9912 ac_cv_lib_dl_dlopen=yes 9913else 9914 echo "$as_me: failed program was:" >&5 9915sed 's/^/| /' conftest.$ac_ext >&5 9916 9917 ac_cv_lib_dl_dlopen=no 9918fi 9919 9920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9921 conftest$ac_exeext conftest.$ac_ext 9922LIBS=$ac_check_lib_save_LIBS 9923fi 9924{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9925echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9926if test $ac_cv_lib_dl_dlopen = yes; then 9927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9928else 9929 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9930echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9931if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9932 echo $ECHO_N "(cached) $ECHO_C" >&6 9933else 9934 ac_check_lib_save_LIBS=$LIBS 9935LIBS="-lsvld $LIBS" 9936cat >conftest.$ac_ext <<_ACEOF 9937/* confdefs.h. */ 9938_ACEOF 9939cat confdefs.h >>conftest.$ac_ext 9940cat >>conftest.$ac_ext <<_ACEOF 9941/* end confdefs.h. */ 9942 9943/* Override any GCC internal prototype to avoid an error. 9944 Use char because int might match the return type of a GCC 9945 builtin and then its argument prototype would still apply. */ 9946#ifdef __cplusplus 9947extern "C" 9948#endif 9949char dlopen (); 9950int 9951main () 9952{ 9953return dlopen (); 9954 ; 9955 return 0; 9956} 9957_ACEOF 9958rm -f conftest.$ac_objext conftest$ac_exeext 9959if { (ac_try="$ac_link" 9960case "(($ac_try" in 9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9962 *) ac_try_echo=$ac_try;; 9963esac 9964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9965 (eval "$ac_link") 2>conftest.er1 9966 ac_status=$? 9967 grep -v '^ *+' conftest.er1 >conftest.err 9968 rm -f conftest.er1 9969 cat conftest.err >&5 9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9971 (exit $ac_status); } && 9972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9973 { (case "(($ac_try" in 9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9975 *) ac_try_echo=$ac_try;; 9976esac 9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9978 (eval "$ac_try") 2>&5 9979 ac_status=$? 9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9981 (exit $ac_status); }; } && 9982 { ac_try='test -s conftest$ac_exeext' 9983 { (case "(($ac_try" in 9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9985 *) ac_try_echo=$ac_try;; 9986esac 9987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9988 (eval "$ac_try") 2>&5 9989 ac_status=$? 9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9991 (exit $ac_status); }; }; then 9992 ac_cv_lib_svld_dlopen=yes 9993else 9994 echo "$as_me: failed program was:" >&5 9995sed 's/^/| /' conftest.$ac_ext >&5 9996 9997 ac_cv_lib_svld_dlopen=no 9998fi 9999 10000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10001 conftest$ac_exeext conftest.$ac_ext 10002LIBS=$ac_check_lib_save_LIBS 10003fi 10004{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10005echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10006if test $ac_cv_lib_svld_dlopen = yes; then 10007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10008else 10009 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10010echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10011if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10012 echo $ECHO_N "(cached) $ECHO_C" >&6 10013else 10014 ac_check_lib_save_LIBS=$LIBS 10015LIBS="-ldld $LIBS" 10016cat >conftest.$ac_ext <<_ACEOF 10017/* confdefs.h. */ 10018_ACEOF 10019cat confdefs.h >>conftest.$ac_ext 10020cat >>conftest.$ac_ext <<_ACEOF 10021/* end confdefs.h. */ 10022 10023/* Override any GCC internal prototype to avoid an error. 10024 Use char because int might match the return type of a GCC 10025 builtin and then its argument prototype would still apply. */ 10026#ifdef __cplusplus 10027extern "C" 10028#endif 10029char dld_link (); 10030int 10031main () 10032{ 10033return dld_link (); 10034 ; 10035 return 0; 10036} 10037_ACEOF 10038rm -f conftest.$ac_objext conftest$ac_exeext 10039if { (ac_try="$ac_link" 10040case "(($ac_try" in 10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10042 *) ac_try_echo=$ac_try;; 10043esac 10044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10045 (eval "$ac_link") 2>conftest.er1 10046 ac_status=$? 10047 grep -v '^ *+' conftest.er1 >conftest.err 10048 rm -f conftest.er1 10049 cat conftest.err >&5 10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10051 (exit $ac_status); } && 10052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10053 { (case "(($ac_try" in 10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10055 *) ac_try_echo=$ac_try;; 10056esac 10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10058 (eval "$ac_try") 2>&5 10059 ac_status=$? 10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10061 (exit $ac_status); }; } && 10062 { ac_try='test -s conftest$ac_exeext' 10063 { (case "(($ac_try" in 10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10065 *) ac_try_echo=$ac_try;; 10066esac 10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10068 (eval "$ac_try") 2>&5 10069 ac_status=$? 10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10071 (exit $ac_status); }; }; then 10072 ac_cv_lib_dld_dld_link=yes 10073else 10074 echo "$as_me: failed program was:" >&5 10075sed 's/^/| /' conftest.$ac_ext >&5 10076 10077 ac_cv_lib_dld_dld_link=no 10078fi 10079 10080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10081 conftest$ac_exeext conftest.$ac_ext 10082LIBS=$ac_check_lib_save_LIBS 10083fi 10084{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10085echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10086if test $ac_cv_lib_dld_dld_link = yes; then 10087 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10088fi 10089 10090 10091fi 10092 10093 10094fi 10095 10096 10097fi 10098 10099 10100fi 10101 10102 10103fi 10104 10105 ;; 10106 esac 10107 10108 if test "x$lt_cv_dlopen" != xno; then 10109 enable_dlopen=yes 10110 else 10111 enable_dlopen=no 10112 fi 10113 10114 case $lt_cv_dlopen in 10115 dlopen) 10116 save_CPPFLAGS="$CPPFLAGS" 10117 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10118 10119 save_LDFLAGS="$LDFLAGS" 10120 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10121 10122 save_LIBS="$LIBS" 10123 LIBS="$lt_cv_dlopen_libs $LIBS" 10124 10125 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10126echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10127if test "${lt_cv_dlopen_self+set}" = set; then 10128 echo $ECHO_N "(cached) $ECHO_C" >&6 10129else 10130 if test "$cross_compiling" = yes; then : 10131 lt_cv_dlopen_self=cross 10132else 10133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10134 lt_status=$lt_dlunknown 10135 cat > conftest.$ac_ext <<EOF 10136#line 10136 "configure" 10137#include "confdefs.h" 10138 10139#if HAVE_DLFCN_H 10140#include <dlfcn.h> 10141#endif 10142 10143#include <stdio.h> 10144 10145#ifdef RTLD_GLOBAL 10146# define LT_DLGLOBAL RTLD_GLOBAL 10147#else 10148# ifdef DL_GLOBAL 10149# define LT_DLGLOBAL DL_GLOBAL 10150# else 10151# define LT_DLGLOBAL 0 10152# endif 10153#endif 10154 10155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10156 find out it does not work in some platform. */ 10157#ifndef LT_DLLAZY_OR_NOW 10158# ifdef RTLD_LAZY 10159# define LT_DLLAZY_OR_NOW RTLD_LAZY 10160# else 10161# ifdef DL_LAZY 10162# define LT_DLLAZY_OR_NOW DL_LAZY 10163# else 10164# ifdef RTLD_NOW 10165# define LT_DLLAZY_OR_NOW RTLD_NOW 10166# else 10167# ifdef DL_NOW 10168# define LT_DLLAZY_OR_NOW DL_NOW 10169# else 10170# define LT_DLLAZY_OR_NOW 0 10171# endif 10172# endif 10173# endif 10174# endif 10175#endif 10176 10177#ifdef __cplusplus 10178extern "C" void exit (int); 10179#endif 10180 10181void fnord() { int i=42;} 10182int main () 10183{ 10184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10185 int status = $lt_dlunknown; 10186 10187 if (self) 10188 { 10189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10190 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10191 /* dlclose (self); */ 10192 } 10193 else 10194 puts (dlerror ()); 10195 10196 exit (status); 10197} 10198EOF 10199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10200 (eval $ac_link) 2>&5 10201 ac_status=$? 10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10203 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10204 (./conftest; exit; ) >&5 2>/dev/null 10205 lt_status=$? 10206 case x$lt_status in 10207 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10208 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10209 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10210 esac 10211 else : 10212 # compilation failed 10213 lt_cv_dlopen_self=no 10214 fi 10215fi 10216rm -fr conftest* 10217 10218 10219fi 10220{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10221echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10222 10223 if test "x$lt_cv_dlopen_self" = xyes; then 10224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10225 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10226echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10227if test "${lt_cv_dlopen_self_static+set}" = set; then 10228 echo $ECHO_N "(cached) $ECHO_C" >&6 10229else 10230 if test "$cross_compiling" = yes; then : 10231 lt_cv_dlopen_self_static=cross 10232else 10233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10234 lt_status=$lt_dlunknown 10235 cat > conftest.$ac_ext <<EOF 10236#line 10236 "configure" 10237#include "confdefs.h" 10238 10239#if HAVE_DLFCN_H 10240#include <dlfcn.h> 10241#endif 10242 10243#include <stdio.h> 10244 10245#ifdef RTLD_GLOBAL 10246# define LT_DLGLOBAL RTLD_GLOBAL 10247#else 10248# ifdef DL_GLOBAL 10249# define LT_DLGLOBAL DL_GLOBAL 10250# else 10251# define LT_DLGLOBAL 0 10252# endif 10253#endif 10254 10255/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10256 find out it does not work in some platform. */ 10257#ifndef LT_DLLAZY_OR_NOW 10258# ifdef RTLD_LAZY 10259# define LT_DLLAZY_OR_NOW RTLD_LAZY 10260# else 10261# ifdef DL_LAZY 10262# define LT_DLLAZY_OR_NOW DL_LAZY 10263# else 10264# ifdef RTLD_NOW 10265# define LT_DLLAZY_OR_NOW RTLD_NOW 10266# else 10267# ifdef DL_NOW 10268# define LT_DLLAZY_OR_NOW DL_NOW 10269# else 10270# define LT_DLLAZY_OR_NOW 0 10271# endif 10272# endif 10273# endif 10274# endif 10275#endif 10276 10277#ifdef __cplusplus 10278extern "C" void exit (int); 10279#endif 10280 10281void fnord() { int i=42;} 10282int main () 10283{ 10284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10285 int status = $lt_dlunknown; 10286 10287 if (self) 10288 { 10289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10290 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10291 /* dlclose (self); */ 10292 } 10293 else 10294 puts (dlerror ()); 10295 10296 exit (status); 10297} 10298EOF 10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10300 (eval $ac_link) 2>&5 10301 ac_status=$? 10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10303 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10304 (./conftest; exit; ) >&5 2>/dev/null 10305 lt_status=$? 10306 case x$lt_status in 10307 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10308 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10309 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10310 esac 10311 else : 10312 # compilation failed 10313 lt_cv_dlopen_self_static=no 10314 fi 10315fi 10316rm -fr conftest* 10317 10318 10319fi 10320{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10321echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10322 fi 10323 10324 CPPFLAGS="$save_CPPFLAGS" 10325 LDFLAGS="$save_LDFLAGS" 10326 LIBS="$save_LIBS" 10327 ;; 10328 esac 10329 10330 case $lt_cv_dlopen_self in 10331 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10332 *) enable_dlopen_self=unknown ;; 10333 esac 10334 10335 case $lt_cv_dlopen_self_static in 10336 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10337 *) enable_dlopen_self_static=unknown ;; 10338 esac 10339fi 10340 10341 10342# Report which library types will actually be built 10343{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10344echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10345{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10346echo "${ECHO_T}$can_build_shared" >&6; } 10347 10348{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10349echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10350test "$can_build_shared" = "no" && enable_shared=no 10351 10352# On AIX, shared libraries and static libraries use the same namespace, and 10353# are all built from PIC. 10354case $host_os in 10355aix3*) 10356 test "$enable_shared" = yes && enable_static=no 10357 if test -n "$RANLIB"; then 10358 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10359 postinstall_cmds='$RANLIB $lib' 10360 fi 10361 ;; 10362 10363aix4* | aix5*) 10364 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10365 test "$enable_shared" = yes && enable_static=no 10366 fi 10367 ;; 10368esac 10369{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10370echo "${ECHO_T}$enable_shared" >&6; } 10371 10372{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10373echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10374# Make sure either enable_shared or enable_static is yes. 10375test "$enable_shared" = yes || enable_static=yes 10376{ echo "$as_me:$LINENO: result: $enable_static" >&5 10377echo "${ECHO_T}$enable_static" >&6; } 10378 10379# The else clause should only fire when bootstrapping the 10380# libtool distribution, otherwise you forgot to ship ltmain.sh 10381# with your package, and you will get complaints that there are 10382# no rules to generate ltmain.sh. 10383if test -f "$ltmain"; then 10384 # See if we are running on zsh, and set the options which allow our commands through 10385 # without removal of \ escapes. 10386 if test -n "${ZSH_VERSION+set}" ; then 10387 setopt NO_GLOB_SUBST 10388 fi 10389 # Now quote all the things that may contain metacharacters while being 10390 # careful not to overquote the AC_SUBSTed values. We take copies of the 10391 # variables and quote the copies for generation of the libtool script. 10392 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10393 SED SHELL STRIP \ 10394 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10395 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10396 deplibs_check_method reload_flag reload_cmds need_locks \ 10397 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10398 lt_cv_sys_global_symbol_to_c_name_address \ 10399 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10400 old_postinstall_cmds old_postuninstall_cmds \ 10401 compiler \ 10402 CC \ 10403 LD \ 10404 lt_prog_compiler_wl \ 10405 lt_prog_compiler_pic \ 10406 lt_prog_compiler_static \ 10407 lt_prog_compiler_no_builtin_flag \ 10408 export_dynamic_flag_spec \ 10409 thread_safe_flag_spec \ 10410 whole_archive_flag_spec \ 10411 enable_shared_with_static_runtimes \ 10412 old_archive_cmds \ 10413 old_archive_from_new_cmds \ 10414 predep_objects \ 10415 postdep_objects \ 10416 predeps \ 10417 postdeps \ 10418 compiler_lib_search_path \ 10419 archive_cmds \ 10420 archive_expsym_cmds \ 10421 postinstall_cmds \ 10422 postuninstall_cmds \ 10423 old_archive_from_expsyms_cmds \ 10424 allow_undefined_flag \ 10425 no_undefined_flag \ 10426 export_symbols_cmds \ 10427 hardcode_libdir_flag_spec \ 10428 hardcode_libdir_flag_spec_ld \ 10429 hardcode_libdir_separator \ 10430 hardcode_automatic \ 10431 module_cmds \ 10432 module_expsym_cmds \ 10433 lt_cv_prog_compiler_c_o \ 10434 exclude_expsyms \ 10435 include_expsyms; do 10436 10437 case $var in 10438 old_archive_cmds | \ 10439 old_archive_from_new_cmds | \ 10440 archive_cmds | \ 10441 archive_expsym_cmds | \ 10442 module_cmds | \ 10443 module_expsym_cmds | \ 10444 old_archive_from_expsyms_cmds | \ 10445 export_symbols_cmds | \ 10446 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10447 postinstall_cmds | postuninstall_cmds | \ 10448 old_postinstall_cmds | old_postuninstall_cmds | \ 10449 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10450 # Double-quote double-evaled strings. 10451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10452 ;; 10453 *) 10454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10455 ;; 10456 esac 10457 done 10458 10459 case $lt_echo in 10460 *'\$0 --fallback-echo"') 10461 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10462 ;; 10463 esac 10464 10465cfgfile="${ofile}T" 10466 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10467 $rm -f "$cfgfile" 10468 { echo "$as_me:$LINENO: creating $ofile" >&5 10469echo "$as_me: creating $ofile" >&6;} 10470 10471 cat <<__EOF__ >> "$cfgfile" 10472#! $SHELL 10473 10474# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10475# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10476# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10477# 10478# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10479# Free Software Foundation, Inc. 10480# 10481# This file is part of GNU Libtool: 10482# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10483# 10484# This program is free software; you can redistribute it and/or modify 10485# it under the terms of the GNU General Public License as published by 10486# the Free Software Foundation; either version 2 of the License, or 10487# (at your option) any later version. 10488# 10489# This program is distributed in the hope that it will be useful, but 10490# WITHOUT ANY WARRANTY; without even the implied warranty of 10491# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10492# General Public License for more details. 10493# 10494# You should have received a copy of the GNU General Public License 10495# along with this program; if not, write to the Free Software 10496# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10497# 10498# As a special exception to the GNU General Public License, if you 10499# distribute this file as part of a program that contains a 10500# configuration script generated by Autoconf, you may include it under 10501# the same distribution terms that you use for the rest of that program. 10502 10503# A sed program that does not truncate output. 10504SED=$lt_SED 10505 10506# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10507Xsed="$SED -e 1s/^X//" 10508 10509# The HP-UX ksh and POSIX shell print the target directory to stdout 10510# if CDPATH is set. 10511(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10512 10513# The names of the tagged configurations supported by this script. 10514available_tags= 10515 10516# ### BEGIN LIBTOOL CONFIG 10517 10518# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10519 10520# Shell to use when invoking shell scripts. 10521SHELL=$lt_SHELL 10522 10523# Whether or not to build shared libraries. 10524build_libtool_libs=$enable_shared 10525 10526# Whether or not to build static libraries. 10527build_old_libs=$enable_static 10528 10529# Whether or not to add -lc for building shared libraries. 10530build_libtool_need_lc=$archive_cmds_need_lc 10531 10532# Whether or not to disallow shared libs when runtime libs are static 10533allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10534 10535# Whether or not to optimize for fast installation. 10536fast_install=$enable_fast_install 10537 10538# The host system. 10539host_alias=$host_alias 10540host=$host 10541host_os=$host_os 10542 10543# The build system. 10544build_alias=$build_alias 10545build=$build 10546build_os=$build_os 10547 10548# An echo program that does not interpret backslashes. 10549echo=$lt_echo 10550 10551# The archiver. 10552AR=$lt_AR 10553AR_FLAGS=$lt_AR_FLAGS 10554 10555# A C compiler. 10556LTCC=$lt_LTCC 10557 10558# LTCC compiler flags. 10559LTCFLAGS=$lt_LTCFLAGS 10560 10561# A language-specific compiler. 10562CC=$lt_compiler 10563 10564# Is the compiler the GNU C compiler? 10565with_gcc=$GCC 10566 10567# An ERE matcher. 10568EGREP=$lt_EGREP 10569 10570# The linker used to build libraries. 10571LD=$lt_LD 10572 10573# Whether we need hard or soft links. 10574LN_S=$lt_LN_S 10575 10576# A BSD-compatible nm program. 10577NM=$lt_NM 10578 10579# A symbol stripping program 10580STRIP=$lt_STRIP 10581 10582# Used to examine libraries when file_magic_cmd begins "file" 10583MAGIC_CMD=$MAGIC_CMD 10584 10585# Used on cygwin: DLL creation program. 10586DLLTOOL="$DLLTOOL" 10587 10588# Used on cygwin: object dumper. 10589OBJDUMP="$OBJDUMP" 10590 10591# Used on cygwin: assembler. 10592AS="$AS" 10593 10594# The name of the directory that contains temporary libtool files. 10595objdir=$objdir 10596 10597# How to create reloadable object files. 10598reload_flag=$lt_reload_flag 10599reload_cmds=$lt_reload_cmds 10600 10601# How to pass a linker flag through the compiler. 10602wl=$lt_lt_prog_compiler_wl 10603 10604# Object file suffix (normally "o"). 10605objext="$ac_objext" 10606 10607# Old archive suffix (normally "a"). 10608libext="$libext" 10609 10610# Shared library suffix (normally ".so"). 10611shrext_cmds='$shrext_cmds' 10612 10613# Executable file suffix (normally ""). 10614exeext="$exeext" 10615 10616# Additional compiler flags for building library objects. 10617pic_flag=$lt_lt_prog_compiler_pic 10618pic_mode=$pic_mode 10619 10620# What is the maximum length of a command? 10621max_cmd_len=$lt_cv_sys_max_cmd_len 10622 10623# Does compiler simultaneously support -c and -o options? 10624compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10625 10626# Must we lock files when doing compilation? 10627need_locks=$lt_need_locks 10628 10629# Do we need the lib prefix for modules? 10630need_lib_prefix=$need_lib_prefix 10631 10632# Do we need a version for libraries? 10633need_version=$need_version 10634 10635# Whether dlopen is supported. 10636dlopen_support=$enable_dlopen 10637 10638# Whether dlopen of programs is supported. 10639dlopen_self=$enable_dlopen_self 10640 10641# Whether dlopen of statically linked programs is supported. 10642dlopen_self_static=$enable_dlopen_self_static 10643 10644# Compiler flag to prevent dynamic linking. 10645link_static_flag=$lt_lt_prog_compiler_static 10646 10647# Compiler flag to turn off builtin functions. 10648no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10649 10650# Compiler flag to allow reflexive dlopens. 10651export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10652 10653# Compiler flag to generate shared objects directly from archives. 10654whole_archive_flag_spec=$lt_whole_archive_flag_spec 10655 10656# Compiler flag to generate thread-safe objects. 10657thread_safe_flag_spec=$lt_thread_safe_flag_spec 10658 10659# Library versioning type. 10660version_type=$version_type 10661 10662# Format of library name prefix. 10663libname_spec=$lt_libname_spec 10664 10665# List of archive names. First name is the real one, the rest are links. 10666# The last name is the one that the linker finds with -lNAME. 10667library_names_spec=$lt_library_names_spec 10668 10669# The coded name of the library, if different from the real name. 10670soname_spec=$lt_soname_spec 10671 10672# Commands used to build and install an old-style archive. 10673RANLIB=$lt_RANLIB 10674old_archive_cmds=$lt_old_archive_cmds 10675old_postinstall_cmds=$lt_old_postinstall_cmds 10676old_postuninstall_cmds=$lt_old_postuninstall_cmds 10677 10678# Create an old-style archive from a shared archive. 10679old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10680 10681# Create a temporary old-style archive to link instead of a shared archive. 10682old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10683 10684# Commands used to build and install a shared archive. 10685archive_cmds=$lt_archive_cmds 10686archive_expsym_cmds=$lt_archive_expsym_cmds 10687postinstall_cmds=$lt_postinstall_cmds 10688postuninstall_cmds=$lt_postuninstall_cmds 10689 10690# Commands used to build a loadable module (assumed same as above if empty) 10691module_cmds=$lt_module_cmds 10692module_expsym_cmds=$lt_module_expsym_cmds 10693 10694# Commands to strip libraries. 10695old_striplib=$lt_old_striplib 10696striplib=$lt_striplib 10697 10698# Dependencies to place before the objects being linked to create a 10699# shared library. 10700predep_objects=$lt_predep_objects 10701 10702# Dependencies to place after the objects being linked to create a 10703# shared library. 10704postdep_objects=$lt_postdep_objects 10705 10706# Dependencies to place before the objects being linked to create a 10707# shared library. 10708predeps=$lt_predeps 10709 10710# Dependencies to place after the objects being linked to create a 10711# shared library. 10712postdeps=$lt_postdeps 10713 10714# The library search path used internally by the compiler when linking 10715# a shared library. 10716compiler_lib_search_path=$lt_compiler_lib_search_path 10717 10718# Method to check whether dependent libraries are shared objects. 10719deplibs_check_method=$lt_deplibs_check_method 10720 10721# Command to use when deplibs_check_method == file_magic. 10722file_magic_cmd=$lt_file_magic_cmd 10723 10724# Flag that allows shared libraries with undefined symbols to be built. 10725allow_undefined_flag=$lt_allow_undefined_flag 10726 10727# Flag that forces no undefined symbols. 10728no_undefined_flag=$lt_no_undefined_flag 10729 10730# Commands used to finish a libtool library installation in a directory. 10731finish_cmds=$lt_finish_cmds 10732 10733# Same as above, but a single script fragment to be evaled but not shown. 10734finish_eval=$lt_finish_eval 10735 10736# Take the output of nm and produce a listing of raw symbols and C names. 10737global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10738 10739# Transform the output of nm in a proper C declaration 10740global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10741 10742# Transform the output of nm in a C name address pair 10743global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10744 10745# This is the shared library runtime path variable. 10746runpath_var=$runpath_var 10747 10748# This is the shared library path variable. 10749shlibpath_var=$shlibpath_var 10750 10751# Is shlibpath searched before the hard-coded library search path? 10752shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10753 10754# How to hardcode a shared library path into an executable. 10755hardcode_action=$hardcode_action 10756 10757# Whether we should hardcode library paths into libraries. 10758hardcode_into_libs=$hardcode_into_libs 10759 10760# Flag to hardcode \$libdir into a binary during linking. 10761# This must work even if \$libdir does not exist. 10762hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10763 10764# If ld is used when linking, flag to hardcode \$libdir into 10765# a binary during linking. This must work even if \$libdir does 10766# not exist. 10767hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10768 10769# Whether we need a single -rpath flag with a separated argument. 10770hardcode_libdir_separator=$lt_hardcode_libdir_separator 10771 10772# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10773# resulting binary. 10774hardcode_direct=$hardcode_direct 10775 10776# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10777# resulting binary. 10778hardcode_minus_L=$hardcode_minus_L 10779 10780# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10781# the resulting binary. 10782hardcode_shlibpath_var=$hardcode_shlibpath_var 10783 10784# Set to yes if building a shared library automatically hardcodes DIR into the library 10785# and all subsequent libraries and executables linked against it. 10786hardcode_automatic=$hardcode_automatic 10787 10788# Variables whose values should be saved in libtool wrapper scripts and 10789# restored at relink time. 10790variables_saved_for_relink="$variables_saved_for_relink" 10791 10792# Whether libtool must link a program against all its dependency libraries. 10793link_all_deplibs=$link_all_deplibs 10794 10795# Compile-time system search path for libraries 10796sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10797 10798# Run-time system search path for libraries 10799sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10800 10801# Fix the shell variable \$srcfile for the compiler. 10802fix_srcfile_path="$fix_srcfile_path" 10803 10804# Set to yes if exported symbols are required. 10805always_export_symbols=$always_export_symbols 10806 10807# The commands to list exported symbols. 10808export_symbols_cmds=$lt_export_symbols_cmds 10809 10810# The commands to extract the exported symbol list from a shared archive. 10811extract_expsyms_cmds=$lt_extract_expsyms_cmds 10812 10813# Symbols that should not be listed in the preloaded symbols. 10814exclude_expsyms=$lt_exclude_expsyms 10815 10816# Symbols that must always be exported. 10817include_expsyms=$lt_include_expsyms 10818 10819# ### END LIBTOOL CONFIG 10820 10821__EOF__ 10822 10823 10824 case $host_os in 10825 aix3*) 10826 cat <<\EOF >> "$cfgfile" 10827 10828# AIX sometimes has problems with the GCC collect2 program. For some 10829# reason, if we set the COLLECT_NAMES environment variable, the problems 10830# vanish in a puff of smoke. 10831if test "X${COLLECT_NAMES+set}" != Xset; then 10832 COLLECT_NAMES= 10833 export COLLECT_NAMES 10834fi 10835EOF 10836 ;; 10837 esac 10838 10839 # We use sed instead of cat because bash on DJGPP gets confused if 10840 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10841 # text mode, it properly converts lines to CR/LF. This bash problem 10842 # is reportedly fixed, but why not run on old versions too? 10843 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10844 10845 mv -f "$cfgfile" "$ofile" || \ 10846 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10847 chmod +x "$ofile" 10848 10849else 10850 # If there is no Makefile yet, we rely on a make rule to execute 10851 # `config.status --recheck' to rerun these tests and create the 10852 # libtool script then. 10853 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10854 if test -f "$ltmain_in"; then 10855 test -f Makefile && make "$ltmain" 10856 fi 10857fi 10858 10859 10860ac_ext=c 10861ac_cpp='$CPP $CPPFLAGS' 10862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10864ac_compiler_gnu=$ac_cv_c_compiler_gnu 10865 10866CC="$lt_save_CC" 10867 10868 10869# Check whether --with-tags was given. 10870if test "${with_tags+set}" = set; then 10871 withval=$with_tags; tagnames="$withval" 10872fi 10873 10874 10875if test -f "$ltmain" && test -n "$tagnames"; then 10876 if test ! -f "${ofile}"; then 10877 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10878echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10879 fi 10880 10881 if test -z "$LTCC"; then 10882 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10883 if test -z "$LTCC"; then 10884 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10885echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10886 else 10887 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10888echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10889 fi 10890 fi 10891 if test -z "$LTCFLAGS"; then 10892 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10893 fi 10894 10895 # Extract list of available tagged configurations in $ofile. 10896 # Note that this assumes the entire list is on one line. 10897 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10898 10899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10900 for tagname in $tagnames; do 10901 IFS="$lt_save_ifs" 10902 # Check whether tagname contains only valid characters 10903 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10904 "") ;; 10905 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10906echo "$as_me: error: invalid tag name: $tagname" >&2;} 10907 { (exit 1); exit 1; }; } 10908 ;; 10909 esac 10910 10911 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10912 then 10913 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10914echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10915 { (exit 1); exit 1; }; } 10916 fi 10917 10918 # Update the list of available tags. 10919 if test -n "$tagname"; then 10920 echo appending configuration tag \"$tagname\" to $ofile 10921 10922 case $tagname in 10923 CXX) 10924 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10925 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10926 (test "X$CXX" != "Xg++"))) ; then 10927 ac_ext=cpp 10928ac_cpp='$CXXCPP $CPPFLAGS' 10929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10932 10933 10934 10935 10936archive_cmds_need_lc_CXX=no 10937allow_undefined_flag_CXX= 10938always_export_symbols_CXX=no 10939archive_expsym_cmds_CXX= 10940export_dynamic_flag_spec_CXX= 10941hardcode_direct_CXX=no 10942hardcode_libdir_flag_spec_CXX= 10943hardcode_libdir_flag_spec_ld_CXX= 10944hardcode_libdir_separator_CXX= 10945hardcode_minus_L_CXX=no 10946hardcode_shlibpath_var_CXX=unsupported 10947hardcode_automatic_CXX=no 10948module_cmds_CXX= 10949module_expsym_cmds_CXX= 10950link_all_deplibs_CXX=unknown 10951old_archive_cmds_CXX=$old_archive_cmds 10952no_undefined_flag_CXX= 10953whole_archive_flag_spec_CXX= 10954enable_shared_with_static_runtimes_CXX=no 10955 10956# Dependencies to place before and after the object being linked: 10957predep_objects_CXX= 10958postdep_objects_CXX= 10959predeps_CXX= 10960postdeps_CXX= 10961compiler_lib_search_path_CXX= 10962 10963# Source file extension for C++ test sources. 10964ac_ext=cpp 10965 10966# Object file extension for compiled C++ test sources. 10967objext=o 10968objext_CXX=$objext 10969 10970# Code to be used in simple compile tests 10971lt_simple_compile_test_code="int some_variable = 0;\n" 10972 10973# Code to be used in simple link tests 10974lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 10975 10976# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10977 10978# If no C compiler was specified, use CC. 10979LTCC=${LTCC-"$CC"} 10980 10981# If no C compiler flags were specified, use CFLAGS. 10982LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10983 10984# Allow CC to be a program name with arguments. 10985compiler=$CC 10986 10987 10988# save warnings/boilerplate of simple test code 10989ac_outfile=conftest.$ac_objext 10990printf "$lt_simple_compile_test_code" >conftest.$ac_ext 10991eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10992_lt_compiler_boilerplate=`cat conftest.err` 10993$rm conftest* 10994 10995ac_outfile=conftest.$ac_objext 10996printf "$lt_simple_link_test_code" >conftest.$ac_ext 10997eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10998_lt_linker_boilerplate=`cat conftest.err` 10999$rm conftest* 11000 11001 11002# Allow CC to be a program name with arguments. 11003lt_save_CC=$CC 11004lt_save_LD=$LD 11005lt_save_GCC=$GCC 11006GCC=$GXX 11007lt_save_with_gnu_ld=$with_gnu_ld 11008lt_save_path_LD=$lt_cv_path_LD 11009if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11010 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11011else 11012 $as_unset lt_cv_prog_gnu_ld 11013fi 11014if test -n "${lt_cv_path_LDCXX+set}"; then 11015 lt_cv_path_LD=$lt_cv_path_LDCXX 11016else 11017 $as_unset lt_cv_path_LD 11018fi 11019test -z "${LDCXX+set}" || LD=$LDCXX 11020CC=${CXX-"c++"} 11021compiler=$CC 11022compiler_CXX=$CC 11023for cc_temp in $compiler""; do 11024 case $cc_temp in 11025 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11026 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11027 \-*) ;; 11028 *) break;; 11029 esac 11030done 11031cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11032 11033 11034# We don't want -fno-exception wen compiling C++ code, so set the 11035# no_builtin_flag separately 11036if test "$GXX" = yes; then 11037 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11038else 11039 lt_prog_compiler_no_builtin_flag_CXX= 11040fi 11041 11042if test "$GXX" = yes; then 11043 # Set up default GNU C++ configuration 11044 11045 11046# Check whether --with-gnu-ld was given. 11047if test "${with_gnu_ld+set}" = set; then 11048 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11049else 11050 with_gnu_ld=no 11051fi 11052 11053ac_prog=ld 11054if test "$GCC" = yes; then 11055 # Check if gcc -print-prog-name=ld gives a path. 11056 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11057echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11058 case $host in 11059 *-*-mingw*) 11060 # gcc leaves a trailing carriage return which upsets mingw 11061 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11062 *) 11063 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11064 esac 11065 case $ac_prog in 11066 # Accept absolute paths. 11067 [\\/]* | ?:[\\/]*) 11068 re_direlt='/[^/][^/]*/\.\./' 11069 # Canonicalize the pathname of ld 11070 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11071 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11072 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11073 done 11074 test -z "$LD" && LD="$ac_prog" 11075 ;; 11076 "") 11077 # If it fails, then pretend we aren't using GCC. 11078 ac_prog=ld 11079 ;; 11080 *) 11081 # If it is relative, then search for the first ld in PATH. 11082 with_gnu_ld=unknown 11083 ;; 11084 esac 11085elif test "$with_gnu_ld" = yes; then 11086 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11087echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11088else 11089 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11090echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11091fi 11092if test "${lt_cv_path_LD+set}" = set; then 11093 echo $ECHO_N "(cached) $ECHO_C" >&6 11094else 11095 if test -z "$LD"; then 11096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11097 for ac_dir in $PATH; do 11098 IFS="$lt_save_ifs" 11099 test -z "$ac_dir" && ac_dir=. 11100 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11101 lt_cv_path_LD="$ac_dir/$ac_prog" 11102 # Check to see if the program is GNU ld. I'd rather use --version, 11103 # but apparently some variants of GNU ld only accept -v. 11104 # Break only if it was the GNU/non-GNU ld that we prefer. 11105 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11106 *GNU* | *'with BFD'*) 11107 test "$with_gnu_ld" != no && break 11108 ;; 11109 *) 11110 test "$with_gnu_ld" != yes && break 11111 ;; 11112 esac 11113 fi 11114 done 11115 IFS="$lt_save_ifs" 11116else 11117 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11118fi 11119fi 11120 11121LD="$lt_cv_path_LD" 11122if test -n "$LD"; then 11123 { echo "$as_me:$LINENO: result: $LD" >&5 11124echo "${ECHO_T}$LD" >&6; } 11125else 11126 { echo "$as_me:$LINENO: result: no" >&5 11127echo "${ECHO_T}no" >&6; } 11128fi 11129test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11130echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11131 { (exit 1); exit 1; }; } 11132{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11133echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11134if test "${lt_cv_prog_gnu_ld+set}" = set; then 11135 echo $ECHO_N "(cached) $ECHO_C" >&6 11136else 11137 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11138case `$LD -v 2>&1 </dev/null` in 11139*GNU* | *'with BFD'*) 11140 lt_cv_prog_gnu_ld=yes 11141 ;; 11142*) 11143 lt_cv_prog_gnu_ld=no 11144 ;; 11145esac 11146fi 11147{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11148echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11149with_gnu_ld=$lt_cv_prog_gnu_ld 11150 11151 11152 11153 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11154 # archiving commands below assume that GNU ld is being used. 11155 if test "$with_gnu_ld" = yes; then 11156 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11157 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11158 11159 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11160 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11161 11162 # If archive_cmds runs LD, not CC, wlarc should be empty 11163 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11164 # investigate it a little bit more. (MM) 11165 wlarc='${wl}' 11166 11167 # ancient GNU ld didn't support --whole-archive et. al. 11168 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11169 grep 'no-whole-archive' > /dev/null; then 11170 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11171 else 11172 whole_archive_flag_spec_CXX= 11173 fi 11174 else 11175 with_gnu_ld=no 11176 wlarc= 11177 11178 # A generic and very simple default shared library creation 11179 # command for GNU C++ for the case where it uses the native 11180 # linker, instead of GNU ld. If possible, this setting should 11181 # overridden to take advantage of the native linker features on 11182 # the platform it is being used on. 11183 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11184 fi 11185 11186 # Commands to make compiler produce verbose output that lists 11187 # what "hidden" libraries, object files and flags are used when 11188 # linking a shared library. 11189 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11190 11191else 11192 GXX=no 11193 with_gnu_ld=no 11194 wlarc= 11195fi 11196 11197# PORTME: fill in a description of your system's C++ link characteristics 11198{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11199echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11200ld_shlibs_CXX=yes 11201case $host_os in 11202 aix3*) 11203 # FIXME: insert proper C++ library support 11204 ld_shlibs_CXX=no 11205 ;; 11206 aix4* | aix5*) 11207 if test "$host_cpu" = ia64; then 11208 # On IA64, the linker does run time linking by default, so we don't 11209 # have to do anything special. 11210 aix_use_runtimelinking=no 11211 exp_sym_flag='-Bexport' 11212 no_entry_flag="" 11213 else 11214 aix_use_runtimelinking=no 11215 11216 # Test if we are trying to use run time linking or normal 11217 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11218 # need to do runtime linking. 11219 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11220 for ld_flag in $LDFLAGS; do 11221 case $ld_flag in 11222 *-brtl*) 11223 aix_use_runtimelinking=yes 11224 break 11225 ;; 11226 esac 11227 done 11228 ;; 11229 esac 11230 11231 exp_sym_flag='-bexport' 11232 no_entry_flag='-bnoentry' 11233 fi 11234 11235 # When large executables or shared objects are built, AIX ld can 11236 # have problems creating the table of contents. If linking a library 11237 # or program results in "error TOC overflow" add -mminimal-toc to 11238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11240 11241 archive_cmds_CXX='' 11242 hardcode_direct_CXX=yes 11243 hardcode_libdir_separator_CXX=':' 11244 link_all_deplibs_CXX=yes 11245 11246 if test "$GXX" = yes; then 11247 case $host_os in aix4.[012]|aix4.[012].*) 11248 # We only want to do this on AIX 4.2 and lower, the check 11249 # below for broken collect2 doesn't work under 4.3+ 11250 collect2name=`${CC} -print-prog-name=collect2` 11251 if test -f "$collect2name" && \ 11252 strings "$collect2name" | grep resolve_lib_name >/dev/null 11253 then 11254 # We have reworked collect2 11255 hardcode_direct_CXX=yes 11256 else 11257 # We have old collect2 11258 hardcode_direct_CXX=unsupported 11259 # It fails to find uninstalled libraries when the uninstalled 11260 # path is not listed in the libpath. Setting hardcode_minus_L 11261 # to unsupported forces relinking 11262 hardcode_minus_L_CXX=yes 11263 hardcode_libdir_flag_spec_CXX='-L$libdir' 11264 hardcode_libdir_separator_CXX= 11265 fi 11266 ;; 11267 esac 11268 shared_flag='-shared' 11269 if test "$aix_use_runtimelinking" = yes; then 11270 shared_flag="$shared_flag "'${wl}-G' 11271 fi 11272 else 11273 # not using gcc 11274 if test "$host_cpu" = ia64; then 11275 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11276 # chokes on -Wl,-G. The following line is correct: 11277 shared_flag='-G' 11278 else 11279 if test "$aix_use_runtimelinking" = yes; then 11280 shared_flag='${wl}-G' 11281 else 11282 shared_flag='${wl}-bM:SRE' 11283 fi 11284 fi 11285 fi 11286 11287 # It seems that -bexpall does not export symbols beginning with 11288 # underscore (_), so it is better to generate a list of symbols to export. 11289 always_export_symbols_CXX=yes 11290 if test "$aix_use_runtimelinking" = yes; then 11291 # Warning - without using the other runtime loading flags (-brtl), 11292 # -berok will link without error, but may produce a broken library. 11293 allow_undefined_flag_CXX='-berok' 11294 # Determine the default libpath from the value encoded in an empty executable. 11295 cat >conftest.$ac_ext <<_ACEOF 11296/* confdefs.h. */ 11297_ACEOF 11298cat confdefs.h >>conftest.$ac_ext 11299cat >>conftest.$ac_ext <<_ACEOF 11300/* end confdefs.h. */ 11301 11302int 11303main () 11304{ 11305 11306 ; 11307 return 0; 11308} 11309_ACEOF 11310rm -f conftest.$ac_objext conftest$ac_exeext 11311if { (ac_try="$ac_link" 11312case "(($ac_try" in 11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11314 *) ac_try_echo=$ac_try;; 11315esac 11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11317 (eval "$ac_link") 2>conftest.er1 11318 ac_status=$? 11319 grep -v '^ *+' conftest.er1 >conftest.err 11320 rm -f conftest.er1 11321 cat conftest.err >&5 11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11323 (exit $ac_status); } && 11324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11325 { (case "(($ac_try" in 11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11327 *) ac_try_echo=$ac_try;; 11328esac 11329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11330 (eval "$ac_try") 2>&5 11331 ac_status=$? 11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11333 (exit $ac_status); }; } && 11334 { ac_try='test -s conftest$ac_exeext' 11335 { (case "(($ac_try" in 11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11337 *) ac_try_echo=$ac_try;; 11338esac 11339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11340 (eval "$ac_try") 2>&5 11341 ac_status=$? 11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11343 (exit $ac_status); }; }; then 11344 11345aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11346}'` 11347# Check for a 64-bit object if we didn't find anything. 11348if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11349}'`; fi 11350else 11351 echo "$as_me: failed program was:" >&5 11352sed 's/^/| /' conftest.$ac_ext >&5 11353 11354 11355fi 11356 11357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11358 conftest$ac_exeext conftest.$ac_ext 11359if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11360 11361 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11362 11363 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11364 else 11365 if test "$host_cpu" = ia64; then 11366 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11367 allow_undefined_flag_CXX="-z nodefs" 11368 archive_expsym_cmds_CXX="\$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" 11369 else 11370 # Determine the default libpath from the value encoded in an empty executable. 11371 cat >conftest.$ac_ext <<_ACEOF 11372/* confdefs.h. */ 11373_ACEOF 11374cat confdefs.h >>conftest.$ac_ext 11375cat >>conftest.$ac_ext <<_ACEOF 11376/* end confdefs.h. */ 11377 11378int 11379main () 11380{ 11381 11382 ; 11383 return 0; 11384} 11385_ACEOF 11386rm -f conftest.$ac_objext conftest$ac_exeext 11387if { (ac_try="$ac_link" 11388case "(($ac_try" in 11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11390 *) ac_try_echo=$ac_try;; 11391esac 11392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11393 (eval "$ac_link") 2>conftest.er1 11394 ac_status=$? 11395 grep -v '^ *+' conftest.er1 >conftest.err 11396 rm -f conftest.er1 11397 cat conftest.err >&5 11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11399 (exit $ac_status); } && 11400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11401 { (case "(($ac_try" in 11402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11403 *) ac_try_echo=$ac_try;; 11404esac 11405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11406 (eval "$ac_try") 2>&5 11407 ac_status=$? 11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11409 (exit $ac_status); }; } && 11410 { ac_try='test -s conftest$ac_exeext' 11411 { (case "(($ac_try" in 11412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11413 *) ac_try_echo=$ac_try;; 11414esac 11415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11416 (eval "$ac_try") 2>&5 11417 ac_status=$? 11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11419 (exit $ac_status); }; }; then 11420 11421aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11422}'` 11423# Check for a 64-bit object if we didn't find anything. 11424if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11425}'`; fi 11426else 11427 echo "$as_me: failed program was:" >&5 11428sed 's/^/| /' conftest.$ac_ext >&5 11429 11430 11431fi 11432 11433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11434 conftest$ac_exeext conftest.$ac_ext 11435if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11436 11437 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11438 # Warning - without using the other run time loading flags, 11439 # -berok will link without error, but may produce a broken library. 11440 no_undefined_flag_CXX=' ${wl}-bernotok' 11441 allow_undefined_flag_CXX=' ${wl}-berok' 11442 # Exported symbols can be pulled into shared objects from archives 11443 whole_archive_flag_spec_CXX='$convenience' 11444 archive_cmds_need_lc_CXX=yes 11445 # This is similar to how AIX traditionally builds its shared libraries. 11446 archive_expsym_cmds_CXX="\$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' 11447 fi 11448 fi 11449 ;; 11450 11451 beos*) 11452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11453 allow_undefined_flag_CXX=unsupported 11454 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11455 # support --undefined. This deserves some investigation. FIXME 11456 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11457 else 11458 ld_shlibs_CXX=no 11459 fi 11460 ;; 11461 11462 chorus*) 11463 case $cc_basename in 11464 *) 11465 # FIXME: insert proper C++ library support 11466 ld_shlibs_CXX=no 11467 ;; 11468 esac 11469 ;; 11470 11471 cygwin* | mingw* | pw32*) 11472 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11473 # as there is no search path for DLLs. 11474 hardcode_libdir_flag_spec_CXX='-L$libdir' 11475 allow_undefined_flag_CXX=unsupported 11476 always_export_symbols_CXX=no 11477 enable_shared_with_static_runtimes_CXX=yes 11478 11479 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11480 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11481 # If the export-symbols file already is a .def file (1st line 11482 # is EXPORTS), use it as is; otherwise, prepend... 11483 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11484 cp $export_symbols $output_objdir/$soname.def; 11485 else 11486 echo EXPORTS > $output_objdir/$soname.def; 11487 cat $export_symbols >> $output_objdir/$soname.def; 11488 fi~ 11489 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11490 else 11491 ld_shlibs_CXX=no 11492 fi 11493 ;; 11494 darwin* | rhapsody*) 11495 case $host_os in 11496 rhapsody* | darwin1.[012]) 11497 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11498 ;; 11499 *) # Darwin 1.3 on 11500 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11501 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11502 else 11503 case ${MACOSX_DEPLOYMENT_TARGET} in 11504 10.[012]) 11505 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11506 ;; 11507 10.*) 11508 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11509 ;; 11510 esac 11511 fi 11512 ;; 11513 esac 11514 archive_cmds_need_lc_CXX=no 11515 hardcode_direct_CXX=no 11516 hardcode_automatic_CXX=yes 11517 hardcode_shlibpath_var_CXX=unsupported 11518 whole_archive_flag_spec_CXX='' 11519 link_all_deplibs_CXX=yes 11520 11521 if test "$GXX" = yes ; then 11522 lt_int_apple_cc_single_mod=no 11523 output_verbose_link_cmd='echo' 11524 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11525 lt_int_apple_cc_single_mod=yes 11526 fi 11527 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11528 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11529 else 11530 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11531 fi 11532 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11533 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11534 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11535 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11536 else 11537 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11538 fi 11539 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11540 else 11541 case $cc_basename in 11542 xlc*) 11543 output_verbose_link_cmd='echo' 11544 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11545 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11547 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11548 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11549 ;; 11550 *) 11551 ld_shlibs_CXX=no 11552 ;; 11553 esac 11554 fi 11555 ;; 11556 11557 dgux*) 11558 case $cc_basename in 11559 ec++*) 11560 # FIXME: insert proper C++ library support 11561 ld_shlibs_CXX=no 11562 ;; 11563 ghcx*) 11564 # Green Hills C++ Compiler 11565 # FIXME: insert proper C++ library support 11566 ld_shlibs_CXX=no 11567 ;; 11568 *) 11569 # FIXME: insert proper C++ library support 11570 ld_shlibs_CXX=no 11571 ;; 11572 esac 11573 ;; 11574 freebsd[12]*) 11575 # C++ shared libraries reported to be fairly broken before switch to ELF 11576 ld_shlibs_CXX=no 11577 ;; 11578 freebsd-elf*) 11579 archive_cmds_need_lc_CXX=no 11580 ;; 11581 freebsd* | dragonfly*) 11582 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11583 # conventions 11584 ld_shlibs_CXX=yes 11585 ;; 11586 gnu*) 11587 ;; 11588 hpux9*) 11589 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11590 hardcode_libdir_separator_CXX=: 11591 export_dynamic_flag_spec_CXX='${wl}-E' 11592 hardcode_direct_CXX=yes 11593 hardcode_minus_L_CXX=yes # Not in the search PATH, 11594 # but as the default 11595 # location of the library. 11596 11597 case $cc_basename in 11598 CC*) 11599 # FIXME: insert proper C++ library support 11600 ld_shlibs_CXX=no 11601 ;; 11602 aCC*) 11603 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11604 # Commands to make compiler produce verbose output that lists 11605 # what "hidden" libraries, object files and flags are used when 11606 # linking a shared library. 11607 # 11608 # There doesn't appear to be a way to prevent this compiler from 11609 # explicitly linking system object files so we need to strip them 11610 # from the output so that they don't get included in the library 11611 # dependencies. 11612 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11613 ;; 11614 *) 11615 if test "$GXX" = yes; then 11616 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11617 else 11618 # FIXME: insert proper C++ library support 11619 ld_shlibs_CXX=no 11620 fi 11621 ;; 11622 esac 11623 ;; 11624 hpux10*|hpux11*) 11625 if test $with_gnu_ld = no; then 11626 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11627 hardcode_libdir_separator_CXX=: 11628 11629 case $host_cpu in 11630 hppa*64*|ia64*) 11631 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11632 ;; 11633 *) 11634 export_dynamic_flag_spec_CXX='${wl}-E' 11635 ;; 11636 esac 11637 fi 11638 case $host_cpu in 11639 hppa*64*|ia64*) 11640 hardcode_direct_CXX=no 11641 hardcode_shlibpath_var_CXX=no 11642 ;; 11643 *) 11644 hardcode_direct_CXX=yes 11645 hardcode_minus_L_CXX=yes # Not in the search PATH, 11646 # but as the default 11647 # location of the library. 11648 ;; 11649 esac 11650 11651 case $cc_basename in 11652 CC*) 11653 # FIXME: insert proper C++ library support 11654 ld_shlibs_CXX=no 11655 ;; 11656 aCC*) 11657 case $host_cpu in 11658 hppa*64*) 11659 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11660 ;; 11661 ia64*) 11662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11663 ;; 11664 *) 11665 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11666 ;; 11667 esac 11668 # Commands to make compiler produce verbose output that lists 11669 # what "hidden" libraries, object files and flags are used when 11670 # linking a shared library. 11671 # 11672 # There doesn't appear to be a way to prevent this compiler from 11673 # explicitly linking system object files so we need to strip them 11674 # from the output so that they don't get included in the library 11675 # dependencies. 11676 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11677 ;; 11678 *) 11679 if test "$GXX" = yes; then 11680 if test $with_gnu_ld = no; then 11681 case $host_cpu in 11682 hppa*64*) 11683 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11684 ;; 11685 ia64*) 11686 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11687 ;; 11688 *) 11689 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11690 ;; 11691 esac 11692 fi 11693 else 11694 # FIXME: insert proper C++ library support 11695 ld_shlibs_CXX=no 11696 fi 11697 ;; 11698 esac 11699 ;; 11700 interix3*) 11701 hardcode_direct_CXX=no 11702 hardcode_shlibpath_var_CXX=no 11703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11704 export_dynamic_flag_spec_CXX='${wl}-E' 11705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11706 # Instead, shared libraries are loaded at an image base (0x10000000 by 11707 # default) and relocated if they conflict, which is a slow very memory 11708 # consuming and fragmenting process. To avoid this, we pick a random, 11709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11710 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11711 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11712 archive_expsym_cmds_CXX='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' 11713 ;; 11714 irix5* | irix6*) 11715 case $cc_basename in 11716 CC*) 11717 # SGI C++ 11718 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11719 11720 # Archives containing C++ object files must be created using 11721 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11722 # necessary to make sure instantiated templates are included 11723 # in the archive. 11724 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11725 ;; 11726 *) 11727 if test "$GXX" = yes; then 11728 if test "$with_gnu_ld" = no; then 11729 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11730 else 11731 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 11732 fi 11733 fi 11734 link_all_deplibs_CXX=yes 11735 ;; 11736 esac 11737 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11738 hardcode_libdir_separator_CXX=: 11739 ;; 11740 linux* | k*bsd*-gnu) 11741 case $cc_basename in 11742 KCC*) 11743 # Kuck and Associates, Inc. (KAI) C++ Compiler 11744 11745 # KCC will only create a shared library if the output file 11746 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11747 # to its proper name (with version) after linking. 11748 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11749 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 11750 # Commands to make compiler produce verbose output that lists 11751 # what "hidden" libraries, object files and flags are used when 11752 # linking a shared library. 11753 # 11754 # There doesn't appear to be a way to prevent this compiler from 11755 # explicitly linking system object files so we need to strip them 11756 # from the output so that they don't get included in the library 11757 # dependencies. 11758 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11759 11760 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11762 11763 # Archives containing C++ object files must be created using 11764 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11765 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11766 ;; 11767 icpc*) 11768 # Intel C++ 11769 with_gnu_ld=yes 11770 # version 8.0 and above of icpc choke on multiply defined symbols 11771 # if we add $predep_objects and $postdep_objects, however 7.1 and 11772 # earlier do not add the objects themselves. 11773 case `$CC -V 2>&1` in 11774 *"Version 7."*) 11775 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11776 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11777 ;; 11778 *) # Version 8.0 or newer 11779 tmp_idyn= 11780 case $host_cpu in 11781 ia64*) tmp_idyn=' -i_dynamic';; 11782 esac 11783 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11784 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11785 ;; 11786 esac 11787 archive_cmds_need_lc_CXX=no 11788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11789 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11790 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11791 ;; 11792 pgCC*) 11793 # Portland Group C++ compiler 11794 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11795 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 11796 11797 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11798 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11799 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 11800 ;; 11801 cxx*) 11802 # Compaq C++ 11803 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11804 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 11805 11806 runpath_var=LD_RUN_PATH 11807 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11808 hardcode_libdir_separator_CXX=: 11809 11810 # Commands to make compiler produce verbose output that lists 11811 # what "hidden" libraries, object files and flags are used when 11812 # linking a shared library. 11813 # 11814 # There doesn't appear to be a way to prevent this compiler from 11815 # explicitly linking system object files so we need to strip them 11816 # from the output so that they don't get included in the library 11817 # dependencies. 11818 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11819 ;; 11820 esac 11821 ;; 11822 lynxos*) 11823 # FIXME: insert proper C++ library support 11824 ld_shlibs_CXX=no 11825 ;; 11826 m88k*) 11827 # FIXME: insert proper C++ library support 11828 ld_shlibs_CXX=no 11829 ;; 11830 mvs*) 11831 case $cc_basename in 11832 cxx*) 11833 # FIXME: insert proper C++ library support 11834 ld_shlibs_CXX=no 11835 ;; 11836 *) 11837 # FIXME: insert proper C++ library support 11838 ld_shlibs_CXX=no 11839 ;; 11840 esac 11841 ;; 11842 netbsd* | netbsdelf*-gnu) 11843 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11844 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11845 wlarc= 11846 hardcode_libdir_flag_spec_CXX='-R$libdir' 11847 hardcode_direct_CXX=yes 11848 hardcode_shlibpath_var_CXX=no 11849 fi 11850 # Workaround some broken pre-1.5 toolchains 11851 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11852 ;; 11853 openbsd2*) 11854 # C++ shared libraries are fairly broken 11855 ld_shlibs_CXX=no 11856 ;; 11857 openbsd*) 11858 hardcode_direct_CXX=yes 11859 hardcode_shlibpath_var_CXX=no 11860 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11861 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11863 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11864 export_dynamic_flag_spec_CXX='${wl}-E' 11865 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11866 fi 11867 output_verbose_link_cmd='echo' 11868 ;; 11869 osf3*) 11870 case $cc_basename in 11871 KCC*) 11872 # Kuck and Associates, Inc. (KAI) C++ Compiler 11873 11874 # KCC will only create a shared library if the output file 11875 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11876 # to its proper name (with version) after linking. 11877 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11878 11879 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11880 hardcode_libdir_separator_CXX=: 11881 11882 # Archives containing C++ object files must be created using 11883 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11884 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11885 11886 ;; 11887 RCC*) 11888 # Rational C++ 2.4.1 11889 # FIXME: insert proper C++ library support 11890 ld_shlibs_CXX=no 11891 ;; 11892 cxx*) 11893 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11894 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11895 11896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11897 hardcode_libdir_separator_CXX=: 11898 11899 # Commands to make compiler produce verbose output that lists 11900 # what "hidden" libraries, object files and flags are used when 11901 # linking a shared library. 11902 # 11903 # There doesn't appear to be a way to prevent this compiler from 11904 # explicitly linking system object files so we need to strip them 11905 # from the output so that they don't get included in the library 11906 # dependencies. 11907 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11908 ;; 11909 *) 11910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11911 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11912 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11913 11914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11915 hardcode_libdir_separator_CXX=: 11916 11917 # Commands to make compiler produce verbose output that lists 11918 # what "hidden" libraries, object files and flags are used when 11919 # linking a shared library. 11920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11921 11922 else 11923 # FIXME: insert proper C++ library support 11924 ld_shlibs_CXX=no 11925 fi 11926 ;; 11927 esac 11928 ;; 11929 osf4* | osf5*) 11930 case $cc_basename in 11931 KCC*) 11932 # Kuck and Associates, Inc. (KAI) C++ Compiler 11933 11934 # KCC will only create a shared library if the output file 11935 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11936 # to its proper name (with version) after linking. 11937 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 11938 11939 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11940 hardcode_libdir_separator_CXX=: 11941 11942 # Archives containing C++ object files must be created using 11943 # the KAI C++ compiler. 11944 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11945 ;; 11946 RCC*) 11947 # Rational C++ 2.4.1 11948 # FIXME: insert proper C++ library support 11949 ld_shlibs_CXX=no 11950 ;; 11951 cxx*) 11952 allow_undefined_flag_CXX=' -expect_unresolved \*' 11953 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11954 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11955 echo "-hidden">> $lib.exp~ 11956 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 11957 $rm $lib.exp' 11958 11959 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11960 hardcode_libdir_separator_CXX=: 11961 11962 # Commands to make compiler produce verbose output that lists 11963 # what "hidden" libraries, object files and flags are used when 11964 # linking a shared library. 11965 # 11966 # There doesn't appear to be a way to prevent this compiler from 11967 # explicitly linking system object files so we need to strip them 11968 # from the output so that they don't get included in the library 11969 # dependencies. 11970 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11971 ;; 11972 *) 11973 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11974 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11975 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11976 11977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11978 hardcode_libdir_separator_CXX=: 11979 11980 # Commands to make compiler produce verbose output that lists 11981 # what "hidden" libraries, object files and flags are used when 11982 # linking a shared library. 11983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11984 11985 else 11986 # FIXME: insert proper C++ library support 11987 ld_shlibs_CXX=no 11988 fi 11989 ;; 11990 esac 11991 ;; 11992 psos*) 11993 # FIXME: insert proper C++ library support 11994 ld_shlibs_CXX=no 11995 ;; 11996 sunos4*) 11997 case $cc_basename in 11998 CC*) 11999 # Sun C++ 4.x 12000 # FIXME: insert proper C++ library support 12001 ld_shlibs_CXX=no 12002 ;; 12003 lcc*) 12004 # Lucid 12005 # FIXME: insert proper C++ library support 12006 ld_shlibs_CXX=no 12007 ;; 12008 *) 12009 # FIXME: insert proper C++ library support 12010 ld_shlibs_CXX=no 12011 ;; 12012 esac 12013 ;; 12014 solaris*) 12015 case $cc_basename in 12016 CC*) 12017 # Sun C++ 4.2, 5.x and Centerline C++ 12018 archive_cmds_need_lc_CXX=yes 12019 no_undefined_flag_CXX=' -zdefs' 12020 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12021 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12022 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12023 12024 hardcode_libdir_flag_spec_CXX='-R$libdir' 12025 hardcode_shlibpath_var_CXX=no 12026 case $host_os in 12027 solaris2.[0-5] | solaris2.[0-5].*) ;; 12028 *) 12029 # The C++ compiler is used as linker so we must use $wl 12030 # flag to pass the commands to the underlying system 12031 # linker. We must also pass each convience library through 12032 # to the system linker between allextract/defaultextract. 12033 # The C++ compiler will combine linker options so we 12034 # cannot just pass the convience library names through 12035 # without $wl. 12036 # Supported since Solaris 2.6 (maybe 2.5.1?) 12037 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 12038 ;; 12039 esac 12040 link_all_deplibs_CXX=yes 12041 12042 output_verbose_link_cmd='echo' 12043 12044 # Archives containing C++ object files must be created using 12045 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12046 # necessary to make sure instantiated templates are included 12047 # in the archive. 12048 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12049 ;; 12050 gcx*) 12051 # Green Hills C++ Compiler 12052 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12053 12054 # The C++ compiler must be used to create the archive. 12055 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12056 ;; 12057 *) 12058 # GNU C++ compiler with Solaris linker 12059 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12060 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12061 if $CC --version | grep -v '^2\.7' > /dev/null; then 12062 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12063 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12064 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12065 12066 # Commands to make compiler produce verbose output that lists 12067 # what "hidden" libraries, object files and flags are used when 12068 # linking a shared library. 12069 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12070 else 12071 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12072 # platform. 12073 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12074 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12075 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12076 12077 # Commands to make compiler produce verbose output that lists 12078 # what "hidden" libraries, object files and flags are used when 12079 # linking a shared library. 12080 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12081 fi 12082 12083 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12084 fi 12085 ;; 12086 esac 12087 ;; 12088 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12089 no_undefined_flag_CXX='${wl}-z,text' 12090 archive_cmds_need_lc_CXX=no 12091 hardcode_shlibpath_var_CXX=no 12092 runpath_var='LD_RUN_PATH' 12093 12094 case $cc_basename in 12095 CC*) 12096 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12097 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12098 ;; 12099 *) 12100 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12101 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12102 ;; 12103 esac 12104 ;; 12105 sysv5* | sco3.2v5* | sco5v6*) 12106 # Note: We can NOT use -z defs as we might desire, because we do not 12107 # link with -lc, and that would cause any symbols used from libc to 12108 # always be unresolved, which means just about no library would 12109 # ever link correctly. If we're not using GNU ld we use -z text 12110 # though, which does catch some bad symbols but isn't as heavy-handed 12111 # as -z defs. 12112 # For security reasons, it is highly recommended that you always 12113 # use absolute paths for naming shared libraries, and exclude the 12114 # DT_RUNPATH tag from executables and libraries. But doing so 12115 # requires that you compile everything twice, which is a pain. 12116 # So that behaviour is only enabled if SCOABSPATH is set to a 12117 # non-empty value in the environment. Most likely only useful for 12118 # creating official distributions of packages. 12119 # This is a hack until libtool officially supports absolute path 12120 # names for shared libraries. 12121 no_undefined_flag_CXX='${wl}-z,text' 12122 allow_undefined_flag_CXX='${wl}-z,nodefs' 12123 archive_cmds_need_lc_CXX=no 12124 hardcode_shlibpath_var_CXX=no 12125 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12126 hardcode_libdir_separator_CXX=':' 12127 link_all_deplibs_CXX=yes 12128 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12129 runpath_var='LD_RUN_PATH' 12130 12131 case $cc_basename in 12132 CC*) 12133 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12134 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12135 ;; 12136 *) 12137 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12138 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12139 ;; 12140 esac 12141 ;; 12142 tandem*) 12143 case $cc_basename in 12144 NCC*) 12145 # NonStop-UX NCC 3.20 12146 # FIXME: insert proper C++ library support 12147 ld_shlibs_CXX=no 12148 ;; 12149 *) 12150 # FIXME: insert proper C++ library support 12151 ld_shlibs_CXX=no 12152 ;; 12153 esac 12154 ;; 12155 vxworks*) 12156 # FIXME: insert proper C++ library support 12157 ld_shlibs_CXX=no 12158 ;; 12159 *) 12160 # FIXME: insert proper C++ library support 12161 ld_shlibs_CXX=no 12162 ;; 12163esac 12164{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12165echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12166test "$ld_shlibs_CXX" = no && can_build_shared=no 12167 12168GCC_CXX="$GXX" 12169LD_CXX="$LD" 12170 12171 12172cat > conftest.$ac_ext <<EOF 12173class Foo 12174{ 12175public: 12176 Foo (void) { a = 0; } 12177private: 12178 int a; 12179}; 12180EOF 12181 12182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12183 (eval $ac_compile) 2>&5 12184 ac_status=$? 12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12186 (exit $ac_status); }; then 12187 # Parse the compiler output and extract the necessary 12188 # objects, libraries and library flags. 12189 12190 # Sentinel used to keep track of whether or not we are before 12191 # the conftest object file. 12192 pre_test_object_deps_done=no 12193 12194 # The `*' in the case matches for architectures that use `case' in 12195 # $output_verbose_cmd can trigger glob expansion during the loop 12196 # eval without this substitution. 12197 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12198 12199 for p in `eval $output_verbose_link_cmd`; do 12200 case $p in 12201 12202 -L* | -R* | -l*) 12203 # Some compilers place space between "-{L,R}" and the path. 12204 # Remove the space. 12205 if test $p = "-L" \ 12206 || test $p = "-R"; then 12207 prev=$p 12208 continue 12209 else 12210 prev= 12211 fi 12212 12213 if test "$pre_test_object_deps_done" = no; then 12214 case $p in 12215 -L* | -R*) 12216 # Internal compiler library paths should come after those 12217 # provided the user. The postdeps already come after the 12218 # user supplied libs so there is no need to process them. 12219 if test -z "$compiler_lib_search_path_CXX"; then 12220 compiler_lib_search_path_CXX="${prev}${p}" 12221 else 12222 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12223 fi 12224 ;; 12225 # The "-l" case would never come before the object being 12226 # linked, so don't bother handling this case. 12227 esac 12228 else 12229 if test -z "$postdeps_CXX"; then 12230 postdeps_CXX="${prev}${p}" 12231 else 12232 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12233 fi 12234 fi 12235 ;; 12236 12237 *.$objext) 12238 # This assumes that the test object file only shows up 12239 # once in the compiler output. 12240 if test "$p" = "conftest.$objext"; then 12241 pre_test_object_deps_done=yes 12242 continue 12243 fi 12244 12245 if test "$pre_test_object_deps_done" = no; then 12246 if test -z "$predep_objects_CXX"; then 12247 predep_objects_CXX="$p" 12248 else 12249 predep_objects_CXX="$predep_objects_CXX $p" 12250 fi 12251 else 12252 if test -z "$postdep_objects_CXX"; then 12253 postdep_objects_CXX="$p" 12254 else 12255 postdep_objects_CXX="$postdep_objects_CXX $p" 12256 fi 12257 fi 12258 ;; 12259 12260 *) ;; # Ignore the rest. 12261 12262 esac 12263 done 12264 12265 # Clean up. 12266 rm -f a.out a.exe 12267else 12268 echo "libtool.m4: error: problem compiling CXX test program" 12269fi 12270 12271$rm -f confest.$objext 12272 12273# PORTME: override above test on systems where it is broken 12274case $host_os in 12275interix3*) 12276 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12277 # hack all around it, let's just trust "g++" to DTRT. 12278 predep_objects_CXX= 12279 postdep_objects_CXX= 12280 postdeps_CXX= 12281 ;; 12282 12283solaris*) 12284 case $cc_basename in 12285 CC*) 12286 # Adding this requires a known-good setup of shared libraries for 12287 # Sun compiler versions before 5.6, else PIC objects from an old 12288 # archive will be linked into the output, leading to subtle bugs. 12289 postdeps_CXX='-lCstd -lCrun' 12290 ;; 12291 esac 12292 ;; 12293esac 12294 12295 12296case " $postdeps_CXX " in 12297*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12298esac 12299 12300lt_prog_compiler_wl_CXX= 12301lt_prog_compiler_pic_CXX= 12302lt_prog_compiler_static_CXX= 12303 12304{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12305echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12306 12307 # C++ specific cases for pic, static, wl, etc. 12308 if test "$GXX" = yes; then 12309 lt_prog_compiler_wl_CXX='-Wl,' 12310 lt_prog_compiler_static_CXX='-static' 12311 12312 case $host_os in 12313 aix*) 12314 # All AIX code is PIC. 12315 if test "$host_cpu" = ia64; then 12316 # AIX 5 now supports IA64 processor 12317 lt_prog_compiler_static_CXX='-Bstatic' 12318 fi 12319 ;; 12320 amigaos*) 12321 # FIXME: we need at least 68020 code to build shared libraries, but 12322 # adding the `-m68020' flag to GCC prevents building anything better, 12323 # like `-m68040'. 12324 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12325 ;; 12326 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12327 # PIC is the default for these OSes. 12328 ;; 12329 mingw* | os2* | pw32*) 12330 # This hack is so that the source file can tell whether it is being 12331 # built for inclusion in a dll (and should export symbols for example). 12332 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12333 ;; 12334 darwin* | rhapsody*) 12335 # PIC is the default on this platform 12336 # Common symbols not allowed in MH_DYLIB files 12337 lt_prog_compiler_pic_CXX='-fno-common' 12338 ;; 12339 *djgpp*) 12340 # DJGPP does not support shared libraries at all 12341 lt_prog_compiler_pic_CXX= 12342 ;; 12343 interix3*) 12344 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12345 # Instead, we relocate shared libraries at runtime. 12346 ;; 12347 sysv4*MP*) 12348 if test -d /usr/nec; then 12349 lt_prog_compiler_pic_CXX=-Kconform_pic 12350 fi 12351 ;; 12352 hpux*) 12353 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12354 # not for PA HP-UX. 12355 case $host_cpu in 12356 hppa*64*|ia64*) 12357 ;; 12358 *) 12359 lt_prog_compiler_pic_CXX='-fPIC' 12360 ;; 12361 esac 12362 ;; 12363 *) 12364 lt_prog_compiler_pic_CXX='-fPIC' 12365 ;; 12366 esac 12367 else 12368 case $host_os in 12369 aix4* | aix5*) 12370 # All AIX code is PIC. 12371 if test "$host_cpu" = ia64; then 12372 # AIX 5 now supports IA64 processor 12373 lt_prog_compiler_static_CXX='-Bstatic' 12374 else 12375 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12376 fi 12377 ;; 12378 chorus*) 12379 case $cc_basename in 12380 cxch68*) 12381 # Green Hills C++ Compiler 12382 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 12383 ;; 12384 esac 12385 ;; 12386 darwin*) 12387 # PIC is the default on this platform 12388 # Common symbols not allowed in MH_DYLIB files 12389 case $cc_basename in 12390 xlc*) 12391 lt_prog_compiler_pic_CXX='-qnocommon' 12392 lt_prog_compiler_wl_CXX='-Wl,' 12393 ;; 12394 esac 12395 ;; 12396 dgux*) 12397 case $cc_basename in 12398 ec++*) 12399 lt_prog_compiler_pic_CXX='-KPIC' 12400 ;; 12401 ghcx*) 12402 # Green Hills C++ Compiler 12403 lt_prog_compiler_pic_CXX='-pic' 12404 ;; 12405 *) 12406 ;; 12407 esac 12408 ;; 12409 freebsd* | dragonfly*) 12410 # FreeBSD uses GNU C++ 12411 ;; 12412 hpux9* | hpux10* | hpux11*) 12413 case $cc_basename in 12414 CC*) 12415 lt_prog_compiler_wl_CXX='-Wl,' 12416 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12417 if test "$host_cpu" != ia64; then 12418 lt_prog_compiler_pic_CXX='+Z' 12419 fi 12420 ;; 12421 aCC*) 12422 lt_prog_compiler_wl_CXX='-Wl,' 12423 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12424 case $host_cpu in 12425 hppa*64*|ia64*) 12426 # +Z the default 12427 ;; 12428 *) 12429 lt_prog_compiler_pic_CXX='+Z' 12430 ;; 12431 esac 12432 ;; 12433 *) 12434 ;; 12435 esac 12436 ;; 12437 interix*) 12438 # This is c89, which is MS Visual C++ (no shared libs) 12439 # Anyone wants to do a port? 12440 ;; 12441 irix5* | irix6* | nonstopux*) 12442 case $cc_basename in 12443 CC*) 12444 lt_prog_compiler_wl_CXX='-Wl,' 12445 lt_prog_compiler_static_CXX='-non_shared' 12446 # CC pic flag -KPIC is the default. 12447 ;; 12448 *) 12449 ;; 12450 esac 12451 ;; 12452 linux* | k*bsd*-gnu) 12453 case $cc_basename in 12454 KCC*) 12455 # KAI C++ Compiler 12456 lt_prog_compiler_wl_CXX='--backend -Wl,' 12457 lt_prog_compiler_pic_CXX='-fPIC' 12458 ;; 12459 icpc* | ecpc*) 12460 # Intel C++ 12461 lt_prog_compiler_wl_CXX='-Wl,' 12462 lt_prog_compiler_pic_CXX='-KPIC' 12463 lt_prog_compiler_static_CXX='-static' 12464 ;; 12465 pgCC*) 12466 # Portland Group C++ compiler. 12467 lt_prog_compiler_wl_CXX='-Wl,' 12468 lt_prog_compiler_pic_CXX='-fpic' 12469 lt_prog_compiler_static_CXX='-Bstatic' 12470 ;; 12471 cxx*) 12472 # Compaq C++ 12473 # Make sure the PIC flag is empty. It appears that all Alpha 12474 # Linux and Compaq Tru64 Unix objects are PIC. 12475 lt_prog_compiler_pic_CXX= 12476 lt_prog_compiler_static_CXX='-non_shared' 12477 ;; 12478 *) 12479 ;; 12480 esac 12481 ;; 12482 lynxos*) 12483 ;; 12484 m88k*) 12485 ;; 12486 mvs*) 12487 case $cc_basename in 12488 cxx*) 12489 lt_prog_compiler_pic_CXX='-W c,exportall' 12490 ;; 12491 *) 12492 ;; 12493 esac 12494 ;; 12495 netbsd* | netbsdelf*-gnu) 12496 ;; 12497 osf3* | osf4* | osf5*) 12498 case $cc_basename in 12499 KCC*) 12500 lt_prog_compiler_wl_CXX='--backend -Wl,' 12501 ;; 12502 RCC*) 12503 # Rational C++ 2.4.1 12504 lt_prog_compiler_pic_CXX='-pic' 12505 ;; 12506 cxx*) 12507 # Digital/Compaq C++ 12508 lt_prog_compiler_wl_CXX='-Wl,' 12509 # Make sure the PIC flag is empty. It appears that all Alpha 12510 # Linux and Compaq Tru64 Unix objects are PIC. 12511 lt_prog_compiler_pic_CXX= 12512 lt_prog_compiler_static_CXX='-non_shared' 12513 ;; 12514 *) 12515 ;; 12516 esac 12517 ;; 12518 psos*) 12519 ;; 12520 solaris*) 12521 case $cc_basename in 12522 CC*) 12523 # Sun C++ 4.2, 5.x and Centerline C++ 12524 lt_prog_compiler_pic_CXX='-KPIC' 12525 lt_prog_compiler_static_CXX='-Bstatic' 12526 lt_prog_compiler_wl_CXX='-Qoption ld ' 12527 ;; 12528 gcx*) 12529 # Green Hills C++ Compiler 12530 lt_prog_compiler_pic_CXX='-PIC' 12531 ;; 12532 *) 12533 ;; 12534 esac 12535 ;; 12536 sunos4*) 12537 case $cc_basename in 12538 CC*) 12539 # Sun C++ 4.x 12540 lt_prog_compiler_pic_CXX='-pic' 12541 lt_prog_compiler_static_CXX='-Bstatic' 12542 ;; 12543 lcc*) 12544 # Lucid 12545 lt_prog_compiler_pic_CXX='-pic' 12546 ;; 12547 *) 12548 ;; 12549 esac 12550 ;; 12551 tandem*) 12552 case $cc_basename in 12553 NCC*) 12554 # NonStop-UX NCC 3.20 12555 lt_prog_compiler_pic_CXX='-KPIC' 12556 ;; 12557 *) 12558 ;; 12559 esac 12560 ;; 12561 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12562 case $cc_basename in 12563 CC*) 12564 lt_prog_compiler_wl_CXX='-Wl,' 12565 lt_prog_compiler_pic_CXX='-KPIC' 12566 lt_prog_compiler_static_CXX='-Bstatic' 12567 ;; 12568 esac 12569 ;; 12570 vxworks*) 12571 ;; 12572 *) 12573 lt_prog_compiler_can_build_shared_CXX=no 12574 ;; 12575 esac 12576 fi 12577 12578{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12579echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12580 12581# 12582# Check to make sure the PIC flag actually works. 12583# 12584if test -n "$lt_prog_compiler_pic_CXX"; then 12585 12586{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12587echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12588if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12589 echo $ECHO_N "(cached) $ECHO_C" >&6 12590else 12591 lt_prog_compiler_pic_works_CXX=no 12592 ac_outfile=conftest.$ac_objext 12593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12594 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12595 # Insert the option either (1) after the last *FLAGS variable, or 12596 # (2) before a word containing "conftest.", or (3) at the end. 12597 # Note that $ac_compile itself does not contain backslashes and begins 12598 # with a dollar sign (not a hyphen), so the echo should work correctly. 12599 # The option is referenced via a variable to avoid confusing sed. 12600 lt_compile=`echo "$ac_compile" | $SED \ 12601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12603 -e 's:$: $lt_compiler_flag:'` 12604 (eval echo "\"\$as_me:12604: $lt_compile\"" >&5) 12605 (eval "$lt_compile" 2>conftest.err) 12606 ac_status=$? 12607 cat conftest.err >&5 12608 echo "$as_me:12608: \$? = $ac_status" >&5 12609 if (exit $ac_status) && test -s "$ac_outfile"; then 12610 # The compiler can only warn and ignore the option if not recognized 12611 # So say no if there are warnings other than the usual output. 12612 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12615 lt_prog_compiler_pic_works_CXX=yes 12616 fi 12617 fi 12618 $rm conftest* 12619 12620fi 12621{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12622echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12623 12624if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12625 case $lt_prog_compiler_pic_CXX in 12626 "" | " "*) ;; 12627 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12628 esac 12629else 12630 lt_prog_compiler_pic_CXX= 12631 lt_prog_compiler_can_build_shared_CXX=no 12632fi 12633 12634fi 12635case $host_os in 12636 # For platforms which do not support PIC, -DPIC is meaningless: 12637 *djgpp*) 12638 lt_prog_compiler_pic_CXX= 12639 ;; 12640 *) 12641 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12642 ;; 12643esac 12644 12645# 12646# Check to make sure the static flag actually works. 12647# 12648wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12649{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12650echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12651if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12652 echo $ECHO_N "(cached) $ECHO_C" >&6 12653else 12654 lt_prog_compiler_static_works_CXX=no 12655 save_LDFLAGS="$LDFLAGS" 12656 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12657 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12659 # The linker can only warn and ignore the option if not recognized 12660 # So say no if there are warnings 12661 if test -s conftest.err; then 12662 # Append any errors to the config.log. 12663 cat conftest.err 1>&5 12664 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12666 if diff conftest.exp conftest.er2 >/dev/null; then 12667 lt_prog_compiler_static_works_CXX=yes 12668 fi 12669 else 12670 lt_prog_compiler_static_works_CXX=yes 12671 fi 12672 fi 12673 $rm conftest* 12674 LDFLAGS="$save_LDFLAGS" 12675 12676fi 12677{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12678echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12679 12680if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12681 : 12682else 12683 lt_prog_compiler_static_CXX= 12684fi 12685 12686 12687{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12688echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12689if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12690 echo $ECHO_N "(cached) $ECHO_C" >&6 12691else 12692 lt_cv_prog_compiler_c_o_CXX=no 12693 $rm -r conftest 2>/dev/null 12694 mkdir conftest 12695 cd conftest 12696 mkdir out 12697 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12698 12699 lt_compiler_flag="-o out/conftest2.$ac_objext" 12700 # Insert the option either (1) after the last *FLAGS variable, or 12701 # (2) before a word containing "conftest.", or (3) at the end. 12702 # Note that $ac_compile itself does not contain backslashes and begins 12703 # with a dollar sign (not a hyphen), so the echo should work correctly. 12704 lt_compile=`echo "$ac_compile" | $SED \ 12705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12707 -e 's:$: $lt_compiler_flag:'` 12708 (eval echo "\"\$as_me:12708: $lt_compile\"" >&5) 12709 (eval "$lt_compile" 2>out/conftest.err) 12710 ac_status=$? 12711 cat out/conftest.err >&5 12712 echo "$as_me:12712: \$? = $ac_status" >&5 12713 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12714 then 12715 # The compiler can only warn and ignore the option if not recognized 12716 # So say no if there are warnings 12717 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12720 lt_cv_prog_compiler_c_o_CXX=yes 12721 fi 12722 fi 12723 chmod u+w . 2>&5 12724 $rm conftest* 12725 # SGI C++ compiler will create directory out/ii_files/ for 12726 # template instantiation 12727 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12728 $rm out/* && rmdir out 12729 cd .. 12730 rmdir conftest 12731 $rm conftest* 12732 12733fi 12734{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12735echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12736 12737 12738hard_links="nottested" 12739if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12740 # do not overwrite the value of need_locks provided by the user 12741 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12742echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12743 hard_links=yes 12744 $rm conftest* 12745 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12746 touch conftest.a 12747 ln conftest.a conftest.b 2>&5 || hard_links=no 12748 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12749 { echo "$as_me:$LINENO: result: $hard_links" >&5 12750echo "${ECHO_T}$hard_links" >&6; } 12751 if test "$hard_links" = no; then 12752 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12753echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12754 need_locks=warn 12755 fi 12756else 12757 need_locks=no 12758fi 12759 12760{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12761echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12762 12763 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12764 case $host_os in 12765 aix4* | aix5*) 12766 # If we're using GNU nm, then we don't want the "-C" option. 12767 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12768 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12769 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12770 else 12771 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 12772 fi 12773 ;; 12774 pw32*) 12775 export_symbols_cmds_CXX="$ltdll_cmds" 12776 ;; 12777 cygwin* | mingw*) 12778 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 12779 ;; 12780 linux* | k*bsd*-gnu) 12781 link_all_deplibs_CXX=no 12782 ;; 12783 *) 12784 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12785 ;; 12786 esac 12787 12788{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12789echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12790test "$ld_shlibs_CXX" = no && can_build_shared=no 12791 12792# 12793# Do we need to explicitly link libc? 12794# 12795case "x$archive_cmds_need_lc_CXX" in 12796x|xyes) 12797 # Assume -lc should be added 12798 archive_cmds_need_lc_CXX=yes 12799 12800 if test "$enable_shared" = yes && test "$GCC" = yes; then 12801 case $archive_cmds_CXX in 12802 *'~'*) 12803 # FIXME: we may have to deal with multi-command sequences. 12804 ;; 12805 '$CC '*) 12806 # Test whether the compiler implicitly links with -lc since on some 12807 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12808 # to ld, don't add -lc before -lgcc. 12809 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12810echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12811 $rm conftest* 12812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12813 12814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12815 (eval $ac_compile) 2>&5 12816 ac_status=$? 12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12818 (exit $ac_status); } 2>conftest.err; then 12819 soname=conftest 12820 lib=conftest 12821 libobjs=conftest.$ac_objext 12822 deplibs= 12823 wl=$lt_prog_compiler_wl_CXX 12824 pic_flag=$lt_prog_compiler_pic_CXX 12825 compiler_flags=-v 12826 linker_flags=-v 12827 verstring= 12828 output_objdir=. 12829 libname=conftest 12830 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12831 allow_undefined_flag_CXX= 12832 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12833 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12834 ac_status=$? 12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12836 (exit $ac_status); } 12837 then 12838 archive_cmds_need_lc_CXX=no 12839 else 12840 archive_cmds_need_lc_CXX=yes 12841 fi 12842 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12843 else 12844 cat conftest.err 1>&5 12845 fi 12846 $rm conftest* 12847 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12848echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12849 ;; 12850 esac 12851 fi 12852 ;; 12853esac 12854 12855{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12856echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12857library_names_spec= 12858libname_spec='lib$name' 12859soname_spec= 12860shrext_cmds=".so" 12861postinstall_cmds= 12862postuninstall_cmds= 12863finish_cmds= 12864finish_eval= 12865shlibpath_var= 12866shlibpath_overrides_runpath=unknown 12867version_type=none 12868dynamic_linker="$host_os ld.so" 12869sys_lib_dlsearch_path_spec="/lib /usr/lib" 12870if test "$GCC" = yes; then 12871 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12872 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12873 # if the path contains ";" then we assume it to be the separator 12874 # otherwise default to the standard path separator (i.e. ":") - it is 12875 # assumed that no part of a normal pathname contains ";" but that should 12876 # okay in the real world where ";" in dirpaths is itself problematic. 12877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12878 else 12879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12880 fi 12881else 12882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12883fi 12884need_lib_prefix=unknown 12885hardcode_into_libs=no 12886 12887# when you set need_version to no, make sure it does not cause -set_version 12888# flags to be left without arguments 12889need_version=unknown 12890 12891case $host_os in 12892aix3*) 12893 version_type=linux 12894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12895 shlibpath_var=LIBPATH 12896 12897 # AIX 3 has no versioning support, so we append a major version to the name. 12898 soname_spec='${libname}${release}${shared_ext}$major' 12899 ;; 12900 12901aix4* | aix5*) 12902 version_type=linux 12903 need_lib_prefix=no 12904 need_version=no 12905 hardcode_into_libs=yes 12906 if test "$host_cpu" = ia64; then 12907 # AIX 5 supports IA64 12908 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12909 shlibpath_var=LD_LIBRARY_PATH 12910 else 12911 # With GCC up to 2.95.x, collect2 would create an import file 12912 # for dependence libraries. The import file would start with 12913 # the line `#! .'. This would cause the generated library to 12914 # depend on `.', always an invalid library. This was fixed in 12915 # development snapshots of GCC prior to 3.0. 12916 case $host_os in 12917 aix4 | aix4.[01] | aix4.[01].*) 12918 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12919 echo ' yes ' 12920 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12921 : 12922 else 12923 can_build_shared=no 12924 fi 12925 ;; 12926 esac 12927 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12928 # soname into executable. Probably we can add versioning support to 12929 # collect2, so additional links can be useful in future. 12930 if test "$aix_use_runtimelinking" = yes; then 12931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12932 # instead of lib<name>.a to let people know that these are not 12933 # typical AIX shared libraries. 12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12935 else 12936 # We preserve .a as extension for shared libraries through AIX4.2 12937 # and later when we are not doing run time linking. 12938 library_names_spec='${libname}${release}.a $libname.a' 12939 soname_spec='${libname}${release}${shared_ext}$major' 12940 fi 12941 shlibpath_var=LIBPATH 12942 fi 12943 ;; 12944 12945amigaos*) 12946 library_names_spec='$libname.ixlibrary $libname.a' 12947 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12948 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' 12949 ;; 12950 12951beos*) 12952 library_names_spec='${libname}${shared_ext}' 12953 dynamic_linker="$host_os ld.so" 12954 shlibpath_var=LIBRARY_PATH 12955 ;; 12956 12957bsdi[45]*) 12958 version_type=linux 12959 need_version=no 12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12961 soname_spec='${libname}${release}${shared_ext}$major' 12962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12963 shlibpath_var=LD_LIBRARY_PATH 12964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12966 # the default ld.so.conf also contains /usr/contrib/lib and 12967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12968 # libtool to hard-code these into programs 12969 ;; 12970 12971cygwin* | mingw* | pw32*) 12972 version_type=windows 12973 shrext_cmds=".dll" 12974 need_version=no 12975 need_lib_prefix=no 12976 12977 case $GCC,$host_os in 12978 yes,cygwin* | yes,mingw* | yes,pw32*) 12979 library_names_spec='$libname.dll.a' 12980 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12981 postinstall_cmds='base_file=`basename \${file}`~ 12982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12983 dldir=$destdir/`dirname \$dlpath`~ 12984 test -d \$dldir || mkdir -p \$dldir~ 12985 $install_prog $dir/$dlname \$dldir/$dlname~ 12986 chmod a+x \$dldir/$dlname' 12987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12988 dlpath=$dir/\$dldll~ 12989 $rm \$dlpath' 12990 shlibpath_overrides_runpath=yes 12991 12992 case $host_os in 12993 cygwin*) 12994 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12995 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12996 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12997 ;; 12998 mingw*) 12999 # MinGW DLLs use traditional 'lib' prefix 13000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13002 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13003 # It is most probably a Windows format PATH printed by 13004 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13005 # path with ; separators, and with drive letters. We can handle the 13006 # drive letters (cygwin fileutils understands them), so leave them, 13007 # especially as we might pass files found there to a mingw objdump, 13008 # which wouldn't understand a cygwinified path. Ahh. 13009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13010 else 13011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13012 fi 13013 ;; 13014 pw32*) 13015 # pw32 DLLs use 'pw' prefix rather than 'lib' 13016 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13017 ;; 13018 esac 13019 ;; 13020 13021 *) 13022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13023 ;; 13024 esac 13025 dynamic_linker='Win32 ld.exe' 13026 # FIXME: first we should search . and the directory the executable is in 13027 shlibpath_var=PATH 13028 ;; 13029 13030darwin* | rhapsody*) 13031 dynamic_linker="$host_os dyld" 13032 version_type=darwin 13033 need_lib_prefix=no 13034 need_version=no 13035 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13036 soname_spec='${libname}${release}${major}$shared_ext' 13037 shlibpath_overrides_runpath=yes 13038 shlibpath_var=DYLD_LIBRARY_PATH 13039 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13040 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13041 if test "$GCC" = yes; then 13042 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13043 else 13044 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13045 fi 13046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13047 ;; 13048 13049dgux*) 13050 version_type=linux 13051 need_lib_prefix=no 13052 need_version=no 13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13054 soname_spec='${libname}${release}${shared_ext}$major' 13055 shlibpath_var=LD_LIBRARY_PATH 13056 ;; 13057 13058freebsd1*) 13059 dynamic_linker=no 13060 ;; 13061 13062freebsd* | dragonfly*) 13063 # DragonFly does not have aout. When/if they implement a new 13064 # versioning mechanism, adjust this. 13065 if test -x /usr/bin/objformat; then 13066 objformat=`/usr/bin/objformat` 13067 else 13068 case $host_os in 13069 freebsd[123]*) objformat=aout ;; 13070 *) objformat=elf ;; 13071 esac 13072 fi 13073 version_type=freebsd-$objformat 13074 case $version_type in 13075 freebsd-elf*) 13076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13077 need_version=no 13078 need_lib_prefix=no 13079 ;; 13080 freebsd-*) 13081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13082 need_version=yes 13083 ;; 13084 esac 13085 shlibpath_var=LD_LIBRARY_PATH 13086 case $host_os in 13087 freebsd2*) 13088 shlibpath_overrides_runpath=yes 13089 ;; 13090 freebsd3.[01]* | freebsdelf3.[01]*) 13091 shlibpath_overrides_runpath=yes 13092 hardcode_into_libs=yes 13093 ;; 13094 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13095 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13096 shlibpath_overrides_runpath=no 13097 hardcode_into_libs=yes 13098 ;; 13099 freebsd*) # from 4.6 on 13100 shlibpath_overrides_runpath=yes 13101 hardcode_into_libs=yes 13102 ;; 13103 esac 13104 ;; 13105 13106gnu*) 13107 version_type=linux 13108 need_lib_prefix=no 13109 need_version=no 13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13111 soname_spec='${libname}${release}${shared_ext}$major' 13112 shlibpath_var=LD_LIBRARY_PATH 13113 hardcode_into_libs=yes 13114 ;; 13115 13116hpux9* | hpux10* | hpux11*) 13117 # Give a soname corresponding to the major version so that dld.sl refuses to 13118 # link against other versions. 13119 version_type=sunos 13120 need_lib_prefix=no 13121 need_version=no 13122 case $host_cpu in 13123 ia64*) 13124 shrext_cmds='.so' 13125 hardcode_into_libs=yes 13126 dynamic_linker="$host_os dld.so" 13127 shlibpath_var=LD_LIBRARY_PATH 13128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13130 soname_spec='${libname}${release}${shared_ext}$major' 13131 if test "X$HPUX_IA64_MODE" = X32; then 13132 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13133 else 13134 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13135 fi 13136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13137 ;; 13138 hppa*64*) 13139 shrext_cmds='.sl' 13140 hardcode_into_libs=yes 13141 dynamic_linker="$host_os dld.sl" 13142 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13143 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13145 soname_spec='${libname}${release}${shared_ext}$major' 13146 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13148 ;; 13149 *) 13150 shrext_cmds='.sl' 13151 dynamic_linker="$host_os dld.sl" 13152 shlibpath_var=SHLIB_PATH 13153 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13155 soname_spec='${libname}${release}${shared_ext}$major' 13156 ;; 13157 esac 13158 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13159 postinstall_cmds='chmod 555 $lib' 13160 ;; 13161 13162interix3*) 13163 version_type=linux 13164 need_lib_prefix=no 13165 need_version=no 13166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13167 soname_spec='${libname}${release}${shared_ext}$major' 13168 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13169 shlibpath_var=LD_LIBRARY_PATH 13170 shlibpath_overrides_runpath=no 13171 hardcode_into_libs=yes 13172 ;; 13173 13174irix5* | irix6* | nonstopux*) 13175 case $host_os in 13176 nonstopux*) version_type=nonstopux ;; 13177 *) 13178 if test "$lt_cv_prog_gnu_ld" = yes; then 13179 version_type=linux 13180 else 13181 version_type=irix 13182 fi ;; 13183 esac 13184 need_lib_prefix=no 13185 need_version=no 13186 soname_spec='${libname}${release}${shared_ext}$major' 13187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13188 case $host_os in 13189 irix5* | nonstopux*) 13190 libsuff= shlibsuff= 13191 ;; 13192 *) 13193 case $LD in # libtool.m4 will add one of these switches to LD 13194 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13195 libsuff= shlibsuff= libmagic=32-bit;; 13196 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13197 libsuff=32 shlibsuff=N32 libmagic=N32;; 13198 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13199 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13200 *) libsuff= shlibsuff= libmagic=never-match;; 13201 esac 13202 ;; 13203 esac 13204 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13205 shlibpath_overrides_runpath=no 13206 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13207 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13208 hardcode_into_libs=yes 13209 ;; 13210 13211# No shared lib support for Linux oldld, aout, or coff. 13212linux*oldld* | linux*aout* | linux*coff*) 13213 dynamic_linker=no 13214 ;; 13215 13216# This must be Linux ELF. 13217linux* | k*bsd*-gnu) 13218 version_type=linux 13219 need_lib_prefix=no 13220 need_version=no 13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13222 soname_spec='${libname}${release}${shared_ext}$major' 13223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13224 shlibpath_var=LD_LIBRARY_PATH 13225 shlibpath_overrides_runpath=no 13226 # This implies no fast_install, which is unacceptable. 13227 # Some rework will be needed to allow for fast_install 13228 # before this can be enabled. 13229 hardcode_into_libs=yes 13230 13231 # Append ld.so.conf contents to the search path 13232 if test -f /etc/ld.so.conf; then 13233 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13234 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13235 fi 13236 13237 # We used to test for /lib/ld.so.1 and disable shared libraries on 13238 # powerpc, because MkLinux only supported shared libraries with the 13239 # GNU dynamic linker. Since this was broken with cross compilers, 13240 # most powerpc-linux boxes support dynamic linking these days and 13241 # people can always --disable-shared, the test was removed, and we 13242 # assume the GNU/Linux dynamic linker is in use. 13243 dynamic_linker='GNU/Linux ld.so' 13244 ;; 13245 13246netbsdelf*-gnu) 13247 version_type=linux 13248 need_lib_prefix=no 13249 need_version=no 13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13251 soname_spec='${libname}${release}${shared_ext}$major' 13252 shlibpath_var=LD_LIBRARY_PATH 13253 shlibpath_overrides_runpath=no 13254 hardcode_into_libs=yes 13255 dynamic_linker='NetBSD ld.elf_so' 13256 ;; 13257 13258netbsd*) 13259 version_type=sunos 13260 need_lib_prefix=no 13261 need_version=no 13262 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13265 dynamic_linker='NetBSD (a.out) ld.so' 13266 else 13267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13268 soname_spec='${libname}${release}${shared_ext}$major' 13269 dynamic_linker='NetBSD ld.elf_so' 13270 fi 13271 shlibpath_var=LD_LIBRARY_PATH 13272 shlibpath_overrides_runpath=yes 13273 hardcode_into_libs=yes 13274 ;; 13275 13276newsos6) 13277 version_type=linux 13278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13279 shlibpath_var=LD_LIBRARY_PATH 13280 shlibpath_overrides_runpath=yes 13281 ;; 13282 13283nto-qnx*) 13284 version_type=linux 13285 need_lib_prefix=no 13286 need_version=no 13287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13288 soname_spec='${libname}${release}${shared_ext}$major' 13289 shlibpath_var=LD_LIBRARY_PATH 13290 shlibpath_overrides_runpath=yes 13291 ;; 13292 13293openbsd*) 13294 version_type=sunos 13295 sys_lib_dlsearch_path_spec="/usr/lib" 13296 need_lib_prefix=no 13297 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13298 case $host_os in 13299 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13300 *) need_version=no ;; 13301 esac 13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13304 shlibpath_var=LD_LIBRARY_PATH 13305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13306 case $host_os in 13307 openbsd2.[89] | openbsd2.[89].*) 13308 shlibpath_overrides_runpath=no 13309 ;; 13310 *) 13311 shlibpath_overrides_runpath=yes 13312 ;; 13313 esac 13314 else 13315 shlibpath_overrides_runpath=yes 13316 fi 13317 ;; 13318 13319os2*) 13320 libname_spec='$name' 13321 shrext_cmds=".dll" 13322 need_lib_prefix=no 13323 library_names_spec='$libname${shared_ext} $libname.a' 13324 dynamic_linker='OS/2 ld.exe' 13325 shlibpath_var=LIBPATH 13326 ;; 13327 13328osf3* | osf4* | osf5*) 13329 version_type=osf 13330 need_lib_prefix=no 13331 need_version=no 13332 soname_spec='${libname}${release}${shared_ext}$major' 13333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13334 shlibpath_var=LD_LIBRARY_PATH 13335 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13336 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13337 ;; 13338 13339solaris*) 13340 version_type=linux 13341 need_lib_prefix=no 13342 need_version=no 13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13344 soname_spec='${libname}${release}${shared_ext}$major' 13345 shlibpath_var=LD_LIBRARY_PATH 13346 shlibpath_overrides_runpath=yes 13347 hardcode_into_libs=yes 13348 # ldd complains unless libraries are executable 13349 postinstall_cmds='chmod +x $lib' 13350 ;; 13351 13352sunos4*) 13353 version_type=sunos 13354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13355 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13356 shlibpath_var=LD_LIBRARY_PATH 13357 shlibpath_overrides_runpath=yes 13358 if test "$with_gnu_ld" = yes; then 13359 need_lib_prefix=no 13360 fi 13361 need_version=yes 13362 ;; 13363 13364sysv4 | sysv4.3*) 13365 version_type=linux 13366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13367 soname_spec='${libname}${release}${shared_ext}$major' 13368 shlibpath_var=LD_LIBRARY_PATH 13369 case $host_vendor in 13370 sni) 13371 shlibpath_overrides_runpath=no 13372 need_lib_prefix=no 13373 export_dynamic_flag_spec='${wl}-Blargedynsym' 13374 runpath_var=LD_RUN_PATH 13375 ;; 13376 siemens) 13377 need_lib_prefix=no 13378 ;; 13379 motorola) 13380 need_lib_prefix=no 13381 need_version=no 13382 shlibpath_overrides_runpath=no 13383 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13384 ;; 13385 esac 13386 ;; 13387 13388sysv4*MP*) 13389 if test -d /usr/nec ;then 13390 version_type=linux 13391 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13392 soname_spec='$libname${shared_ext}.$major' 13393 shlibpath_var=LD_LIBRARY_PATH 13394 fi 13395 ;; 13396 13397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13398 version_type=freebsd-elf 13399 need_lib_prefix=no 13400 need_version=no 13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13402 soname_spec='${libname}${release}${shared_ext}$major' 13403 shlibpath_var=LD_LIBRARY_PATH 13404 hardcode_into_libs=yes 13405 if test "$with_gnu_ld" = yes; then 13406 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13407 shlibpath_overrides_runpath=no 13408 else 13409 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13410 shlibpath_overrides_runpath=yes 13411 case $host_os in 13412 sco3.2v5*) 13413 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13414 ;; 13415 esac 13416 fi 13417 sys_lib_dlsearch_path_spec='/usr/lib' 13418 ;; 13419 13420uts4*) 13421 version_type=linux 13422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13423 soname_spec='${libname}${release}${shared_ext}$major' 13424 shlibpath_var=LD_LIBRARY_PATH 13425 ;; 13426 13427*) 13428 dynamic_linker=no 13429 ;; 13430esac 13431{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13432echo "${ECHO_T}$dynamic_linker" >&6; } 13433test "$dynamic_linker" = no && can_build_shared=no 13434 13435variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13436if test "$GCC" = yes; then 13437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13438fi 13439 13440{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13441echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13442hardcode_action_CXX= 13443if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13444 test -n "$runpath_var_CXX" || \ 13445 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13446 13447 # We can hardcode non-existant directories. 13448 if test "$hardcode_direct_CXX" != no && 13449 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13450 # have to relink, otherwise we might link with an installed library 13451 # when we should be linking with a yet-to-be-installed one 13452 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13453 test "$hardcode_minus_L_CXX" != no; then 13454 # Linking always hardcodes the temporary library directory. 13455 hardcode_action_CXX=relink 13456 else 13457 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13458 hardcode_action_CXX=immediate 13459 fi 13460else 13461 # We cannot hardcode anything, or else we can only hardcode existing 13462 # directories. 13463 hardcode_action_CXX=unsupported 13464fi 13465{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13466echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13467 13468if test "$hardcode_action_CXX" = relink; then 13469 # Fast installation is not supported 13470 enable_fast_install=no 13471elif test "$shlibpath_overrides_runpath" = yes || 13472 test "$enable_shared" = no; then 13473 # Fast installation is not necessary 13474 enable_fast_install=needless 13475fi 13476 13477 13478# The else clause should only fire when bootstrapping the 13479# libtool distribution, otherwise you forgot to ship ltmain.sh 13480# with your package, and you will get complaints that there are 13481# no rules to generate ltmain.sh. 13482if test -f "$ltmain"; then 13483 # See if we are running on zsh, and set the options which allow our commands through 13484 # without removal of \ escapes. 13485 if test -n "${ZSH_VERSION+set}" ; then 13486 setopt NO_GLOB_SUBST 13487 fi 13488 # Now quote all the things that may contain metacharacters while being 13489 # careful not to overquote the AC_SUBSTed values. We take copies of the 13490 # variables and quote the copies for generation of the libtool script. 13491 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13492 SED SHELL STRIP \ 13493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13495 deplibs_check_method reload_flag reload_cmds need_locks \ 13496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13497 lt_cv_sys_global_symbol_to_c_name_address \ 13498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13499 old_postinstall_cmds old_postuninstall_cmds \ 13500 compiler_CXX \ 13501 CC_CXX \ 13502 LD_CXX \ 13503 lt_prog_compiler_wl_CXX \ 13504 lt_prog_compiler_pic_CXX \ 13505 lt_prog_compiler_static_CXX \ 13506 lt_prog_compiler_no_builtin_flag_CXX \ 13507 export_dynamic_flag_spec_CXX \ 13508 thread_safe_flag_spec_CXX \ 13509 whole_archive_flag_spec_CXX \ 13510 enable_shared_with_static_runtimes_CXX \ 13511 old_archive_cmds_CXX \ 13512 old_archive_from_new_cmds_CXX \ 13513 predep_objects_CXX \ 13514 postdep_objects_CXX \ 13515 predeps_CXX \ 13516 postdeps_CXX \ 13517 compiler_lib_search_path_CXX \ 13518 archive_cmds_CXX \ 13519 archive_expsym_cmds_CXX \ 13520 postinstall_cmds_CXX \ 13521 postuninstall_cmds_CXX \ 13522 old_archive_from_expsyms_cmds_CXX \ 13523 allow_undefined_flag_CXX \ 13524 no_undefined_flag_CXX \ 13525 export_symbols_cmds_CXX \ 13526 hardcode_libdir_flag_spec_CXX \ 13527 hardcode_libdir_flag_spec_ld_CXX \ 13528 hardcode_libdir_separator_CXX \ 13529 hardcode_automatic_CXX \ 13530 module_cmds_CXX \ 13531 module_expsym_cmds_CXX \ 13532 lt_cv_prog_compiler_c_o_CXX \ 13533 exclude_expsyms_CXX \ 13534 include_expsyms_CXX; do 13535 13536 case $var in 13537 old_archive_cmds_CXX | \ 13538 old_archive_from_new_cmds_CXX | \ 13539 archive_cmds_CXX | \ 13540 archive_expsym_cmds_CXX | \ 13541 module_cmds_CXX | \ 13542 module_expsym_cmds_CXX | \ 13543 old_archive_from_expsyms_cmds_CXX | \ 13544 export_symbols_cmds_CXX | \ 13545 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13546 postinstall_cmds | postuninstall_cmds | \ 13547 old_postinstall_cmds | old_postuninstall_cmds | \ 13548 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13549 # Double-quote double-evaled strings. 13550 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13551 ;; 13552 *) 13553 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13554 ;; 13555 esac 13556 done 13557 13558 case $lt_echo in 13559 *'\$0 --fallback-echo"') 13560 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13561 ;; 13562 esac 13563 13564cfgfile="$ofile" 13565 13566 cat <<__EOF__ >> "$cfgfile" 13567# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13568 13569# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13570 13571# Shell to use when invoking shell scripts. 13572SHELL=$lt_SHELL 13573 13574# Whether or not to build shared libraries. 13575build_libtool_libs=$enable_shared 13576 13577# Whether or not to build static libraries. 13578build_old_libs=$enable_static 13579 13580# Whether or not to add -lc for building shared libraries. 13581build_libtool_need_lc=$archive_cmds_need_lc_CXX 13582 13583# Whether or not to disallow shared libs when runtime libs are static 13584allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13585 13586# Whether or not to optimize for fast installation. 13587fast_install=$enable_fast_install 13588 13589# The host system. 13590host_alias=$host_alias 13591host=$host 13592host_os=$host_os 13593 13594# The build system. 13595build_alias=$build_alias 13596build=$build 13597build_os=$build_os 13598 13599# An echo program that does not interpret backslashes. 13600echo=$lt_echo 13601 13602# The archiver. 13603AR=$lt_AR 13604AR_FLAGS=$lt_AR_FLAGS 13605 13606# A C compiler. 13607LTCC=$lt_LTCC 13608 13609# LTCC compiler flags. 13610LTCFLAGS=$lt_LTCFLAGS 13611 13612# A language-specific compiler. 13613CC=$lt_compiler_CXX 13614 13615# Is the compiler the GNU C compiler? 13616with_gcc=$GCC_CXX 13617 13618# An ERE matcher. 13619EGREP=$lt_EGREP 13620 13621# The linker used to build libraries. 13622LD=$lt_LD_CXX 13623 13624# Whether we need hard or soft links. 13625LN_S=$lt_LN_S 13626 13627# A BSD-compatible nm program. 13628NM=$lt_NM 13629 13630# A symbol stripping program 13631STRIP=$lt_STRIP 13632 13633# Used to examine libraries when file_magic_cmd begins "file" 13634MAGIC_CMD=$MAGIC_CMD 13635 13636# Used on cygwin: DLL creation program. 13637DLLTOOL="$DLLTOOL" 13638 13639# Used on cygwin: object dumper. 13640OBJDUMP="$OBJDUMP" 13641 13642# Used on cygwin: assembler. 13643AS="$AS" 13644 13645# The name of the directory that contains temporary libtool files. 13646objdir=$objdir 13647 13648# How to create reloadable object files. 13649reload_flag=$lt_reload_flag 13650reload_cmds=$lt_reload_cmds 13651 13652# How to pass a linker flag through the compiler. 13653wl=$lt_lt_prog_compiler_wl_CXX 13654 13655# Object file suffix (normally "o"). 13656objext="$ac_objext" 13657 13658# Old archive suffix (normally "a"). 13659libext="$libext" 13660 13661# Shared library suffix (normally ".so"). 13662shrext_cmds='$shrext_cmds' 13663 13664# Executable file suffix (normally ""). 13665exeext="$exeext" 13666 13667# Additional compiler flags for building library objects. 13668pic_flag=$lt_lt_prog_compiler_pic_CXX 13669pic_mode=$pic_mode 13670 13671# What is the maximum length of a command? 13672max_cmd_len=$lt_cv_sys_max_cmd_len 13673 13674# Does compiler simultaneously support -c and -o options? 13675compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13676 13677# Must we lock files when doing compilation? 13678need_locks=$lt_need_locks 13679 13680# Do we need the lib prefix for modules? 13681need_lib_prefix=$need_lib_prefix 13682 13683# Do we need a version for libraries? 13684need_version=$need_version 13685 13686# Whether dlopen is supported. 13687dlopen_support=$enable_dlopen 13688 13689# Whether dlopen of programs is supported. 13690dlopen_self=$enable_dlopen_self 13691 13692# Whether dlopen of statically linked programs is supported. 13693dlopen_self_static=$enable_dlopen_self_static 13694 13695# Compiler flag to prevent dynamic linking. 13696link_static_flag=$lt_lt_prog_compiler_static_CXX 13697 13698# Compiler flag to turn off builtin functions. 13699no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13700 13701# Compiler flag to allow reflexive dlopens. 13702export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13703 13704# Compiler flag to generate shared objects directly from archives. 13705whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13706 13707# Compiler flag to generate thread-safe objects. 13708thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13709 13710# Library versioning type. 13711version_type=$version_type 13712 13713# Format of library name prefix. 13714libname_spec=$lt_libname_spec 13715 13716# List of archive names. First name is the real one, the rest are links. 13717# The last name is the one that the linker finds with -lNAME. 13718library_names_spec=$lt_library_names_spec 13719 13720# The coded name of the library, if different from the real name. 13721soname_spec=$lt_soname_spec 13722 13723# Commands used to build and install an old-style archive. 13724RANLIB=$lt_RANLIB 13725old_archive_cmds=$lt_old_archive_cmds_CXX 13726old_postinstall_cmds=$lt_old_postinstall_cmds 13727old_postuninstall_cmds=$lt_old_postuninstall_cmds 13728 13729# Create an old-style archive from a shared archive. 13730old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13731 13732# Create a temporary old-style archive to link instead of a shared archive. 13733old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13734 13735# Commands used to build and install a shared archive. 13736archive_cmds=$lt_archive_cmds_CXX 13737archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13738postinstall_cmds=$lt_postinstall_cmds 13739postuninstall_cmds=$lt_postuninstall_cmds 13740 13741# Commands used to build a loadable module (assumed same as above if empty) 13742module_cmds=$lt_module_cmds_CXX 13743module_expsym_cmds=$lt_module_expsym_cmds_CXX 13744 13745# Commands to strip libraries. 13746old_striplib=$lt_old_striplib 13747striplib=$lt_striplib 13748 13749# Dependencies to place before the objects being linked to create a 13750# shared library. 13751predep_objects=$lt_predep_objects_CXX 13752 13753# Dependencies to place after the objects being linked to create a 13754# shared library. 13755postdep_objects=$lt_postdep_objects_CXX 13756 13757# Dependencies to place before the objects being linked to create a 13758# shared library. 13759predeps=$lt_predeps_CXX 13760 13761# Dependencies to place after the objects being linked to create a 13762# shared library. 13763postdeps=$lt_postdeps_CXX 13764 13765# The library search path used internally by the compiler when linking 13766# a shared library. 13767compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13768 13769# Method to check whether dependent libraries are shared objects. 13770deplibs_check_method=$lt_deplibs_check_method 13771 13772# Command to use when deplibs_check_method == file_magic. 13773file_magic_cmd=$lt_file_magic_cmd 13774 13775# Flag that allows shared libraries with undefined symbols to be built. 13776allow_undefined_flag=$lt_allow_undefined_flag_CXX 13777 13778# Flag that forces no undefined symbols. 13779no_undefined_flag=$lt_no_undefined_flag_CXX 13780 13781# Commands used to finish a libtool library installation in a directory. 13782finish_cmds=$lt_finish_cmds 13783 13784# Same as above, but a single script fragment to be evaled but not shown. 13785finish_eval=$lt_finish_eval 13786 13787# Take the output of nm and produce a listing of raw symbols and C names. 13788global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13789 13790# Transform the output of nm in a proper C declaration 13791global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13792 13793# Transform the output of nm in a C name address pair 13794global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13795 13796# This is the shared library runtime path variable. 13797runpath_var=$runpath_var 13798 13799# This is the shared library path variable. 13800shlibpath_var=$shlibpath_var 13801 13802# Is shlibpath searched before the hard-coded library search path? 13803shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13804 13805# How to hardcode a shared library path into an executable. 13806hardcode_action=$hardcode_action_CXX 13807 13808# Whether we should hardcode library paths into libraries. 13809hardcode_into_libs=$hardcode_into_libs 13810 13811# Flag to hardcode \$libdir into a binary during linking. 13812# This must work even if \$libdir does not exist. 13813hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13814 13815# If ld is used when linking, flag to hardcode \$libdir into 13816# a binary during linking. This must work even if \$libdir does 13817# not exist. 13818hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13819 13820# Whether we need a single -rpath flag with a separated argument. 13821hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13822 13823# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13824# resulting binary. 13825hardcode_direct=$hardcode_direct_CXX 13826 13827# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13828# resulting binary. 13829hardcode_minus_L=$hardcode_minus_L_CXX 13830 13831# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13832# the resulting binary. 13833hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13834 13835# Set to yes if building a shared library automatically hardcodes DIR into the library 13836# and all subsequent libraries and executables linked against it. 13837hardcode_automatic=$hardcode_automatic_CXX 13838 13839# Variables whose values should be saved in libtool wrapper scripts and 13840# restored at relink time. 13841variables_saved_for_relink="$variables_saved_for_relink" 13842 13843# Whether libtool must link a program against all its dependency libraries. 13844link_all_deplibs=$link_all_deplibs_CXX 13845 13846# Compile-time system search path for libraries 13847sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13848 13849# Run-time system search path for libraries 13850sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13851 13852# Fix the shell variable \$srcfile for the compiler. 13853fix_srcfile_path="$fix_srcfile_path_CXX" 13854 13855# Set to yes if exported symbols are required. 13856always_export_symbols=$always_export_symbols_CXX 13857 13858# The commands to list exported symbols. 13859export_symbols_cmds=$lt_export_symbols_cmds_CXX 13860 13861# The commands to extract the exported symbol list from a shared archive. 13862extract_expsyms_cmds=$lt_extract_expsyms_cmds 13863 13864# Symbols that should not be listed in the preloaded symbols. 13865exclude_expsyms=$lt_exclude_expsyms_CXX 13866 13867# Symbols that must always be exported. 13868include_expsyms=$lt_include_expsyms_CXX 13869 13870# ### END LIBTOOL TAG CONFIG: $tagname 13871 13872__EOF__ 13873 13874 13875else 13876 # If there is no Makefile yet, we rely on a make rule to execute 13877 # `config.status --recheck' to rerun these tests and create the 13878 # libtool script then. 13879 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13880 if test -f "$ltmain_in"; then 13881 test -f Makefile && make "$ltmain" 13882 fi 13883fi 13884 13885 13886ac_ext=c 13887ac_cpp='$CPP $CPPFLAGS' 13888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13890ac_compiler_gnu=$ac_cv_c_compiler_gnu 13891 13892CC=$lt_save_CC 13893LDCXX=$LD 13894LD=$lt_save_LD 13895GCC=$lt_save_GCC 13896with_gnu_ldcxx=$with_gnu_ld 13897with_gnu_ld=$lt_save_with_gnu_ld 13898lt_cv_path_LDCXX=$lt_cv_path_LD 13899lt_cv_path_LD=$lt_save_path_LD 13900lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13901lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13902 13903 else 13904 tagname="" 13905 fi 13906 ;; 13907 13908 F77) 13909 if test -n "$F77" && test "X$F77" != "Xno"; then 13910 13911ac_ext=f 13912ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13913ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13914ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13915 13916 13917archive_cmds_need_lc_F77=no 13918allow_undefined_flag_F77= 13919always_export_symbols_F77=no 13920archive_expsym_cmds_F77= 13921export_dynamic_flag_spec_F77= 13922hardcode_direct_F77=no 13923hardcode_libdir_flag_spec_F77= 13924hardcode_libdir_flag_spec_ld_F77= 13925hardcode_libdir_separator_F77= 13926hardcode_minus_L_F77=no 13927hardcode_automatic_F77=no 13928module_cmds_F77= 13929module_expsym_cmds_F77= 13930link_all_deplibs_F77=unknown 13931old_archive_cmds_F77=$old_archive_cmds 13932no_undefined_flag_F77= 13933whole_archive_flag_spec_F77= 13934enable_shared_with_static_runtimes_F77=no 13935 13936# Source file extension for f77 test sources. 13937ac_ext=f 13938 13939# Object file extension for compiled f77 test sources. 13940objext=o 13941objext_F77=$objext 13942 13943# Code to be used in simple compile tests 13944lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13945 13946# Code to be used in simple link tests 13947lt_simple_link_test_code=" program t\n end\n" 13948 13949# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13950 13951# If no C compiler was specified, use CC. 13952LTCC=${LTCC-"$CC"} 13953 13954# If no C compiler flags were specified, use CFLAGS. 13955LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13956 13957# Allow CC to be a program name with arguments. 13958compiler=$CC 13959 13960 13961# save warnings/boilerplate of simple test code 13962ac_outfile=conftest.$ac_objext 13963printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13964eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13965_lt_compiler_boilerplate=`cat conftest.err` 13966$rm conftest* 13967 13968ac_outfile=conftest.$ac_objext 13969printf "$lt_simple_link_test_code" >conftest.$ac_ext 13970eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13971_lt_linker_boilerplate=`cat conftest.err` 13972$rm conftest* 13973 13974 13975# Allow CC to be a program name with arguments. 13976lt_save_CC="$CC" 13977CC=${F77-"f77"} 13978compiler=$CC 13979compiler_F77=$CC 13980for cc_temp in $compiler""; do 13981 case $cc_temp in 13982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13984 \-*) ;; 13985 *) break;; 13986 esac 13987done 13988cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13989 13990 13991{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13992echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13993{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13994echo "${ECHO_T}$can_build_shared" >&6; } 13995 13996{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13997echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13998test "$can_build_shared" = "no" && enable_shared=no 13999 14000# On AIX, shared libraries and static libraries use the same namespace, and 14001# are all built from PIC. 14002case $host_os in 14003aix3*) 14004 test "$enable_shared" = yes && enable_static=no 14005 if test -n "$RANLIB"; then 14006 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14007 postinstall_cmds='$RANLIB $lib' 14008 fi 14009 ;; 14010aix4* | aix5*) 14011 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14012 test "$enable_shared" = yes && enable_static=no 14013 fi 14014 ;; 14015esac 14016{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14017echo "${ECHO_T}$enable_shared" >&6; } 14018 14019{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14020echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14021# Make sure either enable_shared or enable_static is yes. 14022test "$enable_shared" = yes || enable_static=yes 14023{ echo "$as_me:$LINENO: result: $enable_static" >&5 14024echo "${ECHO_T}$enable_static" >&6; } 14025 14026GCC_F77="$G77" 14027LD_F77="$LD" 14028 14029lt_prog_compiler_wl_F77= 14030lt_prog_compiler_pic_F77= 14031lt_prog_compiler_static_F77= 14032 14033{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14034echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14035 14036 if test "$GCC" = yes; then 14037 lt_prog_compiler_wl_F77='-Wl,' 14038 lt_prog_compiler_static_F77='-static' 14039 14040 case $host_os in 14041 aix*) 14042 # All AIX code is PIC. 14043 if test "$host_cpu" = ia64; then 14044 # AIX 5 now supports IA64 processor 14045 lt_prog_compiler_static_F77='-Bstatic' 14046 fi 14047 ;; 14048 14049 amigaos*) 14050 # FIXME: we need at least 68020 code to build shared libraries, but 14051 # adding the `-m68020' flag to GCC prevents building anything better, 14052 # like `-m68040'. 14053 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14054 ;; 14055 14056 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14057 # PIC is the default for these OSes. 14058 ;; 14059 14060 mingw* | pw32* | os2*) 14061 # This hack is so that the source file can tell whether it is being 14062 # built for inclusion in a dll (and should export symbols for example). 14063 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14064 ;; 14065 14066 darwin* | rhapsody*) 14067 # PIC is the default on this platform 14068 # Common symbols not allowed in MH_DYLIB files 14069 lt_prog_compiler_pic_F77='-fno-common' 14070 ;; 14071 14072 interix3*) 14073 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14074 # Instead, we relocate shared libraries at runtime. 14075 ;; 14076 14077 msdosdjgpp*) 14078 # Just because we use GCC doesn't mean we suddenly get shared libraries 14079 # on systems that don't support them. 14080 lt_prog_compiler_can_build_shared_F77=no 14081 enable_shared=no 14082 ;; 14083 14084 sysv4*MP*) 14085 if test -d /usr/nec; then 14086 lt_prog_compiler_pic_F77=-Kconform_pic 14087 fi 14088 ;; 14089 14090 hpux*) 14091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14092 # not for PA HP-UX. 14093 case $host_cpu in 14094 hppa*64*|ia64*) 14095 # +Z the default 14096 ;; 14097 *) 14098 lt_prog_compiler_pic_F77='-fPIC' 14099 ;; 14100 esac 14101 ;; 14102 14103 *) 14104 lt_prog_compiler_pic_F77='-fPIC' 14105 ;; 14106 esac 14107 else 14108 # PORTME Check for flag to pass linker flags through the system compiler. 14109 case $host_os in 14110 aix*) 14111 lt_prog_compiler_wl_F77='-Wl,' 14112 if test "$host_cpu" = ia64; then 14113 # AIX 5 now supports IA64 processor 14114 lt_prog_compiler_static_F77='-Bstatic' 14115 else 14116 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14117 fi 14118 ;; 14119 darwin*) 14120 # PIC is the default on this platform 14121 # Common symbols not allowed in MH_DYLIB files 14122 case $cc_basename in 14123 xlc*) 14124 lt_prog_compiler_pic_F77='-qnocommon' 14125 lt_prog_compiler_wl_F77='-Wl,' 14126 ;; 14127 esac 14128 ;; 14129 14130 mingw* | pw32* | os2*) 14131 # This hack is so that the source file can tell whether it is being 14132 # built for inclusion in a dll (and should export symbols for example). 14133 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14134 ;; 14135 14136 hpux9* | hpux10* | hpux11*) 14137 lt_prog_compiler_wl_F77='-Wl,' 14138 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14139 # not for PA HP-UX. 14140 case $host_cpu in 14141 hppa*64*|ia64*) 14142 # +Z the default 14143 ;; 14144 *) 14145 lt_prog_compiler_pic_F77='+Z' 14146 ;; 14147 esac 14148 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14149 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14150 ;; 14151 14152 irix5* | irix6* | nonstopux*) 14153 lt_prog_compiler_wl_F77='-Wl,' 14154 # PIC (with -KPIC) is the default. 14155 lt_prog_compiler_static_F77='-non_shared' 14156 ;; 14157 14158 newsos6) 14159 lt_prog_compiler_pic_F77='-KPIC' 14160 lt_prog_compiler_static_F77='-Bstatic' 14161 ;; 14162 14163 linux* | k*bsd*-gnu) 14164 case $cc_basename in 14165 icc* | ecc*) 14166 lt_prog_compiler_wl_F77='-Wl,' 14167 lt_prog_compiler_pic_F77='-KPIC' 14168 lt_prog_compiler_static_F77='-static' 14169 ;; 14170 pgcc* | pgf77* | pgf90* | pgf95*) 14171 # Portland Group compilers (*not* the Pentium gcc compiler, 14172 # which looks to be a dead project) 14173 lt_prog_compiler_wl_F77='-Wl,' 14174 lt_prog_compiler_pic_F77='-fpic' 14175 lt_prog_compiler_static_F77='-Bstatic' 14176 ;; 14177 ccc*) 14178 lt_prog_compiler_wl_F77='-Wl,' 14179 # All Alpha code is PIC. 14180 lt_prog_compiler_static_F77='-non_shared' 14181 ;; 14182 esac 14183 ;; 14184 14185 osf3* | osf4* | osf5*) 14186 lt_prog_compiler_wl_F77='-Wl,' 14187 # All OSF/1 code is PIC. 14188 lt_prog_compiler_static_F77='-non_shared' 14189 ;; 14190 14191 solaris*) 14192 lt_prog_compiler_pic_F77='-KPIC' 14193 lt_prog_compiler_static_F77='-Bstatic' 14194 case $cc_basename in 14195 f77* | f90* | f95*) 14196 lt_prog_compiler_wl_F77='-Qoption ld ';; 14197 *) 14198 lt_prog_compiler_wl_F77='-Wl,';; 14199 esac 14200 ;; 14201 14202 sunos4*) 14203 lt_prog_compiler_wl_F77='-Qoption ld ' 14204 lt_prog_compiler_pic_F77='-PIC' 14205 lt_prog_compiler_static_F77='-Bstatic' 14206 ;; 14207 14208 sysv4 | sysv4.2uw2* | sysv4.3*) 14209 lt_prog_compiler_wl_F77='-Wl,' 14210 lt_prog_compiler_pic_F77='-KPIC' 14211 lt_prog_compiler_static_F77='-Bstatic' 14212 ;; 14213 14214 sysv4*MP*) 14215 if test -d /usr/nec ;then 14216 lt_prog_compiler_pic_F77='-Kconform_pic' 14217 lt_prog_compiler_static_F77='-Bstatic' 14218 fi 14219 ;; 14220 14221 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14222 lt_prog_compiler_wl_F77='-Wl,' 14223 lt_prog_compiler_pic_F77='-KPIC' 14224 lt_prog_compiler_static_F77='-Bstatic' 14225 ;; 14226 14227 unicos*) 14228 lt_prog_compiler_wl_F77='-Wl,' 14229 lt_prog_compiler_can_build_shared_F77=no 14230 ;; 14231 14232 uts4*) 14233 lt_prog_compiler_pic_F77='-pic' 14234 lt_prog_compiler_static_F77='-Bstatic' 14235 ;; 14236 14237 *) 14238 lt_prog_compiler_can_build_shared_F77=no 14239 ;; 14240 esac 14241 fi 14242 14243{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14244echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14245 14246# 14247# Check to make sure the PIC flag actually works. 14248# 14249if test -n "$lt_prog_compiler_pic_F77"; then 14250 14251{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14252echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14253if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14254 echo $ECHO_N "(cached) $ECHO_C" >&6 14255else 14256 lt_prog_compiler_pic_works_F77=no 14257 ac_outfile=conftest.$ac_objext 14258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14259 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14260 # Insert the option either (1) after the last *FLAGS variable, or 14261 # (2) before a word containing "conftest.", or (3) at the end. 14262 # Note that $ac_compile itself does not contain backslashes and begins 14263 # with a dollar sign (not a hyphen), so the echo should work correctly. 14264 # The option is referenced via a variable to avoid confusing sed. 14265 lt_compile=`echo "$ac_compile" | $SED \ 14266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14268 -e 's:$: $lt_compiler_flag:'` 14269 (eval echo "\"\$as_me:14269: $lt_compile\"" >&5) 14270 (eval "$lt_compile" 2>conftest.err) 14271 ac_status=$? 14272 cat conftest.err >&5 14273 echo "$as_me:14273: \$? = $ac_status" >&5 14274 if (exit $ac_status) && test -s "$ac_outfile"; then 14275 # The compiler can only warn and ignore the option if not recognized 14276 # So say no if there are warnings other than the usual output. 14277 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14279 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14280 lt_prog_compiler_pic_works_F77=yes 14281 fi 14282 fi 14283 $rm conftest* 14284 14285fi 14286{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14287echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14288 14289if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14290 case $lt_prog_compiler_pic_F77 in 14291 "" | " "*) ;; 14292 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14293 esac 14294else 14295 lt_prog_compiler_pic_F77= 14296 lt_prog_compiler_can_build_shared_F77=no 14297fi 14298 14299fi 14300case $host_os in 14301 # For platforms which do not support PIC, -DPIC is meaningless: 14302 *djgpp*) 14303 lt_prog_compiler_pic_F77= 14304 ;; 14305 *) 14306 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14307 ;; 14308esac 14309 14310# 14311# Check to make sure the static flag actually works. 14312# 14313wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14314{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14315echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14316if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14317 echo $ECHO_N "(cached) $ECHO_C" >&6 14318else 14319 lt_prog_compiler_static_works_F77=no 14320 save_LDFLAGS="$LDFLAGS" 14321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14322 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14324 # The linker can only warn and ignore the option if not recognized 14325 # So say no if there are warnings 14326 if test -s conftest.err; then 14327 # Append any errors to the config.log. 14328 cat conftest.err 1>&5 14329 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14331 if diff conftest.exp conftest.er2 >/dev/null; then 14332 lt_prog_compiler_static_works_F77=yes 14333 fi 14334 else 14335 lt_prog_compiler_static_works_F77=yes 14336 fi 14337 fi 14338 $rm conftest* 14339 LDFLAGS="$save_LDFLAGS" 14340 14341fi 14342{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14343echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14344 14345if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14346 : 14347else 14348 lt_prog_compiler_static_F77= 14349fi 14350 14351 14352{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14353echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14354if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14355 echo $ECHO_N "(cached) $ECHO_C" >&6 14356else 14357 lt_cv_prog_compiler_c_o_F77=no 14358 $rm -r conftest 2>/dev/null 14359 mkdir conftest 14360 cd conftest 14361 mkdir out 14362 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14363 14364 lt_compiler_flag="-o out/conftest2.$ac_objext" 14365 # Insert the option either (1) after the last *FLAGS variable, or 14366 # (2) before a word containing "conftest.", or (3) at the end. 14367 # Note that $ac_compile itself does not contain backslashes and begins 14368 # with a dollar sign (not a hyphen), so the echo should work correctly. 14369 lt_compile=`echo "$ac_compile" | $SED \ 14370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14372 -e 's:$: $lt_compiler_flag:'` 14373 (eval echo "\"\$as_me:14373: $lt_compile\"" >&5) 14374 (eval "$lt_compile" 2>out/conftest.err) 14375 ac_status=$? 14376 cat out/conftest.err >&5 14377 echo "$as_me:14377: \$? = $ac_status" >&5 14378 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14379 then 14380 # The compiler can only warn and ignore the option if not recognized 14381 # So say no if there are warnings 14382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14385 lt_cv_prog_compiler_c_o_F77=yes 14386 fi 14387 fi 14388 chmod u+w . 2>&5 14389 $rm conftest* 14390 # SGI C++ compiler will create directory out/ii_files/ for 14391 # template instantiation 14392 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14393 $rm out/* && rmdir out 14394 cd .. 14395 rmdir conftest 14396 $rm conftest* 14397 14398fi 14399{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14400echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14401 14402 14403hard_links="nottested" 14404if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14405 # do not overwrite the value of need_locks provided by the user 14406 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14407echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14408 hard_links=yes 14409 $rm conftest* 14410 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14411 touch conftest.a 14412 ln conftest.a conftest.b 2>&5 || hard_links=no 14413 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14414 { echo "$as_me:$LINENO: result: $hard_links" >&5 14415echo "${ECHO_T}$hard_links" >&6; } 14416 if test "$hard_links" = no; then 14417 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14418echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14419 need_locks=warn 14420 fi 14421else 14422 need_locks=no 14423fi 14424 14425{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14426echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14427 14428 runpath_var= 14429 allow_undefined_flag_F77= 14430 enable_shared_with_static_runtimes_F77=no 14431 archive_cmds_F77= 14432 archive_expsym_cmds_F77= 14433 old_archive_From_new_cmds_F77= 14434 old_archive_from_expsyms_cmds_F77= 14435 export_dynamic_flag_spec_F77= 14436 whole_archive_flag_spec_F77= 14437 thread_safe_flag_spec_F77= 14438 hardcode_libdir_flag_spec_F77= 14439 hardcode_libdir_flag_spec_ld_F77= 14440 hardcode_libdir_separator_F77= 14441 hardcode_direct_F77=no 14442 hardcode_minus_L_F77=no 14443 hardcode_shlibpath_var_F77=unsupported 14444 link_all_deplibs_F77=unknown 14445 hardcode_automatic_F77=no 14446 module_cmds_F77= 14447 module_expsym_cmds_F77= 14448 always_export_symbols_F77=no 14449 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14450 # include_expsyms should be a list of space-separated symbols to be *always* 14451 # included in the symbol list 14452 include_expsyms_F77= 14453 # exclude_expsyms can be an extended regexp of symbols to exclude 14454 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14455 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14456 # as well as any symbol that contains `d'. 14457 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14458 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14459 # platforms (ab)use it in PIC code, but their linkers get confused if 14460 # the symbol is explicitly referenced. Since portable code cannot 14461 # rely on this symbol name, it's probably fine to never include it in 14462 # preloaded symbol tables. 14463 extract_expsyms_cmds= 14464 # Just being paranoid about ensuring that cc_basename is set. 14465 for cc_temp in $compiler""; do 14466 case $cc_temp in 14467 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14468 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14469 \-*) ;; 14470 *) break;; 14471 esac 14472done 14473cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14474 14475 case $host_os in 14476 cygwin* | mingw* | pw32*) 14477 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14478 # When not using gcc, we currently assume that we are using 14479 # Microsoft Visual C++. 14480 if test "$GCC" != yes; then 14481 with_gnu_ld=no 14482 fi 14483 ;; 14484 interix*) 14485 # we just hope/assume this is gcc and not c89 (= MSVC++) 14486 with_gnu_ld=yes 14487 ;; 14488 openbsd*) 14489 with_gnu_ld=no 14490 ;; 14491 esac 14492 14493 ld_shlibs_F77=yes 14494 if test "$with_gnu_ld" = yes; then 14495 # If archive_cmds runs LD, not CC, wlarc should be empty 14496 wlarc='${wl}' 14497 14498 # Set some defaults for GNU ld with shared library support. These 14499 # are reset later if shared libraries are not supported. Putting them 14500 # here allows them to be overridden if necessary. 14501 runpath_var=LD_RUN_PATH 14502 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14503 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14504 # ancient GNU ld didn't support --whole-archive et. al. 14505 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14506 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14507 else 14508 whole_archive_flag_spec_F77= 14509 fi 14510 supports_anon_versioning=no 14511 case `$LD -v 2>/dev/null` in 14512 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14513 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14514 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14515 *\ 2.11.*) ;; # other 2.11 versions 14516 *) supports_anon_versioning=yes ;; 14517 esac 14518 14519 # See if GNU ld supports shared libraries. 14520 case $host_os in 14521 aix3* | aix4* | aix5*) 14522 # On AIX/PPC, the GNU linker is very broken 14523 if test "$host_cpu" != ia64; then 14524 ld_shlibs_F77=no 14525 cat <<EOF 1>&2 14526 14527*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14528*** to be unable to reliably create shared libraries on AIX. 14529*** Therefore, libtool is disabling shared libraries support. If you 14530*** really care for shared libraries, you may want to modify your PATH 14531*** so that a non-GNU linker is found, and then restart. 14532 14533EOF 14534 fi 14535 ;; 14536 14537 amigaos*) 14538 archive_cmds_F77='$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)' 14539 hardcode_libdir_flag_spec_F77='-L$libdir' 14540 hardcode_minus_L_F77=yes 14541 14542 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14543 # that the semantics of dynamic libraries on AmigaOS, at least up 14544 # to version 4, is to share data among multiple programs linked 14545 # with the same dynamic library. Since this doesn't match the 14546 # behavior of shared libraries on other platforms, we can't use 14547 # them. 14548 ld_shlibs_F77=no 14549 ;; 14550 14551 beos*) 14552 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14553 allow_undefined_flag_F77=unsupported 14554 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14555 # support --undefined. This deserves some investigation. FIXME 14556 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14557 else 14558 ld_shlibs_F77=no 14559 fi 14560 ;; 14561 14562 cygwin* | mingw* | pw32*) 14563 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14564 # as there is no search path for DLLs. 14565 hardcode_libdir_flag_spec_F77='-L$libdir' 14566 allow_undefined_flag_F77=unsupported 14567 always_export_symbols_F77=no 14568 enable_shared_with_static_runtimes_F77=yes 14569 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14570 14571 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14572 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14573 # If the export-symbols file already is a .def file (1st line 14574 # is EXPORTS), use it as is; otherwise, prepend... 14575 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14576 cp $export_symbols $output_objdir/$soname.def; 14577 else 14578 echo EXPORTS > $output_objdir/$soname.def; 14579 cat $export_symbols >> $output_objdir/$soname.def; 14580 fi~ 14581 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14582 else 14583 ld_shlibs_F77=no 14584 fi 14585 ;; 14586 14587 interix3*) 14588 hardcode_direct_F77=no 14589 hardcode_shlibpath_var_F77=no 14590 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14591 export_dynamic_flag_spec_F77='${wl}-E' 14592 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14593 # Instead, shared libraries are loaded at an image base (0x10000000 by 14594 # default) and relocated if they conflict, which is a slow very memory 14595 # consuming and fragmenting process. To avoid this, we pick a random, 14596 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14597 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14598 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14599 archive_expsym_cmds_F77='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' 14600 ;; 14601 14602 linux* | k*bsd*-gnu) 14603 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14604 tmp_addflag= 14605 case $cc_basename,$host_cpu in 14606 pgcc*) # Portland Group C compiler 14607 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14608 tmp_addflag=' $pic_flag' 14609 ;; 14610 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14611 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14612 tmp_addflag=' $pic_flag -Mnomain' ;; 14613 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14614 tmp_addflag=' -i_dynamic' ;; 14615 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14616 tmp_addflag=' -i_dynamic -nofor_main' ;; 14617 ifc* | ifort*) # Intel Fortran compiler 14618 tmp_addflag=' -nofor_main' ;; 14619 esac 14620 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14621 14622 if test $supports_anon_versioning = yes; then 14623 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14625 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14626 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14627 fi 14628 link_all_deplibs_F77=no 14629 else 14630 ld_shlibs_F77=no 14631 fi 14632 ;; 14633 14634 netbsd* | netbsdelf*-gnu) 14635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14636 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14637 wlarc= 14638 else 14639 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14640 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14641 fi 14642 ;; 14643 14644 solaris*) 14645 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14646 ld_shlibs_F77=no 14647 cat <<EOF 1>&2 14648 14649*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14650*** create shared libraries on Solaris systems. Therefore, libtool 14651*** is disabling shared libraries support. We urge you to upgrade GNU 14652*** binutils to release 2.9.1 or newer. Another option is to modify 14653*** your PATH or compiler configuration so that the native linker is 14654*** used, and then restart. 14655 14656EOF 14657 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14659 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14660 else 14661 ld_shlibs_F77=no 14662 fi 14663 ;; 14664 14665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14666 case `$LD -v 2>&1` in 14667 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14668 ld_shlibs_F77=no 14669 cat <<_LT_EOF 1>&2 14670 14671*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14672*** reliably create shared libraries on SCO systems. Therefore, libtool 14673*** is disabling shared libraries support. We urge you to upgrade GNU 14674*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14675*** your PATH or compiler configuration so that the native linker is 14676*** used, and then restart. 14677 14678_LT_EOF 14679 ;; 14680 *) 14681 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14682 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14683 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14684 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14685 else 14686 ld_shlibs_F77=no 14687 fi 14688 ;; 14689 esac 14690 ;; 14691 14692 sunos4*) 14693 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14694 wlarc= 14695 hardcode_direct_F77=yes 14696 hardcode_shlibpath_var_F77=no 14697 ;; 14698 14699 *) 14700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14701 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14702 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14703 else 14704 ld_shlibs_F77=no 14705 fi 14706 ;; 14707 esac 14708 14709 if test "$ld_shlibs_F77" = no; then 14710 runpath_var= 14711 hardcode_libdir_flag_spec_F77= 14712 export_dynamic_flag_spec_F77= 14713 whole_archive_flag_spec_F77= 14714 fi 14715 else 14716 # PORTME fill in a description of your system's linker (not GNU ld) 14717 case $host_os in 14718 aix3*) 14719 allow_undefined_flag_F77=unsupported 14720 always_export_symbols_F77=yes 14721 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14722 # Note: this linker hardcodes the directories in LIBPATH if there 14723 # are no directories specified by -L. 14724 hardcode_minus_L_F77=yes 14725 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14726 # Neither direct hardcoding nor static linking is supported with a 14727 # broken collect2. 14728 hardcode_direct_F77=unsupported 14729 fi 14730 ;; 14731 14732 aix4* | aix5*) 14733 if test "$host_cpu" = ia64; then 14734 # On IA64, the linker does run time linking by default, so we don't 14735 # have to do anything special. 14736 aix_use_runtimelinking=no 14737 exp_sym_flag='-Bexport' 14738 no_entry_flag="" 14739 else 14740 # If we're using GNU nm, then we don't want the "-C" option. 14741 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14742 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14743 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14744 else 14745 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14746 fi 14747 aix_use_runtimelinking=no 14748 14749 # Test if we are trying to use run time linking or normal 14750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14751 # need to do runtime linking. 14752 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14753 for ld_flag in $LDFLAGS; do 14754 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14755 aix_use_runtimelinking=yes 14756 break 14757 fi 14758 done 14759 ;; 14760 esac 14761 14762 exp_sym_flag='-bexport' 14763 no_entry_flag='-bnoentry' 14764 fi 14765 14766 # When large executables or shared objects are built, AIX ld can 14767 # have problems creating the table of contents. If linking a library 14768 # or program results in "error TOC overflow" add -mminimal-toc to 14769 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14770 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14771 14772 archive_cmds_F77='' 14773 hardcode_direct_F77=yes 14774 hardcode_libdir_separator_F77=':' 14775 link_all_deplibs_F77=yes 14776 14777 if test "$GCC" = yes; then 14778 case $host_os in aix4.[012]|aix4.[012].*) 14779 # We only want to do this on AIX 4.2 and lower, the check 14780 # below for broken collect2 doesn't work under 4.3+ 14781 collect2name=`${CC} -print-prog-name=collect2` 14782 if test -f "$collect2name" && \ 14783 strings "$collect2name" | grep resolve_lib_name >/dev/null 14784 then 14785 # We have reworked collect2 14786 hardcode_direct_F77=yes 14787 else 14788 # We have old collect2 14789 hardcode_direct_F77=unsupported 14790 # It fails to find uninstalled libraries when the uninstalled 14791 # path is not listed in the libpath. Setting hardcode_minus_L 14792 # to unsupported forces relinking 14793 hardcode_minus_L_F77=yes 14794 hardcode_libdir_flag_spec_F77='-L$libdir' 14795 hardcode_libdir_separator_F77= 14796 fi 14797 ;; 14798 esac 14799 shared_flag='-shared' 14800 if test "$aix_use_runtimelinking" = yes; then 14801 shared_flag="$shared_flag "'${wl}-G' 14802 fi 14803 else 14804 # not using gcc 14805 if test "$host_cpu" = ia64; then 14806 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14807 # chokes on -Wl,-G. The following line is correct: 14808 shared_flag='-G' 14809 else 14810 if test "$aix_use_runtimelinking" = yes; then 14811 shared_flag='${wl}-G' 14812 else 14813 shared_flag='${wl}-bM:SRE' 14814 fi 14815 fi 14816 fi 14817 14818 # It seems that -bexpall does not export symbols beginning with 14819 # underscore (_), so it is better to generate a list of symbols to export. 14820 always_export_symbols_F77=yes 14821 if test "$aix_use_runtimelinking" = yes; then 14822 # Warning - without using the other runtime loading flags (-brtl), 14823 # -berok will link without error, but may produce a broken library. 14824 allow_undefined_flag_F77='-berok' 14825 # Determine the default libpath from the value encoded in an empty executable. 14826 cat >conftest.$ac_ext <<_ACEOF 14827 program main 14828 14829 end 14830_ACEOF 14831rm -f conftest.$ac_objext conftest$ac_exeext 14832if { (ac_try="$ac_link" 14833case "(($ac_try" in 14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14835 *) ac_try_echo=$ac_try;; 14836esac 14837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14838 (eval "$ac_link") 2>conftest.er1 14839 ac_status=$? 14840 grep -v '^ *+' conftest.er1 >conftest.err 14841 rm -f conftest.er1 14842 cat conftest.err >&5 14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14844 (exit $ac_status); } && 14845 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14846 { (case "(($ac_try" in 14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14848 *) ac_try_echo=$ac_try;; 14849esac 14850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14851 (eval "$ac_try") 2>&5 14852 ac_status=$? 14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14854 (exit $ac_status); }; } && 14855 { ac_try='test -s conftest$ac_exeext' 14856 { (case "(($ac_try" in 14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14858 *) ac_try_echo=$ac_try;; 14859esac 14860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14861 (eval "$ac_try") 2>&5 14862 ac_status=$? 14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14864 (exit $ac_status); }; }; then 14865 14866aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14867}'` 14868# Check for a 64-bit object if we didn't find anything. 14869if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14870}'`; fi 14871else 14872 echo "$as_me: failed program was:" >&5 14873sed 's/^/| /' conftest.$ac_ext >&5 14874 14875 14876fi 14877 14878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14879 conftest$ac_exeext conftest.$ac_ext 14880if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14881 14882 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14883 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14884 else 14885 if test "$host_cpu" = ia64; then 14886 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14887 allow_undefined_flag_F77="-z nodefs" 14888 archive_expsym_cmds_F77="\$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" 14889 else 14890 # Determine the default libpath from the value encoded in an empty executable. 14891 cat >conftest.$ac_ext <<_ACEOF 14892 program main 14893 14894 end 14895_ACEOF 14896rm -f conftest.$ac_objext conftest$ac_exeext 14897if { (ac_try="$ac_link" 14898case "(($ac_try" in 14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14900 *) ac_try_echo=$ac_try;; 14901esac 14902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14903 (eval "$ac_link") 2>conftest.er1 14904 ac_status=$? 14905 grep -v '^ *+' conftest.er1 >conftest.err 14906 rm -f conftest.er1 14907 cat conftest.err >&5 14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14909 (exit $ac_status); } && 14910 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14911 { (case "(($ac_try" in 14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14913 *) ac_try_echo=$ac_try;; 14914esac 14915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14916 (eval "$ac_try") 2>&5 14917 ac_status=$? 14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14919 (exit $ac_status); }; } && 14920 { ac_try='test -s conftest$ac_exeext' 14921 { (case "(($ac_try" in 14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14923 *) ac_try_echo=$ac_try;; 14924esac 14925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14926 (eval "$ac_try") 2>&5 14927 ac_status=$? 14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14929 (exit $ac_status); }; }; then 14930 14931aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14932}'` 14933# Check for a 64-bit object if we didn't find anything. 14934if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14935}'`; fi 14936else 14937 echo "$as_me: failed program was:" >&5 14938sed 's/^/| /' conftest.$ac_ext >&5 14939 14940 14941fi 14942 14943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14944 conftest$ac_exeext conftest.$ac_ext 14945if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14946 14947 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14948 # Warning - without using the other run time loading flags, 14949 # -berok will link without error, but may produce a broken library. 14950 no_undefined_flag_F77=' ${wl}-bernotok' 14951 allow_undefined_flag_F77=' ${wl}-berok' 14952 # Exported symbols can be pulled into shared objects from archives 14953 whole_archive_flag_spec_F77='$convenience' 14954 archive_cmds_need_lc_F77=yes 14955 # This is similar to how AIX traditionally builds its shared libraries. 14956 archive_expsym_cmds_F77="\$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' 14957 fi 14958 fi 14959 ;; 14960 14961 amigaos*) 14962 archive_cmds_F77='$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)' 14963 hardcode_libdir_flag_spec_F77='-L$libdir' 14964 hardcode_minus_L_F77=yes 14965 # see comment about different semantics on the GNU ld section 14966 ld_shlibs_F77=no 14967 ;; 14968 14969 bsdi[45]*) 14970 export_dynamic_flag_spec_F77=-rdynamic 14971 ;; 14972 14973 cygwin* | mingw* | pw32*) 14974 # When not using gcc, we currently assume that we are using 14975 # Microsoft Visual C++. 14976 # hardcode_libdir_flag_spec is actually meaningless, as there is 14977 # no search path for DLLs. 14978 hardcode_libdir_flag_spec_F77=' ' 14979 allow_undefined_flag_F77=unsupported 14980 # Tell ltmain to make .lib files, not .a files. 14981 libext=lib 14982 # Tell ltmain to make .dll files, not .so files. 14983 shrext_cmds=".dll" 14984 # FIXME: Setting linknames here is a bad hack. 14985 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14986 # The linker will automatically build a .lib file if we build a DLL. 14987 old_archive_From_new_cmds_F77='true' 14988 # FIXME: Should let the user specify the lib program. 14989 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14990 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14991 enable_shared_with_static_runtimes_F77=yes 14992 ;; 14993 14994 darwin* | rhapsody*) 14995 case $host_os in 14996 rhapsody* | darwin1.[012]) 14997 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14998 ;; 14999 *) # Darwin 1.3 on 15000 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15001 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15002 else 15003 case ${MACOSX_DEPLOYMENT_TARGET} in 15004 10.[012]) 15005 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15006 ;; 15007 10.*) 15008 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15009 ;; 15010 esac 15011 fi 15012 ;; 15013 esac 15014 archive_cmds_need_lc_F77=no 15015 hardcode_direct_F77=no 15016 hardcode_automatic_F77=yes 15017 hardcode_shlibpath_var_F77=unsupported 15018 whole_archive_flag_spec_F77='' 15019 link_all_deplibs_F77=yes 15020 if test "$GCC" = yes ; then 15021 output_verbose_link_cmd='echo' 15022 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15023 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15024 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15025 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15026 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15027 else 15028 case $cc_basename in 15029 xlc*) 15030 output_verbose_link_cmd='echo' 15031 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15032 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15033 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15034 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15035 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15036 ;; 15037 *) 15038 ld_shlibs_F77=no 15039 ;; 15040 esac 15041 fi 15042 ;; 15043 15044 dgux*) 15045 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15046 hardcode_libdir_flag_spec_F77='-L$libdir' 15047 hardcode_shlibpath_var_F77=no 15048 ;; 15049 15050 freebsd1*) 15051 ld_shlibs_F77=no 15052 ;; 15053 15054 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15055 # support. Future versions do this automatically, but an explicit c++rt0.o 15056 # does not break anything, and helps significantly (at the cost of a little 15057 # extra space). 15058 freebsd2.2*) 15059 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15060 hardcode_libdir_flag_spec_F77='-R$libdir' 15061 hardcode_direct_F77=yes 15062 hardcode_shlibpath_var_F77=no 15063 ;; 15064 15065 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15066 freebsd2*) 15067 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15068 hardcode_direct_F77=yes 15069 hardcode_minus_L_F77=yes 15070 hardcode_shlibpath_var_F77=no 15071 ;; 15072 15073 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15074 freebsd* | dragonfly*) 15075 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15076 hardcode_libdir_flag_spec_F77='-R$libdir' 15077 hardcode_direct_F77=yes 15078 hardcode_shlibpath_var_F77=no 15079 ;; 15080 15081 hpux9*) 15082 if test "$GCC" = yes; then 15083 archive_cmds_F77='$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' 15084 else 15085 archive_cmds_F77='$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' 15086 fi 15087 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15088 hardcode_libdir_separator_F77=: 15089 hardcode_direct_F77=yes 15090 15091 # hardcode_minus_L: Not really in the search PATH, 15092 # but as the default location of the library. 15093 hardcode_minus_L_F77=yes 15094 export_dynamic_flag_spec_F77='${wl}-E' 15095 ;; 15096 15097 hpux10*) 15098 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15099 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15100 else 15101 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15102 fi 15103 if test "$with_gnu_ld" = no; then 15104 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15105 hardcode_libdir_separator_F77=: 15106 15107 hardcode_direct_F77=yes 15108 export_dynamic_flag_spec_F77='${wl}-E' 15109 15110 # hardcode_minus_L: Not really in the search PATH, 15111 # but as the default location of the library. 15112 hardcode_minus_L_F77=yes 15113 fi 15114 ;; 15115 15116 hpux11*) 15117 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15118 case $host_cpu in 15119 hppa*64*) 15120 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15121 ;; 15122 ia64*) 15123 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15124 ;; 15125 *) 15126 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15127 ;; 15128 esac 15129 else 15130 case $host_cpu in 15131 hppa*64*) 15132 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15133 ;; 15134 ia64*) 15135 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15136 ;; 15137 *) 15138 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15139 ;; 15140 esac 15141 fi 15142 if test "$with_gnu_ld" = no; then 15143 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15144 hardcode_libdir_separator_F77=: 15145 15146 case $host_cpu in 15147 hppa*64*|ia64*) 15148 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15149 hardcode_direct_F77=no 15150 hardcode_shlibpath_var_F77=no 15151 ;; 15152 *) 15153 hardcode_direct_F77=yes 15154 export_dynamic_flag_spec_F77='${wl}-E' 15155 15156 # hardcode_minus_L: Not really in the search PATH, 15157 # but as the default location of the library. 15158 hardcode_minus_L_F77=yes 15159 ;; 15160 esac 15161 fi 15162 ;; 15163 15164 irix5* | irix6* | nonstopux*) 15165 if test "$GCC" = yes; then 15166 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15167 else 15168 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15169 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15170 fi 15171 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15172 hardcode_libdir_separator_F77=: 15173 link_all_deplibs_F77=yes 15174 ;; 15175 15176 netbsd* | netbsdelf*-gnu) 15177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15178 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15179 else 15180 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15181 fi 15182 hardcode_libdir_flag_spec_F77='-R$libdir' 15183 hardcode_direct_F77=yes 15184 hardcode_shlibpath_var_F77=no 15185 ;; 15186 15187 newsos6) 15188 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15189 hardcode_direct_F77=yes 15190 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15191 hardcode_libdir_separator_F77=: 15192 hardcode_shlibpath_var_F77=no 15193 ;; 15194 15195 openbsd*) 15196 hardcode_direct_F77=yes 15197 hardcode_shlibpath_var_F77=no 15198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15199 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15200 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15201 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15202 export_dynamic_flag_spec_F77='${wl}-E' 15203 else 15204 case $host_os in 15205 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15206 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15207 hardcode_libdir_flag_spec_F77='-R$libdir' 15208 ;; 15209 *) 15210 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15211 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15212 ;; 15213 esac 15214 fi 15215 ;; 15216 15217 os2*) 15218 hardcode_libdir_flag_spec_F77='-L$libdir' 15219 hardcode_minus_L_F77=yes 15220 allow_undefined_flag_F77=unsupported 15221 archive_cmds_F77='$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' 15222 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15223 ;; 15224 15225 osf3*) 15226 if test "$GCC" = yes; then 15227 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15228 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15229 else 15230 allow_undefined_flag_F77=' -expect_unresolved \*' 15231 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15232 fi 15233 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15234 hardcode_libdir_separator_F77=: 15235 ;; 15236 15237 osf4* | osf5*) # as osf3* with the addition of -msym flag 15238 if test "$GCC" = yes; then 15239 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15240 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15241 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15242 else 15243 allow_undefined_flag_F77=' -expect_unresolved \*' 15244 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15245 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15246 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15247 15248 # Both c and cxx compiler support -rpath directly 15249 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15250 fi 15251 hardcode_libdir_separator_F77=: 15252 ;; 15253 15254 solaris*) 15255 no_undefined_flag_F77=' -z text' 15256 if test "$GCC" = yes; then 15257 wlarc='${wl}' 15258 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15259 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15260 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15261 else 15262 wlarc='' 15263 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15264 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15265 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15266 fi 15267 hardcode_libdir_flag_spec_F77='-R$libdir' 15268 hardcode_shlibpath_var_F77=no 15269 case $host_os in 15270 solaris2.[0-5] | solaris2.[0-5].*) ;; 15271 *) 15272 # The compiler driver will combine linker options so we 15273 # cannot just pass the convience library names through 15274 # without $wl, iff we do not link with $LD. 15275 # Luckily, gcc supports the same syntax we need for Sun Studio. 15276 # Supported since Solaris 2.6 (maybe 2.5.1?) 15277 case $wlarc in 15278 '') 15279 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15280 *) 15281 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15282 esac ;; 15283 esac 15284 link_all_deplibs_F77=yes 15285 ;; 15286 15287 sunos4*) 15288 if test "x$host_vendor" = xsequent; then 15289 # Use $CC to link under sequent, because it throws in some extra .o 15290 # files that make .init and .fini sections work. 15291 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15292 else 15293 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15294 fi 15295 hardcode_libdir_flag_spec_F77='-L$libdir' 15296 hardcode_direct_F77=yes 15297 hardcode_minus_L_F77=yes 15298 hardcode_shlibpath_var_F77=no 15299 ;; 15300 15301 sysv4) 15302 case $host_vendor in 15303 sni) 15304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15305 hardcode_direct_F77=yes # is this really true??? 15306 ;; 15307 siemens) 15308 ## LD is ld it makes a PLAMLIB 15309 ## CC just makes a GrossModule. 15310 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15311 reload_cmds_F77='$CC -r -o $output$reload_objs' 15312 hardcode_direct_F77=no 15313 ;; 15314 motorola) 15315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15316 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15317 ;; 15318 esac 15319 runpath_var='LD_RUN_PATH' 15320 hardcode_shlibpath_var_F77=no 15321 ;; 15322 15323 sysv4.3*) 15324 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15325 hardcode_shlibpath_var_F77=no 15326 export_dynamic_flag_spec_F77='-Bexport' 15327 ;; 15328 15329 sysv4*MP*) 15330 if test -d /usr/nec; then 15331 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15332 hardcode_shlibpath_var_F77=no 15333 runpath_var=LD_RUN_PATH 15334 hardcode_runpath_var=yes 15335 ld_shlibs_F77=yes 15336 fi 15337 ;; 15338 15339 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15340 no_undefined_flag_F77='${wl}-z,text' 15341 archive_cmds_need_lc_F77=no 15342 hardcode_shlibpath_var_F77=no 15343 runpath_var='LD_RUN_PATH' 15344 15345 if test "$GCC" = yes; then 15346 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15347 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15348 else 15349 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15350 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15351 fi 15352 ;; 15353 15354 sysv5* | sco3.2v5* | sco5v6*) 15355 # Note: We can NOT use -z defs as we might desire, because we do not 15356 # link with -lc, and that would cause any symbols used from libc to 15357 # always be unresolved, which means just about no library would 15358 # ever link correctly. If we're not using GNU ld we use -z text 15359 # though, which does catch some bad symbols but isn't as heavy-handed 15360 # as -z defs. 15361 no_undefined_flag_F77='${wl}-z,text' 15362 allow_undefined_flag_F77='${wl}-z,nodefs' 15363 archive_cmds_need_lc_F77=no 15364 hardcode_shlibpath_var_F77=no 15365 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15366 hardcode_libdir_separator_F77=':' 15367 link_all_deplibs_F77=yes 15368 export_dynamic_flag_spec_F77='${wl}-Bexport' 15369 runpath_var='LD_RUN_PATH' 15370 15371 if test "$GCC" = yes; then 15372 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15373 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15374 else 15375 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15376 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15377 fi 15378 ;; 15379 15380 uts4*) 15381 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15382 hardcode_libdir_flag_spec_F77='-L$libdir' 15383 hardcode_shlibpath_var_F77=no 15384 ;; 15385 15386 *) 15387 ld_shlibs_F77=no 15388 ;; 15389 esac 15390 fi 15391 15392{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15393echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15394test "$ld_shlibs_F77" = no && can_build_shared=no 15395 15396# 15397# Do we need to explicitly link libc? 15398# 15399case "x$archive_cmds_need_lc_F77" in 15400x|xyes) 15401 # Assume -lc should be added 15402 archive_cmds_need_lc_F77=yes 15403 15404 if test "$enable_shared" = yes && test "$GCC" = yes; then 15405 case $archive_cmds_F77 in 15406 *'~'*) 15407 # FIXME: we may have to deal with multi-command sequences. 15408 ;; 15409 '$CC '*) 15410 # Test whether the compiler implicitly links with -lc since on some 15411 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15412 # to ld, don't add -lc before -lgcc. 15413 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15414echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15415 $rm conftest* 15416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15417 15418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15419 (eval $ac_compile) 2>&5 15420 ac_status=$? 15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15422 (exit $ac_status); } 2>conftest.err; then 15423 soname=conftest 15424 lib=conftest 15425 libobjs=conftest.$ac_objext 15426 deplibs= 15427 wl=$lt_prog_compiler_wl_F77 15428 pic_flag=$lt_prog_compiler_pic_F77 15429 compiler_flags=-v 15430 linker_flags=-v 15431 verstring= 15432 output_objdir=. 15433 libname=conftest 15434 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15435 allow_undefined_flag_F77= 15436 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15437 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15438 ac_status=$? 15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15440 (exit $ac_status); } 15441 then 15442 archive_cmds_need_lc_F77=no 15443 else 15444 archive_cmds_need_lc_F77=yes 15445 fi 15446 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15447 else 15448 cat conftest.err 1>&5 15449 fi 15450 $rm conftest* 15451 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15452echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15453 ;; 15454 esac 15455 fi 15456 ;; 15457esac 15458 15459{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15460echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15461library_names_spec= 15462libname_spec='lib$name' 15463soname_spec= 15464shrext_cmds=".so" 15465postinstall_cmds= 15466postuninstall_cmds= 15467finish_cmds= 15468finish_eval= 15469shlibpath_var= 15470shlibpath_overrides_runpath=unknown 15471version_type=none 15472dynamic_linker="$host_os ld.so" 15473sys_lib_dlsearch_path_spec="/lib /usr/lib" 15474if test "$GCC" = yes; then 15475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15476 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15477 # if the path contains ";" then we assume it to be the separator 15478 # otherwise default to the standard path separator (i.e. ":") - it is 15479 # assumed that no part of a normal pathname contains ";" but that should 15480 # okay in the real world where ";" in dirpaths is itself problematic. 15481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15482 else 15483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15484 fi 15485else 15486 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15487fi 15488need_lib_prefix=unknown 15489hardcode_into_libs=no 15490 15491# when you set need_version to no, make sure it does not cause -set_version 15492# flags to be left without arguments 15493need_version=unknown 15494 15495case $host_os in 15496aix3*) 15497 version_type=linux 15498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15499 shlibpath_var=LIBPATH 15500 15501 # AIX 3 has no versioning support, so we append a major version to the name. 15502 soname_spec='${libname}${release}${shared_ext}$major' 15503 ;; 15504 15505aix4* | aix5*) 15506 version_type=linux 15507 need_lib_prefix=no 15508 need_version=no 15509 hardcode_into_libs=yes 15510 if test "$host_cpu" = ia64; then 15511 # AIX 5 supports IA64 15512 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15513 shlibpath_var=LD_LIBRARY_PATH 15514 else 15515 # With GCC up to 2.95.x, collect2 would create an import file 15516 # for dependence libraries. The import file would start with 15517 # the line `#! .'. This would cause the generated library to 15518 # depend on `.', always an invalid library. This was fixed in 15519 # development snapshots of GCC prior to 3.0. 15520 case $host_os in 15521 aix4 | aix4.[01] | aix4.[01].*) 15522 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15523 echo ' yes ' 15524 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15525 : 15526 else 15527 can_build_shared=no 15528 fi 15529 ;; 15530 esac 15531 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15532 # soname into executable. Probably we can add versioning support to 15533 # collect2, so additional links can be useful in future. 15534 if test "$aix_use_runtimelinking" = yes; then 15535 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15536 # instead of lib<name>.a to let people know that these are not 15537 # typical AIX shared libraries. 15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15539 else 15540 # We preserve .a as extension for shared libraries through AIX4.2 15541 # and later when we are not doing run time linking. 15542 library_names_spec='${libname}${release}.a $libname.a' 15543 soname_spec='${libname}${release}${shared_ext}$major' 15544 fi 15545 shlibpath_var=LIBPATH 15546 fi 15547 ;; 15548 15549amigaos*) 15550 library_names_spec='$libname.ixlibrary $libname.a' 15551 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15552 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' 15553 ;; 15554 15555beos*) 15556 library_names_spec='${libname}${shared_ext}' 15557 dynamic_linker="$host_os ld.so" 15558 shlibpath_var=LIBRARY_PATH 15559 ;; 15560 15561bsdi[45]*) 15562 version_type=linux 15563 need_version=no 15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15565 soname_spec='${libname}${release}${shared_ext}$major' 15566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15567 shlibpath_var=LD_LIBRARY_PATH 15568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15570 # the default ld.so.conf also contains /usr/contrib/lib and 15571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15572 # libtool to hard-code these into programs 15573 ;; 15574 15575cygwin* | mingw* | pw32*) 15576 version_type=windows 15577 shrext_cmds=".dll" 15578 need_version=no 15579 need_lib_prefix=no 15580 15581 case $GCC,$host_os in 15582 yes,cygwin* | yes,mingw* | yes,pw32*) 15583 library_names_spec='$libname.dll.a' 15584 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15585 postinstall_cmds='base_file=`basename \${file}`~ 15586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15587 dldir=$destdir/`dirname \$dlpath`~ 15588 test -d \$dldir || mkdir -p \$dldir~ 15589 $install_prog $dir/$dlname \$dldir/$dlname~ 15590 chmod a+x \$dldir/$dlname' 15591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15592 dlpath=$dir/\$dldll~ 15593 $rm \$dlpath' 15594 shlibpath_overrides_runpath=yes 15595 15596 case $host_os in 15597 cygwin*) 15598 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15599 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15600 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15601 ;; 15602 mingw*) 15603 # MinGW DLLs use traditional 'lib' prefix 15604 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15606 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15607 # It is most probably a Windows format PATH printed by 15608 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15609 # path with ; separators, and with drive letters. We can handle the 15610 # drive letters (cygwin fileutils understands them), so leave them, 15611 # especially as we might pass files found there to a mingw objdump, 15612 # which wouldn't understand a cygwinified path. Ahh. 15613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15614 else 15615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15616 fi 15617 ;; 15618 pw32*) 15619 # pw32 DLLs use 'pw' prefix rather than 'lib' 15620 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15621 ;; 15622 esac 15623 ;; 15624 15625 *) 15626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15627 ;; 15628 esac 15629 dynamic_linker='Win32 ld.exe' 15630 # FIXME: first we should search . and the directory the executable is in 15631 shlibpath_var=PATH 15632 ;; 15633 15634darwin* | rhapsody*) 15635 dynamic_linker="$host_os dyld" 15636 version_type=darwin 15637 need_lib_prefix=no 15638 need_version=no 15639 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15640 soname_spec='${libname}${release}${major}$shared_ext' 15641 shlibpath_overrides_runpath=yes 15642 shlibpath_var=DYLD_LIBRARY_PATH 15643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15644 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15645 if test "$GCC" = yes; then 15646 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15647 else 15648 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15649 fi 15650 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15651 ;; 15652 15653dgux*) 15654 version_type=linux 15655 need_lib_prefix=no 15656 need_version=no 15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15658 soname_spec='${libname}${release}${shared_ext}$major' 15659 shlibpath_var=LD_LIBRARY_PATH 15660 ;; 15661 15662freebsd1*) 15663 dynamic_linker=no 15664 ;; 15665 15666freebsd* | dragonfly*) 15667 # DragonFly does not have aout. When/if they implement a new 15668 # versioning mechanism, adjust this. 15669 if test -x /usr/bin/objformat; then 15670 objformat=`/usr/bin/objformat` 15671 else 15672 case $host_os in 15673 freebsd[123]*) objformat=aout ;; 15674 *) objformat=elf ;; 15675 esac 15676 fi 15677 version_type=freebsd-$objformat 15678 case $version_type in 15679 freebsd-elf*) 15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15681 need_version=no 15682 need_lib_prefix=no 15683 ;; 15684 freebsd-*) 15685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15686 need_version=yes 15687 ;; 15688 esac 15689 shlibpath_var=LD_LIBRARY_PATH 15690 case $host_os in 15691 freebsd2*) 15692 shlibpath_overrides_runpath=yes 15693 ;; 15694 freebsd3.[01]* | freebsdelf3.[01]*) 15695 shlibpath_overrides_runpath=yes 15696 hardcode_into_libs=yes 15697 ;; 15698 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15699 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15700 shlibpath_overrides_runpath=no 15701 hardcode_into_libs=yes 15702 ;; 15703 freebsd*) # from 4.6 on 15704 shlibpath_overrides_runpath=yes 15705 hardcode_into_libs=yes 15706 ;; 15707 esac 15708 ;; 15709 15710gnu*) 15711 version_type=linux 15712 need_lib_prefix=no 15713 need_version=no 15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15715 soname_spec='${libname}${release}${shared_ext}$major' 15716 shlibpath_var=LD_LIBRARY_PATH 15717 hardcode_into_libs=yes 15718 ;; 15719 15720hpux9* | hpux10* | hpux11*) 15721 # Give a soname corresponding to the major version so that dld.sl refuses to 15722 # link against other versions. 15723 version_type=sunos 15724 need_lib_prefix=no 15725 need_version=no 15726 case $host_cpu in 15727 ia64*) 15728 shrext_cmds='.so' 15729 hardcode_into_libs=yes 15730 dynamic_linker="$host_os dld.so" 15731 shlibpath_var=LD_LIBRARY_PATH 15732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15734 soname_spec='${libname}${release}${shared_ext}$major' 15735 if test "X$HPUX_IA64_MODE" = X32; then 15736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15737 else 15738 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15739 fi 15740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15741 ;; 15742 hppa*64*) 15743 shrext_cmds='.sl' 15744 hardcode_into_libs=yes 15745 dynamic_linker="$host_os dld.sl" 15746 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15749 soname_spec='${libname}${release}${shared_ext}$major' 15750 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15752 ;; 15753 *) 15754 shrext_cmds='.sl' 15755 dynamic_linker="$host_os dld.sl" 15756 shlibpath_var=SHLIB_PATH 15757 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15759 soname_spec='${libname}${release}${shared_ext}$major' 15760 ;; 15761 esac 15762 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15763 postinstall_cmds='chmod 555 $lib' 15764 ;; 15765 15766interix3*) 15767 version_type=linux 15768 need_lib_prefix=no 15769 need_version=no 15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15771 soname_spec='${libname}${release}${shared_ext}$major' 15772 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15773 shlibpath_var=LD_LIBRARY_PATH 15774 shlibpath_overrides_runpath=no 15775 hardcode_into_libs=yes 15776 ;; 15777 15778irix5* | irix6* | nonstopux*) 15779 case $host_os in 15780 nonstopux*) version_type=nonstopux ;; 15781 *) 15782 if test "$lt_cv_prog_gnu_ld" = yes; then 15783 version_type=linux 15784 else 15785 version_type=irix 15786 fi ;; 15787 esac 15788 need_lib_prefix=no 15789 need_version=no 15790 soname_spec='${libname}${release}${shared_ext}$major' 15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15792 case $host_os in 15793 irix5* | nonstopux*) 15794 libsuff= shlibsuff= 15795 ;; 15796 *) 15797 case $LD in # libtool.m4 will add one of these switches to LD 15798 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15799 libsuff= shlibsuff= libmagic=32-bit;; 15800 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15801 libsuff=32 shlibsuff=N32 libmagic=N32;; 15802 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15803 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15804 *) libsuff= shlibsuff= libmagic=never-match;; 15805 esac 15806 ;; 15807 esac 15808 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15809 shlibpath_overrides_runpath=no 15810 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15811 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15812 hardcode_into_libs=yes 15813 ;; 15814 15815# No shared lib support for Linux oldld, aout, or coff. 15816linux*oldld* | linux*aout* | linux*coff*) 15817 dynamic_linker=no 15818 ;; 15819 15820# This must be Linux ELF. 15821linux* | k*bsd*-gnu) 15822 version_type=linux 15823 need_lib_prefix=no 15824 need_version=no 15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15826 soname_spec='${libname}${release}${shared_ext}$major' 15827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15828 shlibpath_var=LD_LIBRARY_PATH 15829 shlibpath_overrides_runpath=no 15830 # This implies no fast_install, which is unacceptable. 15831 # Some rework will be needed to allow for fast_install 15832 # before this can be enabled. 15833 hardcode_into_libs=yes 15834 15835 # Append ld.so.conf contents to the search path 15836 if test -f /etc/ld.so.conf; then 15837 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15838 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15839 fi 15840 15841 # We used to test for /lib/ld.so.1 and disable shared libraries on 15842 # powerpc, because MkLinux only supported shared libraries with the 15843 # GNU dynamic linker. Since this was broken with cross compilers, 15844 # most powerpc-linux boxes support dynamic linking these days and 15845 # people can always --disable-shared, the test was removed, and we 15846 # assume the GNU/Linux dynamic linker is in use. 15847 dynamic_linker='GNU/Linux ld.so' 15848 ;; 15849 15850netbsdelf*-gnu) 15851 version_type=linux 15852 need_lib_prefix=no 15853 need_version=no 15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15855 soname_spec='${libname}${release}${shared_ext}$major' 15856 shlibpath_var=LD_LIBRARY_PATH 15857 shlibpath_overrides_runpath=no 15858 hardcode_into_libs=yes 15859 dynamic_linker='NetBSD ld.elf_so' 15860 ;; 15861 15862netbsd*) 15863 version_type=sunos 15864 need_lib_prefix=no 15865 need_version=no 15866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15869 dynamic_linker='NetBSD (a.out) ld.so' 15870 else 15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15872 soname_spec='${libname}${release}${shared_ext}$major' 15873 dynamic_linker='NetBSD ld.elf_so' 15874 fi 15875 shlibpath_var=LD_LIBRARY_PATH 15876 shlibpath_overrides_runpath=yes 15877 hardcode_into_libs=yes 15878 ;; 15879 15880newsos6) 15881 version_type=linux 15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15883 shlibpath_var=LD_LIBRARY_PATH 15884 shlibpath_overrides_runpath=yes 15885 ;; 15886 15887nto-qnx*) 15888 version_type=linux 15889 need_lib_prefix=no 15890 need_version=no 15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15892 soname_spec='${libname}${release}${shared_ext}$major' 15893 shlibpath_var=LD_LIBRARY_PATH 15894 shlibpath_overrides_runpath=yes 15895 ;; 15896 15897openbsd*) 15898 version_type=sunos 15899 sys_lib_dlsearch_path_spec="/usr/lib" 15900 need_lib_prefix=no 15901 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15902 case $host_os in 15903 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15904 *) need_version=no ;; 15905 esac 15906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15908 shlibpath_var=LD_LIBRARY_PATH 15909 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15910 case $host_os in 15911 openbsd2.[89] | openbsd2.[89].*) 15912 shlibpath_overrides_runpath=no 15913 ;; 15914 *) 15915 shlibpath_overrides_runpath=yes 15916 ;; 15917 esac 15918 else 15919 shlibpath_overrides_runpath=yes 15920 fi 15921 ;; 15922 15923os2*) 15924 libname_spec='$name' 15925 shrext_cmds=".dll" 15926 need_lib_prefix=no 15927 library_names_spec='$libname${shared_ext} $libname.a' 15928 dynamic_linker='OS/2 ld.exe' 15929 shlibpath_var=LIBPATH 15930 ;; 15931 15932osf3* | osf4* | osf5*) 15933 version_type=osf 15934 need_lib_prefix=no 15935 need_version=no 15936 soname_spec='${libname}${release}${shared_ext}$major' 15937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15938 shlibpath_var=LD_LIBRARY_PATH 15939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15941 ;; 15942 15943solaris*) 15944 version_type=linux 15945 need_lib_prefix=no 15946 need_version=no 15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15948 soname_spec='${libname}${release}${shared_ext}$major' 15949 shlibpath_var=LD_LIBRARY_PATH 15950 shlibpath_overrides_runpath=yes 15951 hardcode_into_libs=yes 15952 # ldd complains unless libraries are executable 15953 postinstall_cmds='chmod +x $lib' 15954 ;; 15955 15956sunos4*) 15957 version_type=sunos 15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15960 shlibpath_var=LD_LIBRARY_PATH 15961 shlibpath_overrides_runpath=yes 15962 if test "$with_gnu_ld" = yes; then 15963 need_lib_prefix=no 15964 fi 15965 need_version=yes 15966 ;; 15967 15968sysv4 | sysv4.3*) 15969 version_type=linux 15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15971 soname_spec='${libname}${release}${shared_ext}$major' 15972 shlibpath_var=LD_LIBRARY_PATH 15973 case $host_vendor in 15974 sni) 15975 shlibpath_overrides_runpath=no 15976 need_lib_prefix=no 15977 export_dynamic_flag_spec='${wl}-Blargedynsym' 15978 runpath_var=LD_RUN_PATH 15979 ;; 15980 siemens) 15981 need_lib_prefix=no 15982 ;; 15983 motorola) 15984 need_lib_prefix=no 15985 need_version=no 15986 shlibpath_overrides_runpath=no 15987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15988 ;; 15989 esac 15990 ;; 15991 15992sysv4*MP*) 15993 if test -d /usr/nec ;then 15994 version_type=linux 15995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15996 soname_spec='$libname${shared_ext}.$major' 15997 shlibpath_var=LD_LIBRARY_PATH 15998 fi 15999 ;; 16000 16001sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16002 version_type=freebsd-elf 16003 need_lib_prefix=no 16004 need_version=no 16005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16006 soname_spec='${libname}${release}${shared_ext}$major' 16007 shlibpath_var=LD_LIBRARY_PATH 16008 hardcode_into_libs=yes 16009 if test "$with_gnu_ld" = yes; then 16010 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16011 shlibpath_overrides_runpath=no 16012 else 16013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16014 shlibpath_overrides_runpath=yes 16015 case $host_os in 16016 sco3.2v5*) 16017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16018 ;; 16019 esac 16020 fi 16021 sys_lib_dlsearch_path_spec='/usr/lib' 16022 ;; 16023 16024uts4*) 16025 version_type=linux 16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16027 soname_spec='${libname}${release}${shared_ext}$major' 16028 shlibpath_var=LD_LIBRARY_PATH 16029 ;; 16030 16031*) 16032 dynamic_linker=no 16033 ;; 16034esac 16035{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16036echo "${ECHO_T}$dynamic_linker" >&6; } 16037test "$dynamic_linker" = no && can_build_shared=no 16038 16039variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16040if test "$GCC" = yes; then 16041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16042fi 16043 16044{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16045echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16046hardcode_action_F77= 16047if test -n "$hardcode_libdir_flag_spec_F77" || \ 16048 test -n "$runpath_var_F77" || \ 16049 test "X$hardcode_automatic_F77" = "Xyes" ; then 16050 16051 # We can hardcode non-existant directories. 16052 if test "$hardcode_direct_F77" != no && 16053 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16054 # have to relink, otherwise we might link with an installed library 16055 # when we should be linking with a yet-to-be-installed one 16056 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16057 test "$hardcode_minus_L_F77" != no; then 16058 # Linking always hardcodes the temporary library directory. 16059 hardcode_action_F77=relink 16060 else 16061 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16062 hardcode_action_F77=immediate 16063 fi 16064else 16065 # We cannot hardcode anything, or else we can only hardcode existing 16066 # directories. 16067 hardcode_action_F77=unsupported 16068fi 16069{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16070echo "${ECHO_T}$hardcode_action_F77" >&6; } 16071 16072if test "$hardcode_action_F77" = relink; then 16073 # Fast installation is not supported 16074 enable_fast_install=no 16075elif test "$shlibpath_overrides_runpath" = yes || 16076 test "$enable_shared" = no; then 16077 # Fast installation is not necessary 16078 enable_fast_install=needless 16079fi 16080 16081 16082# The else clause should only fire when bootstrapping the 16083# libtool distribution, otherwise you forgot to ship ltmain.sh 16084# with your package, and you will get complaints that there are 16085# no rules to generate ltmain.sh. 16086if test -f "$ltmain"; then 16087 # See if we are running on zsh, and set the options which allow our commands through 16088 # without removal of \ escapes. 16089 if test -n "${ZSH_VERSION+set}" ; then 16090 setopt NO_GLOB_SUBST 16091 fi 16092 # Now quote all the things that may contain metacharacters while being 16093 # careful not to overquote the AC_SUBSTed values. We take copies of the 16094 # variables and quote the copies for generation of the libtool script. 16095 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16096 SED SHELL STRIP \ 16097 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16098 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16099 deplibs_check_method reload_flag reload_cmds need_locks \ 16100 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16101 lt_cv_sys_global_symbol_to_c_name_address \ 16102 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16103 old_postinstall_cmds old_postuninstall_cmds \ 16104 compiler_F77 \ 16105 CC_F77 \ 16106 LD_F77 \ 16107 lt_prog_compiler_wl_F77 \ 16108 lt_prog_compiler_pic_F77 \ 16109 lt_prog_compiler_static_F77 \ 16110 lt_prog_compiler_no_builtin_flag_F77 \ 16111 export_dynamic_flag_spec_F77 \ 16112 thread_safe_flag_spec_F77 \ 16113 whole_archive_flag_spec_F77 \ 16114 enable_shared_with_static_runtimes_F77 \ 16115 old_archive_cmds_F77 \ 16116 old_archive_from_new_cmds_F77 \ 16117 predep_objects_F77 \ 16118 postdep_objects_F77 \ 16119 predeps_F77 \ 16120 postdeps_F77 \ 16121 compiler_lib_search_path_F77 \ 16122 archive_cmds_F77 \ 16123 archive_expsym_cmds_F77 \ 16124 postinstall_cmds_F77 \ 16125 postuninstall_cmds_F77 \ 16126 old_archive_from_expsyms_cmds_F77 \ 16127 allow_undefined_flag_F77 \ 16128 no_undefined_flag_F77 \ 16129 export_symbols_cmds_F77 \ 16130 hardcode_libdir_flag_spec_F77 \ 16131 hardcode_libdir_flag_spec_ld_F77 \ 16132 hardcode_libdir_separator_F77 \ 16133 hardcode_automatic_F77 \ 16134 module_cmds_F77 \ 16135 module_expsym_cmds_F77 \ 16136 lt_cv_prog_compiler_c_o_F77 \ 16137 exclude_expsyms_F77 \ 16138 include_expsyms_F77; do 16139 16140 case $var in 16141 old_archive_cmds_F77 | \ 16142 old_archive_from_new_cmds_F77 | \ 16143 archive_cmds_F77 | \ 16144 archive_expsym_cmds_F77 | \ 16145 module_cmds_F77 | \ 16146 module_expsym_cmds_F77 | \ 16147 old_archive_from_expsyms_cmds_F77 | \ 16148 export_symbols_cmds_F77 | \ 16149 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16150 postinstall_cmds | postuninstall_cmds | \ 16151 old_postinstall_cmds | old_postuninstall_cmds | \ 16152 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16153 # Double-quote double-evaled strings. 16154 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16155 ;; 16156 *) 16157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16158 ;; 16159 esac 16160 done 16161 16162 case $lt_echo in 16163 *'\$0 --fallback-echo"') 16164 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16165 ;; 16166 esac 16167 16168cfgfile="$ofile" 16169 16170 cat <<__EOF__ >> "$cfgfile" 16171# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16172 16173# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16174 16175# Shell to use when invoking shell scripts. 16176SHELL=$lt_SHELL 16177 16178# Whether or not to build shared libraries. 16179build_libtool_libs=$enable_shared 16180 16181# Whether or not to build static libraries. 16182build_old_libs=$enable_static 16183 16184# Whether or not to add -lc for building shared libraries. 16185build_libtool_need_lc=$archive_cmds_need_lc_F77 16186 16187# Whether or not to disallow shared libs when runtime libs are static 16188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16189 16190# Whether or not to optimize for fast installation. 16191fast_install=$enable_fast_install 16192 16193# The host system. 16194host_alias=$host_alias 16195host=$host 16196host_os=$host_os 16197 16198# The build system. 16199build_alias=$build_alias 16200build=$build 16201build_os=$build_os 16202 16203# An echo program that does not interpret backslashes. 16204echo=$lt_echo 16205 16206# The archiver. 16207AR=$lt_AR 16208AR_FLAGS=$lt_AR_FLAGS 16209 16210# A C compiler. 16211LTCC=$lt_LTCC 16212 16213# LTCC compiler flags. 16214LTCFLAGS=$lt_LTCFLAGS 16215 16216# A language-specific compiler. 16217CC=$lt_compiler_F77 16218 16219# Is the compiler the GNU C compiler? 16220with_gcc=$GCC_F77 16221 16222# An ERE matcher. 16223EGREP=$lt_EGREP 16224 16225# The linker used to build libraries. 16226LD=$lt_LD_F77 16227 16228# Whether we need hard or soft links. 16229LN_S=$lt_LN_S 16230 16231# A BSD-compatible nm program. 16232NM=$lt_NM 16233 16234# A symbol stripping program 16235STRIP=$lt_STRIP 16236 16237# Used to examine libraries when file_magic_cmd begins "file" 16238MAGIC_CMD=$MAGIC_CMD 16239 16240# Used on cygwin: DLL creation program. 16241DLLTOOL="$DLLTOOL" 16242 16243# Used on cygwin: object dumper. 16244OBJDUMP="$OBJDUMP" 16245 16246# Used on cygwin: assembler. 16247AS="$AS" 16248 16249# The name of the directory that contains temporary libtool files. 16250objdir=$objdir 16251 16252# How to create reloadable object files. 16253reload_flag=$lt_reload_flag 16254reload_cmds=$lt_reload_cmds 16255 16256# How to pass a linker flag through the compiler. 16257wl=$lt_lt_prog_compiler_wl_F77 16258 16259# Object file suffix (normally "o"). 16260objext="$ac_objext" 16261 16262# Old archive suffix (normally "a"). 16263libext="$libext" 16264 16265# Shared library suffix (normally ".so"). 16266shrext_cmds='$shrext_cmds' 16267 16268# Executable file suffix (normally ""). 16269exeext="$exeext" 16270 16271# Additional compiler flags for building library objects. 16272pic_flag=$lt_lt_prog_compiler_pic_F77 16273pic_mode=$pic_mode 16274 16275# What is the maximum length of a command? 16276max_cmd_len=$lt_cv_sys_max_cmd_len 16277 16278# Does compiler simultaneously support -c and -o options? 16279compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16280 16281# Must we lock files when doing compilation? 16282need_locks=$lt_need_locks 16283 16284# Do we need the lib prefix for modules? 16285need_lib_prefix=$need_lib_prefix 16286 16287# Do we need a version for libraries? 16288need_version=$need_version 16289 16290# Whether dlopen is supported. 16291dlopen_support=$enable_dlopen 16292 16293# Whether dlopen of programs is supported. 16294dlopen_self=$enable_dlopen_self 16295 16296# Whether dlopen of statically linked programs is supported. 16297dlopen_self_static=$enable_dlopen_self_static 16298 16299# Compiler flag to prevent dynamic linking. 16300link_static_flag=$lt_lt_prog_compiler_static_F77 16301 16302# Compiler flag to turn off builtin functions. 16303no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16304 16305# Compiler flag to allow reflexive dlopens. 16306export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16307 16308# Compiler flag to generate shared objects directly from archives. 16309whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16310 16311# Compiler flag to generate thread-safe objects. 16312thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16313 16314# Library versioning type. 16315version_type=$version_type 16316 16317# Format of library name prefix. 16318libname_spec=$lt_libname_spec 16319 16320# List of archive names. First name is the real one, the rest are links. 16321# The last name is the one that the linker finds with -lNAME. 16322library_names_spec=$lt_library_names_spec 16323 16324# The coded name of the library, if different from the real name. 16325soname_spec=$lt_soname_spec 16326 16327# Commands used to build and install an old-style archive. 16328RANLIB=$lt_RANLIB 16329old_archive_cmds=$lt_old_archive_cmds_F77 16330old_postinstall_cmds=$lt_old_postinstall_cmds 16331old_postuninstall_cmds=$lt_old_postuninstall_cmds 16332 16333# Create an old-style archive from a shared archive. 16334old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16335 16336# Create a temporary old-style archive to link instead of a shared archive. 16337old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16338 16339# Commands used to build and install a shared archive. 16340archive_cmds=$lt_archive_cmds_F77 16341archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16342postinstall_cmds=$lt_postinstall_cmds 16343postuninstall_cmds=$lt_postuninstall_cmds 16344 16345# Commands used to build a loadable module (assumed same as above if empty) 16346module_cmds=$lt_module_cmds_F77 16347module_expsym_cmds=$lt_module_expsym_cmds_F77 16348 16349# Commands to strip libraries. 16350old_striplib=$lt_old_striplib 16351striplib=$lt_striplib 16352 16353# Dependencies to place before the objects being linked to create a 16354# shared library. 16355predep_objects=$lt_predep_objects_F77 16356 16357# Dependencies to place after the objects being linked to create a 16358# shared library. 16359postdep_objects=$lt_postdep_objects_F77 16360 16361# Dependencies to place before the objects being linked to create a 16362# shared library. 16363predeps=$lt_predeps_F77 16364 16365# Dependencies to place after the objects being linked to create a 16366# shared library. 16367postdeps=$lt_postdeps_F77 16368 16369# The library search path used internally by the compiler when linking 16370# a shared library. 16371compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16372 16373# Method to check whether dependent libraries are shared objects. 16374deplibs_check_method=$lt_deplibs_check_method 16375 16376# Command to use when deplibs_check_method == file_magic. 16377file_magic_cmd=$lt_file_magic_cmd 16378 16379# Flag that allows shared libraries with undefined symbols to be built. 16380allow_undefined_flag=$lt_allow_undefined_flag_F77 16381 16382# Flag that forces no undefined symbols. 16383no_undefined_flag=$lt_no_undefined_flag_F77 16384 16385# Commands used to finish a libtool library installation in a directory. 16386finish_cmds=$lt_finish_cmds 16387 16388# Same as above, but a single script fragment to be evaled but not shown. 16389finish_eval=$lt_finish_eval 16390 16391# Take the output of nm and produce a listing of raw symbols and C names. 16392global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16393 16394# Transform the output of nm in a proper C declaration 16395global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16396 16397# Transform the output of nm in a C name address pair 16398global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16399 16400# This is the shared library runtime path variable. 16401runpath_var=$runpath_var 16402 16403# This is the shared library path variable. 16404shlibpath_var=$shlibpath_var 16405 16406# Is shlibpath searched before the hard-coded library search path? 16407shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16408 16409# How to hardcode a shared library path into an executable. 16410hardcode_action=$hardcode_action_F77 16411 16412# Whether we should hardcode library paths into libraries. 16413hardcode_into_libs=$hardcode_into_libs 16414 16415# Flag to hardcode \$libdir into a binary during linking. 16416# This must work even if \$libdir does not exist. 16417hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16418 16419# If ld is used when linking, flag to hardcode \$libdir into 16420# a binary during linking. This must work even if \$libdir does 16421# not exist. 16422hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16423 16424# Whether we need a single -rpath flag with a separated argument. 16425hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16426 16427# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16428# resulting binary. 16429hardcode_direct=$hardcode_direct_F77 16430 16431# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16432# resulting binary. 16433hardcode_minus_L=$hardcode_minus_L_F77 16434 16435# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16436# the resulting binary. 16437hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16438 16439# Set to yes if building a shared library automatically hardcodes DIR into the library 16440# and all subsequent libraries and executables linked against it. 16441hardcode_automatic=$hardcode_automatic_F77 16442 16443# Variables whose values should be saved in libtool wrapper scripts and 16444# restored at relink time. 16445variables_saved_for_relink="$variables_saved_for_relink" 16446 16447# Whether libtool must link a program against all its dependency libraries. 16448link_all_deplibs=$link_all_deplibs_F77 16449 16450# Compile-time system search path for libraries 16451sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16452 16453# Run-time system search path for libraries 16454sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16455 16456# Fix the shell variable \$srcfile for the compiler. 16457fix_srcfile_path="$fix_srcfile_path_F77" 16458 16459# Set to yes if exported symbols are required. 16460always_export_symbols=$always_export_symbols_F77 16461 16462# The commands to list exported symbols. 16463export_symbols_cmds=$lt_export_symbols_cmds_F77 16464 16465# The commands to extract the exported symbol list from a shared archive. 16466extract_expsyms_cmds=$lt_extract_expsyms_cmds 16467 16468# Symbols that should not be listed in the preloaded symbols. 16469exclude_expsyms=$lt_exclude_expsyms_F77 16470 16471# Symbols that must always be exported. 16472include_expsyms=$lt_include_expsyms_F77 16473 16474# ### END LIBTOOL TAG CONFIG: $tagname 16475 16476__EOF__ 16477 16478 16479else 16480 # If there is no Makefile yet, we rely on a make rule to execute 16481 # `config.status --recheck' to rerun these tests and create the 16482 # libtool script then. 16483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16484 if test -f "$ltmain_in"; then 16485 test -f Makefile && make "$ltmain" 16486 fi 16487fi 16488 16489 16490ac_ext=c 16491ac_cpp='$CPP $CPPFLAGS' 16492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16494ac_compiler_gnu=$ac_cv_c_compiler_gnu 16495 16496CC="$lt_save_CC" 16497 16498 else 16499 tagname="" 16500 fi 16501 ;; 16502 16503 GCJ) 16504 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16505 16506 16507# Source file extension for Java test sources. 16508ac_ext=java 16509 16510# Object file extension for compiled Java test sources. 16511objext=o 16512objext_GCJ=$objext 16513 16514# Code to be used in simple compile tests 16515lt_simple_compile_test_code="class foo {}\n" 16516 16517# Code to be used in simple link tests 16518lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16519 16520# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16521 16522# If no C compiler was specified, use CC. 16523LTCC=${LTCC-"$CC"} 16524 16525# If no C compiler flags were specified, use CFLAGS. 16526LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16527 16528# Allow CC to be a program name with arguments. 16529compiler=$CC 16530 16531 16532# save warnings/boilerplate of simple test code 16533ac_outfile=conftest.$ac_objext 16534printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16535eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16536_lt_compiler_boilerplate=`cat conftest.err` 16537$rm conftest* 16538 16539ac_outfile=conftest.$ac_objext 16540printf "$lt_simple_link_test_code" >conftest.$ac_ext 16541eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16542_lt_linker_boilerplate=`cat conftest.err` 16543$rm conftest* 16544 16545 16546# Allow CC to be a program name with arguments. 16547lt_save_CC="$CC" 16548CC=${GCJ-"gcj"} 16549compiler=$CC 16550compiler_GCJ=$CC 16551for cc_temp in $compiler""; do 16552 case $cc_temp in 16553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16555 \-*) ;; 16556 *) break;; 16557 esac 16558done 16559cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16560 16561 16562# GCJ did not exist at the time GCC didn't implicitly link libc in. 16563archive_cmds_need_lc_GCJ=no 16564 16565old_archive_cmds_GCJ=$old_archive_cmds 16566 16567 16568lt_prog_compiler_no_builtin_flag_GCJ= 16569 16570if test "$GCC" = yes; then 16571 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16572 16573 16574{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16575echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16576if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16577 echo $ECHO_N "(cached) $ECHO_C" >&6 16578else 16579 lt_cv_prog_compiler_rtti_exceptions=no 16580 ac_outfile=conftest.$ac_objext 16581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16582 lt_compiler_flag="-fno-rtti -fno-exceptions" 16583 # Insert the option either (1) after the last *FLAGS variable, or 16584 # (2) before a word containing "conftest.", or (3) at the end. 16585 # Note that $ac_compile itself does not contain backslashes and begins 16586 # with a dollar sign (not a hyphen), so the echo should work correctly. 16587 # The option is referenced via a variable to avoid confusing sed. 16588 lt_compile=`echo "$ac_compile" | $SED \ 16589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16591 -e 's:$: $lt_compiler_flag:'` 16592 (eval echo "\"\$as_me:16592: $lt_compile\"" >&5) 16593 (eval "$lt_compile" 2>conftest.err) 16594 ac_status=$? 16595 cat conftest.err >&5 16596 echo "$as_me:16596: \$? = $ac_status" >&5 16597 if (exit $ac_status) && test -s "$ac_outfile"; then 16598 # The compiler can only warn and ignore the option if not recognized 16599 # So say no if there are warnings other than the usual output. 16600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16603 lt_cv_prog_compiler_rtti_exceptions=yes 16604 fi 16605 fi 16606 $rm conftest* 16607 16608fi 16609{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16610echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16611 16612if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16613 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16614else 16615 : 16616fi 16617 16618fi 16619 16620lt_prog_compiler_wl_GCJ= 16621lt_prog_compiler_pic_GCJ= 16622lt_prog_compiler_static_GCJ= 16623 16624{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16625echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16626 16627 if test "$GCC" = yes; then 16628 lt_prog_compiler_wl_GCJ='-Wl,' 16629 lt_prog_compiler_static_GCJ='-static' 16630 16631 case $host_os in 16632 aix*) 16633 # All AIX code is PIC. 16634 if test "$host_cpu" = ia64; then 16635 # AIX 5 now supports IA64 processor 16636 lt_prog_compiler_static_GCJ='-Bstatic' 16637 fi 16638 ;; 16639 16640 amigaos*) 16641 # FIXME: we need at least 68020 code to build shared libraries, but 16642 # adding the `-m68020' flag to GCC prevents building anything better, 16643 # like `-m68040'. 16644 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16645 ;; 16646 16647 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16648 # PIC is the default for these OSes. 16649 ;; 16650 16651 mingw* | pw32* | os2*) 16652 # This hack is so that the source file can tell whether it is being 16653 # built for inclusion in a dll (and should export symbols for example). 16654 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16655 ;; 16656 16657 darwin* | rhapsody*) 16658 # PIC is the default on this platform 16659 # Common symbols not allowed in MH_DYLIB files 16660 lt_prog_compiler_pic_GCJ='-fno-common' 16661 ;; 16662 16663 interix3*) 16664 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16665 # Instead, we relocate shared libraries at runtime. 16666 ;; 16667 16668 msdosdjgpp*) 16669 # Just because we use GCC doesn't mean we suddenly get shared libraries 16670 # on systems that don't support them. 16671 lt_prog_compiler_can_build_shared_GCJ=no 16672 enable_shared=no 16673 ;; 16674 16675 sysv4*MP*) 16676 if test -d /usr/nec; then 16677 lt_prog_compiler_pic_GCJ=-Kconform_pic 16678 fi 16679 ;; 16680 16681 hpux*) 16682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16683 # not for PA HP-UX. 16684 case $host_cpu in 16685 hppa*64*|ia64*) 16686 # +Z the default 16687 ;; 16688 *) 16689 lt_prog_compiler_pic_GCJ='-fPIC' 16690 ;; 16691 esac 16692 ;; 16693 16694 *) 16695 lt_prog_compiler_pic_GCJ='-fPIC' 16696 ;; 16697 esac 16698 else 16699 # PORTME Check for flag to pass linker flags through the system compiler. 16700 case $host_os in 16701 aix*) 16702 lt_prog_compiler_wl_GCJ='-Wl,' 16703 if test "$host_cpu" = ia64; then 16704 # AIX 5 now supports IA64 processor 16705 lt_prog_compiler_static_GCJ='-Bstatic' 16706 else 16707 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16708 fi 16709 ;; 16710 darwin*) 16711 # PIC is the default on this platform 16712 # Common symbols not allowed in MH_DYLIB files 16713 case $cc_basename in 16714 xlc*) 16715 lt_prog_compiler_pic_GCJ='-qnocommon' 16716 lt_prog_compiler_wl_GCJ='-Wl,' 16717 ;; 16718 esac 16719 ;; 16720 16721 mingw* | pw32* | os2*) 16722 # This hack is so that the source file can tell whether it is being 16723 # built for inclusion in a dll (and should export symbols for example). 16724 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16725 ;; 16726 16727 hpux9* | hpux10* | hpux11*) 16728 lt_prog_compiler_wl_GCJ='-Wl,' 16729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16730 # not for PA HP-UX. 16731 case $host_cpu in 16732 hppa*64*|ia64*) 16733 # +Z the default 16734 ;; 16735 *) 16736 lt_prog_compiler_pic_GCJ='+Z' 16737 ;; 16738 esac 16739 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16740 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16741 ;; 16742 16743 irix5* | irix6* | nonstopux*) 16744 lt_prog_compiler_wl_GCJ='-Wl,' 16745 # PIC (with -KPIC) is the default. 16746 lt_prog_compiler_static_GCJ='-non_shared' 16747 ;; 16748 16749 newsos6) 16750 lt_prog_compiler_pic_GCJ='-KPIC' 16751 lt_prog_compiler_static_GCJ='-Bstatic' 16752 ;; 16753 16754 linux* | k*bsd*-gnu) 16755 case $cc_basename in 16756 icc* | ecc*) 16757 lt_prog_compiler_wl_GCJ='-Wl,' 16758 lt_prog_compiler_pic_GCJ='-KPIC' 16759 lt_prog_compiler_static_GCJ='-static' 16760 ;; 16761 pgcc* | pgf77* | pgf90* | pgf95*) 16762 # Portland Group compilers (*not* the Pentium gcc compiler, 16763 # which looks to be a dead project) 16764 lt_prog_compiler_wl_GCJ='-Wl,' 16765 lt_prog_compiler_pic_GCJ='-fpic' 16766 lt_prog_compiler_static_GCJ='-Bstatic' 16767 ;; 16768 ccc*) 16769 lt_prog_compiler_wl_GCJ='-Wl,' 16770 # All Alpha code is PIC. 16771 lt_prog_compiler_static_GCJ='-non_shared' 16772 ;; 16773 esac 16774 ;; 16775 16776 osf3* | osf4* | osf5*) 16777 lt_prog_compiler_wl_GCJ='-Wl,' 16778 # All OSF/1 code is PIC. 16779 lt_prog_compiler_static_GCJ='-non_shared' 16780 ;; 16781 16782 solaris*) 16783 lt_prog_compiler_pic_GCJ='-KPIC' 16784 lt_prog_compiler_static_GCJ='-Bstatic' 16785 case $cc_basename in 16786 f77* | f90* | f95*) 16787 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16788 *) 16789 lt_prog_compiler_wl_GCJ='-Wl,';; 16790 esac 16791 ;; 16792 16793 sunos4*) 16794 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16795 lt_prog_compiler_pic_GCJ='-PIC' 16796 lt_prog_compiler_static_GCJ='-Bstatic' 16797 ;; 16798 16799 sysv4 | sysv4.2uw2* | sysv4.3*) 16800 lt_prog_compiler_wl_GCJ='-Wl,' 16801 lt_prog_compiler_pic_GCJ='-KPIC' 16802 lt_prog_compiler_static_GCJ='-Bstatic' 16803 ;; 16804 16805 sysv4*MP*) 16806 if test -d /usr/nec ;then 16807 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16808 lt_prog_compiler_static_GCJ='-Bstatic' 16809 fi 16810 ;; 16811 16812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16813 lt_prog_compiler_wl_GCJ='-Wl,' 16814 lt_prog_compiler_pic_GCJ='-KPIC' 16815 lt_prog_compiler_static_GCJ='-Bstatic' 16816 ;; 16817 16818 unicos*) 16819 lt_prog_compiler_wl_GCJ='-Wl,' 16820 lt_prog_compiler_can_build_shared_GCJ=no 16821 ;; 16822 16823 uts4*) 16824 lt_prog_compiler_pic_GCJ='-pic' 16825 lt_prog_compiler_static_GCJ='-Bstatic' 16826 ;; 16827 16828 *) 16829 lt_prog_compiler_can_build_shared_GCJ=no 16830 ;; 16831 esac 16832 fi 16833 16834{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16835echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16836 16837# 16838# Check to make sure the PIC flag actually works. 16839# 16840if test -n "$lt_prog_compiler_pic_GCJ"; then 16841 16842{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16843echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16844if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16845 echo $ECHO_N "(cached) $ECHO_C" >&6 16846else 16847 lt_prog_compiler_pic_works_GCJ=no 16848 ac_outfile=conftest.$ac_objext 16849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16850 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16851 # Insert the option either (1) after the last *FLAGS variable, or 16852 # (2) before a word containing "conftest.", or (3) at the end. 16853 # Note that $ac_compile itself does not contain backslashes and begins 16854 # with a dollar sign (not a hyphen), so the echo should work correctly. 16855 # The option is referenced via a variable to avoid confusing sed. 16856 lt_compile=`echo "$ac_compile" | $SED \ 16857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16859 -e 's:$: $lt_compiler_flag:'` 16860 (eval echo "\"\$as_me:16860: $lt_compile\"" >&5) 16861 (eval "$lt_compile" 2>conftest.err) 16862 ac_status=$? 16863 cat conftest.err >&5 16864 echo "$as_me:16864: \$? = $ac_status" >&5 16865 if (exit $ac_status) && test -s "$ac_outfile"; then 16866 # The compiler can only warn and ignore the option if not recognized 16867 # So say no if there are warnings other than the usual output. 16868 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16871 lt_prog_compiler_pic_works_GCJ=yes 16872 fi 16873 fi 16874 $rm conftest* 16875 16876fi 16877{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16878echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16879 16880if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16881 case $lt_prog_compiler_pic_GCJ in 16882 "" | " "*) ;; 16883 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16884 esac 16885else 16886 lt_prog_compiler_pic_GCJ= 16887 lt_prog_compiler_can_build_shared_GCJ=no 16888fi 16889 16890fi 16891case $host_os in 16892 # For platforms which do not support PIC, -DPIC is meaningless: 16893 *djgpp*) 16894 lt_prog_compiler_pic_GCJ= 16895 ;; 16896 *) 16897 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16898 ;; 16899esac 16900 16901# 16902# Check to make sure the static flag actually works. 16903# 16904wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16905{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16906echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16907if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16908 echo $ECHO_N "(cached) $ECHO_C" >&6 16909else 16910 lt_prog_compiler_static_works_GCJ=no 16911 save_LDFLAGS="$LDFLAGS" 16912 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16913 printf "$lt_simple_link_test_code" > conftest.$ac_ext 16914 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16915 # The linker can only warn and ignore the option if not recognized 16916 # So say no if there are warnings 16917 if test -s conftest.err; then 16918 # Append any errors to the config.log. 16919 cat conftest.err 1>&5 16920 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16922 if diff conftest.exp conftest.er2 >/dev/null; then 16923 lt_prog_compiler_static_works_GCJ=yes 16924 fi 16925 else 16926 lt_prog_compiler_static_works_GCJ=yes 16927 fi 16928 fi 16929 $rm conftest* 16930 LDFLAGS="$save_LDFLAGS" 16931 16932fi 16933{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16934echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16935 16936if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16937 : 16938else 16939 lt_prog_compiler_static_GCJ= 16940fi 16941 16942 16943{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16944echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16945if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16946 echo $ECHO_N "(cached) $ECHO_C" >&6 16947else 16948 lt_cv_prog_compiler_c_o_GCJ=no 16949 $rm -r conftest 2>/dev/null 16950 mkdir conftest 16951 cd conftest 16952 mkdir out 16953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16954 16955 lt_compiler_flag="-o out/conftest2.$ac_objext" 16956 # Insert the option either (1) after the last *FLAGS variable, or 16957 # (2) before a word containing "conftest.", or (3) at the end. 16958 # Note that $ac_compile itself does not contain backslashes and begins 16959 # with a dollar sign (not a hyphen), so the echo should work correctly. 16960 lt_compile=`echo "$ac_compile" | $SED \ 16961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16963 -e 's:$: $lt_compiler_flag:'` 16964 (eval echo "\"\$as_me:16964: $lt_compile\"" >&5) 16965 (eval "$lt_compile" 2>out/conftest.err) 16966 ac_status=$? 16967 cat out/conftest.err >&5 16968 echo "$as_me:16968: \$? = $ac_status" >&5 16969 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16970 then 16971 # The compiler can only warn and ignore the option if not recognized 16972 # So say no if there are warnings 16973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16976 lt_cv_prog_compiler_c_o_GCJ=yes 16977 fi 16978 fi 16979 chmod u+w . 2>&5 16980 $rm conftest* 16981 # SGI C++ compiler will create directory out/ii_files/ for 16982 # template instantiation 16983 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16984 $rm out/* && rmdir out 16985 cd .. 16986 rmdir conftest 16987 $rm conftest* 16988 16989fi 16990{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16991echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16992 16993 16994hard_links="nottested" 16995if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16996 # do not overwrite the value of need_locks provided by the user 16997 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16998echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16999 hard_links=yes 17000 $rm conftest* 17001 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17002 touch conftest.a 17003 ln conftest.a conftest.b 2>&5 || hard_links=no 17004 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17005 { echo "$as_me:$LINENO: result: $hard_links" >&5 17006echo "${ECHO_T}$hard_links" >&6; } 17007 if test "$hard_links" = no; then 17008 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17009echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17010 need_locks=warn 17011 fi 17012else 17013 need_locks=no 17014fi 17015 17016{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17017echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17018 17019 runpath_var= 17020 allow_undefined_flag_GCJ= 17021 enable_shared_with_static_runtimes_GCJ=no 17022 archive_cmds_GCJ= 17023 archive_expsym_cmds_GCJ= 17024 old_archive_From_new_cmds_GCJ= 17025 old_archive_from_expsyms_cmds_GCJ= 17026 export_dynamic_flag_spec_GCJ= 17027 whole_archive_flag_spec_GCJ= 17028 thread_safe_flag_spec_GCJ= 17029 hardcode_libdir_flag_spec_GCJ= 17030 hardcode_libdir_flag_spec_ld_GCJ= 17031 hardcode_libdir_separator_GCJ= 17032 hardcode_direct_GCJ=no 17033 hardcode_minus_L_GCJ=no 17034 hardcode_shlibpath_var_GCJ=unsupported 17035 link_all_deplibs_GCJ=unknown 17036 hardcode_automatic_GCJ=no 17037 module_cmds_GCJ= 17038 module_expsym_cmds_GCJ= 17039 always_export_symbols_GCJ=no 17040 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17041 # include_expsyms should be a list of space-separated symbols to be *always* 17042 # included in the symbol list 17043 include_expsyms_GCJ= 17044 # exclude_expsyms can be an extended regexp of symbols to exclude 17045 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17046 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17047 # as well as any symbol that contains `d'. 17048 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17049 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17050 # platforms (ab)use it in PIC code, but their linkers get confused if 17051 # the symbol is explicitly referenced. Since portable code cannot 17052 # rely on this symbol name, it's probably fine to never include it in 17053 # preloaded symbol tables. 17054 extract_expsyms_cmds= 17055 # Just being paranoid about ensuring that cc_basename is set. 17056 for cc_temp in $compiler""; do 17057 case $cc_temp in 17058 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17059 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17060 \-*) ;; 17061 *) break;; 17062 esac 17063done 17064cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17065 17066 case $host_os in 17067 cygwin* | mingw* | pw32*) 17068 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17069 # When not using gcc, we currently assume that we are using 17070 # Microsoft Visual C++. 17071 if test "$GCC" != yes; then 17072 with_gnu_ld=no 17073 fi 17074 ;; 17075 interix*) 17076 # we just hope/assume this is gcc and not c89 (= MSVC++) 17077 with_gnu_ld=yes 17078 ;; 17079 openbsd*) 17080 with_gnu_ld=no 17081 ;; 17082 esac 17083 17084 ld_shlibs_GCJ=yes 17085 if test "$with_gnu_ld" = yes; then 17086 # If archive_cmds runs LD, not CC, wlarc should be empty 17087 wlarc='${wl}' 17088 17089 # Set some defaults for GNU ld with shared library support. These 17090 # are reset later if shared libraries are not supported. Putting them 17091 # here allows them to be overridden if necessary. 17092 runpath_var=LD_RUN_PATH 17093 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17094 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17095 # ancient GNU ld didn't support --whole-archive et. al. 17096 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17097 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17098 else 17099 whole_archive_flag_spec_GCJ= 17100 fi 17101 supports_anon_versioning=no 17102 case `$LD -v 2>/dev/null` in 17103 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17104 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17105 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17106 *\ 2.11.*) ;; # other 2.11 versions 17107 *) supports_anon_versioning=yes ;; 17108 esac 17109 17110 # See if GNU ld supports shared libraries. 17111 case $host_os in 17112 aix3* | aix4* | aix5*) 17113 # On AIX/PPC, the GNU linker is very broken 17114 if test "$host_cpu" != ia64; then 17115 ld_shlibs_GCJ=no 17116 cat <<EOF 1>&2 17117 17118*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17119*** to be unable to reliably create shared libraries on AIX. 17120*** Therefore, libtool is disabling shared libraries support. If you 17121*** really care for shared libraries, you may want to modify your PATH 17122*** so that a non-GNU linker is found, and then restart. 17123 17124EOF 17125 fi 17126 ;; 17127 17128 amigaos*) 17129 archive_cmds_GCJ='$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)' 17130 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17131 hardcode_minus_L_GCJ=yes 17132 17133 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17134 # that the semantics of dynamic libraries on AmigaOS, at least up 17135 # to version 4, is to share data among multiple programs linked 17136 # with the same dynamic library. Since this doesn't match the 17137 # behavior of shared libraries on other platforms, we can't use 17138 # them. 17139 ld_shlibs_GCJ=no 17140 ;; 17141 17142 beos*) 17143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17144 allow_undefined_flag_GCJ=unsupported 17145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17146 # support --undefined. This deserves some investigation. FIXME 17147 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17148 else 17149 ld_shlibs_GCJ=no 17150 fi 17151 ;; 17152 17153 cygwin* | mingw* | pw32*) 17154 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17155 # as there is no search path for DLLs. 17156 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17157 allow_undefined_flag_GCJ=unsupported 17158 always_export_symbols_GCJ=no 17159 enable_shared_with_static_runtimes_GCJ=yes 17160 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17161 17162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17163 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17164 # If the export-symbols file already is a .def file (1st line 17165 # is EXPORTS), use it as is; otherwise, prepend... 17166 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17167 cp $export_symbols $output_objdir/$soname.def; 17168 else 17169 echo EXPORTS > $output_objdir/$soname.def; 17170 cat $export_symbols >> $output_objdir/$soname.def; 17171 fi~ 17172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17173 else 17174 ld_shlibs_GCJ=no 17175 fi 17176 ;; 17177 17178 interix3*) 17179 hardcode_direct_GCJ=no 17180 hardcode_shlibpath_var_GCJ=no 17181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17182 export_dynamic_flag_spec_GCJ='${wl}-E' 17183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17184 # Instead, shared libraries are loaded at an image base (0x10000000 by 17185 # default) and relocated if they conflict, which is a slow very memory 17186 # consuming and fragmenting process. To avoid this, we pick a random, 17187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17188 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17189 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17190 archive_expsym_cmds_GCJ='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' 17191 ;; 17192 17193 linux* | k*bsd*-gnu) 17194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17195 tmp_addflag= 17196 case $cc_basename,$host_cpu in 17197 pgcc*) # Portland Group C compiler 17198 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17199 tmp_addflag=' $pic_flag' 17200 ;; 17201 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17202 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17203 tmp_addflag=' $pic_flag -Mnomain' ;; 17204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17205 tmp_addflag=' -i_dynamic' ;; 17206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17207 tmp_addflag=' -i_dynamic -nofor_main' ;; 17208 ifc* | ifort*) # Intel Fortran compiler 17209 tmp_addflag=' -nofor_main' ;; 17210 esac 17211 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17212 17213 if test $supports_anon_versioning = yes; then 17214 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17216 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17217 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17218 fi 17219 link_all_deplibs_GCJ=no 17220 else 17221 ld_shlibs_GCJ=no 17222 fi 17223 ;; 17224 17225 netbsd* | netbsdelf*-gnu) 17226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17227 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17228 wlarc= 17229 else 17230 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17231 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17232 fi 17233 ;; 17234 17235 solaris*) 17236 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17237 ld_shlibs_GCJ=no 17238 cat <<EOF 1>&2 17239 17240*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17241*** create shared libraries on Solaris systems. Therefore, libtool 17242*** is disabling shared libraries support. We urge you to upgrade GNU 17243*** binutils to release 2.9.1 or newer. Another option is to modify 17244*** your PATH or compiler configuration so that the native linker is 17245*** used, and then restart. 17246 17247EOF 17248 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17249 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17250 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17251 else 17252 ld_shlibs_GCJ=no 17253 fi 17254 ;; 17255 17256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17257 case `$LD -v 2>&1` in 17258 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17259 ld_shlibs_GCJ=no 17260 cat <<_LT_EOF 1>&2 17261 17262*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17263*** reliably create shared libraries on SCO systems. Therefore, libtool 17264*** is disabling shared libraries support. We urge you to upgrade GNU 17265*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17266*** your PATH or compiler configuration so that the native linker is 17267*** used, and then restart. 17268 17269_LT_EOF 17270 ;; 17271 *) 17272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17273 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17274 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17275 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17276 else 17277 ld_shlibs_GCJ=no 17278 fi 17279 ;; 17280 esac 17281 ;; 17282 17283 sunos4*) 17284 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17285 wlarc= 17286 hardcode_direct_GCJ=yes 17287 hardcode_shlibpath_var_GCJ=no 17288 ;; 17289 17290 *) 17291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17292 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17293 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17294 else 17295 ld_shlibs_GCJ=no 17296 fi 17297 ;; 17298 esac 17299 17300 if test "$ld_shlibs_GCJ" = no; then 17301 runpath_var= 17302 hardcode_libdir_flag_spec_GCJ= 17303 export_dynamic_flag_spec_GCJ= 17304 whole_archive_flag_spec_GCJ= 17305 fi 17306 else 17307 # PORTME fill in a description of your system's linker (not GNU ld) 17308 case $host_os in 17309 aix3*) 17310 allow_undefined_flag_GCJ=unsupported 17311 always_export_symbols_GCJ=yes 17312 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17313 # Note: this linker hardcodes the directories in LIBPATH if there 17314 # are no directories specified by -L. 17315 hardcode_minus_L_GCJ=yes 17316 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17317 # Neither direct hardcoding nor static linking is supported with a 17318 # broken collect2. 17319 hardcode_direct_GCJ=unsupported 17320 fi 17321 ;; 17322 17323 aix4* | aix5*) 17324 if test "$host_cpu" = ia64; then 17325 # On IA64, the linker does run time linking by default, so we don't 17326 # have to do anything special. 17327 aix_use_runtimelinking=no 17328 exp_sym_flag='-Bexport' 17329 no_entry_flag="" 17330 else 17331 # If we're using GNU nm, then we don't want the "-C" option. 17332 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17333 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17334 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17335 else 17336 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17337 fi 17338 aix_use_runtimelinking=no 17339 17340 # Test if we are trying to use run time linking or normal 17341 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17342 # need to do runtime linking. 17343 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17344 for ld_flag in $LDFLAGS; do 17345 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17346 aix_use_runtimelinking=yes 17347 break 17348 fi 17349 done 17350 ;; 17351 esac 17352 17353 exp_sym_flag='-bexport' 17354 no_entry_flag='-bnoentry' 17355 fi 17356 17357 # When large executables or shared objects are built, AIX ld can 17358 # have problems creating the table of contents. If linking a library 17359 # or program results in "error TOC overflow" add -mminimal-toc to 17360 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17361 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17362 17363 archive_cmds_GCJ='' 17364 hardcode_direct_GCJ=yes 17365 hardcode_libdir_separator_GCJ=':' 17366 link_all_deplibs_GCJ=yes 17367 17368 if test "$GCC" = yes; then 17369 case $host_os in aix4.[012]|aix4.[012].*) 17370 # We only want to do this on AIX 4.2 and lower, the check 17371 # below for broken collect2 doesn't work under 4.3+ 17372 collect2name=`${CC} -print-prog-name=collect2` 17373 if test -f "$collect2name" && \ 17374 strings "$collect2name" | grep resolve_lib_name >/dev/null 17375 then 17376 # We have reworked collect2 17377 hardcode_direct_GCJ=yes 17378 else 17379 # We have old collect2 17380 hardcode_direct_GCJ=unsupported 17381 # It fails to find uninstalled libraries when the uninstalled 17382 # path is not listed in the libpath. Setting hardcode_minus_L 17383 # to unsupported forces relinking 17384 hardcode_minus_L_GCJ=yes 17385 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17386 hardcode_libdir_separator_GCJ= 17387 fi 17388 ;; 17389 esac 17390 shared_flag='-shared' 17391 if test "$aix_use_runtimelinking" = yes; then 17392 shared_flag="$shared_flag "'${wl}-G' 17393 fi 17394 else 17395 # not using gcc 17396 if test "$host_cpu" = ia64; then 17397 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17398 # chokes on -Wl,-G. The following line is correct: 17399 shared_flag='-G' 17400 else 17401 if test "$aix_use_runtimelinking" = yes; then 17402 shared_flag='${wl}-G' 17403 else 17404 shared_flag='${wl}-bM:SRE' 17405 fi 17406 fi 17407 fi 17408 17409 # It seems that -bexpall does not export symbols beginning with 17410 # underscore (_), so it is better to generate a list of symbols to export. 17411 always_export_symbols_GCJ=yes 17412 if test "$aix_use_runtimelinking" = yes; then 17413 # Warning - without using the other runtime loading flags (-brtl), 17414 # -berok will link without error, but may produce a broken library. 17415 allow_undefined_flag_GCJ='-berok' 17416 # Determine the default libpath from the value encoded in an empty executable. 17417 cat >conftest.$ac_ext <<_ACEOF 17418/* confdefs.h. */ 17419_ACEOF 17420cat confdefs.h >>conftest.$ac_ext 17421cat >>conftest.$ac_ext <<_ACEOF 17422/* end confdefs.h. */ 17423 17424int 17425main () 17426{ 17427 17428 ; 17429 return 0; 17430} 17431_ACEOF 17432rm -f conftest.$ac_objext conftest$ac_exeext 17433if { (ac_try="$ac_link" 17434case "(($ac_try" in 17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17436 *) ac_try_echo=$ac_try;; 17437esac 17438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17439 (eval "$ac_link") 2>conftest.er1 17440 ac_status=$? 17441 grep -v '^ *+' conftest.er1 >conftest.err 17442 rm -f conftest.er1 17443 cat conftest.err >&5 17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17445 (exit $ac_status); } && 17446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17447 { (case "(($ac_try" in 17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17449 *) ac_try_echo=$ac_try;; 17450esac 17451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17452 (eval "$ac_try") 2>&5 17453 ac_status=$? 17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17455 (exit $ac_status); }; } && 17456 { ac_try='test -s conftest$ac_exeext' 17457 { (case "(($ac_try" in 17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17459 *) ac_try_echo=$ac_try;; 17460esac 17461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17462 (eval "$ac_try") 2>&5 17463 ac_status=$? 17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17465 (exit $ac_status); }; }; then 17466 17467aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17468}'` 17469# Check for a 64-bit object if we didn't find anything. 17470if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17471}'`; fi 17472else 17473 echo "$as_me: failed program was:" >&5 17474sed 's/^/| /' conftest.$ac_ext >&5 17475 17476 17477fi 17478 17479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17480 conftest$ac_exeext conftest.$ac_ext 17481if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17482 17483 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17484 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17485 else 17486 if test "$host_cpu" = ia64; then 17487 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17488 allow_undefined_flag_GCJ="-z nodefs" 17489 archive_expsym_cmds_GCJ="\$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" 17490 else 17491 # Determine the default libpath from the value encoded in an empty executable. 17492 cat >conftest.$ac_ext <<_ACEOF 17493/* confdefs.h. */ 17494_ACEOF 17495cat confdefs.h >>conftest.$ac_ext 17496cat >>conftest.$ac_ext <<_ACEOF 17497/* end confdefs.h. */ 17498 17499int 17500main () 17501{ 17502 17503 ; 17504 return 0; 17505} 17506_ACEOF 17507rm -f conftest.$ac_objext conftest$ac_exeext 17508if { (ac_try="$ac_link" 17509case "(($ac_try" in 17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17511 *) ac_try_echo=$ac_try;; 17512esac 17513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17514 (eval "$ac_link") 2>conftest.er1 17515 ac_status=$? 17516 grep -v '^ *+' conftest.er1 >conftest.err 17517 rm -f conftest.er1 17518 cat conftest.err >&5 17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17520 (exit $ac_status); } && 17521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17522 { (case "(($ac_try" in 17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17524 *) ac_try_echo=$ac_try;; 17525esac 17526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17527 (eval "$ac_try") 2>&5 17528 ac_status=$? 17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17530 (exit $ac_status); }; } && 17531 { ac_try='test -s conftest$ac_exeext' 17532 { (case "(($ac_try" in 17533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17534 *) ac_try_echo=$ac_try;; 17535esac 17536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17537 (eval "$ac_try") 2>&5 17538 ac_status=$? 17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17540 (exit $ac_status); }; }; then 17541 17542aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17543}'` 17544# Check for a 64-bit object if we didn't find anything. 17545if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17546}'`; fi 17547else 17548 echo "$as_me: failed program was:" >&5 17549sed 's/^/| /' conftest.$ac_ext >&5 17550 17551 17552fi 17553 17554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17555 conftest$ac_exeext conftest.$ac_ext 17556if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17557 17558 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17559 # Warning - without using the other run time loading flags, 17560 # -berok will link without error, but may produce a broken library. 17561 no_undefined_flag_GCJ=' ${wl}-bernotok' 17562 allow_undefined_flag_GCJ=' ${wl}-berok' 17563 # Exported symbols can be pulled into shared objects from archives 17564 whole_archive_flag_spec_GCJ='$convenience' 17565 archive_cmds_need_lc_GCJ=yes 17566 # This is similar to how AIX traditionally builds its shared libraries. 17567 archive_expsym_cmds_GCJ="\$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' 17568 fi 17569 fi 17570 ;; 17571 17572 amigaos*) 17573 archive_cmds_GCJ='$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)' 17574 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17575 hardcode_minus_L_GCJ=yes 17576 # see comment about different semantics on the GNU ld section 17577 ld_shlibs_GCJ=no 17578 ;; 17579 17580 bsdi[45]*) 17581 export_dynamic_flag_spec_GCJ=-rdynamic 17582 ;; 17583 17584 cygwin* | mingw* | pw32*) 17585 # When not using gcc, we currently assume that we are using 17586 # Microsoft Visual C++. 17587 # hardcode_libdir_flag_spec is actually meaningless, as there is 17588 # no search path for DLLs. 17589 hardcode_libdir_flag_spec_GCJ=' ' 17590 allow_undefined_flag_GCJ=unsupported 17591 # Tell ltmain to make .lib files, not .a files. 17592 libext=lib 17593 # Tell ltmain to make .dll files, not .so files. 17594 shrext_cmds=".dll" 17595 # FIXME: Setting linknames here is a bad hack. 17596 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17597 # The linker will automatically build a .lib file if we build a DLL. 17598 old_archive_From_new_cmds_GCJ='true' 17599 # FIXME: Should let the user specify the lib program. 17600 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17601 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17602 enable_shared_with_static_runtimes_GCJ=yes 17603 ;; 17604 17605 darwin* | rhapsody*) 17606 case $host_os in 17607 rhapsody* | darwin1.[012]) 17608 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17609 ;; 17610 *) # Darwin 1.3 on 17611 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17612 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17613 else 17614 case ${MACOSX_DEPLOYMENT_TARGET} in 17615 10.[012]) 17616 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17617 ;; 17618 10.*) 17619 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17620 ;; 17621 esac 17622 fi 17623 ;; 17624 esac 17625 archive_cmds_need_lc_GCJ=no 17626 hardcode_direct_GCJ=no 17627 hardcode_automatic_GCJ=yes 17628 hardcode_shlibpath_var_GCJ=unsupported 17629 whole_archive_flag_spec_GCJ='' 17630 link_all_deplibs_GCJ=yes 17631 if test "$GCC" = yes ; then 17632 output_verbose_link_cmd='echo' 17633 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17634 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17635 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17636 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17637 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17638 else 17639 case $cc_basename in 17640 xlc*) 17641 output_verbose_link_cmd='echo' 17642 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17643 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17644 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17645 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17646 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17647 ;; 17648 *) 17649 ld_shlibs_GCJ=no 17650 ;; 17651 esac 17652 fi 17653 ;; 17654 17655 dgux*) 17656 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17657 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17658 hardcode_shlibpath_var_GCJ=no 17659 ;; 17660 17661 freebsd1*) 17662 ld_shlibs_GCJ=no 17663 ;; 17664 17665 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17666 # support. Future versions do this automatically, but an explicit c++rt0.o 17667 # does not break anything, and helps significantly (at the cost of a little 17668 # extra space). 17669 freebsd2.2*) 17670 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17671 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17672 hardcode_direct_GCJ=yes 17673 hardcode_shlibpath_var_GCJ=no 17674 ;; 17675 17676 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17677 freebsd2*) 17678 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17679 hardcode_direct_GCJ=yes 17680 hardcode_minus_L_GCJ=yes 17681 hardcode_shlibpath_var_GCJ=no 17682 ;; 17683 17684 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17685 freebsd* | dragonfly*) 17686 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17687 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17688 hardcode_direct_GCJ=yes 17689 hardcode_shlibpath_var_GCJ=no 17690 ;; 17691 17692 hpux9*) 17693 if test "$GCC" = yes; then 17694 archive_cmds_GCJ='$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' 17695 else 17696 archive_cmds_GCJ='$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' 17697 fi 17698 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17699 hardcode_libdir_separator_GCJ=: 17700 hardcode_direct_GCJ=yes 17701 17702 # hardcode_minus_L: Not really in the search PATH, 17703 # but as the default location of the library. 17704 hardcode_minus_L_GCJ=yes 17705 export_dynamic_flag_spec_GCJ='${wl}-E' 17706 ;; 17707 17708 hpux10*) 17709 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17710 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17711 else 17712 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17713 fi 17714 if test "$with_gnu_ld" = no; then 17715 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17716 hardcode_libdir_separator_GCJ=: 17717 17718 hardcode_direct_GCJ=yes 17719 export_dynamic_flag_spec_GCJ='${wl}-E' 17720 17721 # hardcode_minus_L: Not really in the search PATH, 17722 # but as the default location of the library. 17723 hardcode_minus_L_GCJ=yes 17724 fi 17725 ;; 17726 17727 hpux11*) 17728 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17729 case $host_cpu in 17730 hppa*64*) 17731 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17732 ;; 17733 ia64*) 17734 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17735 ;; 17736 *) 17737 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17738 ;; 17739 esac 17740 else 17741 case $host_cpu in 17742 hppa*64*) 17743 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17744 ;; 17745 ia64*) 17746 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17747 ;; 17748 *) 17749 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17750 ;; 17751 esac 17752 fi 17753 if test "$with_gnu_ld" = no; then 17754 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17755 hardcode_libdir_separator_GCJ=: 17756 17757 case $host_cpu in 17758 hppa*64*|ia64*) 17759 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17760 hardcode_direct_GCJ=no 17761 hardcode_shlibpath_var_GCJ=no 17762 ;; 17763 *) 17764 hardcode_direct_GCJ=yes 17765 export_dynamic_flag_spec_GCJ='${wl}-E' 17766 17767 # hardcode_minus_L: Not really in the search PATH, 17768 # but as the default location of the library. 17769 hardcode_minus_L_GCJ=yes 17770 ;; 17771 esac 17772 fi 17773 ;; 17774 17775 irix5* | irix6* | nonstopux*) 17776 if test "$GCC" = yes; then 17777 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17778 else 17779 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17780 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17781 fi 17782 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17783 hardcode_libdir_separator_GCJ=: 17784 link_all_deplibs_GCJ=yes 17785 ;; 17786 17787 netbsd* | netbsdelf*-gnu) 17788 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17789 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17790 else 17791 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17792 fi 17793 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17794 hardcode_direct_GCJ=yes 17795 hardcode_shlibpath_var_GCJ=no 17796 ;; 17797 17798 newsos6) 17799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17800 hardcode_direct_GCJ=yes 17801 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17802 hardcode_libdir_separator_GCJ=: 17803 hardcode_shlibpath_var_GCJ=no 17804 ;; 17805 17806 openbsd*) 17807 hardcode_direct_GCJ=yes 17808 hardcode_shlibpath_var_GCJ=no 17809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17810 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17811 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17812 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17813 export_dynamic_flag_spec_GCJ='${wl}-E' 17814 else 17815 case $host_os in 17816 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17818 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17819 ;; 17820 *) 17821 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17822 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17823 ;; 17824 esac 17825 fi 17826 ;; 17827 17828 os2*) 17829 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17830 hardcode_minus_L_GCJ=yes 17831 allow_undefined_flag_GCJ=unsupported 17832 archive_cmds_GCJ='$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' 17833 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17834 ;; 17835 17836 osf3*) 17837 if test "$GCC" = yes; then 17838 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17839 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17840 else 17841 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17842 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17843 fi 17844 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17845 hardcode_libdir_separator_GCJ=: 17846 ;; 17847 17848 osf4* | osf5*) # as osf3* with the addition of -msym flag 17849 if test "$GCC" = yes; then 17850 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17851 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17852 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17853 else 17854 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17855 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17856 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 17857 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17858 17859 # Both c and cxx compiler support -rpath directly 17860 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17861 fi 17862 hardcode_libdir_separator_GCJ=: 17863 ;; 17864 17865 solaris*) 17866 no_undefined_flag_GCJ=' -z text' 17867 if test "$GCC" = yes; then 17868 wlarc='${wl}' 17869 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17870 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17871 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17872 else 17873 wlarc='' 17874 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17875 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17876 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17877 fi 17878 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17879 hardcode_shlibpath_var_GCJ=no 17880 case $host_os in 17881 solaris2.[0-5] | solaris2.[0-5].*) ;; 17882 *) 17883 # The compiler driver will combine linker options so we 17884 # cannot just pass the convience library names through 17885 # without $wl, iff we do not link with $LD. 17886 # Luckily, gcc supports the same syntax we need for Sun Studio. 17887 # Supported since Solaris 2.6 (maybe 2.5.1?) 17888 case $wlarc in 17889 '') 17890 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17891 *) 17892 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17893 esac ;; 17894 esac 17895 link_all_deplibs_GCJ=yes 17896 ;; 17897 17898 sunos4*) 17899 if test "x$host_vendor" = xsequent; then 17900 # Use $CC to link under sequent, because it throws in some extra .o 17901 # files that make .init and .fini sections work. 17902 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17903 else 17904 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17905 fi 17906 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17907 hardcode_direct_GCJ=yes 17908 hardcode_minus_L_GCJ=yes 17909 hardcode_shlibpath_var_GCJ=no 17910 ;; 17911 17912 sysv4) 17913 case $host_vendor in 17914 sni) 17915 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17916 hardcode_direct_GCJ=yes # is this really true??? 17917 ;; 17918 siemens) 17919 ## LD is ld it makes a PLAMLIB 17920 ## CC just makes a GrossModule. 17921 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17922 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17923 hardcode_direct_GCJ=no 17924 ;; 17925 motorola) 17926 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17927 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17928 ;; 17929 esac 17930 runpath_var='LD_RUN_PATH' 17931 hardcode_shlibpath_var_GCJ=no 17932 ;; 17933 17934 sysv4.3*) 17935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17936 hardcode_shlibpath_var_GCJ=no 17937 export_dynamic_flag_spec_GCJ='-Bexport' 17938 ;; 17939 17940 sysv4*MP*) 17941 if test -d /usr/nec; then 17942 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17943 hardcode_shlibpath_var_GCJ=no 17944 runpath_var=LD_RUN_PATH 17945 hardcode_runpath_var=yes 17946 ld_shlibs_GCJ=yes 17947 fi 17948 ;; 17949 17950 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 17951 no_undefined_flag_GCJ='${wl}-z,text' 17952 archive_cmds_need_lc_GCJ=no 17953 hardcode_shlibpath_var_GCJ=no 17954 runpath_var='LD_RUN_PATH' 17955 17956 if test "$GCC" = yes; then 17957 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17958 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17959 else 17960 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17961 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17962 fi 17963 ;; 17964 17965 sysv5* | sco3.2v5* | sco5v6*) 17966 # Note: We can NOT use -z defs as we might desire, because we do not 17967 # link with -lc, and that would cause any symbols used from libc to 17968 # always be unresolved, which means just about no library would 17969 # ever link correctly. If we're not using GNU ld we use -z text 17970 # though, which does catch some bad symbols but isn't as heavy-handed 17971 # as -z defs. 17972 no_undefined_flag_GCJ='${wl}-z,text' 17973 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17974 archive_cmds_need_lc_GCJ=no 17975 hardcode_shlibpath_var_GCJ=no 17976 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17977 hardcode_libdir_separator_GCJ=':' 17978 link_all_deplibs_GCJ=yes 17979 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17980 runpath_var='LD_RUN_PATH' 17981 17982 if test "$GCC" = yes; then 17983 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17984 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17985 else 17986 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17987 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17988 fi 17989 ;; 17990 17991 uts4*) 17992 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17993 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17994 hardcode_shlibpath_var_GCJ=no 17995 ;; 17996 17997 *) 17998 ld_shlibs_GCJ=no 17999 ;; 18000 esac 18001 fi 18002 18003{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18004echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18005test "$ld_shlibs_GCJ" = no && can_build_shared=no 18006 18007# 18008# Do we need to explicitly link libc? 18009# 18010case "x$archive_cmds_need_lc_GCJ" in 18011x|xyes) 18012 # Assume -lc should be added 18013 archive_cmds_need_lc_GCJ=yes 18014 18015 if test "$enable_shared" = yes && test "$GCC" = yes; then 18016 case $archive_cmds_GCJ in 18017 *'~'*) 18018 # FIXME: we may have to deal with multi-command sequences. 18019 ;; 18020 '$CC '*) 18021 # Test whether the compiler implicitly links with -lc since on some 18022 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18023 # to ld, don't add -lc before -lgcc. 18024 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18025echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18026 $rm conftest* 18027 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18028 18029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18030 (eval $ac_compile) 2>&5 18031 ac_status=$? 18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18033 (exit $ac_status); } 2>conftest.err; then 18034 soname=conftest 18035 lib=conftest 18036 libobjs=conftest.$ac_objext 18037 deplibs= 18038 wl=$lt_prog_compiler_wl_GCJ 18039 pic_flag=$lt_prog_compiler_pic_GCJ 18040 compiler_flags=-v 18041 linker_flags=-v 18042 verstring= 18043 output_objdir=. 18044 libname=conftest 18045 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18046 allow_undefined_flag_GCJ= 18047 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18048 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18049 ac_status=$? 18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18051 (exit $ac_status); } 18052 then 18053 archive_cmds_need_lc_GCJ=no 18054 else 18055 archive_cmds_need_lc_GCJ=yes 18056 fi 18057 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18058 else 18059 cat conftest.err 1>&5 18060 fi 18061 $rm conftest* 18062 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18063echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18064 ;; 18065 esac 18066 fi 18067 ;; 18068esac 18069 18070{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18071echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18072library_names_spec= 18073libname_spec='lib$name' 18074soname_spec= 18075shrext_cmds=".so" 18076postinstall_cmds= 18077postuninstall_cmds= 18078finish_cmds= 18079finish_eval= 18080shlibpath_var= 18081shlibpath_overrides_runpath=unknown 18082version_type=none 18083dynamic_linker="$host_os ld.so" 18084sys_lib_dlsearch_path_spec="/lib /usr/lib" 18085if test "$GCC" = yes; then 18086 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18087 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18088 # if the path contains ";" then we assume it to be the separator 18089 # otherwise default to the standard path separator (i.e. ":") - it is 18090 # assumed that no part of a normal pathname contains ";" but that should 18091 # okay in the real world where ";" in dirpaths is itself problematic. 18092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18093 else 18094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18095 fi 18096else 18097 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18098fi 18099need_lib_prefix=unknown 18100hardcode_into_libs=no 18101 18102# when you set need_version to no, make sure it does not cause -set_version 18103# flags to be left without arguments 18104need_version=unknown 18105 18106case $host_os in 18107aix3*) 18108 version_type=linux 18109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18110 shlibpath_var=LIBPATH 18111 18112 # AIX 3 has no versioning support, so we append a major version to the name. 18113 soname_spec='${libname}${release}${shared_ext}$major' 18114 ;; 18115 18116aix4* | aix5*) 18117 version_type=linux 18118 need_lib_prefix=no 18119 need_version=no 18120 hardcode_into_libs=yes 18121 if test "$host_cpu" = ia64; then 18122 # AIX 5 supports IA64 18123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18124 shlibpath_var=LD_LIBRARY_PATH 18125 else 18126 # With GCC up to 2.95.x, collect2 would create an import file 18127 # for dependence libraries. The import file would start with 18128 # the line `#! .'. This would cause the generated library to 18129 # depend on `.', always an invalid library. This was fixed in 18130 # development snapshots of GCC prior to 3.0. 18131 case $host_os in 18132 aix4 | aix4.[01] | aix4.[01].*) 18133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18134 echo ' yes ' 18135 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18136 : 18137 else 18138 can_build_shared=no 18139 fi 18140 ;; 18141 esac 18142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18143 # soname into executable. Probably we can add versioning support to 18144 # collect2, so additional links can be useful in future. 18145 if test "$aix_use_runtimelinking" = yes; then 18146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18147 # instead of lib<name>.a to let people know that these are not 18148 # typical AIX shared libraries. 18149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18150 else 18151 # We preserve .a as extension for shared libraries through AIX4.2 18152 # and later when we are not doing run time linking. 18153 library_names_spec='${libname}${release}.a $libname.a' 18154 soname_spec='${libname}${release}${shared_ext}$major' 18155 fi 18156 shlibpath_var=LIBPATH 18157 fi 18158 ;; 18159 18160amigaos*) 18161 library_names_spec='$libname.ixlibrary $libname.a' 18162 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18163 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' 18164 ;; 18165 18166beos*) 18167 library_names_spec='${libname}${shared_ext}' 18168 dynamic_linker="$host_os ld.so" 18169 shlibpath_var=LIBRARY_PATH 18170 ;; 18171 18172bsdi[45]*) 18173 version_type=linux 18174 need_version=no 18175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18176 soname_spec='${libname}${release}${shared_ext}$major' 18177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18178 shlibpath_var=LD_LIBRARY_PATH 18179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18181 # the default ld.so.conf also contains /usr/contrib/lib and 18182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18183 # libtool to hard-code these into programs 18184 ;; 18185 18186cygwin* | mingw* | pw32*) 18187 version_type=windows 18188 shrext_cmds=".dll" 18189 need_version=no 18190 need_lib_prefix=no 18191 18192 case $GCC,$host_os in 18193 yes,cygwin* | yes,mingw* | yes,pw32*) 18194 library_names_spec='$libname.dll.a' 18195 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18196 postinstall_cmds='base_file=`basename \${file}`~ 18197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18198 dldir=$destdir/`dirname \$dlpath`~ 18199 test -d \$dldir || mkdir -p \$dldir~ 18200 $install_prog $dir/$dlname \$dldir/$dlname~ 18201 chmod a+x \$dldir/$dlname' 18202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18203 dlpath=$dir/\$dldll~ 18204 $rm \$dlpath' 18205 shlibpath_overrides_runpath=yes 18206 18207 case $host_os in 18208 cygwin*) 18209 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18211 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18212 ;; 18213 mingw*) 18214 # MinGW DLLs use traditional 'lib' prefix 18215 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18216 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18217 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18218 # It is most probably a Windows format PATH printed by 18219 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18220 # path with ; separators, and with drive letters. We can handle the 18221 # drive letters (cygwin fileutils understands them), so leave them, 18222 # especially as we might pass files found there to a mingw objdump, 18223 # which wouldn't understand a cygwinified path. Ahh. 18224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18225 else 18226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18227 fi 18228 ;; 18229 pw32*) 18230 # pw32 DLLs use 'pw' prefix rather than 'lib' 18231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18232 ;; 18233 esac 18234 ;; 18235 18236 *) 18237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18238 ;; 18239 esac 18240 dynamic_linker='Win32 ld.exe' 18241 # FIXME: first we should search . and the directory the executable is in 18242 shlibpath_var=PATH 18243 ;; 18244 18245darwin* | rhapsody*) 18246 dynamic_linker="$host_os dyld" 18247 version_type=darwin 18248 need_lib_prefix=no 18249 need_version=no 18250 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18251 soname_spec='${libname}${release}${major}$shared_ext' 18252 shlibpath_overrides_runpath=yes 18253 shlibpath_var=DYLD_LIBRARY_PATH 18254 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18255 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18256 if test "$GCC" = yes; then 18257 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18258 else 18259 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18260 fi 18261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18262 ;; 18263 18264dgux*) 18265 version_type=linux 18266 need_lib_prefix=no 18267 need_version=no 18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18269 soname_spec='${libname}${release}${shared_ext}$major' 18270 shlibpath_var=LD_LIBRARY_PATH 18271 ;; 18272 18273freebsd1*) 18274 dynamic_linker=no 18275 ;; 18276 18277freebsd* | dragonfly*) 18278 # DragonFly does not have aout. When/if they implement a new 18279 # versioning mechanism, adjust this. 18280 if test -x /usr/bin/objformat; then 18281 objformat=`/usr/bin/objformat` 18282 else 18283 case $host_os in 18284 freebsd[123]*) objformat=aout ;; 18285 *) objformat=elf ;; 18286 esac 18287 fi 18288 version_type=freebsd-$objformat 18289 case $version_type in 18290 freebsd-elf*) 18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18292 need_version=no 18293 need_lib_prefix=no 18294 ;; 18295 freebsd-*) 18296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18297 need_version=yes 18298 ;; 18299 esac 18300 shlibpath_var=LD_LIBRARY_PATH 18301 case $host_os in 18302 freebsd2*) 18303 shlibpath_overrides_runpath=yes 18304 ;; 18305 freebsd3.[01]* | freebsdelf3.[01]*) 18306 shlibpath_overrides_runpath=yes 18307 hardcode_into_libs=yes 18308 ;; 18309 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18310 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18311 shlibpath_overrides_runpath=no 18312 hardcode_into_libs=yes 18313 ;; 18314 freebsd*) # from 4.6 on 18315 shlibpath_overrides_runpath=yes 18316 hardcode_into_libs=yes 18317 ;; 18318 esac 18319 ;; 18320 18321gnu*) 18322 version_type=linux 18323 need_lib_prefix=no 18324 need_version=no 18325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18326 soname_spec='${libname}${release}${shared_ext}$major' 18327 shlibpath_var=LD_LIBRARY_PATH 18328 hardcode_into_libs=yes 18329 ;; 18330 18331hpux9* | hpux10* | hpux11*) 18332 # Give a soname corresponding to the major version so that dld.sl refuses to 18333 # link against other versions. 18334 version_type=sunos 18335 need_lib_prefix=no 18336 need_version=no 18337 case $host_cpu in 18338 ia64*) 18339 shrext_cmds='.so' 18340 hardcode_into_libs=yes 18341 dynamic_linker="$host_os dld.so" 18342 shlibpath_var=LD_LIBRARY_PATH 18343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18345 soname_spec='${libname}${release}${shared_ext}$major' 18346 if test "X$HPUX_IA64_MODE" = X32; then 18347 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18348 else 18349 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18350 fi 18351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18352 ;; 18353 hppa*64*) 18354 shrext_cmds='.sl' 18355 hardcode_into_libs=yes 18356 dynamic_linker="$host_os dld.sl" 18357 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18358 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18360 soname_spec='${libname}${release}${shared_ext}$major' 18361 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18363 ;; 18364 *) 18365 shrext_cmds='.sl' 18366 dynamic_linker="$host_os dld.sl" 18367 shlibpath_var=SHLIB_PATH 18368 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18370 soname_spec='${libname}${release}${shared_ext}$major' 18371 ;; 18372 esac 18373 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18374 postinstall_cmds='chmod 555 $lib' 18375 ;; 18376 18377interix3*) 18378 version_type=linux 18379 need_lib_prefix=no 18380 need_version=no 18381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18382 soname_spec='${libname}${release}${shared_ext}$major' 18383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18384 shlibpath_var=LD_LIBRARY_PATH 18385 shlibpath_overrides_runpath=no 18386 hardcode_into_libs=yes 18387 ;; 18388 18389irix5* | irix6* | nonstopux*) 18390 case $host_os in 18391 nonstopux*) version_type=nonstopux ;; 18392 *) 18393 if test "$lt_cv_prog_gnu_ld" = yes; then 18394 version_type=linux 18395 else 18396 version_type=irix 18397 fi ;; 18398 esac 18399 need_lib_prefix=no 18400 need_version=no 18401 soname_spec='${libname}${release}${shared_ext}$major' 18402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18403 case $host_os in 18404 irix5* | nonstopux*) 18405 libsuff= shlibsuff= 18406 ;; 18407 *) 18408 case $LD in # libtool.m4 will add one of these switches to LD 18409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18410 libsuff= shlibsuff= libmagic=32-bit;; 18411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18412 libsuff=32 shlibsuff=N32 libmagic=N32;; 18413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18414 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18415 *) libsuff= shlibsuff= libmagic=never-match;; 18416 esac 18417 ;; 18418 esac 18419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18420 shlibpath_overrides_runpath=no 18421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18423 hardcode_into_libs=yes 18424 ;; 18425 18426# No shared lib support for Linux oldld, aout, or coff. 18427linux*oldld* | linux*aout* | linux*coff*) 18428 dynamic_linker=no 18429 ;; 18430 18431# This must be Linux ELF. 18432linux* | k*bsd*-gnu) 18433 version_type=linux 18434 need_lib_prefix=no 18435 need_version=no 18436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18437 soname_spec='${libname}${release}${shared_ext}$major' 18438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18439 shlibpath_var=LD_LIBRARY_PATH 18440 shlibpath_overrides_runpath=no 18441 # This implies no fast_install, which is unacceptable. 18442 # Some rework will be needed to allow for fast_install 18443 # before this can be enabled. 18444 hardcode_into_libs=yes 18445 18446 # Append ld.so.conf contents to the search path 18447 if test -f /etc/ld.so.conf; then 18448 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18450 fi 18451 18452 # We used to test for /lib/ld.so.1 and disable shared libraries on 18453 # powerpc, because MkLinux only supported shared libraries with the 18454 # GNU dynamic linker. Since this was broken with cross compilers, 18455 # most powerpc-linux boxes support dynamic linking these days and 18456 # people can always --disable-shared, the test was removed, and we 18457 # assume the GNU/Linux dynamic linker is in use. 18458 dynamic_linker='GNU/Linux ld.so' 18459 ;; 18460 18461netbsdelf*-gnu) 18462 version_type=linux 18463 need_lib_prefix=no 18464 need_version=no 18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18466 soname_spec='${libname}${release}${shared_ext}$major' 18467 shlibpath_var=LD_LIBRARY_PATH 18468 shlibpath_overrides_runpath=no 18469 hardcode_into_libs=yes 18470 dynamic_linker='NetBSD ld.elf_so' 18471 ;; 18472 18473netbsd*) 18474 version_type=sunos 18475 need_lib_prefix=no 18476 need_version=no 18477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18480 dynamic_linker='NetBSD (a.out) ld.so' 18481 else 18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18483 soname_spec='${libname}${release}${shared_ext}$major' 18484 dynamic_linker='NetBSD ld.elf_so' 18485 fi 18486 shlibpath_var=LD_LIBRARY_PATH 18487 shlibpath_overrides_runpath=yes 18488 hardcode_into_libs=yes 18489 ;; 18490 18491newsos6) 18492 version_type=linux 18493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18494 shlibpath_var=LD_LIBRARY_PATH 18495 shlibpath_overrides_runpath=yes 18496 ;; 18497 18498nto-qnx*) 18499 version_type=linux 18500 need_lib_prefix=no 18501 need_version=no 18502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18503 soname_spec='${libname}${release}${shared_ext}$major' 18504 shlibpath_var=LD_LIBRARY_PATH 18505 shlibpath_overrides_runpath=yes 18506 ;; 18507 18508openbsd*) 18509 version_type=sunos 18510 sys_lib_dlsearch_path_spec="/usr/lib" 18511 need_lib_prefix=no 18512 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18513 case $host_os in 18514 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18515 *) need_version=no ;; 18516 esac 18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18519 shlibpath_var=LD_LIBRARY_PATH 18520 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18521 case $host_os in 18522 openbsd2.[89] | openbsd2.[89].*) 18523 shlibpath_overrides_runpath=no 18524 ;; 18525 *) 18526 shlibpath_overrides_runpath=yes 18527 ;; 18528 esac 18529 else 18530 shlibpath_overrides_runpath=yes 18531 fi 18532 ;; 18533 18534os2*) 18535 libname_spec='$name' 18536 shrext_cmds=".dll" 18537 need_lib_prefix=no 18538 library_names_spec='$libname${shared_ext} $libname.a' 18539 dynamic_linker='OS/2 ld.exe' 18540 shlibpath_var=LIBPATH 18541 ;; 18542 18543osf3* | osf4* | osf5*) 18544 version_type=osf 18545 need_lib_prefix=no 18546 need_version=no 18547 soname_spec='${libname}${release}${shared_ext}$major' 18548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18549 shlibpath_var=LD_LIBRARY_PATH 18550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18551 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18552 ;; 18553 18554solaris*) 18555 version_type=linux 18556 need_lib_prefix=no 18557 need_version=no 18558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18559 soname_spec='${libname}${release}${shared_ext}$major' 18560 shlibpath_var=LD_LIBRARY_PATH 18561 shlibpath_overrides_runpath=yes 18562 hardcode_into_libs=yes 18563 # ldd complains unless libraries are executable 18564 postinstall_cmds='chmod +x $lib' 18565 ;; 18566 18567sunos4*) 18568 version_type=sunos 18569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18571 shlibpath_var=LD_LIBRARY_PATH 18572 shlibpath_overrides_runpath=yes 18573 if test "$with_gnu_ld" = yes; then 18574 need_lib_prefix=no 18575 fi 18576 need_version=yes 18577 ;; 18578 18579sysv4 | sysv4.3*) 18580 version_type=linux 18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18582 soname_spec='${libname}${release}${shared_ext}$major' 18583 shlibpath_var=LD_LIBRARY_PATH 18584 case $host_vendor in 18585 sni) 18586 shlibpath_overrides_runpath=no 18587 need_lib_prefix=no 18588 export_dynamic_flag_spec='${wl}-Blargedynsym' 18589 runpath_var=LD_RUN_PATH 18590 ;; 18591 siemens) 18592 need_lib_prefix=no 18593 ;; 18594 motorola) 18595 need_lib_prefix=no 18596 need_version=no 18597 shlibpath_overrides_runpath=no 18598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18599 ;; 18600 esac 18601 ;; 18602 18603sysv4*MP*) 18604 if test -d /usr/nec ;then 18605 version_type=linux 18606 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18607 soname_spec='$libname${shared_ext}.$major' 18608 shlibpath_var=LD_LIBRARY_PATH 18609 fi 18610 ;; 18611 18612sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18613 version_type=freebsd-elf 18614 need_lib_prefix=no 18615 need_version=no 18616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18617 soname_spec='${libname}${release}${shared_ext}$major' 18618 shlibpath_var=LD_LIBRARY_PATH 18619 hardcode_into_libs=yes 18620 if test "$with_gnu_ld" = yes; then 18621 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18622 shlibpath_overrides_runpath=no 18623 else 18624 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18625 shlibpath_overrides_runpath=yes 18626 case $host_os in 18627 sco3.2v5*) 18628 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18629 ;; 18630 esac 18631 fi 18632 sys_lib_dlsearch_path_spec='/usr/lib' 18633 ;; 18634 18635uts4*) 18636 version_type=linux 18637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18638 soname_spec='${libname}${release}${shared_ext}$major' 18639 shlibpath_var=LD_LIBRARY_PATH 18640 ;; 18641 18642*) 18643 dynamic_linker=no 18644 ;; 18645esac 18646{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18647echo "${ECHO_T}$dynamic_linker" >&6; } 18648test "$dynamic_linker" = no && can_build_shared=no 18649 18650variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18651if test "$GCC" = yes; then 18652 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18653fi 18654 18655{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18656echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18657hardcode_action_GCJ= 18658if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18659 test -n "$runpath_var_GCJ" || \ 18660 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18661 18662 # We can hardcode non-existant directories. 18663 if test "$hardcode_direct_GCJ" != no && 18664 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18665 # have to relink, otherwise we might link with an installed library 18666 # when we should be linking with a yet-to-be-installed one 18667 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18668 test "$hardcode_minus_L_GCJ" != no; then 18669 # Linking always hardcodes the temporary library directory. 18670 hardcode_action_GCJ=relink 18671 else 18672 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18673 hardcode_action_GCJ=immediate 18674 fi 18675else 18676 # We cannot hardcode anything, or else we can only hardcode existing 18677 # directories. 18678 hardcode_action_GCJ=unsupported 18679fi 18680{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18681echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18682 18683if test "$hardcode_action_GCJ" = relink; then 18684 # Fast installation is not supported 18685 enable_fast_install=no 18686elif test "$shlibpath_overrides_runpath" = yes || 18687 test "$enable_shared" = no; then 18688 # Fast installation is not necessary 18689 enable_fast_install=needless 18690fi 18691 18692 18693# The else clause should only fire when bootstrapping the 18694# libtool distribution, otherwise you forgot to ship ltmain.sh 18695# with your package, and you will get complaints that there are 18696# no rules to generate ltmain.sh. 18697if test -f "$ltmain"; then 18698 # See if we are running on zsh, and set the options which allow our commands through 18699 # without removal of \ escapes. 18700 if test -n "${ZSH_VERSION+set}" ; then 18701 setopt NO_GLOB_SUBST 18702 fi 18703 # Now quote all the things that may contain metacharacters while being 18704 # careful not to overquote the AC_SUBSTed values. We take copies of the 18705 # variables and quote the copies for generation of the libtool script. 18706 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18707 SED SHELL STRIP \ 18708 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18709 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18710 deplibs_check_method reload_flag reload_cmds need_locks \ 18711 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18712 lt_cv_sys_global_symbol_to_c_name_address \ 18713 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18714 old_postinstall_cmds old_postuninstall_cmds \ 18715 compiler_GCJ \ 18716 CC_GCJ \ 18717 LD_GCJ \ 18718 lt_prog_compiler_wl_GCJ \ 18719 lt_prog_compiler_pic_GCJ \ 18720 lt_prog_compiler_static_GCJ \ 18721 lt_prog_compiler_no_builtin_flag_GCJ \ 18722 export_dynamic_flag_spec_GCJ \ 18723 thread_safe_flag_spec_GCJ \ 18724 whole_archive_flag_spec_GCJ \ 18725 enable_shared_with_static_runtimes_GCJ \ 18726 old_archive_cmds_GCJ \ 18727 old_archive_from_new_cmds_GCJ \ 18728 predep_objects_GCJ \ 18729 postdep_objects_GCJ \ 18730 predeps_GCJ \ 18731 postdeps_GCJ \ 18732 compiler_lib_search_path_GCJ \ 18733 archive_cmds_GCJ \ 18734 archive_expsym_cmds_GCJ \ 18735 postinstall_cmds_GCJ \ 18736 postuninstall_cmds_GCJ \ 18737 old_archive_from_expsyms_cmds_GCJ \ 18738 allow_undefined_flag_GCJ \ 18739 no_undefined_flag_GCJ \ 18740 export_symbols_cmds_GCJ \ 18741 hardcode_libdir_flag_spec_GCJ \ 18742 hardcode_libdir_flag_spec_ld_GCJ \ 18743 hardcode_libdir_separator_GCJ \ 18744 hardcode_automatic_GCJ \ 18745 module_cmds_GCJ \ 18746 module_expsym_cmds_GCJ \ 18747 lt_cv_prog_compiler_c_o_GCJ \ 18748 exclude_expsyms_GCJ \ 18749 include_expsyms_GCJ; do 18750 18751 case $var in 18752 old_archive_cmds_GCJ | \ 18753 old_archive_from_new_cmds_GCJ | \ 18754 archive_cmds_GCJ | \ 18755 archive_expsym_cmds_GCJ | \ 18756 module_cmds_GCJ | \ 18757 module_expsym_cmds_GCJ | \ 18758 old_archive_from_expsyms_cmds_GCJ | \ 18759 export_symbols_cmds_GCJ | \ 18760 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18761 postinstall_cmds | postuninstall_cmds | \ 18762 old_postinstall_cmds | old_postuninstall_cmds | \ 18763 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18764 # Double-quote double-evaled strings. 18765 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18766 ;; 18767 *) 18768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18769 ;; 18770 esac 18771 done 18772 18773 case $lt_echo in 18774 *'\$0 --fallback-echo"') 18775 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18776 ;; 18777 esac 18778 18779cfgfile="$ofile" 18780 18781 cat <<__EOF__ >> "$cfgfile" 18782# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18783 18784# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18785 18786# Shell to use when invoking shell scripts. 18787SHELL=$lt_SHELL 18788 18789# Whether or not to build shared libraries. 18790build_libtool_libs=$enable_shared 18791 18792# Whether or not to build static libraries. 18793build_old_libs=$enable_static 18794 18795# Whether or not to add -lc for building shared libraries. 18796build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18797 18798# Whether or not to disallow shared libs when runtime libs are static 18799allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18800 18801# Whether or not to optimize for fast installation. 18802fast_install=$enable_fast_install 18803 18804# The host system. 18805host_alias=$host_alias 18806host=$host 18807host_os=$host_os 18808 18809# The build system. 18810build_alias=$build_alias 18811build=$build 18812build_os=$build_os 18813 18814# An echo program that does not interpret backslashes. 18815echo=$lt_echo 18816 18817# The archiver. 18818AR=$lt_AR 18819AR_FLAGS=$lt_AR_FLAGS 18820 18821# A C compiler. 18822LTCC=$lt_LTCC 18823 18824# LTCC compiler flags. 18825LTCFLAGS=$lt_LTCFLAGS 18826 18827# A language-specific compiler. 18828CC=$lt_compiler_GCJ 18829 18830# Is the compiler the GNU C compiler? 18831with_gcc=$GCC_GCJ 18832 18833# An ERE matcher. 18834EGREP=$lt_EGREP 18835 18836# The linker used to build libraries. 18837LD=$lt_LD_GCJ 18838 18839# Whether we need hard or soft links. 18840LN_S=$lt_LN_S 18841 18842# A BSD-compatible nm program. 18843NM=$lt_NM 18844 18845# A symbol stripping program 18846STRIP=$lt_STRIP 18847 18848# Used to examine libraries when file_magic_cmd begins "file" 18849MAGIC_CMD=$MAGIC_CMD 18850 18851# Used on cygwin: DLL creation program. 18852DLLTOOL="$DLLTOOL" 18853 18854# Used on cygwin: object dumper. 18855OBJDUMP="$OBJDUMP" 18856 18857# Used on cygwin: assembler. 18858AS="$AS" 18859 18860# The name of the directory that contains temporary libtool files. 18861objdir=$objdir 18862 18863# How to create reloadable object files. 18864reload_flag=$lt_reload_flag 18865reload_cmds=$lt_reload_cmds 18866 18867# How to pass a linker flag through the compiler. 18868wl=$lt_lt_prog_compiler_wl_GCJ 18869 18870# Object file suffix (normally "o"). 18871objext="$ac_objext" 18872 18873# Old archive suffix (normally "a"). 18874libext="$libext" 18875 18876# Shared library suffix (normally ".so"). 18877shrext_cmds='$shrext_cmds' 18878 18879# Executable file suffix (normally ""). 18880exeext="$exeext" 18881 18882# Additional compiler flags for building library objects. 18883pic_flag=$lt_lt_prog_compiler_pic_GCJ 18884pic_mode=$pic_mode 18885 18886# What is the maximum length of a command? 18887max_cmd_len=$lt_cv_sys_max_cmd_len 18888 18889# Does compiler simultaneously support -c and -o options? 18890compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18891 18892# Must we lock files when doing compilation? 18893need_locks=$lt_need_locks 18894 18895# Do we need the lib prefix for modules? 18896need_lib_prefix=$need_lib_prefix 18897 18898# Do we need a version for libraries? 18899need_version=$need_version 18900 18901# Whether dlopen is supported. 18902dlopen_support=$enable_dlopen 18903 18904# Whether dlopen of programs is supported. 18905dlopen_self=$enable_dlopen_self 18906 18907# Whether dlopen of statically linked programs is supported. 18908dlopen_self_static=$enable_dlopen_self_static 18909 18910# Compiler flag to prevent dynamic linking. 18911link_static_flag=$lt_lt_prog_compiler_static_GCJ 18912 18913# Compiler flag to turn off builtin functions. 18914no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18915 18916# Compiler flag to allow reflexive dlopens. 18917export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18918 18919# Compiler flag to generate shared objects directly from archives. 18920whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18921 18922# Compiler flag to generate thread-safe objects. 18923thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18924 18925# Library versioning type. 18926version_type=$version_type 18927 18928# Format of library name prefix. 18929libname_spec=$lt_libname_spec 18930 18931# List of archive names. First name is the real one, the rest are links. 18932# The last name is the one that the linker finds with -lNAME. 18933library_names_spec=$lt_library_names_spec 18934 18935# The coded name of the library, if different from the real name. 18936soname_spec=$lt_soname_spec 18937 18938# Commands used to build and install an old-style archive. 18939RANLIB=$lt_RANLIB 18940old_archive_cmds=$lt_old_archive_cmds_GCJ 18941old_postinstall_cmds=$lt_old_postinstall_cmds 18942old_postuninstall_cmds=$lt_old_postuninstall_cmds 18943 18944# Create an old-style archive from a shared archive. 18945old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18946 18947# Create a temporary old-style archive to link instead of a shared archive. 18948old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18949 18950# Commands used to build and install a shared archive. 18951archive_cmds=$lt_archive_cmds_GCJ 18952archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18953postinstall_cmds=$lt_postinstall_cmds 18954postuninstall_cmds=$lt_postuninstall_cmds 18955 18956# Commands used to build a loadable module (assumed same as above if empty) 18957module_cmds=$lt_module_cmds_GCJ 18958module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18959 18960# Commands to strip libraries. 18961old_striplib=$lt_old_striplib 18962striplib=$lt_striplib 18963 18964# Dependencies to place before the objects being linked to create a 18965# shared library. 18966predep_objects=$lt_predep_objects_GCJ 18967 18968# Dependencies to place after the objects being linked to create a 18969# shared library. 18970postdep_objects=$lt_postdep_objects_GCJ 18971 18972# Dependencies to place before the objects being linked to create a 18973# shared library. 18974predeps=$lt_predeps_GCJ 18975 18976# Dependencies to place after the objects being linked to create a 18977# shared library. 18978postdeps=$lt_postdeps_GCJ 18979 18980# The library search path used internally by the compiler when linking 18981# a shared library. 18982compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18983 18984# Method to check whether dependent libraries are shared objects. 18985deplibs_check_method=$lt_deplibs_check_method 18986 18987# Command to use when deplibs_check_method == file_magic. 18988file_magic_cmd=$lt_file_magic_cmd 18989 18990# Flag that allows shared libraries with undefined symbols to be built. 18991allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18992 18993# Flag that forces no undefined symbols. 18994no_undefined_flag=$lt_no_undefined_flag_GCJ 18995 18996# Commands used to finish a libtool library installation in a directory. 18997finish_cmds=$lt_finish_cmds 18998 18999# Same as above, but a single script fragment to be evaled but not shown. 19000finish_eval=$lt_finish_eval 19001 19002# Take the output of nm and produce a listing of raw symbols and C names. 19003global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19004 19005# Transform the output of nm in a proper C declaration 19006global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19007 19008# Transform the output of nm in a C name address pair 19009global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19010 19011# This is the shared library runtime path variable. 19012runpath_var=$runpath_var 19013 19014# This is the shared library path variable. 19015shlibpath_var=$shlibpath_var 19016 19017# Is shlibpath searched before the hard-coded library search path? 19018shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19019 19020# How to hardcode a shared library path into an executable. 19021hardcode_action=$hardcode_action_GCJ 19022 19023# Whether we should hardcode library paths into libraries. 19024hardcode_into_libs=$hardcode_into_libs 19025 19026# Flag to hardcode \$libdir into a binary during linking. 19027# This must work even if \$libdir does not exist. 19028hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19029 19030# If ld is used when linking, flag to hardcode \$libdir into 19031# a binary during linking. This must work even if \$libdir does 19032# not exist. 19033hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19034 19035# Whether we need a single -rpath flag with a separated argument. 19036hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19037 19038# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19039# resulting binary. 19040hardcode_direct=$hardcode_direct_GCJ 19041 19042# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19043# resulting binary. 19044hardcode_minus_L=$hardcode_minus_L_GCJ 19045 19046# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19047# the resulting binary. 19048hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19049 19050# Set to yes if building a shared library automatically hardcodes DIR into the library 19051# and all subsequent libraries and executables linked against it. 19052hardcode_automatic=$hardcode_automatic_GCJ 19053 19054# Variables whose values should be saved in libtool wrapper scripts and 19055# restored at relink time. 19056variables_saved_for_relink="$variables_saved_for_relink" 19057 19058# Whether libtool must link a program against all its dependency libraries. 19059link_all_deplibs=$link_all_deplibs_GCJ 19060 19061# Compile-time system search path for libraries 19062sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19063 19064# Run-time system search path for libraries 19065sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19066 19067# Fix the shell variable \$srcfile for the compiler. 19068fix_srcfile_path="$fix_srcfile_path_GCJ" 19069 19070# Set to yes if exported symbols are required. 19071always_export_symbols=$always_export_symbols_GCJ 19072 19073# The commands to list exported symbols. 19074export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19075 19076# The commands to extract the exported symbol list from a shared archive. 19077extract_expsyms_cmds=$lt_extract_expsyms_cmds 19078 19079# Symbols that should not be listed in the preloaded symbols. 19080exclude_expsyms=$lt_exclude_expsyms_GCJ 19081 19082# Symbols that must always be exported. 19083include_expsyms=$lt_include_expsyms_GCJ 19084 19085# ### END LIBTOOL TAG CONFIG: $tagname 19086 19087__EOF__ 19088 19089 19090else 19091 # If there is no Makefile yet, we rely on a make rule to execute 19092 # `config.status --recheck' to rerun these tests and create the 19093 # libtool script then. 19094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19095 if test -f "$ltmain_in"; then 19096 test -f Makefile && make "$ltmain" 19097 fi 19098fi 19099 19100 19101ac_ext=c 19102ac_cpp='$CPP $CPPFLAGS' 19103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19105ac_compiler_gnu=$ac_cv_c_compiler_gnu 19106 19107CC="$lt_save_CC" 19108 19109 else 19110 tagname="" 19111 fi 19112 ;; 19113 19114 RC) 19115 19116 19117# Source file extension for RC test sources. 19118ac_ext=rc 19119 19120# Object file extension for compiled RC test sources. 19121objext=o 19122objext_RC=$objext 19123 19124# Code to be used in simple compile tests 19125lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19126 19127# Code to be used in simple link tests 19128lt_simple_link_test_code="$lt_simple_compile_test_code" 19129 19130# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19131 19132# If no C compiler was specified, use CC. 19133LTCC=${LTCC-"$CC"} 19134 19135# If no C compiler flags were specified, use CFLAGS. 19136LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19137 19138# Allow CC to be a program name with arguments. 19139compiler=$CC 19140 19141 19142# save warnings/boilerplate of simple test code 19143ac_outfile=conftest.$ac_objext 19144printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19145eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19146_lt_compiler_boilerplate=`cat conftest.err` 19147$rm conftest* 19148 19149ac_outfile=conftest.$ac_objext 19150printf "$lt_simple_link_test_code" >conftest.$ac_ext 19151eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19152_lt_linker_boilerplate=`cat conftest.err` 19153$rm conftest* 19154 19155 19156# Allow CC to be a program name with arguments. 19157lt_save_CC="$CC" 19158CC=${RC-"windres"} 19159compiler=$CC 19160compiler_RC=$CC 19161for cc_temp in $compiler""; do 19162 case $cc_temp in 19163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19165 \-*) ;; 19166 *) break;; 19167 esac 19168done 19169cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19170 19171lt_cv_prog_compiler_c_o_RC=yes 19172 19173# The else clause should only fire when bootstrapping the 19174# libtool distribution, otherwise you forgot to ship ltmain.sh 19175# with your package, and you will get complaints that there are 19176# no rules to generate ltmain.sh. 19177if test -f "$ltmain"; then 19178 # See if we are running on zsh, and set the options which allow our commands through 19179 # without removal of \ escapes. 19180 if test -n "${ZSH_VERSION+set}" ; then 19181 setopt NO_GLOB_SUBST 19182 fi 19183 # Now quote all the things that may contain metacharacters while being 19184 # careful not to overquote the AC_SUBSTed values. We take copies of the 19185 # variables and quote the copies for generation of the libtool script. 19186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19187 SED SHELL STRIP \ 19188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19190 deplibs_check_method reload_flag reload_cmds need_locks \ 19191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19192 lt_cv_sys_global_symbol_to_c_name_address \ 19193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19194 old_postinstall_cmds old_postuninstall_cmds \ 19195 compiler_RC \ 19196 CC_RC \ 19197 LD_RC \ 19198 lt_prog_compiler_wl_RC \ 19199 lt_prog_compiler_pic_RC \ 19200 lt_prog_compiler_static_RC \ 19201 lt_prog_compiler_no_builtin_flag_RC \ 19202 export_dynamic_flag_spec_RC \ 19203 thread_safe_flag_spec_RC \ 19204 whole_archive_flag_spec_RC \ 19205 enable_shared_with_static_runtimes_RC \ 19206 old_archive_cmds_RC \ 19207 old_archive_from_new_cmds_RC \ 19208 predep_objects_RC \ 19209 postdep_objects_RC \ 19210 predeps_RC \ 19211 postdeps_RC \ 19212 compiler_lib_search_path_RC \ 19213 archive_cmds_RC \ 19214 archive_expsym_cmds_RC \ 19215 postinstall_cmds_RC \ 19216 postuninstall_cmds_RC \ 19217 old_archive_from_expsyms_cmds_RC \ 19218 allow_undefined_flag_RC \ 19219 no_undefined_flag_RC \ 19220 export_symbols_cmds_RC \ 19221 hardcode_libdir_flag_spec_RC \ 19222 hardcode_libdir_flag_spec_ld_RC \ 19223 hardcode_libdir_separator_RC \ 19224 hardcode_automatic_RC \ 19225 module_cmds_RC \ 19226 module_expsym_cmds_RC \ 19227 lt_cv_prog_compiler_c_o_RC \ 19228 exclude_expsyms_RC \ 19229 include_expsyms_RC; do 19230 19231 case $var in 19232 old_archive_cmds_RC | \ 19233 old_archive_from_new_cmds_RC | \ 19234 archive_cmds_RC | \ 19235 archive_expsym_cmds_RC | \ 19236 module_cmds_RC | \ 19237 module_expsym_cmds_RC | \ 19238 old_archive_from_expsyms_cmds_RC | \ 19239 export_symbols_cmds_RC | \ 19240 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19241 postinstall_cmds | postuninstall_cmds | \ 19242 old_postinstall_cmds | old_postuninstall_cmds | \ 19243 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19244 # Double-quote double-evaled strings. 19245 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19246 ;; 19247 *) 19248 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19249 ;; 19250 esac 19251 done 19252 19253 case $lt_echo in 19254 *'\$0 --fallback-echo"') 19255 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19256 ;; 19257 esac 19258 19259cfgfile="$ofile" 19260 19261 cat <<__EOF__ >> "$cfgfile" 19262# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19263 19264# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19265 19266# Shell to use when invoking shell scripts. 19267SHELL=$lt_SHELL 19268 19269# Whether or not to build shared libraries. 19270build_libtool_libs=$enable_shared 19271 19272# Whether or not to build static libraries. 19273build_old_libs=$enable_static 19274 19275# Whether or not to add -lc for building shared libraries. 19276build_libtool_need_lc=$archive_cmds_need_lc_RC 19277 19278# Whether or not to disallow shared libs when runtime libs are static 19279allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19280 19281# Whether or not to optimize for fast installation. 19282fast_install=$enable_fast_install 19283 19284# The host system. 19285host_alias=$host_alias 19286host=$host 19287host_os=$host_os 19288 19289# The build system. 19290build_alias=$build_alias 19291build=$build 19292build_os=$build_os 19293 19294# An echo program that does not interpret backslashes. 19295echo=$lt_echo 19296 19297# The archiver. 19298AR=$lt_AR 19299AR_FLAGS=$lt_AR_FLAGS 19300 19301# A C compiler. 19302LTCC=$lt_LTCC 19303 19304# LTCC compiler flags. 19305LTCFLAGS=$lt_LTCFLAGS 19306 19307# A language-specific compiler. 19308CC=$lt_compiler_RC 19309 19310# Is the compiler the GNU C compiler? 19311with_gcc=$GCC_RC 19312 19313# An ERE matcher. 19314EGREP=$lt_EGREP 19315 19316# The linker used to build libraries. 19317LD=$lt_LD_RC 19318 19319# Whether we need hard or soft links. 19320LN_S=$lt_LN_S 19321 19322# A BSD-compatible nm program. 19323NM=$lt_NM 19324 19325# A symbol stripping program 19326STRIP=$lt_STRIP 19327 19328# Used to examine libraries when file_magic_cmd begins "file" 19329MAGIC_CMD=$MAGIC_CMD 19330 19331# Used on cygwin: DLL creation program. 19332DLLTOOL="$DLLTOOL" 19333 19334# Used on cygwin: object dumper. 19335OBJDUMP="$OBJDUMP" 19336 19337# Used on cygwin: assembler. 19338AS="$AS" 19339 19340# The name of the directory that contains temporary libtool files. 19341objdir=$objdir 19342 19343# How to create reloadable object files. 19344reload_flag=$lt_reload_flag 19345reload_cmds=$lt_reload_cmds 19346 19347# How to pass a linker flag through the compiler. 19348wl=$lt_lt_prog_compiler_wl_RC 19349 19350# Object file suffix (normally "o"). 19351objext="$ac_objext" 19352 19353# Old archive suffix (normally "a"). 19354libext="$libext" 19355 19356# Shared library suffix (normally ".so"). 19357shrext_cmds='$shrext_cmds' 19358 19359# Executable file suffix (normally ""). 19360exeext="$exeext" 19361 19362# Additional compiler flags for building library objects. 19363pic_flag=$lt_lt_prog_compiler_pic_RC 19364pic_mode=$pic_mode 19365 19366# What is the maximum length of a command? 19367max_cmd_len=$lt_cv_sys_max_cmd_len 19368 19369# Does compiler simultaneously support -c and -o options? 19370compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19371 19372# Must we lock files when doing compilation? 19373need_locks=$lt_need_locks 19374 19375# Do we need the lib prefix for modules? 19376need_lib_prefix=$need_lib_prefix 19377 19378# Do we need a version for libraries? 19379need_version=$need_version 19380 19381# Whether dlopen is supported. 19382dlopen_support=$enable_dlopen 19383 19384# Whether dlopen of programs is supported. 19385dlopen_self=$enable_dlopen_self 19386 19387# Whether dlopen of statically linked programs is supported. 19388dlopen_self_static=$enable_dlopen_self_static 19389 19390# Compiler flag to prevent dynamic linking. 19391link_static_flag=$lt_lt_prog_compiler_static_RC 19392 19393# Compiler flag to turn off builtin functions. 19394no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19395 19396# Compiler flag to allow reflexive dlopens. 19397export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19398 19399# Compiler flag to generate shared objects directly from archives. 19400whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19401 19402# Compiler flag to generate thread-safe objects. 19403thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19404 19405# Library versioning type. 19406version_type=$version_type 19407 19408# Format of library name prefix. 19409libname_spec=$lt_libname_spec 19410 19411# List of archive names. First name is the real one, the rest are links. 19412# The last name is the one that the linker finds with -lNAME. 19413library_names_spec=$lt_library_names_spec 19414 19415# The coded name of the library, if different from the real name. 19416soname_spec=$lt_soname_spec 19417 19418# Commands used to build and install an old-style archive. 19419RANLIB=$lt_RANLIB 19420old_archive_cmds=$lt_old_archive_cmds_RC 19421old_postinstall_cmds=$lt_old_postinstall_cmds 19422old_postuninstall_cmds=$lt_old_postuninstall_cmds 19423 19424# Create an old-style archive from a shared archive. 19425old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19426 19427# Create a temporary old-style archive to link instead of a shared archive. 19428old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19429 19430# Commands used to build and install a shared archive. 19431archive_cmds=$lt_archive_cmds_RC 19432archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19433postinstall_cmds=$lt_postinstall_cmds 19434postuninstall_cmds=$lt_postuninstall_cmds 19435 19436# Commands used to build a loadable module (assumed same as above if empty) 19437module_cmds=$lt_module_cmds_RC 19438module_expsym_cmds=$lt_module_expsym_cmds_RC 19439 19440# Commands to strip libraries. 19441old_striplib=$lt_old_striplib 19442striplib=$lt_striplib 19443 19444# Dependencies to place before the objects being linked to create a 19445# shared library. 19446predep_objects=$lt_predep_objects_RC 19447 19448# Dependencies to place after the objects being linked to create a 19449# shared library. 19450postdep_objects=$lt_postdep_objects_RC 19451 19452# Dependencies to place before the objects being linked to create a 19453# shared library. 19454predeps=$lt_predeps_RC 19455 19456# Dependencies to place after the objects being linked to create a 19457# shared library. 19458postdeps=$lt_postdeps_RC 19459 19460# The library search path used internally by the compiler when linking 19461# a shared library. 19462compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19463 19464# Method to check whether dependent libraries are shared objects. 19465deplibs_check_method=$lt_deplibs_check_method 19466 19467# Command to use when deplibs_check_method == file_magic. 19468file_magic_cmd=$lt_file_magic_cmd 19469 19470# Flag that allows shared libraries with undefined symbols to be built. 19471allow_undefined_flag=$lt_allow_undefined_flag_RC 19472 19473# Flag that forces no undefined symbols. 19474no_undefined_flag=$lt_no_undefined_flag_RC 19475 19476# Commands used to finish a libtool library installation in a directory. 19477finish_cmds=$lt_finish_cmds 19478 19479# Same as above, but a single script fragment to be evaled but not shown. 19480finish_eval=$lt_finish_eval 19481 19482# Take the output of nm and produce a listing of raw symbols and C names. 19483global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19484 19485# Transform the output of nm in a proper C declaration 19486global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19487 19488# Transform the output of nm in a C name address pair 19489global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19490 19491# This is the shared library runtime path variable. 19492runpath_var=$runpath_var 19493 19494# This is the shared library path variable. 19495shlibpath_var=$shlibpath_var 19496 19497# Is shlibpath searched before the hard-coded library search path? 19498shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19499 19500# How to hardcode a shared library path into an executable. 19501hardcode_action=$hardcode_action_RC 19502 19503# Whether we should hardcode library paths into libraries. 19504hardcode_into_libs=$hardcode_into_libs 19505 19506# Flag to hardcode \$libdir into a binary during linking. 19507# This must work even if \$libdir does not exist. 19508hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19509 19510# If ld is used when linking, flag to hardcode \$libdir into 19511# a binary during linking. This must work even if \$libdir does 19512# not exist. 19513hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19514 19515# Whether we need a single -rpath flag with a separated argument. 19516hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19517 19518# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19519# resulting binary. 19520hardcode_direct=$hardcode_direct_RC 19521 19522# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19523# resulting binary. 19524hardcode_minus_L=$hardcode_minus_L_RC 19525 19526# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19527# the resulting binary. 19528hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19529 19530# Set to yes if building a shared library automatically hardcodes DIR into the library 19531# and all subsequent libraries and executables linked against it. 19532hardcode_automatic=$hardcode_automatic_RC 19533 19534# Variables whose values should be saved in libtool wrapper scripts and 19535# restored at relink time. 19536variables_saved_for_relink="$variables_saved_for_relink" 19537 19538# Whether libtool must link a program against all its dependency libraries. 19539link_all_deplibs=$link_all_deplibs_RC 19540 19541# Compile-time system search path for libraries 19542sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19543 19544# Run-time system search path for libraries 19545sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19546 19547# Fix the shell variable \$srcfile for the compiler. 19548fix_srcfile_path="$fix_srcfile_path_RC" 19549 19550# Set to yes if exported symbols are required. 19551always_export_symbols=$always_export_symbols_RC 19552 19553# The commands to list exported symbols. 19554export_symbols_cmds=$lt_export_symbols_cmds_RC 19555 19556# The commands to extract the exported symbol list from a shared archive. 19557extract_expsyms_cmds=$lt_extract_expsyms_cmds 19558 19559# Symbols that should not be listed in the preloaded symbols. 19560exclude_expsyms=$lt_exclude_expsyms_RC 19561 19562# Symbols that must always be exported. 19563include_expsyms=$lt_include_expsyms_RC 19564 19565# ### END LIBTOOL TAG CONFIG: $tagname 19566 19567__EOF__ 19568 19569 19570else 19571 # If there is no Makefile yet, we rely on a make rule to execute 19572 # `config.status --recheck' to rerun these tests and create the 19573 # libtool script then. 19574 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19575 if test -f "$ltmain_in"; then 19576 test -f Makefile && make "$ltmain" 19577 fi 19578fi 19579 19580 19581ac_ext=c 19582ac_cpp='$CPP $CPPFLAGS' 19583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19585ac_compiler_gnu=$ac_cv_c_compiler_gnu 19586 19587CC="$lt_save_CC" 19588 19589 ;; 19590 19591 *) 19592 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19593echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19594 { (exit 1); exit 1; }; } 19595 ;; 19596 esac 19597 19598 # Append the new tag name to the list of available tags. 19599 if test -n "$tagname" ; then 19600 available_tags="$available_tags $tagname" 19601 fi 19602 fi 19603 done 19604 IFS="$lt_save_ifs" 19605 19606 # Now substitute the updated list of available tags. 19607 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19608 mv "${ofile}T" "$ofile" 19609 chmod +x "$ofile" 19610 else 19611 rm -f "${ofile}T" 19612 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19613echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19614 { (exit 1); exit 1; }; } 19615 fi 19616fi 19617 19618 19619 19620# This can be used to rebuild libtool when needed 19621LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19622 19623# Always use our own libtool. 19624LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19625 19626# Prevent multiple expansion 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647ac_ext=c 19648ac_cpp='$CPP $CPPFLAGS' 19649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19651ac_compiler_gnu=$ac_cv_c_compiler_gnu 19652if test -n "$ac_tool_prefix"; then 19653 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 19654set dummy ${ac_tool_prefix}gcc; ac_word=$2 19655{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19657if test "${ac_cv_prog_CC+set}" = set; then 19658 echo $ECHO_N "(cached) $ECHO_C" >&6 19659else 19660 if test -n "$CC"; then 19661 ac_cv_prog_CC="$CC" # Let the user override the test. 19662else 19663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19664for as_dir in $PATH 19665do 19666 IFS=$as_save_IFS 19667 test -z "$as_dir" && as_dir=. 19668 for ac_exec_ext in '' $ac_executable_extensions; do 19669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19670 ac_cv_prog_CC="${ac_tool_prefix}gcc" 19671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19672 break 2 19673 fi 19674done 19675done 19676IFS=$as_save_IFS 19677 19678fi 19679fi 19680CC=$ac_cv_prog_CC 19681if test -n "$CC"; then 19682 { echo "$as_me:$LINENO: result: $CC" >&5 19683echo "${ECHO_T}$CC" >&6; } 19684else 19685 { echo "$as_me:$LINENO: result: no" >&5 19686echo "${ECHO_T}no" >&6; } 19687fi 19688 19689 19690fi 19691if test -z "$ac_cv_prog_CC"; then 19692 ac_ct_CC=$CC 19693 # Extract the first word of "gcc", so it can be a program name with args. 19694set dummy gcc; ac_word=$2 19695{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19698 echo $ECHO_N "(cached) $ECHO_C" >&6 19699else 19700 if test -n "$ac_ct_CC"; then 19701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19702else 19703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19704for as_dir in $PATH 19705do 19706 IFS=$as_save_IFS 19707 test -z "$as_dir" && as_dir=. 19708 for ac_exec_ext in '' $ac_executable_extensions; do 19709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19710 ac_cv_prog_ac_ct_CC="gcc" 19711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19712 break 2 19713 fi 19714done 19715done 19716IFS=$as_save_IFS 19717 19718fi 19719fi 19720ac_ct_CC=$ac_cv_prog_ac_ct_CC 19721if test -n "$ac_ct_CC"; then 19722 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19723echo "${ECHO_T}$ac_ct_CC" >&6; } 19724else 19725 { echo "$as_me:$LINENO: result: no" >&5 19726echo "${ECHO_T}no" >&6; } 19727fi 19728 19729 if test "x$ac_ct_CC" = x; then 19730 CC="" 19731 else 19732 case $cross_compiling:$ac_tool_warned in 19733yes:) 19734{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19735whose name does not start with the host triplet. If you think this 19736configuration is useful to you, please write to autoconf@gnu.org." >&5 19737echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19738whose name does not start with the host triplet. If you think this 19739configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19740ac_tool_warned=yes ;; 19741esac 19742 CC=$ac_ct_CC 19743 fi 19744else 19745 CC="$ac_cv_prog_CC" 19746fi 19747 19748if test -z "$CC"; then 19749 if test -n "$ac_tool_prefix"; then 19750 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 19751set dummy ${ac_tool_prefix}cc; ac_word=$2 19752{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19754if test "${ac_cv_prog_CC+set}" = set; then 19755 echo $ECHO_N "(cached) $ECHO_C" >&6 19756else 19757 if test -n "$CC"; then 19758 ac_cv_prog_CC="$CC" # Let the user override the test. 19759else 19760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19761for as_dir in $PATH 19762do 19763 IFS=$as_save_IFS 19764 test -z "$as_dir" && as_dir=. 19765 for ac_exec_ext in '' $ac_executable_extensions; do 19766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19767 ac_cv_prog_CC="${ac_tool_prefix}cc" 19768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19769 break 2 19770 fi 19771done 19772done 19773IFS=$as_save_IFS 19774 19775fi 19776fi 19777CC=$ac_cv_prog_CC 19778if test -n "$CC"; then 19779 { echo "$as_me:$LINENO: result: $CC" >&5 19780echo "${ECHO_T}$CC" >&6; } 19781else 19782 { echo "$as_me:$LINENO: result: no" >&5 19783echo "${ECHO_T}no" >&6; } 19784fi 19785 19786 19787 fi 19788fi 19789if test -z "$CC"; then 19790 # Extract the first word of "cc", so it can be a program name with args. 19791set dummy cc; ac_word=$2 19792{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19794if test "${ac_cv_prog_CC+set}" = set; then 19795 echo $ECHO_N "(cached) $ECHO_C" >&6 19796else 19797 if test -n "$CC"; then 19798 ac_cv_prog_CC="$CC" # Let the user override the test. 19799else 19800 ac_prog_rejected=no 19801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19802for as_dir in $PATH 19803do 19804 IFS=$as_save_IFS 19805 test -z "$as_dir" && as_dir=. 19806 for ac_exec_ext in '' $ac_executable_extensions; do 19807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19808 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19809 ac_prog_rejected=yes 19810 continue 19811 fi 19812 ac_cv_prog_CC="cc" 19813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19814 break 2 19815 fi 19816done 19817done 19818IFS=$as_save_IFS 19819 19820if test $ac_prog_rejected = yes; then 19821 # We found a bogon in the path, so make sure we never use it. 19822 set dummy $ac_cv_prog_CC 19823 shift 19824 if test $# != 0; then 19825 # We chose a different compiler from the bogus one. 19826 # However, it has the same basename, so the bogon will be chosen 19827 # first if we set CC to just the basename; use the full file name. 19828 shift 19829 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19830 fi 19831fi 19832fi 19833fi 19834CC=$ac_cv_prog_CC 19835if test -n "$CC"; then 19836 { echo "$as_me:$LINENO: result: $CC" >&5 19837echo "${ECHO_T}$CC" >&6; } 19838else 19839 { echo "$as_me:$LINENO: result: no" >&5 19840echo "${ECHO_T}no" >&6; } 19841fi 19842 19843 19844fi 19845if test -z "$CC"; then 19846 if test -n "$ac_tool_prefix"; then 19847 for ac_prog in cl.exe 19848 do 19849 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19850set dummy $ac_tool_prefix$ac_prog; ac_word=$2 19851{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19853if test "${ac_cv_prog_CC+set}" = set; then 19854 echo $ECHO_N "(cached) $ECHO_C" >&6 19855else 19856 if test -n "$CC"; then 19857 ac_cv_prog_CC="$CC" # Let the user override the test. 19858else 19859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19860for as_dir in $PATH 19861do 19862 IFS=$as_save_IFS 19863 test -z "$as_dir" && as_dir=. 19864 for ac_exec_ext in '' $ac_executable_extensions; do 19865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19866 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19868 break 2 19869 fi 19870done 19871done 19872IFS=$as_save_IFS 19873 19874fi 19875fi 19876CC=$ac_cv_prog_CC 19877if test -n "$CC"; then 19878 { echo "$as_me:$LINENO: result: $CC" >&5 19879echo "${ECHO_T}$CC" >&6; } 19880else 19881 { echo "$as_me:$LINENO: result: no" >&5 19882echo "${ECHO_T}no" >&6; } 19883fi 19884 19885 19886 test -n "$CC" && break 19887 done 19888fi 19889if test -z "$CC"; then 19890 ac_ct_CC=$CC 19891 for ac_prog in cl.exe 19892do 19893 # Extract the first word of "$ac_prog", so it can be a program name with args. 19894set dummy $ac_prog; ac_word=$2 19895{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19897if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 19898 echo $ECHO_N "(cached) $ECHO_C" >&6 19899else 19900 if test -n "$ac_ct_CC"; then 19901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 19902else 19903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19904for as_dir in $PATH 19905do 19906 IFS=$as_save_IFS 19907 test -z "$as_dir" && as_dir=. 19908 for ac_exec_ext in '' $ac_executable_extensions; do 19909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19910 ac_cv_prog_ac_ct_CC="$ac_prog" 19911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19912 break 2 19913 fi 19914done 19915done 19916IFS=$as_save_IFS 19917 19918fi 19919fi 19920ac_ct_CC=$ac_cv_prog_ac_ct_CC 19921if test -n "$ac_ct_CC"; then 19922 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 19923echo "${ECHO_T}$ac_ct_CC" >&6; } 19924else 19925 { echo "$as_me:$LINENO: result: no" >&5 19926echo "${ECHO_T}no" >&6; } 19927fi 19928 19929 19930 test -n "$ac_ct_CC" && break 19931done 19932 19933 if test "x$ac_ct_CC" = x; then 19934 CC="" 19935 else 19936 case $cross_compiling:$ac_tool_warned in 19937yes:) 19938{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19939whose name does not start with the host triplet. If you think this 19940configuration is useful to you, please write to autoconf@gnu.org." >&5 19941echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19942whose name does not start with the host triplet. If you think this 19943configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19944ac_tool_warned=yes ;; 19945esac 19946 CC=$ac_ct_CC 19947 fi 19948fi 19949 19950fi 19951 19952 19953test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 19954See \`config.log' for more details." >&5 19955echo "$as_me: error: no acceptable C compiler found in \$PATH 19956See \`config.log' for more details." >&2;} 19957 { (exit 1); exit 1; }; } 19958 19959# Provide some information about the compiler. 19960echo "$as_me:$LINENO: checking for C compiler version" >&5 19961ac_compiler=`set X $ac_compile; echo $2` 19962{ (ac_try="$ac_compiler --version >&5" 19963case "(($ac_try" in 19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19965 *) ac_try_echo=$ac_try;; 19966esac 19967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19968 (eval "$ac_compiler --version >&5") 2>&5 19969 ac_status=$? 19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19971 (exit $ac_status); } 19972{ (ac_try="$ac_compiler -v >&5" 19973case "(($ac_try" in 19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19975 *) ac_try_echo=$ac_try;; 19976esac 19977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19978 (eval "$ac_compiler -v >&5") 2>&5 19979 ac_status=$? 19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19981 (exit $ac_status); } 19982{ (ac_try="$ac_compiler -V >&5" 19983case "(($ac_try" in 19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19985 *) ac_try_echo=$ac_try;; 19986esac 19987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19988 (eval "$ac_compiler -V >&5") 2>&5 19989 ac_status=$? 19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19991 (exit $ac_status); } 19992 19993{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 19994echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 19995if test "${ac_cv_c_compiler_gnu+set}" = set; then 19996 echo $ECHO_N "(cached) $ECHO_C" >&6 19997else 19998 cat >conftest.$ac_ext <<_ACEOF 19999/* confdefs.h. */ 20000_ACEOF 20001cat confdefs.h >>conftest.$ac_ext 20002cat >>conftest.$ac_ext <<_ACEOF 20003/* end confdefs.h. */ 20004 20005int 20006main () 20007{ 20008#ifndef __GNUC__ 20009 choke me 20010#endif 20011 20012 ; 20013 return 0; 20014} 20015_ACEOF 20016rm -f conftest.$ac_objext 20017if { (ac_try="$ac_compile" 20018case "(($ac_try" in 20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20020 *) ac_try_echo=$ac_try;; 20021esac 20022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20023 (eval "$ac_compile") 2>conftest.er1 20024 ac_status=$? 20025 grep -v '^ *+' conftest.er1 >conftest.err 20026 rm -f conftest.er1 20027 cat conftest.err >&5 20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20029 (exit $ac_status); } && 20030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20031 { (case "(($ac_try" in 20032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20033 *) ac_try_echo=$ac_try;; 20034esac 20035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20036 (eval "$ac_try") 2>&5 20037 ac_status=$? 20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20039 (exit $ac_status); }; } && 20040 { ac_try='test -s conftest.$ac_objext' 20041 { (case "(($ac_try" in 20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20043 *) ac_try_echo=$ac_try;; 20044esac 20045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20046 (eval "$ac_try") 2>&5 20047 ac_status=$? 20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20049 (exit $ac_status); }; }; then 20050 ac_compiler_gnu=yes 20051else 20052 echo "$as_me: failed program was:" >&5 20053sed 's/^/| /' conftest.$ac_ext >&5 20054 20055 ac_compiler_gnu=no 20056fi 20057 20058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20059ac_cv_c_compiler_gnu=$ac_compiler_gnu 20060 20061fi 20062{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 20063echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 20064GCC=`test $ac_compiler_gnu = yes && echo yes` 20065ac_test_CFLAGS=${CFLAGS+set} 20066ac_save_CFLAGS=$CFLAGS 20067{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 20068echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 20069if test "${ac_cv_prog_cc_g+set}" = set; then 20070 echo $ECHO_N "(cached) $ECHO_C" >&6 20071else 20072 ac_save_c_werror_flag=$ac_c_werror_flag 20073 ac_c_werror_flag=yes 20074 ac_cv_prog_cc_g=no 20075 CFLAGS="-g" 20076 cat >conftest.$ac_ext <<_ACEOF 20077/* confdefs.h. */ 20078_ACEOF 20079cat confdefs.h >>conftest.$ac_ext 20080cat >>conftest.$ac_ext <<_ACEOF 20081/* end confdefs.h. */ 20082 20083int 20084main () 20085{ 20086 20087 ; 20088 return 0; 20089} 20090_ACEOF 20091rm -f conftest.$ac_objext 20092if { (ac_try="$ac_compile" 20093case "(($ac_try" in 20094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20095 *) ac_try_echo=$ac_try;; 20096esac 20097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20098 (eval "$ac_compile") 2>conftest.er1 20099 ac_status=$? 20100 grep -v '^ *+' conftest.er1 >conftest.err 20101 rm -f conftest.er1 20102 cat conftest.err >&5 20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20104 (exit $ac_status); } && 20105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20106 { (case "(($ac_try" in 20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20108 *) ac_try_echo=$ac_try;; 20109esac 20110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20111 (eval "$ac_try") 2>&5 20112 ac_status=$? 20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20114 (exit $ac_status); }; } && 20115 { ac_try='test -s conftest.$ac_objext' 20116 { (case "(($ac_try" in 20117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20118 *) ac_try_echo=$ac_try;; 20119esac 20120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20121 (eval "$ac_try") 2>&5 20122 ac_status=$? 20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20124 (exit $ac_status); }; }; then 20125 ac_cv_prog_cc_g=yes 20126else 20127 echo "$as_me: failed program was:" >&5 20128sed 's/^/| /' conftest.$ac_ext >&5 20129 20130 CFLAGS="" 20131 cat >conftest.$ac_ext <<_ACEOF 20132/* confdefs.h. */ 20133_ACEOF 20134cat confdefs.h >>conftest.$ac_ext 20135cat >>conftest.$ac_ext <<_ACEOF 20136/* end confdefs.h. */ 20137 20138int 20139main () 20140{ 20141 20142 ; 20143 return 0; 20144} 20145_ACEOF 20146rm -f conftest.$ac_objext 20147if { (ac_try="$ac_compile" 20148case "(($ac_try" in 20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20150 *) ac_try_echo=$ac_try;; 20151esac 20152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20153 (eval "$ac_compile") 2>conftest.er1 20154 ac_status=$? 20155 grep -v '^ *+' conftest.er1 >conftest.err 20156 rm -f conftest.er1 20157 cat conftest.err >&5 20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20159 (exit $ac_status); } && 20160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20161 { (case "(($ac_try" in 20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20163 *) ac_try_echo=$ac_try;; 20164esac 20165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20166 (eval "$ac_try") 2>&5 20167 ac_status=$? 20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20169 (exit $ac_status); }; } && 20170 { ac_try='test -s conftest.$ac_objext' 20171 { (case "(($ac_try" in 20172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20173 *) ac_try_echo=$ac_try;; 20174esac 20175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20176 (eval "$ac_try") 2>&5 20177 ac_status=$? 20178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20179 (exit $ac_status); }; }; then 20180 : 20181else 20182 echo "$as_me: failed program was:" >&5 20183sed 's/^/| /' conftest.$ac_ext >&5 20184 20185 ac_c_werror_flag=$ac_save_c_werror_flag 20186 CFLAGS="-g" 20187 cat >conftest.$ac_ext <<_ACEOF 20188/* confdefs.h. */ 20189_ACEOF 20190cat confdefs.h >>conftest.$ac_ext 20191cat >>conftest.$ac_ext <<_ACEOF 20192/* end confdefs.h. */ 20193 20194int 20195main () 20196{ 20197 20198 ; 20199 return 0; 20200} 20201_ACEOF 20202rm -f conftest.$ac_objext 20203if { (ac_try="$ac_compile" 20204case "(($ac_try" in 20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20206 *) ac_try_echo=$ac_try;; 20207esac 20208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20209 (eval "$ac_compile") 2>conftest.er1 20210 ac_status=$? 20211 grep -v '^ *+' conftest.er1 >conftest.err 20212 rm -f conftest.er1 20213 cat conftest.err >&5 20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20215 (exit $ac_status); } && 20216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20217 { (case "(($ac_try" in 20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20219 *) ac_try_echo=$ac_try;; 20220esac 20221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20222 (eval "$ac_try") 2>&5 20223 ac_status=$? 20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20225 (exit $ac_status); }; } && 20226 { ac_try='test -s conftest.$ac_objext' 20227 { (case "(($ac_try" in 20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20229 *) ac_try_echo=$ac_try;; 20230esac 20231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20232 (eval "$ac_try") 2>&5 20233 ac_status=$? 20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20235 (exit $ac_status); }; }; then 20236 ac_cv_prog_cc_g=yes 20237else 20238 echo "$as_me: failed program was:" >&5 20239sed 's/^/| /' conftest.$ac_ext >&5 20240 20241 20242fi 20243 20244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20245fi 20246 20247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20248fi 20249 20250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20251 ac_c_werror_flag=$ac_save_c_werror_flag 20252fi 20253{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 20254echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 20255if test "$ac_test_CFLAGS" = set; then 20256 CFLAGS=$ac_save_CFLAGS 20257elif test $ac_cv_prog_cc_g = yes; then 20258 if test "$GCC" = yes; then 20259 CFLAGS="-g -O2" 20260 else 20261 CFLAGS="-g" 20262 fi 20263else 20264 if test "$GCC" = yes; then 20265 CFLAGS="-O2" 20266 else 20267 CFLAGS= 20268 fi 20269fi 20270{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 20271echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 20272if test "${ac_cv_prog_cc_c89+set}" = set; then 20273 echo $ECHO_N "(cached) $ECHO_C" >&6 20274else 20275 ac_cv_prog_cc_c89=no 20276ac_save_CC=$CC 20277cat >conftest.$ac_ext <<_ACEOF 20278/* confdefs.h. */ 20279_ACEOF 20280cat confdefs.h >>conftest.$ac_ext 20281cat >>conftest.$ac_ext <<_ACEOF 20282/* end confdefs.h. */ 20283#include <stdarg.h> 20284#include <stdio.h> 20285#include <sys/types.h> 20286#include <sys/stat.h> 20287/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20288struct buf { int x; }; 20289FILE * (*rcsopen) (struct buf *, struct stat *, int); 20290static char *e (p, i) 20291 char **p; 20292 int i; 20293{ 20294 return p[i]; 20295} 20296static char *f (char * (*g) (char **, int), char **p, ...) 20297{ 20298 char *s; 20299 va_list v; 20300 va_start (v,p); 20301 s = g (p, va_arg (v,int)); 20302 va_end (v); 20303 return s; 20304} 20305 20306/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20307 function prototypes and stuff, but not '\xHH' hex character constants. 20308 These don't provoke an error unfortunately, instead are silently treated 20309 as 'x'. The following induces an error, until -std is added to get 20310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20311 array size at least. It's necessary to write '\x00'==0 to get something 20312 that's true only with -std. */ 20313int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20314 20315/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20316 inside strings and character constants. */ 20317#define FOO(x) 'x' 20318int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20319 20320int test (int i, double x); 20321struct s1 {int (*f) (int a);}; 20322struct s2 {int (*f) (double a);}; 20323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20324int argc; 20325char **argv; 20326int 20327main () 20328{ 20329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20330 ; 20331 return 0; 20332} 20333_ACEOF 20334for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20336do 20337 CC="$ac_save_CC $ac_arg" 20338 rm -f conftest.$ac_objext 20339if { (ac_try="$ac_compile" 20340case "(($ac_try" in 20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20342 *) ac_try_echo=$ac_try;; 20343esac 20344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20345 (eval "$ac_compile") 2>conftest.er1 20346 ac_status=$? 20347 grep -v '^ *+' conftest.er1 >conftest.err 20348 rm -f conftest.er1 20349 cat conftest.err >&5 20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20351 (exit $ac_status); } && 20352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20353 { (case "(($ac_try" in 20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20355 *) ac_try_echo=$ac_try;; 20356esac 20357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20358 (eval "$ac_try") 2>&5 20359 ac_status=$? 20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20361 (exit $ac_status); }; } && 20362 { ac_try='test -s conftest.$ac_objext' 20363 { (case "(($ac_try" in 20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20365 *) ac_try_echo=$ac_try;; 20366esac 20367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20368 (eval "$ac_try") 2>&5 20369 ac_status=$? 20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20371 (exit $ac_status); }; }; then 20372 ac_cv_prog_cc_c89=$ac_arg 20373else 20374 echo "$as_me: failed program was:" >&5 20375sed 's/^/| /' conftest.$ac_ext >&5 20376 20377 20378fi 20379 20380rm -f core conftest.err conftest.$ac_objext 20381 test "x$ac_cv_prog_cc_c89" != "xno" && break 20382done 20383rm -f conftest.$ac_ext 20384CC=$ac_save_CC 20385 20386fi 20387# AC_CACHE_VAL 20388case "x$ac_cv_prog_cc_c89" in 20389 x) 20390 { echo "$as_me:$LINENO: result: none needed" >&5 20391echo "${ECHO_T}none needed" >&6; } ;; 20392 xno) 20393 { echo "$as_me:$LINENO: result: unsupported" >&5 20394echo "${ECHO_T}unsupported" >&6; } ;; 20395 *) 20396 CC="$CC $ac_cv_prog_cc_c89" 20397 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 20398echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 20399esac 20400 20401 20402ac_ext=c 20403ac_cpp='$CPP $CPPFLAGS' 20404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20406ac_compiler_gnu=$ac_cv_c_compiler_gnu 20407 20408depcc="$CC" am_compiler_list= 20409 20410{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 20411echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 20412if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 20413 echo $ECHO_N "(cached) $ECHO_C" >&6 20414else 20415 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20416 # We make a subdir and do the tests there. Otherwise we can end up 20417 # making bogus files that we don't know about and never remove. For 20418 # instance it was reported that on HP-UX the gcc test will end up 20419 # making a dummy file named `D' -- because `-MD' means `put the output 20420 # in D'. 20421 mkdir conftest.dir 20422 # Copy depcomp to subdir because otherwise we won't find it if we're 20423 # using a relative directory. 20424 cp "$am_depcomp" conftest.dir 20425 cd conftest.dir 20426 # We will build objects and dependencies in a subdirectory because 20427 # it helps to detect inapplicable dependency modes. For instance 20428 # both Tru64's cc and ICC support -MD to output dependencies as a 20429 # side effect of compilation, but ICC will put the dependencies in 20430 # the current directory while Tru64 will put them in the object 20431 # directory. 20432 mkdir sub 20433 20434 am_cv_CC_dependencies_compiler_type=none 20435 if test "$am_compiler_list" = ""; then 20436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20437 fi 20438 for depmode in $am_compiler_list; do 20439 # Setup a source with many dependencies, because some compilers 20440 # like to wrap large dependency lists on column 80 (with \), and 20441 # we should not choose a depcomp mode which is confused by this. 20442 # 20443 # We need to recreate these files for each test, as the compiler may 20444 # overwrite some of them when testing with obscure command lines. 20445 # This happens at least with the AIX C compiler. 20446 : > sub/conftest.c 20447 for i in 1 2 3 4 5 6; do 20448 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20449 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20450 # Solaris 8's {/usr,}/bin/sh. 20451 touch sub/conftst$i.h 20452 done 20453 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20454 20455 case $depmode in 20456 nosideeffect) 20457 # after this tag, mechanisms are not by side-effect, so they'll 20458 # only be used when explicitly requested 20459 if test "x$enable_dependency_tracking" = xyes; then 20460 continue 20461 else 20462 break 20463 fi 20464 ;; 20465 none) break ;; 20466 esac 20467 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20468 # mode. It turns out that the SunPro C++ compiler does not properly 20469 # handle `-M -o', and we need to detect this. 20470 if depmode=$depmode \ 20471 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 20472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20473 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 20474 >/dev/null 2>conftest.err && 20475 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20476 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 20477 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20478 # icc doesn't choke on unknown options, it will just issue warnings 20479 # or remarks (even with -Werror). So we grep stderr for any message 20480 # that says an option was ignored or not supported. 20481 # When given -MP, icc 7.0 and 7.1 complain thusly: 20482 # icc: Command line warning: ignoring option '-M'; no argument required 20483 # The diagnosis changed in icc 8.0: 20484 # icc: Command line remark: option '-MP' not supported 20485 if (grep 'ignoring option' conftest.err || 20486 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20487 am_cv_CC_dependencies_compiler_type=$depmode 20488 break 20489 fi 20490 fi 20491 done 20492 20493 cd .. 20494 rm -rf conftest.dir 20495else 20496 am_cv_CC_dependencies_compiler_type=none 20497fi 20498 20499fi 20500{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 20501echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 20502CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20503 20504 20505 20506if 20507 test "x$enable_dependency_tracking" != xno \ 20508 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20509 am__fastdepCC_TRUE= 20510 am__fastdepCC_FALSE='#' 20511else 20512 am__fastdepCC_TRUE='#' 20513 am__fastdepCC_FALSE= 20514fi 20515 20516 20517 20518 20519ac_save_CFLAGS="$CFLAGS" 20520CFLAGS="$CFLAGS -Werror" 20521{ echo "$as_me:$LINENO: checking if compiler supports __attribute__((weak, alias))" >&5 20522echo $ECHO_N "checking if compiler supports __attribute__((weak, alias))... $ECHO_C" >&6; } 20523if test "${cc_cv_attribute_alias+set}" = set; then 20524 echo $ECHO_N "(cached) $ECHO_C" >&6 20525else 20526 cat >conftest.$ac_ext <<_ACEOF 20527 20528 void other_function(void *foo) { } 20529 void some_function(void *foo) __attribute__((weak, alias("other_function"))); 20530 20531_ACEOF 20532rm -f conftest.$ac_objext 20533if { (ac_try="$ac_compile" 20534case "(($ac_try" in 20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20536 *) ac_try_echo=$ac_try;; 20537esac 20538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20539 (eval "$ac_compile") 2>conftest.er1 20540 ac_status=$? 20541 grep -v '^ *+' conftest.er1 >conftest.err 20542 rm -f conftest.er1 20543 cat conftest.err >&5 20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20545 (exit $ac_status); } && 20546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20547 { (case "(($ac_try" in 20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20549 *) ac_try_echo=$ac_try;; 20550esac 20551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20552 (eval "$ac_try") 2>&5 20553 ac_status=$? 20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20555 (exit $ac_status); }; } && 20556 { ac_try='test -s conftest.$ac_objext' 20557 { (case "(($ac_try" in 20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20559 *) ac_try_echo=$ac_try;; 20560esac 20561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20562 (eval "$ac_try") 2>&5 20563 ac_status=$? 20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20565 (exit $ac_status); }; }; then 20566 cc_cv_attribute_alias=yes 20567else 20568 echo "$as_me: failed program was:" >&5 20569sed 's/^/| /' conftest.$ac_ext >&5 20570 20571 cc_cv_attribute_alias=no 20572fi 20573 20574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20575 20576fi 20577{ echo "$as_me:$LINENO: result: $cc_cv_attribute_alias" >&5 20578echo "${ECHO_T}$cc_cv_attribute_alias" >&6; } 20579CFLAGS="$ac_save_CFLAGS" 20580if test "x$cc_cv_attribute_alias" = "xyes"; then 20581 20582cat >>confdefs.h <<\_ACEOF 20583#define SUPPORT_ATTRIBUTE_ALIAS 1 20584_ACEOF 20585 20586fi 20587 20588 20589PKG_CONFIG_LIBS= 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601for ac_func in pthread_self pthread_mutex_init pthread_mutex_destroy pthread_mutex_lock pthread_mutex_unlock pthread_cond_init pthread_cond_destroy pthread_cond_wait pthread_cond_signal pthread_cond_broadcast pthread_equal 20602do 20603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20604{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20607 echo $ECHO_N "(cached) $ECHO_C" >&6 20608else 20609 cat >conftest.$ac_ext <<_ACEOF 20610/* confdefs.h. */ 20611_ACEOF 20612cat confdefs.h >>conftest.$ac_ext 20613cat >>conftest.$ac_ext <<_ACEOF 20614/* end confdefs.h. */ 20615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20616 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20617#define $ac_func innocuous_$ac_func 20618 20619/* System header to define __stub macros and hopefully few prototypes, 20620 which can conflict with char $ac_func (); below. 20621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20622 <limits.h> exists even on freestanding compilers. */ 20623 20624#ifdef __STDC__ 20625# include <limits.h> 20626#else 20627# include <assert.h> 20628#endif 20629 20630#undef $ac_func 20631 20632/* Override any GCC internal prototype to avoid an error. 20633 Use char because int might match the return type of a GCC 20634 builtin and then its argument prototype would still apply. */ 20635#ifdef __cplusplus 20636extern "C" 20637#endif 20638char $ac_func (); 20639/* The GNU C library defines this for functions which it implements 20640 to always fail with ENOSYS. Some functions are actually named 20641 something starting with __ and the normal name is an alias. */ 20642#if defined __stub_$ac_func || defined __stub___$ac_func 20643choke me 20644#endif 20645 20646int 20647main () 20648{ 20649return $ac_func (); 20650 ; 20651 return 0; 20652} 20653_ACEOF 20654rm -f conftest.$ac_objext conftest$ac_exeext 20655if { (ac_try="$ac_link" 20656case "(($ac_try" in 20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20658 *) ac_try_echo=$ac_try;; 20659esac 20660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20661 (eval "$ac_link") 2>conftest.er1 20662 ac_status=$? 20663 grep -v '^ *+' conftest.er1 >conftest.err 20664 rm -f conftest.er1 20665 cat conftest.err >&5 20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20667 (exit $ac_status); } && 20668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20669 { (case "(($ac_try" in 20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20671 *) ac_try_echo=$ac_try;; 20672esac 20673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20674 (eval "$ac_try") 2>&5 20675 ac_status=$? 20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20677 (exit $ac_status); }; } && 20678 { ac_try='test -s conftest$ac_exeext' 20679 { (case "(($ac_try" in 20680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20681 *) ac_try_echo=$ac_try;; 20682esac 20683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20684 (eval "$ac_try") 2>&5 20685 ac_status=$? 20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20687 (exit $ac_status); }; }; then 20688 eval "$as_ac_var=yes" 20689else 20690 echo "$as_me: failed program was:" >&5 20691sed 's/^/| /' conftest.$ac_ext >&5 20692 20693 eval "$as_ac_var=no" 20694fi 20695 20696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20697 conftest$ac_exeext conftest.$ac_ext 20698fi 20699ac_res=`eval echo '${'$as_ac_var'}'` 20700 { echo "$as_me:$LINENO: result: $ac_res" >&5 20701echo "${ECHO_T}$ac_res" >&6; } 20702if test `eval echo '${'$as_ac_var'}'` = yes; then 20703 cat >>confdefs.h <<_ACEOF 20704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20705_ACEOF 20706 20707else 20708 PKG_CONFIG_LIBS='-L${libdir} -lpthread-stubs' 20709fi 20710done 20711 20712 20713 20714 20715if test "x$PKG_CONFIG_LIBS" != x; then 20716 BUILD_LIB_TRUE= 20717 BUILD_LIB_FALSE='#' 20718else 20719 BUILD_LIB_TRUE='#' 20720 BUILD_LIB_FALSE= 20721fi 20722 20723 20724ac_config_files="$ac_config_files Makefile pthread-stubs.pc" 20725 20726cat >confcache <<\_ACEOF 20727# This file is a shell script that caches the results of configure 20728# tests run on this system so they can be shared between configure 20729# scripts and configure runs, see configure's option --config-cache. 20730# It is not useful on other systems. If it contains results you don't 20731# want to keep, you may remove or edit it. 20732# 20733# config.status only pays attention to the cache file if you give it 20734# the --recheck option to rerun configure. 20735# 20736# `ac_cv_env_foo' variables (set or unset) will be overridden when 20737# loading this file, other *unset* `ac_cv_foo' will be assigned the 20738# following values. 20739 20740_ACEOF 20741 20742# The following way of writing the cache mishandles newlines in values, 20743# but we know of no workaround that is simple, portable, and efficient. 20744# So, we kill variables containing newlines. 20745# Ultrix sh set writes to stderr and can't be redirected directly, 20746# and sets the high bit in the cache file unless we assign to the vars. 20747( 20748 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20749 eval ac_val=\$$ac_var 20750 case $ac_val in #( 20751 *${as_nl}*) 20752 case $ac_var in #( 20753 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20754echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20755 esac 20756 case $ac_var in #( 20757 _ | IFS | as_nl) ;; #( 20758 *) $as_unset $ac_var ;; 20759 esac ;; 20760 esac 20761 done 20762 20763 (set) 2>&1 | 20764 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20765 *${as_nl}ac_space=\ *) 20766 # `set' does not quote correctly, so add quotes (double-quote 20767 # substitution turns \\\\ into \\, and sed turns \\ into \). 20768 sed -n \ 20769 "s/'/'\\\\''/g; 20770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20771 ;; #( 20772 *) 20773 # `set' quotes correctly as required by POSIX, so do not add quotes. 20774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20775 ;; 20776 esac | 20777 sort 20778) | 20779 sed ' 20780 /^ac_cv_env_/b end 20781 t clear 20782 :clear 20783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20784 t end 20785 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20786 :end' >>confcache 20787if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20788 if test -w "$cache_file"; then 20789 test "x$cache_file" != "x/dev/null" && 20790 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20791echo "$as_me: updating cache $cache_file" >&6;} 20792 cat confcache >$cache_file 20793 else 20794 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20795echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20796 fi 20797fi 20798rm -f confcache 20799 20800test "x$prefix" = xNONE && prefix=$ac_default_prefix 20801# Let make expand exec_prefix. 20802test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20803 20804DEFS=-DHAVE_CONFIG_H 20805 20806ac_libobjs= 20807ac_ltlibobjs= 20808for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20809 # 1. Remove the extension, and $U if already installed. 20810 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20811 ac_i=`echo "$ac_i" | sed "$ac_script"` 20812 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20813 # will be set to the directory where LIBOBJS objects are built. 20814 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20815 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20816done 20817LIBOBJS=$ac_libobjs 20818 20819LTLIBOBJS=$ac_ltlibobjs 20820 20821 20822if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20823 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20824Usually this means the macro was only invoked conditionally." >&5 20825echo "$as_me: error: conditional \"AMDEP\" was never defined. 20826Usually this means the macro was only invoked conditionally." >&2;} 20827 { (exit 1); exit 1; }; } 20828fi 20829if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20830 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20831Usually this means the macro was only invoked conditionally." >&5 20832echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20833Usually this means the macro was only invoked conditionally." >&2;} 20834 { (exit 1); exit 1; }; } 20835fi 20836if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20837 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20838Usually this means the macro was only invoked conditionally." >&5 20839echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20840Usually this means the macro was only invoked conditionally." >&2;} 20841 { (exit 1); exit 1; }; } 20842fi 20843if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20844 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20845Usually this means the macro was only invoked conditionally." >&5 20846echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20847Usually this means the macro was only invoked conditionally." >&2;} 20848 { (exit 1); exit 1; }; } 20849fi 20850if test -z "${BUILD_LIB_TRUE}" && test -z "${BUILD_LIB_FALSE}"; then 20851 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIB\" was never defined. 20852Usually this means the macro was only invoked conditionally." >&5 20853echo "$as_me: error: conditional \"BUILD_LIB\" was never defined. 20854Usually this means the macro was only invoked conditionally." >&2;} 20855 { (exit 1); exit 1; }; } 20856fi 20857 20858: ${CONFIG_STATUS=./config.status} 20859ac_clean_files_save=$ac_clean_files 20860ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20861{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20862echo "$as_me: creating $CONFIG_STATUS" >&6;} 20863cat >$CONFIG_STATUS <<_ACEOF 20864#! $SHELL 20865# Generated by $as_me. 20866# Run this file to recreate the current configuration. 20867# Compiler output produced by configure, useful for debugging 20868# configure, is in config.log if it exists. 20869 20870debug=false 20871ac_cs_recheck=false 20872ac_cs_silent=false 20873SHELL=\${CONFIG_SHELL-$SHELL} 20874_ACEOF 20875 20876cat >>$CONFIG_STATUS <<\_ACEOF 20877## --------------------- ## 20878## M4sh Initialization. ## 20879## --------------------- ## 20880 20881# Be Bourne compatible 20882if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20883 emulate sh 20884 NULLCMD=: 20885 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20886 # is contrary to our usage. Disable this feature. 20887 alias -g '${1+"$@"}'='"$@"' 20888 setopt NO_GLOB_SUBST 20889else 20890 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 20891fi 20892BIN_SH=xpg4; export BIN_SH # for Tru64 20893DUALCASE=1; export DUALCASE # for MKS sh 20894 20895 20896# PATH needs CR 20897# Avoid depending upon Character Ranges. 20898as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20899as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20900as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20901as_cr_digits='0123456789' 20902as_cr_alnum=$as_cr_Letters$as_cr_digits 20903 20904# The user is always right. 20905if test "${PATH_SEPARATOR+set}" != set; then 20906 echo "#! /bin/sh" >conf$$.sh 20907 echo "exit 0" >>conf$$.sh 20908 chmod +x conf$$.sh 20909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20910 PATH_SEPARATOR=';' 20911 else 20912 PATH_SEPARATOR=: 20913 fi 20914 rm -f conf$$.sh 20915fi 20916 20917# Support unset when possible. 20918if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20919 as_unset=unset 20920else 20921 as_unset=false 20922fi 20923 20924 20925# IFS 20926# We need space, tab and new line, in precisely that order. Quoting is 20927# there to prevent editors from complaining about space-tab. 20928# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20929# splitting by setting IFS to empty value.) 20930as_nl=' 20931' 20932IFS=" "" $as_nl" 20933 20934# Find who we are. Look in the path if we contain no directory separator. 20935case $0 in 20936 *[\\/]* ) as_myself=$0 ;; 20937 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20938for as_dir in $PATH 20939do 20940 IFS=$as_save_IFS 20941 test -z "$as_dir" && as_dir=. 20942 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20943done 20944IFS=$as_save_IFS 20945 20946 ;; 20947esac 20948# We did not find ourselves, most probably we were run as `sh COMMAND' 20949# in which case we are not to be found in the path. 20950if test "x$as_myself" = x; then 20951 as_myself=$0 20952fi 20953if test ! -f "$as_myself"; then 20954 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20955 { (exit 1); exit 1; } 20956fi 20957 20958# Work around bugs in pre-3.0 UWIN ksh. 20959for as_var in ENV MAIL MAILPATH 20960do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20961done 20962PS1='$ ' 20963PS2='> ' 20964PS4='+ ' 20965 20966# NLS nuisances. 20967for as_var in \ 20968 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20969 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20970 LC_TELEPHONE LC_TIME 20971do 20972 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20973 eval $as_var=C; export $as_var 20974 else 20975 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20976 fi 20977done 20978 20979# Required to use basename. 20980if expr a : '\(a\)' >/dev/null 2>&1 && 20981 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20982 as_expr=expr 20983else 20984 as_expr=false 20985fi 20986 20987if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20988 as_basename=basename 20989else 20990 as_basename=false 20991fi 20992 20993 20994# Name of the executable. 20995as_me=`$as_basename -- "$0" || 20996$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20997 X"$0" : 'X\(//\)$' \| \ 20998 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20999echo X/"$0" | 21000 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21001 s//\1/ 21002 q 21003 } 21004 /^X\/\(\/\/\)$/{ 21005 s//\1/ 21006 q 21007 } 21008 /^X\/\(\/\).*/{ 21009 s//\1/ 21010 q 21011 } 21012 s/.*/./; q'` 21013 21014# CDPATH. 21015$as_unset CDPATH 21016 21017 21018 21019 as_lineno_1=$LINENO 21020 as_lineno_2=$LINENO 21021 test "x$as_lineno_1" != "x$as_lineno_2" && 21022 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21023 21024 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21025 # uniformly replaced by the line number. The first 'sed' inserts a 21026 # line-number line after each line using $LINENO; the second 'sed' 21027 # does the real work. The second script uses 'N' to pair each 21028 # line-number line with the line containing $LINENO, and appends 21029 # trailing '-' during substitution so that $LINENO is not a special 21030 # case at line end. 21031 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21032 # scripts with optimization help from Paolo Bonzini. Blame Lee 21033 # E. McMahon (1931-1989) for sed's syntax. :-) 21034 sed -n ' 21035 p 21036 /[$]LINENO/= 21037 ' <$as_myself | 21038 sed ' 21039 s/[$]LINENO.*/&-/ 21040 t lineno 21041 b 21042 :lineno 21043 N 21044 :loop 21045 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21046 t loop 21047 s/-\n.*// 21048 ' >$as_me.lineno && 21049 chmod +x "$as_me.lineno" || 21050 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21051 { (exit 1); exit 1; }; } 21052 21053 # Don't try to exec as it changes $[0], causing all sort of problems 21054 # (the dirname of $[0] is not the place where we might find the 21055 # original and so on. Autoconf is especially sensitive to this). 21056 . "./$as_me.lineno" 21057 # Exit status is that of the last command. 21058 exit 21059} 21060 21061 21062if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21063 as_dirname=dirname 21064else 21065 as_dirname=false 21066fi 21067 21068ECHO_C= ECHO_N= ECHO_T= 21069case `echo -n x` in 21070-n*) 21071 case `echo 'x\c'` in 21072 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21073 *) ECHO_C='\c';; 21074 esac;; 21075*) 21076 ECHO_N='-n';; 21077esac 21078 21079if expr a : '\(a\)' >/dev/null 2>&1 && 21080 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21081 as_expr=expr 21082else 21083 as_expr=false 21084fi 21085 21086rm -f conf$$ conf$$.exe conf$$.file 21087if test -d conf$$.dir; then 21088 rm -f conf$$.dir/conf$$.file 21089else 21090 rm -f conf$$.dir 21091 mkdir conf$$.dir 21092fi 21093echo >conf$$.file 21094if ln -s conf$$.file conf$$ 2>/dev/null; then 21095 as_ln_s='ln -s' 21096 # ... but there are two gotchas: 21097 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21098 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21099 # In both cases, we have to default to `cp -p'. 21100 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21101 as_ln_s='cp -p' 21102elif ln conf$$.file conf$$ 2>/dev/null; then 21103 as_ln_s=ln 21104else 21105 as_ln_s='cp -p' 21106fi 21107rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21108rmdir conf$$.dir 2>/dev/null 21109 21110if mkdir -p . 2>/dev/null; then 21111 as_mkdir_p=: 21112else 21113 test -d ./-p && rmdir ./-p 21114 as_mkdir_p=false 21115fi 21116 21117# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21118# systems may use methods other than mode bits to determine executability. 21119cat >conf$$.file <<_ASEOF 21120#! /bin/sh 21121exit 0 21122_ASEOF 21123chmod +x conf$$.file 21124if test -x conf$$.file >/dev/null 2>&1; then 21125 as_executable_p="test -x" 21126else 21127 as_executable_p=: 21128fi 21129rm -f conf$$.file 21130 21131# Sed expression to map a string onto a valid CPP name. 21132as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21133 21134# Sed expression to map a string onto a valid variable name. 21135as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21136 21137 21138exec 6>&1 21139 21140# Save the log message, to keep $[0] and so on meaningful, and to 21141# report actual input values of CONFIG_FILES etc. instead of their 21142# values after options handling. 21143ac_log=" 21144This file was extended by libpthread-stubs $as_me 0.1, which was 21145generated by GNU Autoconf 2.60a. Invocation command line was 21146 21147 CONFIG_FILES = $CONFIG_FILES 21148 CONFIG_HEADERS = $CONFIG_HEADERS 21149 CONFIG_LINKS = $CONFIG_LINKS 21150 CONFIG_COMMANDS = $CONFIG_COMMANDS 21151 $ $0 $@ 21152 21153on `(hostname || uname -n) 2>/dev/null | sed 1q` 21154" 21155 21156_ACEOF 21157 21158cat >>$CONFIG_STATUS <<_ACEOF 21159# Files that config.status was made for. 21160config_files="$ac_config_files" 21161config_headers="$ac_config_headers" 21162config_commands="$ac_config_commands" 21163 21164_ACEOF 21165 21166cat >>$CONFIG_STATUS <<\_ACEOF 21167ac_cs_usage="\ 21168\`$as_me' instantiates files from templates according to the 21169current configuration. 21170 21171Usage: $0 [OPTIONS] [FILE]... 21172 21173 -h, --help print this help, then exit 21174 -V, --version print version number and configuration settings, then exit 21175 -q, --quiet do not print progress messages 21176 -d, --debug don't remove temporary files 21177 --recheck update $as_me by reconfiguring in the same conditions 21178 --file=FILE[:TEMPLATE] 21179 instantiate the configuration file FILE 21180 --header=FILE[:TEMPLATE] 21181 instantiate the configuration header FILE 21182 21183Configuration files: 21184$config_files 21185 21186Configuration headers: 21187$config_headers 21188 21189Configuration commands: 21190$config_commands 21191 21192Report bugs to <bug-autoconf@gnu.org>." 21193 21194_ACEOF 21195cat >>$CONFIG_STATUS <<_ACEOF 21196ac_cs_version="\\ 21197libpthread-stubs config.status 0.1 21198configured by $0, generated by GNU Autoconf 2.60a, 21199 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21200 21201Copyright (C) 2006 Free Software Foundation, Inc. 21202This config.status script is free software; the Free Software Foundation 21203gives unlimited permission to copy, distribute and modify it." 21204 21205ac_pwd='$ac_pwd' 21206srcdir='$srcdir' 21207INSTALL='$INSTALL' 21208_ACEOF 21209 21210cat >>$CONFIG_STATUS <<\_ACEOF 21211# If no file are specified by the user, then we need to provide default 21212# value. By we need to know if files were specified by the user. 21213ac_need_defaults=: 21214while test $# != 0 21215do 21216 case $1 in 21217 --*=*) 21218 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21220 ac_shift=: 21221 ;; 21222 *) 21223 ac_option=$1 21224 ac_optarg=$2 21225 ac_shift=shift 21226 ;; 21227 esac 21228 21229 case $ac_option in 21230 # Handling of the options. 21231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21232 ac_cs_recheck=: ;; 21233 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21234 echo "$ac_cs_version"; exit ;; 21235 --debug | --debu | --deb | --de | --d | -d ) 21236 debug=: ;; 21237 --file | --fil | --fi | --f ) 21238 $ac_shift 21239 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21240 ac_need_defaults=false;; 21241 --header | --heade | --head | --hea ) 21242 $ac_shift 21243 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21244 ac_need_defaults=false;; 21245 --he | --h) 21246 # Conflict between --help and --header 21247 { echo "$as_me: error: ambiguous option: $1 21248Try \`$0 --help' for more information." >&2 21249 { (exit 1); exit 1; }; };; 21250 --help | --hel | -h ) 21251 echo "$ac_cs_usage"; exit ;; 21252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21253 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21254 ac_cs_silent=: ;; 21255 21256 # This is an error. 21257 -*) { echo "$as_me: error: unrecognized option: $1 21258Try \`$0 --help' for more information." >&2 21259 { (exit 1); exit 1; }; } ;; 21260 21261 *) ac_config_targets="$ac_config_targets $1" 21262 ac_need_defaults=false ;; 21263 21264 esac 21265 shift 21266done 21267 21268ac_configure_extra_args= 21269 21270if $ac_cs_silent; then 21271 exec 6>/dev/null 21272 ac_configure_extra_args="$ac_configure_extra_args --silent" 21273fi 21274 21275_ACEOF 21276cat >>$CONFIG_STATUS <<_ACEOF 21277if \$ac_cs_recheck; then 21278 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21279 CONFIG_SHELL=$SHELL 21280 export CONFIG_SHELL 21281 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21282fi 21283 21284_ACEOF 21285cat >>$CONFIG_STATUS <<\_ACEOF 21286exec 5>>config.log 21287{ 21288 echo 21289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21290## Running $as_me. ## 21291_ASBOX 21292 echo "$ac_log" 21293} >&5 21294 21295_ACEOF 21296cat >>$CONFIG_STATUS <<_ACEOF 21297# 21298# INIT-COMMANDS 21299# 21300AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21301 21302_ACEOF 21303 21304cat >>$CONFIG_STATUS <<\_ACEOF 21305 21306# Handling of arguments. 21307for ac_config_target in $ac_config_targets 21308do 21309 case $ac_config_target in 21310 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21311 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21312 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21313 "pthread-stubs.pc") CONFIG_FILES="$CONFIG_FILES pthread-stubs.pc" ;; 21314 21315 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21316echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21317 { (exit 1); exit 1; }; };; 21318 esac 21319done 21320 21321 21322# If the user did not use the arguments to specify the items to instantiate, 21323# then the envvar interface is used. Set only those that are not. 21324# We use the long form for the default assignment because of an extremely 21325# bizarre bug on SunOS 4.1.3. 21326if $ac_need_defaults; then 21327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21330fi 21331 21332# Have a temporary directory for convenience. Make it in the build tree 21333# simply because there is no reason against having it here, and in addition, 21334# creating and moving files from /tmp can sometimes cause problems. 21335# Hook for its removal unless debugging. 21336# Note that there is a small window in which the directory will not be cleaned: 21337# after its creation but before its name has been assigned to `$tmp'. 21338$debug || 21339{ 21340 tmp= 21341 trap 'exit_status=$? 21342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21343' 0 21344 trap '{ (exit 1); exit 1; }' 1 2 13 15 21345} 21346# Create a (secure) tmp directory for tmp files. 21347 21348{ 21349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21350 test -n "$tmp" && test -d "$tmp" 21351} || 21352{ 21353 tmp=./conf$$-$RANDOM 21354 (umask 077 && mkdir "$tmp") 21355} || 21356{ 21357 echo "$me: cannot create a temporary directory in ." >&2 21358 { (exit 1); exit 1; } 21359} 21360 21361# 21362# Set up the sed scripts for CONFIG_FILES section. 21363# 21364 21365# No need to generate the scripts if there are no CONFIG_FILES. 21366# This happens for instance when ./config.status config.h 21367if test -n "$CONFIG_FILES"; then 21368 21369_ACEOF 21370 21371 21372 21373ac_delim='%!_!# ' 21374for ac_last_try in false false false false false :; do 21375 cat >conf$$subs.sed <<_ACEOF 21376SHELL!$SHELL$ac_delim 21377PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21378PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21379PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21380PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21381PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21382PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21383exec_prefix!$exec_prefix$ac_delim 21384prefix!$prefix$ac_delim 21385program_transform_name!$program_transform_name$ac_delim 21386bindir!$bindir$ac_delim 21387sbindir!$sbindir$ac_delim 21388libexecdir!$libexecdir$ac_delim 21389datarootdir!$datarootdir$ac_delim 21390datadir!$datadir$ac_delim 21391sysconfdir!$sysconfdir$ac_delim 21392sharedstatedir!$sharedstatedir$ac_delim 21393localstatedir!$localstatedir$ac_delim 21394includedir!$includedir$ac_delim 21395oldincludedir!$oldincludedir$ac_delim 21396docdir!$docdir$ac_delim 21397infodir!$infodir$ac_delim 21398htmldir!$htmldir$ac_delim 21399dvidir!$dvidir$ac_delim 21400pdfdir!$pdfdir$ac_delim 21401psdir!$psdir$ac_delim 21402libdir!$libdir$ac_delim 21403localedir!$localedir$ac_delim 21404mandir!$mandir$ac_delim 21405DEFS!$DEFS$ac_delim 21406ECHO_C!$ECHO_C$ac_delim 21407ECHO_N!$ECHO_N$ac_delim 21408ECHO_T!$ECHO_T$ac_delim 21409LIBS!$LIBS$ac_delim 21410build_alias!$build_alias$ac_delim 21411host_alias!$host_alias$ac_delim 21412target_alias!$target_alias$ac_delim 21413INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21414INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21415INSTALL_DATA!$INSTALL_DATA$ac_delim 21416CYGPATH_W!$CYGPATH_W$ac_delim 21417PACKAGE!$PACKAGE$ac_delim 21418VERSION!$VERSION$ac_delim 21419ACLOCAL!$ACLOCAL$ac_delim 21420AUTOCONF!$AUTOCONF$ac_delim 21421AUTOMAKE!$AUTOMAKE$ac_delim 21422AUTOHEADER!$AUTOHEADER$ac_delim 21423MAKEINFO!$MAKEINFO$ac_delim 21424install_sh!$install_sh$ac_delim 21425STRIP!$STRIP$ac_delim 21426INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21427mkdir_p!$mkdir_p$ac_delim 21428AWK!$AWK$ac_delim 21429SET_MAKE!$SET_MAKE$ac_delim 21430am__leading_dot!$am__leading_dot$ac_delim 21431AMTAR!$AMTAR$ac_delim 21432am__tar!$am__tar$ac_delim 21433am__untar!$am__untar$ac_delim 21434build!$build$ac_delim 21435build_cpu!$build_cpu$ac_delim 21436build_vendor!$build_vendor$ac_delim 21437build_os!$build_os$ac_delim 21438host!$host$ac_delim 21439host_cpu!$host_cpu$ac_delim 21440host_vendor!$host_vendor$ac_delim 21441host_os!$host_os$ac_delim 21442CC!$CC$ac_delim 21443CFLAGS!$CFLAGS$ac_delim 21444LDFLAGS!$LDFLAGS$ac_delim 21445CPPFLAGS!$CPPFLAGS$ac_delim 21446ac_ct_CC!$ac_ct_CC$ac_delim 21447EXEEXT!$EXEEXT$ac_delim 21448OBJEXT!$OBJEXT$ac_delim 21449DEPDIR!$DEPDIR$ac_delim 21450am__include!$am__include$ac_delim 21451am__quote!$am__quote$ac_delim 21452AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21453AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21454AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21455CCDEPMODE!$CCDEPMODE$ac_delim 21456am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21457am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21458GREP!$GREP$ac_delim 21459EGREP!$EGREP$ac_delim 21460LN_S!$LN_S$ac_delim 21461ECHO!$ECHO$ac_delim 21462AR!$AR$ac_delim 21463RANLIB!$RANLIB$ac_delim 21464CPP!$CPP$ac_delim 21465CXX!$CXX$ac_delim 21466CXXFLAGS!$CXXFLAGS$ac_delim 21467ac_ct_CXX!$ac_ct_CXX$ac_delim 21468CXXDEPMODE!$CXXDEPMODE$ac_delim 21469am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21470am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21471CXXCPP!$CXXCPP$ac_delim 21472F77!$F77$ac_delim 21473_ACEOF 21474 21475 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21476 break 21477 elif $ac_last_try; then 21478 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21479echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21480 { (exit 1); exit 1; }; } 21481 else 21482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21483 fi 21484done 21485 21486ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21487if test -n "$ac_eof"; then 21488 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21489 ac_eof=`expr $ac_eof + 1` 21490fi 21491 21492cat >>$CONFIG_STATUS <<_ACEOF 21493cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21495_ACEOF 21496sed ' 21497s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21498s/^/s,@/; s/!/@,|#_!!_#|/ 21499:n 21500t n 21501s/'"$ac_delim"'$/,g/; t 21502s/$/\\/; p 21503N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21504' >>$CONFIG_STATUS <conf$$subs.sed 21505rm -f conf$$subs.sed 21506cat >>$CONFIG_STATUS <<_ACEOF 21507CEOF$ac_eof 21508_ACEOF 21509 21510 21511ac_delim='%!_!# ' 21512for ac_last_try in false false false false false :; do 21513 cat >conf$$subs.sed <<_ACEOF 21514FFLAGS!$FFLAGS$ac_delim 21515ac_ct_F77!$ac_ct_F77$ac_delim 21516LIBTOOL!$LIBTOOL$ac_delim 21517PKG_CONFIG_LIBS!$PKG_CONFIG_LIBS$ac_delim 21518BUILD_LIB_TRUE!$BUILD_LIB_TRUE$ac_delim 21519BUILD_LIB_FALSE!$BUILD_LIB_FALSE$ac_delim 21520LIBOBJS!$LIBOBJS$ac_delim 21521LTLIBOBJS!$LTLIBOBJS$ac_delim 21522_ACEOF 21523 21524 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then 21525 break 21526 elif $ac_last_try; then 21527 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21528echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21529 { (exit 1); exit 1; }; } 21530 else 21531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21532 fi 21533done 21534 21535ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21536if test -n "$ac_eof"; then 21537 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21538 ac_eof=`expr $ac_eof + 1` 21539fi 21540 21541cat >>$CONFIG_STATUS <<_ACEOF 21542cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21543/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21544_ACEOF 21545sed ' 21546s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21547s/^/s,@/; s/!/@,|#_!!_#|/ 21548:n 21549t n 21550s/'"$ac_delim"'$/,g/; t 21551s/$/\\/; p 21552N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21553' >>$CONFIG_STATUS <conf$$subs.sed 21554rm -f conf$$subs.sed 21555cat >>$CONFIG_STATUS <<_ACEOF 21556:end 21557s/|#_!!_#|//g 21558CEOF$ac_eof 21559_ACEOF 21560 21561 21562# VPATH may cause trouble with some makes, so we remove $(srcdir), 21563# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21564# trailing colons and then remove the whole line if VPATH becomes empty 21565# (actually we leave an empty line to preserve line numbers). 21566if test "x$srcdir" = x.; then 21567 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21568s/:*\$(srcdir):*/:/ 21569s/:*\${srcdir}:*/:/ 21570s/:*@srcdir@:*/:/ 21571s/^\([^=]*=[ ]*\):*/\1/ 21572s/:*$// 21573s/^[^=]*=[ ]*$// 21574}' 21575fi 21576 21577cat >>$CONFIG_STATUS <<\_ACEOF 21578fi # test -n "$CONFIG_FILES" 21579 21580 21581for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21582do 21583 case $ac_tag in 21584 :[FHLC]) ac_mode=$ac_tag; continue;; 21585 esac 21586 case $ac_mode$ac_tag in 21587 :[FHL]*:*);; 21588 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21589echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21590 { (exit 1); exit 1; }; };; 21591 :[FH]-) ac_tag=-:-;; 21592 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21593 esac 21594 ac_save_IFS=$IFS 21595 IFS=: 21596 set x $ac_tag 21597 IFS=$ac_save_IFS 21598 shift 21599 ac_file=$1 21600 shift 21601 21602 case $ac_mode in 21603 :L) ac_source=$1;; 21604 :[FH]) 21605 ac_file_inputs= 21606 for ac_f 21607 do 21608 case $ac_f in 21609 -) ac_f="$tmp/stdin";; 21610 *) # Look for the file first in the build tree, then in the source tree 21611 # (if the path is not absolute). The absolute path cannot be DOS-style, 21612 # because $ac_f cannot contain `:'. 21613 test -f "$ac_f" || 21614 case $ac_f in 21615 [\\/$]*) false;; 21616 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21617 esac || 21618 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21619echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21620 { (exit 1); exit 1; }; };; 21621 esac 21622 ac_file_inputs="$ac_file_inputs $ac_f" 21623 done 21624 21625 # Let's still pretend it is `configure' which instantiates (i.e., don't 21626 # use $as_me), people would be surprised to read: 21627 # /* config.h. Generated by config.status. */ 21628 configure_input="Generated from "`IFS=: 21629 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21630 if test x"$ac_file" != x-; then 21631 configure_input="$ac_file. $configure_input" 21632 { echo "$as_me:$LINENO: creating $ac_file" >&5 21633echo "$as_me: creating $ac_file" >&6;} 21634 fi 21635 21636 case $ac_tag in 21637 *:-:* | *:-) cat >"$tmp/stdin";; 21638 esac 21639 ;; 21640 esac 21641 21642 ac_dir=`$as_dirname -- "$ac_file" || 21643$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21644 X"$ac_file" : 'X\(//\)[^/]' \| \ 21645 X"$ac_file" : 'X\(//\)$' \| \ 21646 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21647echo X"$ac_file" | 21648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21649 s//\1/ 21650 q 21651 } 21652 /^X\(\/\/\)[^/].*/{ 21653 s//\1/ 21654 q 21655 } 21656 /^X\(\/\/\)$/{ 21657 s//\1/ 21658 q 21659 } 21660 /^X\(\/\).*/{ 21661 s//\1/ 21662 q 21663 } 21664 s/.*/./; q'` 21665 { as_dir="$ac_dir" 21666 case $as_dir in #( 21667 -*) as_dir=./$as_dir;; 21668 esac 21669 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21670 as_dirs= 21671 while :; do 21672 case $as_dir in #( 21673 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21674 *) as_qdir=$as_dir;; 21675 esac 21676 as_dirs="'$as_qdir' $as_dirs" 21677 as_dir=`$as_dirname -- "$as_dir" || 21678$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21679 X"$as_dir" : 'X\(//\)[^/]' \| \ 21680 X"$as_dir" : 'X\(//\)$' \| \ 21681 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21682echo X"$as_dir" | 21683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21684 s//\1/ 21685 q 21686 } 21687 /^X\(\/\/\)[^/].*/{ 21688 s//\1/ 21689 q 21690 } 21691 /^X\(\/\/\)$/{ 21692 s//\1/ 21693 q 21694 } 21695 /^X\(\/\).*/{ 21696 s//\1/ 21697 q 21698 } 21699 s/.*/./; q'` 21700 test -d "$as_dir" && break 21701 done 21702 test -z "$as_dirs" || eval "mkdir $as_dirs" 21703 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21704echo "$as_me: error: cannot create directory $as_dir" >&2;} 21705 { (exit 1); exit 1; }; }; } 21706 ac_builddir=. 21707 21708case "$ac_dir" in 21709.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21710*) 21711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21712 # A ".." for each directory in $ac_dir_suffix. 21713 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21714 case $ac_top_builddir_sub in 21715 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21716 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21717 esac ;; 21718esac 21719ac_abs_top_builddir=$ac_pwd 21720ac_abs_builddir=$ac_pwd$ac_dir_suffix 21721# for backward compatibility: 21722ac_top_builddir=$ac_top_build_prefix 21723 21724case $srcdir in 21725 .) # We are building in place. 21726 ac_srcdir=. 21727 ac_top_srcdir=$ac_top_builddir_sub 21728 ac_abs_top_srcdir=$ac_pwd ;; 21729 [\\/]* | ?:[\\/]* ) # Absolute name. 21730 ac_srcdir=$srcdir$ac_dir_suffix; 21731 ac_top_srcdir=$srcdir 21732 ac_abs_top_srcdir=$srcdir ;; 21733 *) # Relative name. 21734 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21735 ac_top_srcdir=$ac_top_build_prefix$srcdir 21736 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21737esac 21738ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21739 21740 21741 case $ac_mode in 21742 :F) 21743 # 21744 # CONFIG_FILE 21745 # 21746 21747 case $INSTALL in 21748 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21749 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21750 esac 21751_ACEOF 21752 21753cat >>$CONFIG_STATUS <<\_ACEOF 21754# If the template does not know about datarootdir, expand it. 21755# FIXME: This hack should be removed a few years after 2.60. 21756ac_datarootdir_hack=; ac_datarootdir_seen= 21757 21758case `sed -n '/datarootdir/ { 21759 p 21760 q 21761} 21762/@datadir@/p 21763/@docdir@/p 21764/@infodir@/p 21765/@localedir@/p 21766/@mandir@/p 21767' $ac_file_inputs` in 21768*datarootdir*) ac_datarootdir_seen=yes;; 21769*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21770 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21771echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21772_ACEOF 21773cat >>$CONFIG_STATUS <<_ACEOF 21774 ac_datarootdir_hack=' 21775 s&@datadir@&$datadir&g 21776 s&@docdir@&$docdir&g 21777 s&@infodir@&$infodir&g 21778 s&@localedir@&$localedir&g 21779 s&@mandir@&$mandir&g 21780 s&\\\${datarootdir}&$datarootdir&g' ;; 21781esac 21782_ACEOF 21783 21784# Neutralize VPATH when `$srcdir' = `.'. 21785# Shell code in configure.ac might set extrasub. 21786# FIXME: do we really want to maintain this feature? 21787cat >>$CONFIG_STATUS <<_ACEOF 21788 sed "$ac_vpsub 21789$extrasub 21790_ACEOF 21791cat >>$CONFIG_STATUS <<\_ACEOF 21792:t 21793/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21794s&@configure_input@&$configure_input&;t t 21795s&@top_builddir@&$ac_top_builddir_sub&;t t 21796s&@srcdir@&$ac_srcdir&;t t 21797s&@abs_srcdir@&$ac_abs_srcdir&;t t 21798s&@top_srcdir@&$ac_top_srcdir&;t t 21799s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21800s&@builddir@&$ac_builddir&;t t 21801s&@abs_builddir@&$ac_abs_builddir&;t t 21802s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21803s&@INSTALL@&$ac_INSTALL&;t t 21804$ac_datarootdir_hack 21805" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21806 21807test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21808 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21810 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21811which seems to be undefined. Please make sure it is defined." >&5 21812echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21813which seems to be undefined. Please make sure it is defined." >&2;} 21814 21815 rm -f "$tmp/stdin" 21816 case $ac_file in 21817 -) cat "$tmp/out"; rm -f "$tmp/out";; 21818 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21819 esac 21820 ;; 21821 :H) 21822 # 21823 # CONFIG_HEADER 21824 # 21825_ACEOF 21826 21827# Transform confdefs.h into a sed script `conftest.defines', that 21828# substitutes the proper values into config.h.in to produce config.h. 21829rm -f conftest.defines conftest.tail 21830# First, append a space to every undef/define line, to ease matching. 21831echo 's/$/ /' >conftest.defines 21832# Then, protect against being on the right side of a sed subst, or in 21833# an unquoted here document, in config.status. If some macros were 21834# called several times there might be several #defines for the same 21835# symbol, which is useless. But do not sort them, since the last 21836# AC_DEFINE must be honored. 21837ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21838# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 21839# NAME is the cpp macro being defined, VALUE is the value it is being given. 21840# PARAMS is the parameter list in the macro definition--in most cases, it's 21841# just an empty string. 21842ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 21843ac_dB='\\)[ (].*,\\1define\\2' 21844ac_dC=' ' 21845ac_dD=' ,' 21846 21847uniq confdefs.h | 21848 sed -n ' 21849 t rset 21850 :rset 21851 s/^[ ]*#[ ]*define[ ][ ]*// 21852 t ok 21853 d 21854 :ok 21855 s/[\\&,]/\\&/g 21856 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 21857 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 21858 ' >>conftest.defines 21859 21860# Remove the space that was appended to ease matching. 21861# Then replace #undef with comments. This is necessary, for 21862# example, in the case of _POSIX_SOURCE, which is predefined and required 21863# on some systems where configure will not decide to define it. 21864# (The regexp can be short, since the line contains either #define or #undef.) 21865echo 's/ $// 21866s,^[ #]*u.*,/* & */,' >>conftest.defines 21867 21868# Break up conftest.defines: 21869ac_max_sed_lines=50 21870 21871# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 21872# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 21873# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 21874# et cetera. 21875ac_in='$ac_file_inputs' 21876ac_out='"$tmp/out1"' 21877ac_nxt='"$tmp/out2"' 21878 21879while : 21880do 21881 # Write a here document: 21882 cat >>$CONFIG_STATUS <<_ACEOF 21883 # First, check the format of the line: 21884 cat >"\$tmp/defines.sed" <<\\CEOF 21885/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 21886/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 21887b 21888:def 21889_ACEOF 21890 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 21891 echo 'CEOF 21892 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 21893 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 21894 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 21895 grep . conftest.tail >/dev/null || break 21896 rm -f conftest.defines 21897 mv conftest.tail conftest.defines 21898done 21899rm -f conftest.defines conftest.tail 21900 21901echo "ac_result=$ac_in" >>$CONFIG_STATUS 21902cat >>$CONFIG_STATUS <<\_ACEOF 21903 if test x"$ac_file" != x-; then 21904 echo "/* $configure_input */" >"$tmp/config.h" 21905 cat "$ac_result" >>"$tmp/config.h" 21906 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 21907 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21908echo "$as_me: $ac_file is unchanged" >&6;} 21909 else 21910 rm -f $ac_file 21911 mv "$tmp/config.h" $ac_file 21912 fi 21913 else 21914 echo "/* $configure_input */" 21915 cat "$ac_result" 21916 fi 21917 rm -f "$tmp/out12" 21918# Compute $ac_file's index in $config_headers. 21919_am_stamp_count=1 21920for _am_header in $config_headers :; do 21921 case $_am_header in 21922 $ac_file | $ac_file:* ) 21923 break ;; 21924 * ) 21925 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21926 esac 21927done 21928echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 21929$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21930 X$ac_file : 'X\(//\)[^/]' \| \ 21931 X$ac_file : 'X\(//\)$' \| \ 21932 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 21933echo X$ac_file | 21934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21935 s//\1/ 21936 q 21937 } 21938 /^X\(\/\/\)[^/].*/{ 21939 s//\1/ 21940 q 21941 } 21942 /^X\(\/\/\)$/{ 21943 s//\1/ 21944 q 21945 } 21946 /^X\(\/\).*/{ 21947 s//\1/ 21948 q 21949 } 21950 s/.*/./; q'`/stamp-h$_am_stamp_count 21951 ;; 21952 21953 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21954echo "$as_me: executing $ac_file commands" >&6;} 21955 ;; 21956 esac 21957 21958 21959 case $ac_file$ac_mode in 21960 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21961 # Strip MF so we end up with the name of the file. 21962 mf=`echo "$mf" | sed -e 's/:.*$//'` 21963 # Check whether this is an Automake generated Makefile or not. 21964 # We used to match only the files named `Makefile.in', but 21965 # some people rename them; so instead we look at the file content. 21966 # Grep'ing the first line is not enough: some people post-process 21967 # each Makefile.in and add a new line on top of each file to say so. 21968 # So let's grep whole file. 21969 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21970 dirpart=`$as_dirname -- "$mf" || 21971$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21972 X"$mf" : 'X\(//\)[^/]' \| \ 21973 X"$mf" : 'X\(//\)$' \| \ 21974 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21975echo X"$mf" | 21976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21977 s//\1/ 21978 q 21979 } 21980 /^X\(\/\/\)[^/].*/{ 21981 s//\1/ 21982 q 21983 } 21984 /^X\(\/\/\)$/{ 21985 s//\1/ 21986 q 21987 } 21988 /^X\(\/\).*/{ 21989 s//\1/ 21990 q 21991 } 21992 s/.*/./; q'` 21993 else 21994 continue 21995 fi 21996 # Extract the definition of DEPDIR, am__include, and am__quote 21997 # from the Makefile without running `make'. 21998 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21999 test -z "$DEPDIR" && continue 22000 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22001 test -z "am__include" && continue 22002 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22003 # When using ansi2knr, U may be empty or an underscore; expand it 22004 U=`sed -n 's/^U = //p' < "$mf"` 22005 # Find all dependency output files, they are included files with 22006 # $(DEPDIR) in their names. We invoke sed twice because it is the 22007 # simplest approach to changing $(DEPDIR) to its actual value in the 22008 # expansion. 22009 for file in `sed -n " 22010 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22011 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22012 # Make sure the directory exists. 22013 test -f "$dirpart/$file" && continue 22014 fdir=`$as_dirname -- "$file" || 22015$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22016 X"$file" : 'X\(//\)[^/]' \| \ 22017 X"$file" : 'X\(//\)$' \| \ 22018 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22019echo X"$file" | 22020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22021 s//\1/ 22022 q 22023 } 22024 /^X\(\/\/\)[^/].*/{ 22025 s//\1/ 22026 q 22027 } 22028 /^X\(\/\/\)$/{ 22029 s//\1/ 22030 q 22031 } 22032 /^X\(\/\).*/{ 22033 s//\1/ 22034 q 22035 } 22036 s/.*/./; q'` 22037 { as_dir=$dirpart/$fdir 22038 case $as_dir in #( 22039 -*) as_dir=./$as_dir;; 22040 esac 22041 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22042 as_dirs= 22043 while :; do 22044 case $as_dir in #( 22045 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22046 *) as_qdir=$as_dir;; 22047 esac 22048 as_dirs="'$as_qdir' $as_dirs" 22049 as_dir=`$as_dirname -- "$as_dir" || 22050$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22051 X"$as_dir" : 'X\(//\)[^/]' \| \ 22052 X"$as_dir" : 'X\(//\)$' \| \ 22053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22054echo X"$as_dir" | 22055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22056 s//\1/ 22057 q 22058 } 22059 /^X\(\/\/\)[^/].*/{ 22060 s//\1/ 22061 q 22062 } 22063 /^X\(\/\/\)$/{ 22064 s//\1/ 22065 q 22066 } 22067 /^X\(\/\).*/{ 22068 s//\1/ 22069 q 22070 } 22071 s/.*/./; q'` 22072 test -d "$as_dir" && break 22073 done 22074 test -z "$as_dirs" || eval "mkdir $as_dirs" 22075 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22076echo "$as_me: error: cannot create directory $as_dir" >&2;} 22077 { (exit 1); exit 1; }; }; } 22078 # echo "creating $dirpart/$file" 22079 echo '# dummy' > "$dirpart/$file" 22080 done 22081done 22082 ;; 22083 22084 esac 22085done # for ac_tag 22086 22087 22088{ (exit 0); exit 0; } 22089_ACEOF 22090chmod +x $CONFIG_STATUS 22091ac_clean_files=$ac_clean_files_save 22092 22093 22094# configure is writing to config.log, and then calls config.status. 22095# config.status does its own redirection, appending to config.log. 22096# Unfortunately, on DOS this fails, as config.log is still kept open 22097# by configure, so config.status won't be able to write to it; its 22098# output is simply discarded. So we exec the FD to /dev/null, 22099# effectively closing config.log, so it can be properly (re)opened and 22100# appended to by config.status. When coming back to configure, we 22101# need to make the FD available again. 22102if test "$no_create" != yes; then 22103 ac_cs_success=: 22104 ac_config_status_args= 22105 test "$silent" = yes && 22106 ac_config_status_args="$ac_config_status_args --quiet" 22107 exec 5>/dev/null 22108 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22109 exec 5>>config.log 22110 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22111 # would make configure fail if this is the last instruction. 22112 $ac_cs_success || { (exit 1); exit 1; } 22113fi 22114 22115