| 5384 | | |
| 5385 | | |
| 5386 | | if test $alsalib = yes && test $alsaheader = yes; then |
| | 6306 | ac_ext=cc |
| | 6307 | ac_cpp='$CXXCPP $CPPFLAGS' |
| | 6308 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 6309 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 6310 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| | 6311 | if test -n "$ac_tool_prefix"; then |
| | 6312 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| | 6313 | do |
| | 6314 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| | 6315 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| | 6316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 6317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 6318 | if test "${ac_cv_prog_CXX+set}" = set; then |
| | 6319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6320 | else |
| | 6321 | if test -n "$CXX"; then |
| | 6322 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| | 6323 | else |
| | 6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 6325 | for as_dir in $PATH |
| | 6326 | do |
| | 6327 | IFS=$as_save_IFS |
| | 6328 | test -z "$as_dir" && as_dir=. |
| | 6329 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 6330 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 6331 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| | 6332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 6333 | break 2 |
| | 6334 | fi |
| | 6335 | done |
| | 6336 | done |
| | 6337 | |
| | 6338 | fi |
| | 6339 | fi |
| | 6340 | CXX=$ac_cv_prog_CXX |
| | 6341 | if test -n "$CXX"; then |
| | 6342 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| | 6343 | echo "${ECHO_T}$CXX" >&6 |
| | 6344 | else |
| | 6345 | echo "$as_me:$LINENO: result: no" >&5 |
| | 6346 | echo "${ECHO_T}no" >&6 |
| | 6347 | fi |
| | 6348 | |
| | 6349 | test -n "$CXX" && break |
| | 6350 | done |
| | 6351 | fi |
| | 6352 | if test -z "$CXX"; then |
| | 6353 | ac_ct_CXX=$CXX |
| | 6354 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| | 6355 | do |
| | 6356 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| | 6357 | set dummy $ac_prog; ac_word=$2 |
| | 6358 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 6359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 6360 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| | 6361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6362 | else |
| | 6363 | if test -n "$ac_ct_CXX"; then |
| | 6364 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| | 6365 | else |
| | 6366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 6367 | for as_dir in $PATH |
| | 6368 | do |
| | 6369 | IFS=$as_save_IFS |
| | 6370 | test -z "$as_dir" && as_dir=. |
| | 6371 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 6372 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 6373 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| | 6374 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 6375 | break 2 |
| | 6376 | fi |
| | 6377 | done |
| | 6378 | done |
| | 6379 | |
| | 6380 | fi |
| | 6381 | fi |
| | 6382 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| | 6383 | if test -n "$ac_ct_CXX"; then |
| | 6384 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| | 6385 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| | 6386 | else |
| | 6387 | echo "$as_me:$LINENO: result: no" >&5 |
| | 6388 | echo "${ECHO_T}no" >&6 |
| | 6389 | fi |
| | 6390 | |
| | 6391 | test -n "$ac_ct_CXX" && break |
| | 6392 | done |
| | 6393 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| | 6394 | |
| | 6395 | CXX=$ac_ct_CXX |
| | 6396 | fi |
| | 6397 | |
| | 6398 | |
| | 6399 | # Provide some information about the compiler. |
| | 6400 | echo "$as_me:$LINENO:" \ |
| | 6401 | "checking for C++ compiler version" >&5 |
| | 6402 | ac_compiler=`set X $ac_compile; echo $2` |
| | 6403 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| | 6404 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| | 6405 | ac_status=$? |
| | 6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6407 | (exit $ac_status); } |
| | 6408 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| | 6409 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| | 6410 | ac_status=$? |
| | 6411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6412 | (exit $ac_status); } |
| | 6413 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| | 6414 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| | 6415 | ac_status=$? |
| | 6416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6417 | (exit $ac_status); } |
| | 6418 | |
| | 6419 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| | 6420 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| | 6421 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| | 6422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6423 | else |
| | 6424 | cat >conftest.$ac_ext <<_ACEOF |
| | 6425 | /* confdefs.h. */ |
| | 6426 | _ACEOF |
| | 6427 | cat confdefs.h >>conftest.$ac_ext |
| | 6428 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6429 | /* end confdefs.h. */ |
| | 6430 | |
| | 6431 | int |
| | 6432 | main () |
| | 6433 | { |
| | 6434 | #ifndef __GNUC__ |
| | 6435 | choke me |
| | 6436 | #endif |
| | 6437 | |
| | 6438 | ; |
| | 6439 | return 0; |
| | 6440 | } |
| | 6441 | _ACEOF |
| | 6442 | rm -f conftest.$ac_objext |
| | 6443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 6444 | (eval $ac_compile) 2>conftest.er1 |
| | 6445 | ac_status=$? |
| | 6446 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6447 | rm -f conftest.er1 |
| | 6448 | cat conftest.err >&5 |
| | 6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6450 | (exit $ac_status); } && |
| | 6451 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | 6452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6453 | (eval $ac_try) 2>&5 |
| | 6454 | ac_status=$? |
| | 6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6456 | (exit $ac_status); }; } && |
| | 6457 | { ac_try='test -s conftest.$ac_objext' |
| | 6458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6459 | (eval $ac_try) 2>&5 |
| | 6460 | ac_status=$? |
| | 6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6462 | (exit $ac_status); }; }; then |
| | 6463 | ac_compiler_gnu=yes |
| | 6464 | else |
| | 6465 | echo "$as_me: failed program was:" >&5 |
| | 6466 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6467 | |
| | 6468 | ac_compiler_gnu=no |
| | 6469 | fi |
| | 6470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 6471 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| | 6472 | |
| | 6473 | fi |
| | 6474 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| | 6475 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| | 6476 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| | 6477 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| | 6478 | ac_save_CXXFLAGS=$CXXFLAGS |
| | 6479 | CXXFLAGS="-g" |
| | 6480 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| | 6481 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| | 6482 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| | 6483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6484 | else |
| | 6485 | cat >conftest.$ac_ext <<_ACEOF |
| | 6486 | /* confdefs.h. */ |
| | 6487 | _ACEOF |
| | 6488 | cat confdefs.h >>conftest.$ac_ext |
| | 6489 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6490 | /* end confdefs.h. */ |
| | 6491 | |
| | 6492 | int |
| | 6493 | main () |
| | 6494 | { |
| | 6495 | |
| | 6496 | ; |
| | 6497 | return 0; |
| | 6498 | } |
| | 6499 | _ACEOF |
| | 6500 | rm -f conftest.$ac_objext |
| | 6501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 6502 | (eval $ac_compile) 2>conftest.er1 |
| | 6503 | ac_status=$? |
| | 6504 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6505 | rm -f conftest.er1 |
| | 6506 | cat conftest.err >&5 |
| | 6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6508 | (exit $ac_status); } && |
| | 6509 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | 6510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6511 | (eval $ac_try) 2>&5 |
| | 6512 | ac_status=$? |
| | 6513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6514 | (exit $ac_status); }; } && |
| | 6515 | { ac_try='test -s conftest.$ac_objext' |
| | 6516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6517 | (eval $ac_try) 2>&5 |
| | 6518 | ac_status=$? |
| | 6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6520 | (exit $ac_status); }; }; then |
| | 6521 | ac_cv_prog_cxx_g=yes |
| | 6522 | else |
| | 6523 | echo "$as_me: failed program was:" >&5 |
| | 6524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6525 | |
| | 6526 | ac_cv_prog_cxx_g=no |
| | 6527 | fi |
| | 6528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 6529 | fi |
| | 6530 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| | 6531 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| | 6532 | if test "$ac_test_CXXFLAGS" = set; then |
| | 6533 | CXXFLAGS=$ac_save_CXXFLAGS |
| | 6534 | elif test $ac_cv_prog_cxx_g = yes; then |
| | 6535 | if test "$GXX" = yes; then |
| | 6536 | CXXFLAGS="-g -O2" |
| | 6537 | else |
| | 6538 | CXXFLAGS="-g" |
| | 6539 | fi |
| | 6540 | else |
| | 6541 | if test "$GXX" = yes; then |
| | 6542 | CXXFLAGS="-O2" |
| | 6543 | else |
| | 6544 | CXXFLAGS= |
| | 6545 | fi |
| | 6546 | fi |
| | 6547 | for ac_declaration in \ |
| | 6548 | '' \ |
| | 6549 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| | 6550 | 'extern "C" void std::exit (int); using std::exit;' \ |
| | 6551 | 'extern "C" void exit (int) throw ();' \ |
| | 6552 | 'extern "C" void exit (int);' \ |
| | 6553 | 'void exit (int);' |
| | 6554 | do |
| | 6555 | cat >conftest.$ac_ext <<_ACEOF |
| | 6556 | /* confdefs.h. */ |
| | 6557 | _ACEOF |
| | 6558 | cat confdefs.h >>conftest.$ac_ext |
| | 6559 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6560 | /* end confdefs.h. */ |
| | 6561 | $ac_declaration |
| | 6562 | #include <stdlib.h> |
| | 6563 | int |
| | 6564 | main () |
| | 6565 | { |
| | 6566 | exit (42); |
| | 6567 | ; |
| | 6568 | return 0; |
| | 6569 | } |
| | 6570 | _ACEOF |
| | 6571 | rm -f conftest.$ac_objext |
| | 6572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 6573 | (eval $ac_compile) 2>conftest.er1 |
| | 6574 | ac_status=$? |
| | 6575 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6576 | rm -f conftest.er1 |
| | 6577 | cat conftest.err >&5 |
| | 6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6579 | (exit $ac_status); } && |
| | 6580 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | 6581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6582 | (eval $ac_try) 2>&5 |
| | 6583 | ac_status=$? |
| | 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6585 | (exit $ac_status); }; } && |
| | 6586 | { ac_try='test -s conftest.$ac_objext' |
| | 6587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6588 | (eval $ac_try) 2>&5 |
| | 6589 | ac_status=$? |
| | 6590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6591 | (exit $ac_status); }; }; then |
| | 6592 | : |
| | 6593 | else |
| | 6594 | echo "$as_me: failed program was:" >&5 |
| | 6595 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6596 | |
| | 6597 | continue |
| | 6598 | fi |
| | 6599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 6600 | cat >conftest.$ac_ext <<_ACEOF |
| | 6601 | /* confdefs.h. */ |
| | 6602 | _ACEOF |
| | 6603 | cat confdefs.h >>conftest.$ac_ext |
| | 6604 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6605 | /* end confdefs.h. */ |
| | 6606 | $ac_declaration |
| | 6607 | int |
| | 6608 | main () |
| | 6609 | { |
| | 6610 | exit (42); |
| | 6611 | ; |
| | 6612 | return 0; |
| | 6613 | } |
| | 6614 | _ACEOF |
| | 6615 | rm -f conftest.$ac_objext |
| | 6616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 6617 | (eval $ac_compile) 2>conftest.er1 |
| | 6618 | ac_status=$? |
| | 6619 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6620 | rm -f conftest.er1 |
| | 6621 | cat conftest.err >&5 |
| | 6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6623 | (exit $ac_status); } && |
| | 6624 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | 6625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6626 | (eval $ac_try) 2>&5 |
| | 6627 | ac_status=$? |
| | 6628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6629 | (exit $ac_status); }; } && |
| | 6630 | { ac_try='test -s conftest.$ac_objext' |
| | 6631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 6632 | (eval $ac_try) 2>&5 |
| | 6633 | ac_status=$? |
| | 6634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6635 | (exit $ac_status); }; }; then |
| | 6636 | break |
| | 6637 | else |
| | 6638 | echo "$as_me: failed program was:" >&5 |
| | 6639 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6640 | |
| | 6641 | fi |
| | 6642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 6643 | done |
| | 6644 | rm -f conftest* |
| | 6645 | if test -n "$ac_declaration"; then |
| | 6646 | echo '#ifdef __cplusplus' >>confdefs.h |
| | 6647 | echo $ac_declaration >>confdefs.h |
| | 6648 | echo '#endif' >>confdefs.h |
| | 6649 | fi |
| | 6650 | |
| | 6651 | ac_ext=cc |
| | 6652 | ac_cpp='$CXXCPP $CPPFLAGS' |
| | 6653 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 6654 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 6655 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| | 6656 | |
| | 6657 | depcc="$CXX" am_compiler_list= |
| | 6658 | |
| | 6659 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| | 6660 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| | 6661 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| | 6662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6663 | else |
| | 6664 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| | 6665 | # We make a subdir and do the tests there. Otherwise we can end up |
| | 6666 | # making bogus files that we don't know about and never remove. For |
| | 6667 | # instance it was reported that on HP-UX the gcc test will end up |
| | 6668 | # making a dummy file named `D' -- because `-MD' means `put the output |
| | 6669 | # in D'. |
| | 6670 | mkdir conftest.dir |
| | 6671 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| | 6672 | # using a relative directory. |
| | 6673 | cp "$am_depcomp" conftest.dir |
| | 6674 | cd conftest.dir |
| | 6675 | # We will build objects and dependencies in a subdirectory because |
| | 6676 | # it helps to detect inapplicable dependency modes. For instance |
| | 6677 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| | 6678 | # side effect of compilation, but ICC will put the dependencies in |
| | 6679 | # the current directory while Tru64 will put them in the object |
| | 6680 | # directory. |
| | 6681 | mkdir sub |
| | 6682 | |
| | 6683 | am_cv_CXX_dependencies_compiler_type=none |
| | 6684 | if test "$am_compiler_list" = ""; then |
| | 6685 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| | 6686 | fi |
| | 6687 | for depmode in $am_compiler_list; do |
| | 6688 | # Setup a source with many dependencies, because some compilers |
| | 6689 | # like to wrap large dependency lists on column 80 (with \), and |
| | 6690 | # we should not choose a depcomp mode which is confused by this. |
| | 6691 | # |
| | 6692 | # We need to recreate these files for each test, as the compiler may |
| | 6693 | # overwrite some of them when testing with obscure command lines. |
| | 6694 | # This happens at least with the AIX C compiler. |
| | 6695 | : > sub/conftest.c |
| | 6696 | for i in 1 2 3 4 5 6; do |
| | 6697 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| | 6698 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| | 6699 | # Solaris 8's {/usr,}/bin/sh. |
| | 6700 | touch sub/conftst$i.h |
| | 6701 | done |
| | 6702 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| | 6703 | |
| | 6704 | case $depmode in |
| | 6705 | nosideeffect) |
| | 6706 | # after this tag, mechanisms are not by side-effect, so they'll |
| | 6707 | # only be used when explicitly requested |
| | 6708 | if test "x$enable_dependency_tracking" = xyes; then |
| | 6709 | continue |
| | 6710 | else |
| | 6711 | break |
| | 6712 | fi |
| | 6713 | ;; |
| | 6714 | none) break ;; |
| | 6715 | esac |
| | 6716 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| | 6717 | # mode. It turns out that the SunPro C++ compiler does not properly |
| | 6718 | # handle `-M -o', and we need to detect this. |
| | 6719 | if depmode=$depmode \ |
| | 6720 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| | 6721 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| | 6722 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| | 6723 | >/dev/null 2>conftest.err && |
| | 6724 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| | 6725 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| | 6726 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| | 6727 | # icc doesn't choke on unknown options, it will just issue warnings |
| | 6728 | # or remarks (even with -Werror). So we grep stderr for any message |
| | 6729 | # that says an option was ignored or not supported. |
| | 6730 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| | 6731 | # icc: Command line warning: ignoring option '-M'; no argument required |
| | 6732 | # The diagnosis changed in icc 8.0: |
| | 6733 | # icc: Command line remark: option '-MP' not supported |
| | 6734 | if (grep 'ignoring option' conftest.err || |
| | 6735 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| | 6736 | am_cv_CXX_dependencies_compiler_type=$depmode |
| | 6737 | break |
| | 6738 | fi |
| | 6739 | fi |
| | 6740 | done |
| | 6741 | |
| | 6742 | cd .. |
| | 6743 | rm -rf conftest.dir |
| | 6744 | else |
| | 6745 | am_cv_CXX_dependencies_compiler_type=none |
| | 6746 | fi |
| | 6747 | |
| | 6748 | fi |
| | 6749 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| | 6750 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| | 6751 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| | 6752 | |
| | 6753 | |
| | 6754 | |
| | 6755 | if |
| | 6756 | test "x$enable_dependency_tracking" != xno \ |
| | 6757 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| | 6758 | am__fastdepCXX_TRUE= |
| | 6759 | am__fastdepCXX_FALSE='#' |
| | 6760 | else |
| | 6761 | am__fastdepCXX_TRUE='#' |
| | 6762 | am__fastdepCXX_FALSE= |
| | 6763 | fi |
| | 6764 | |
| | 6765 | |
| | 6766 | |
| | 6767 | |
| | 6768 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| | 6769 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| | 6770 | (test "X$CXX" != "Xg++"))) ; then |
| | 6771 | ac_ext=cc |
| | 6772 | ac_cpp='$CXXCPP $CPPFLAGS' |
| | 6773 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 6774 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 6775 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| | 6776 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| | 6777 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| | 6778 | if test -z "$CXXCPP"; then |
| | 6779 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| | 6780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 6781 | else |
| | 6782 | # Double quotes because CXXCPP needs to be expanded |
| | 6783 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| | 6784 | do |
| | 6785 | ac_preproc_ok=false |
| | 6786 | for ac_cxx_preproc_warn_flag in '' yes |
| | 6787 | do |
| | 6788 | # Use a header file that comes with gcc, so configuring glibc |
| | 6789 | # with a fresh cross-compiler works. |
| | 6790 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | 6791 | # <limits.h> exists even on freestanding compilers. |
| | 6792 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| | 6793 | # not just through cpp. "Syntax error" is here to catch this case. |
| | 6794 | cat >conftest.$ac_ext <<_ACEOF |
| | 6795 | /* confdefs.h. */ |
| | 6796 | _ACEOF |
| | 6797 | cat confdefs.h >>conftest.$ac_ext |
| | 6798 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6799 | /* end confdefs.h. */ |
| | 6800 | #ifdef __STDC__ |
| | 6801 | # include <limits.h> |
| | 6802 | #else |
| | 6803 | # include <assert.h> |
| | 6804 | #endif |
| | 6805 | Syntax error |
| | 6806 | _ACEOF |
| | 6807 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| | 6808 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| | 6809 | ac_status=$? |
| | 6810 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6811 | rm -f conftest.er1 |
| | 6812 | cat conftest.err >&5 |
| | 6813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6814 | (exit $ac_status); } >/dev/null; then |
| | 6815 | if test -s conftest.err; then |
| | 6816 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| | 6817 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| | 6818 | else |
| | 6819 | ac_cpp_err= |
| | 6820 | fi |
| | 6821 | else |
| | 6822 | ac_cpp_err=yes |
| | 6823 | fi |
| | 6824 | if test -z "$ac_cpp_err"; then |
| | 6825 | : |
| | 6826 | else |
| | 6827 | echo "$as_me: failed program was:" >&5 |
| | 6828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6829 | |
| | 6830 | # Broken: fails on valid input. |
| | 6831 | continue |
| | 6832 | fi |
| | 6833 | rm -f conftest.err conftest.$ac_ext |
| | 6834 | |
| | 6835 | # OK, works on sane cases. Now check whether non-existent headers |
| | 6836 | # can be detected and how. |
| | 6837 | cat >conftest.$ac_ext <<_ACEOF |
| | 6838 | /* confdefs.h. */ |
| | 6839 | _ACEOF |
| | 6840 | cat confdefs.h >>conftest.$ac_ext |
| | 6841 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6842 | /* end confdefs.h. */ |
| | 6843 | #include <ac_nonexistent.h> |
| | 6844 | _ACEOF |
| | 6845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| | 6846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| | 6847 | ac_status=$? |
| | 6848 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6849 | rm -f conftest.er1 |
| | 6850 | cat conftest.err >&5 |
| | 6851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6852 | (exit $ac_status); } >/dev/null; then |
| | 6853 | if test -s conftest.err; then |
| | 6854 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| | 6855 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| | 6856 | else |
| | 6857 | ac_cpp_err= |
| | 6858 | fi |
| | 6859 | else |
| | 6860 | ac_cpp_err=yes |
| | 6861 | fi |
| | 6862 | if test -z "$ac_cpp_err"; then |
| | 6863 | # Broken: success on invalid input. |
| | 6864 | continue |
| | 6865 | else |
| | 6866 | echo "$as_me: failed program was:" >&5 |
| | 6867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6868 | |
| | 6869 | # Passes both tests. |
| | 6870 | ac_preproc_ok=: |
| | 6871 | break |
| | 6872 | fi |
| | 6873 | rm -f conftest.err conftest.$ac_ext |
| | 6874 | |
| | 6875 | done |
| | 6876 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| | 6877 | rm -f conftest.err conftest.$ac_ext |
| | 6878 | if $ac_preproc_ok; then |
| | 6879 | break |
| | 6880 | fi |
| | 6881 | |
| | 6882 | done |
| | 6883 | ac_cv_prog_CXXCPP=$CXXCPP |
| | 6884 | |
| | 6885 | fi |
| | 6886 | CXXCPP=$ac_cv_prog_CXXCPP |
| | 6887 | else |
| | 6888 | ac_cv_prog_CXXCPP=$CXXCPP |
| | 6889 | fi |
| | 6890 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| | 6891 | echo "${ECHO_T}$CXXCPP" >&6 |
| | 6892 | ac_preproc_ok=false |
| | 6893 | for ac_cxx_preproc_warn_flag in '' yes |
| | 6894 | do |
| | 6895 | # Use a header file that comes with gcc, so configuring glibc |
| | 6896 | # with a fresh cross-compiler works. |
| | 6897 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | 6898 | # <limits.h> exists even on freestanding compilers. |
| | 6899 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| | 6900 | # not just through cpp. "Syntax error" is here to catch this case. |
| | 6901 | cat >conftest.$ac_ext <<_ACEOF |
| | 6902 | /* confdefs.h. */ |
| | 6903 | _ACEOF |
| | 6904 | cat confdefs.h >>conftest.$ac_ext |
| | 6905 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6906 | /* end confdefs.h. */ |
| | 6907 | #ifdef __STDC__ |
| | 6908 | # include <limits.h> |
| | 6909 | #else |
| | 6910 | # include <assert.h> |
| | 6911 | #endif |
| | 6912 | Syntax error |
| | 6913 | _ACEOF |
| | 6914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| | 6915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| | 6916 | ac_status=$? |
| | 6917 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6918 | rm -f conftest.er1 |
| | 6919 | cat conftest.err >&5 |
| | 6920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6921 | (exit $ac_status); } >/dev/null; then |
| | 6922 | if test -s conftest.err; then |
| | 6923 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| | 6924 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| | 6925 | else |
| | 6926 | ac_cpp_err= |
| | 6927 | fi |
| | 6928 | else |
| | 6929 | ac_cpp_err=yes |
| | 6930 | fi |
| | 6931 | if test -z "$ac_cpp_err"; then |
| | 6932 | : |
| | 6933 | else |
| | 6934 | echo "$as_me: failed program was:" >&5 |
| | 6935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6936 | |
| | 6937 | # Broken: fails on valid input. |
| | 6938 | continue |
| | 6939 | fi |
| | 6940 | rm -f conftest.err conftest.$ac_ext |
| | 6941 | |
| | 6942 | # OK, works on sane cases. Now check whether non-existent headers |
| | 6943 | # can be detected and how. |
| | 6944 | cat >conftest.$ac_ext <<_ACEOF |
| | 6945 | /* confdefs.h. */ |
| | 6946 | _ACEOF |
| | 6947 | cat confdefs.h >>conftest.$ac_ext |
| | 6948 | cat >>conftest.$ac_ext <<_ACEOF |
| | 6949 | /* end confdefs.h. */ |
| | 6950 | #include <ac_nonexistent.h> |
| | 6951 | _ACEOF |
| | 6952 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| | 6953 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| | 6954 | ac_status=$? |
| | 6955 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 6956 | rm -f conftest.er1 |
| | 6957 | cat conftest.err >&5 |
| | 6958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 6959 | (exit $ac_status); } >/dev/null; then |
| | 6960 | if test -s conftest.err; then |
| | 6961 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| | 6962 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| | 6963 | else |
| | 6964 | ac_cpp_err= |
| | 6965 | fi |
| | 6966 | else |
| | 6967 | ac_cpp_err=yes |
| | 6968 | fi |
| | 6969 | if test -z "$ac_cpp_err"; then |
| | 6970 | # Broken: success on invalid input. |
| | 6971 | continue |
| | 6972 | else |
| | 6973 | echo "$as_me: failed program was:" >&5 |
| | 6974 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 6975 | |
| | 6976 | # Passes both tests. |
| | 6977 | ac_preproc_ok=: |
| | 6978 | break |
| | 6979 | fi |
| | 6980 | rm -f conftest.err conftest.$ac_ext |
| | 6981 | |
| | 6982 | done |
| | 6983 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| | 6984 | rm -f conftest.err conftest.$ac_ext |
| | 6985 | if $ac_preproc_ok; then |
| | 6986 | : |
| | 6987 | else |
| | 6988 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| | 6989 | See \`config.log' for more details." >&5 |
| | 6990 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| | 6991 | See \`config.log' for more details." >&2;} |
| | 6992 | { (exit 1); exit 1; }; } |
| | 6993 | fi |
| | 6994 | |
| | 6995 | ac_ext=cc |
| | 6996 | ac_cpp='$CXXCPP $CPPFLAGS' |
| | 6997 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 6998 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 6999 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| | 7000 | |
| | 7001 | fi |
| | 7002 | |
| | 7003 | |
| | 7004 | ac_ext=f |
| | 7005 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| | 7006 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 7007 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| | 7008 | if test -n "$ac_tool_prefix"; then |
| | 7009 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| | 7010 | do |
| | 7011 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| | 7012 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| | 7013 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 7014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 7015 | if test "${ac_cv_prog_F77+set}" = set; then |
| | 7016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7017 | else |
| | 7018 | if test -n "$F77"; then |
| | 7019 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| | 7020 | else |
| | 7021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 7022 | for as_dir in $PATH |
| | 7023 | do |
| | 7024 | IFS=$as_save_IFS |
| | 7025 | test -z "$as_dir" && as_dir=. |
| | 7026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 7027 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 7028 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| | 7029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 7030 | break 2 |
| | 7031 | fi |
| | 7032 | done |
| | 7033 | done |
| | 7034 | |
| | 7035 | fi |
| | 7036 | fi |
| | 7037 | F77=$ac_cv_prog_F77 |
| | 7038 | if test -n "$F77"; then |
| | 7039 | echo "$as_me:$LINENO: result: $F77" >&5 |
| | 7040 | echo "${ECHO_T}$F77" >&6 |
| | 7041 | else |
| | 7042 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7043 | echo "${ECHO_T}no" >&6 |
| | 7044 | fi |
| | 7045 | |
| | 7046 | test -n "$F77" && break |
| | 7047 | done |
| | 7048 | fi |
| | 7049 | if test -z "$F77"; then |
| | 7050 | ac_ct_F77=$F77 |
| | 7051 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| | 7052 | do |
| | 7053 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| | 7054 | set dummy $ac_prog; ac_word=$2 |
| | 7055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 7056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 7057 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| | 7058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7059 | else |
| | 7060 | if test -n "$ac_ct_F77"; then |
| | 7061 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| | 7062 | else |
| | 7063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 7064 | for as_dir in $PATH |
| | 7065 | do |
| | 7066 | IFS=$as_save_IFS |
| | 7067 | test -z "$as_dir" && as_dir=. |
| | 7068 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 7069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 7070 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| | 7071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 7072 | break 2 |
| | 7073 | fi |
| | 7074 | done |
| | 7075 | done |
| | 7076 | |
| | 7077 | fi |
| | 7078 | fi |
| | 7079 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| | 7080 | if test -n "$ac_ct_F77"; then |
| | 7081 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| | 7082 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| | 7083 | else |
| | 7084 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7085 | echo "${ECHO_T}no" >&6 |
| | 7086 | fi |
| | 7087 | |
| | 7088 | test -n "$ac_ct_F77" && break |
| | 7089 | done |
| | 7090 | |
| | 7091 | F77=$ac_ct_F77 |
| | 7092 | fi |
| | 7093 | |
| | 7094 | |
| | 7095 | # Provide some information about the compiler. |
| | 7096 | echo "$as_me:7096:" \ |
| | 7097 | "checking for Fortran 77 compiler version" >&5 |
| | 7098 | ac_compiler=`set X $ac_compile; echo $2` |
| | 7099 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| | 7100 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| | 7101 | ac_status=$? |
| | 7102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7103 | (exit $ac_status); } |
| | 7104 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| | 7105 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| | 7106 | ac_status=$? |
| | 7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7108 | (exit $ac_status); } |
| | 7109 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| | 7110 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| | 7111 | ac_status=$? |
| | 7112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7113 | (exit $ac_status); } |
| | 7114 | rm -f a.out |
| | 7115 | |
| | 7116 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| | 7117 | # input file. (Note that this only needs to work for GNU compilers.) |
| | 7118 | ac_save_ext=$ac_ext |
| | 7119 | ac_ext=F |
| | 7120 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| | 7121 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| | 7122 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| | 7123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7124 | else |
| | 7125 | cat >conftest.$ac_ext <<_ACEOF |
| | 7126 | program main |
| | 7127 | #ifndef __GNUC__ |
| | 7128 | choke me |
| | 7129 | #endif |
| | 7130 | |
| | 7131 | end |
| | 7132 | _ACEOF |
| | 7133 | rm -f conftest.$ac_objext |
| | 7134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 7135 | (eval $ac_compile) 2>conftest.er1 |
| | 7136 | ac_status=$? |
| | 7137 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 7138 | rm -f conftest.er1 |
| | 7139 | cat conftest.err >&5 |
| | 7140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7141 | (exit $ac_status); } && |
| | 7142 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| | 7143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 7144 | (eval $ac_try) 2>&5 |
| | 7145 | ac_status=$? |
| | 7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7147 | (exit $ac_status); }; } && |
| | 7148 | { ac_try='test -s conftest.$ac_objext' |
| | 7149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 7150 | (eval $ac_try) 2>&5 |
| | 7151 | ac_status=$? |
| | 7152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7153 | (exit $ac_status); }; }; then |
| | 7154 | ac_compiler_gnu=yes |
| | 7155 | else |
| | 7156 | echo "$as_me: failed program was:" >&5 |
| | 7157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 7158 | |
| | 7159 | ac_compiler_gnu=no |
| | 7160 | fi |
| | 7161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 7162 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| | 7163 | |
| | 7164 | fi |
| | 7165 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| | 7166 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| | 7167 | ac_ext=$ac_save_ext |
| | 7168 | ac_test_FFLAGS=${FFLAGS+set} |
| | 7169 | ac_save_FFLAGS=$FFLAGS |
| | 7170 | FFLAGS= |
| | 7171 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| | 7172 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| | 7173 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| | 7174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7175 | else |
| | 7176 | FFLAGS=-g |
| | 7177 | cat >conftest.$ac_ext <<_ACEOF |
| | 7178 | program main |
| | 7179 | |
| | 7180 | end |
| | 7181 | _ACEOF |
| | 7182 | rm -f conftest.$ac_objext |
| | 7183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 7184 | (eval $ac_compile) 2>conftest.er1 |
| | 7185 | ac_status=$? |
| | 7186 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 7187 | rm -f conftest.er1 |
| | 7188 | cat conftest.err >&5 |
| | 7189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7190 | (exit $ac_status); } && |
| | 7191 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| | 7192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 7193 | (eval $ac_try) 2>&5 |
| | 7194 | ac_status=$? |
| | 7195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7196 | (exit $ac_status); }; } && |
| | 7197 | { ac_try='test -s conftest.$ac_objext' |
| | 7198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 7199 | (eval $ac_try) 2>&5 |
| | 7200 | ac_status=$? |
| | 7201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7202 | (exit $ac_status); }; }; then |
| | 7203 | ac_cv_prog_f77_g=yes |
| | 7204 | else |
| | 7205 | echo "$as_me: failed program was:" >&5 |
| | 7206 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 7207 | |
| | 7208 | ac_cv_prog_f77_g=no |
| | 7209 | fi |
| | 7210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| | 7211 | |
| | 7212 | fi |
| | 7213 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| | 7214 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| | 7215 | if test "$ac_test_FFLAGS" = set; then |
| | 7216 | FFLAGS=$ac_save_FFLAGS |
| | 7217 | elif test $ac_cv_prog_f77_g = yes; then |
| | 7218 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| | 7219 | FFLAGS="-g -O2" |
| | 7220 | else |
| | 7221 | FFLAGS="-g" |
| | 7222 | fi |
| | 7223 | else |
| | 7224 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| | 7225 | FFLAGS="-O2" |
| | 7226 | else |
| | 7227 | FFLAGS= |
| | 7228 | fi |
| | 7229 | fi |
| | 7230 | |
| | 7231 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| | 7232 | ac_ext=c |
| | 7233 | ac_cpp='$CPP $CPPFLAGS' |
| | 7234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 7235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 7236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | 7237 | |
| | 7238 | |
| | 7239 | |
| | 7240 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| | 7241 | |
| | 7242 | # find the maximum length of command line arguments |
| | 7243 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| | 7244 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| | 7245 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| | 7246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7247 | else |
| | 7248 | i=0 |
| | 7249 | teststring="ABCD" |
| | 7250 | |
| | 7251 | case $build_os in |
| | 7252 | msdosdjgpp*) |
| | 7253 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| | 7254 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| | 7255 | # during glob expansion). Even if it were fixed, the result of this |
| | 7256 | # check would be larger than it should be. |
| | 7257 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| | 7258 | ;; |
| | 7259 | |
| | 7260 | gnu*) |
| | 7261 | # Under GNU Hurd, this test is not required because there is |
| | 7262 | # no limit to the length of command line arguments. |
| | 7263 | # Libtool will interpret -1 as no limit whatsoever |
| | 7264 | lt_cv_sys_max_cmd_len=-1; |
| | 7265 | ;; |
| | 7266 | |
| | 7267 | cygwin* | mingw*) |
| | 7268 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| | 7269 | # about 5 minutes as the teststring grows exponentially. |
| | 7270 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| | 7271 | # you end up with a "frozen" computer, even though with patience |
| | 7272 | # the test eventually succeeds (with a max line length of 256k). |
| | 7273 | # Instead, let's just punt: use the minimum linelength reported by |
| | 7274 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| | 7275 | lt_cv_sys_max_cmd_len=8192; |
| | 7276 | ;; |
| | 7277 | |
| | 7278 | amigaos*) |
| | 7279 | # On AmigaOS with pdksh, this test takes hours, literally. |
| | 7280 | # So we just punt and use a minimum line length of 8192. |
| | 7281 | lt_cv_sys_max_cmd_len=8192; |
| | 7282 | ;; |
| | 7283 | |
| | 7284 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| | 7285 | # This has been around since 386BSD, at least. Likely further. |
| | 7286 | if test -x /sbin/sysctl; then |
| | 7287 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| | 7288 | elif test -x /usr/sbin/sysctl; then |
| | 7289 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| | 7290 | else |
| | 7291 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| | 7292 | fi |
| | 7293 | # And add a safety zone |
| | 7294 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| | 7295 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| | 7296 | ;; |
| | 7297 | |
| | 7298 | interix*) |
| | 7299 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| | 7300 | lt_cv_sys_max_cmd_len=196608 |
| | 7301 | ;; |
| | 7302 | |
| | 7303 | osf*) |
| | 7304 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| | 7305 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| | 7306 | # nice to cause kernel panics so lets avoid the loop below. |
| | 7307 | # First set a reasonable default. |
| | 7308 | lt_cv_sys_max_cmd_len=16384 |
| | 7309 | # |
| | 7310 | if test -x /sbin/sysconfig; then |
| | 7311 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| | 7312 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| | 7313 | esac |
| | 7314 | fi |
| | 7315 | ;; |
| | 7316 | sco3.2v5*) |
| | 7317 | lt_cv_sys_max_cmd_len=102400 |
| | 7318 | ;; |
| | 7319 | sysv5* | sco5v6* | sysv4.2uw2*) |
| | 7320 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| | 7321 | if test -n "$kargmax"; then |
| | 7322 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| | 7323 | else |
| | 7324 | lt_cv_sys_max_cmd_len=32768 |
| | 7325 | fi |
| | 7326 | ;; |
| | 7327 | *) |
| | 7328 | # If test is not a shell built-in, we'll probably end up computing a |
| | 7329 | # maximum length that is only half of the actual maximum length, but |
| | 7330 | # we can't tell. |
| | 7331 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| | 7332 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| | 7333 | = "XX$teststring") >/dev/null 2>&1 && |
| | 7334 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| | 7335 | lt_cv_sys_max_cmd_len=$new_result && |
| | 7336 | test $i != 17 # 1/2 MB should be enough |
| | 7337 | do |
| | 7338 | i=`expr $i + 1` |
| | 7339 | teststring=$teststring$teststring |
| | 7340 | done |
| | 7341 | teststring= |
| | 7342 | # Add a significant safety factor because C++ compilers can tack on massive |
| | 7343 | # amounts of additional arguments before passing them to the linker. |
| | 7344 | # It appears as though 1/2 is a usable value. |
| | 7345 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| | 7346 | ;; |
| | 7347 | esac |
| | 7348 | |
| | 7349 | fi |
| | 7350 | |
| | 7351 | if test -n $lt_cv_sys_max_cmd_len ; then |
| | 7352 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| | 7353 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| | 7354 | else |
| | 7355 | echo "$as_me:$LINENO: result: none" >&5 |
| | 7356 | echo "${ECHO_T}none" >&6 |
| | 7357 | fi |
| | 7358 | |
| | 7359 | |
| | 7360 | |
| | 7361 | |
| | 7362 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| | 7363 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| | 7364 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| | 7365 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| | 7366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7367 | else |
| | 7368 | |
| | 7369 | # These are sane defaults that work on at least a few old systems. |
| | 7370 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| | 7371 | |
| | 7372 | # Character class describing NM global symbol codes. |
| | 7373 | symcode='[BCDEGRST]' |
| | 7374 | |
| | 7375 | # Regexp to match symbols that can be accessed directly from C. |
| | 7376 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| | 7377 | |
| | 7378 | # Transform an extracted symbol line into a proper C declaration |
| | 7379 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| | 7380 | |
| | 7381 | # Transform an extracted symbol line into symbol name and symbol address |
| | 7382 | 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'" |
| | 7383 | |
| | 7384 | # Define system-specific variables. |
| | 7385 | case $host_os in |
| | 7386 | aix*) |
| | 7387 | symcode='[BCDT]' |
| | 7388 | ;; |
| | 7389 | cygwin* | mingw* | pw32*) |
| | 7390 | symcode='[ABCDGISTW]' |
| | 7391 | ;; |
| | 7392 | hpux*) # Its linker distinguishes data from code symbols |
| | 7393 | if test "$host_cpu" = ia64; then |
| | 7394 | symcode='[ABCDEGRST]' |
| | 7395 | fi |
| | 7396 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| | 7397 | 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'" |
| | 7398 | ;; |
| | 7399 | linux*) |
| | 7400 | if test "$host_cpu" = ia64; then |
| | 7401 | symcode='[ABCDGIRSTW]' |
| | 7402 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| | 7403 | 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'" |
| | 7404 | fi |
| | 7405 | ;; |
| | 7406 | irix* | nonstopux*) |
| | 7407 | symcode='[BCDEGRST]' |
| | 7408 | ;; |
| | 7409 | osf*) |
| | 7410 | symcode='[BCDEGQRST]' |
| | 7411 | ;; |
| | 7412 | solaris*) |
| | 7413 | symcode='[BDRT]' |
| | 7414 | ;; |
| | 7415 | sco3.2v5*) |
| | 7416 | symcode='[DT]' |
| | 7417 | ;; |
| | 7418 | sysv4.2uw2*) |
| | 7419 | symcode='[DT]' |
| | 7420 | ;; |
| | 7421 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| | 7422 | symcode='[ABDT]' |
| | 7423 | ;; |
| | 7424 | sysv4) |
| | 7425 | symcode='[DFNSTU]' |
| | 7426 | ;; |
| | 7427 | esac |
| | 7428 | |
| | 7429 | # Handle CRLF in mingw tool chain |
| | 7430 | opt_cr= |
| | 7431 | case $build_os in |
| | 7432 | mingw*) |
| | 7433 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| | 7434 | ;; |
| | 7435 | esac |
| | 7436 | |
| | 7437 | # If we're using GNU nm, then use its standard symbol codes. |
| | 7438 | case `$NM -V 2>&1` in |
| | 7439 | *GNU* | *'with BFD'*) |
| | 7440 | symcode='[ABCDGIRSTW]' ;; |
| | 7441 | esac |
| | 7442 | |
| | 7443 | # Try without a prefix undercore, then with it. |
| | 7444 | for ac_symprfx in "" "_"; do |
| | 7445 | |
| | 7446 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| | 7447 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| | 7448 | |
| | 7449 | # Write the raw and C identifiers. |
| | 7450 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| | 7451 | |
| | 7452 | # Check to see that the pipe works correctly. |
| | 7453 | pipe_works=no |
| | 7454 | |
| | 7455 | rm -f conftest* |
| | 7456 | cat > conftest.$ac_ext <<EOF |
| | 7457 | #ifdef __cplusplus |
| | 7458 | extern "C" { |
| | 7459 | #endif |
| | 7460 | char nm_test_var; |
| | 7461 | void nm_test_func(){} |
| | 7462 | #ifdef __cplusplus |
| | 7463 | } |
| | 7464 | #endif |
| | 7465 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| | 7466 | EOF |
| | 7467 | |
| | 7468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 7469 | (eval $ac_compile) 2>&5 |
| | 7470 | ac_status=$? |
| | 7471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7472 | (exit $ac_status); }; then |
| | 7473 | # Now try to grab the symbols. |
| | 7474 | nlist=conftest.nm |
| | 7475 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| | 7476 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| | 7477 | ac_status=$? |
| | 7478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7479 | (exit $ac_status); } && test -s "$nlist"; then |
| | 7480 | # Try sorting and uniquifying the output. |
| | 7481 | if sort "$nlist" | uniq > "$nlist"T; then |
| | 7482 | mv -f "$nlist"T "$nlist" |
| | 7483 | else |
| | 7484 | rm -f "$nlist"T |
| | 7485 | fi |
| | 7486 | |
| | 7487 | # Make sure that we snagged all the symbols we need. |
| | 7488 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| | 7489 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| | 7490 | cat <<EOF > conftest.$ac_ext |
| | 7491 | #ifdef __cplusplus |
| | 7492 | extern "C" { |
| | 7493 | #endif |
| | 7494 | |
| | 7495 | EOF |
| | 7496 | # Now generate the symbol file. |
| | 7497 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| | 7498 | |
| | 7499 | cat <<EOF >> conftest.$ac_ext |
| | 7500 | #if defined (__STDC__) && __STDC__ |
| | 7501 | # define lt_ptr_t void * |
| | 7502 | #else |
| | 7503 | # define lt_ptr_t char * |
| | 7504 | # define const |
| | 7505 | #endif |
| | 7506 | |
| | 7507 | /* The mapping between symbol names and symbols. */ |
| | 7508 | const struct { |
| | 7509 | const char *name; |
| | 7510 | lt_ptr_t address; |
| | 7511 | } |
| | 7512 | lt_preloaded_symbols[] = |
| | 7513 | { |
| | 7514 | EOF |
| | 7515 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| | 7516 | cat <<\EOF >> conftest.$ac_ext |
| | 7517 | {0, (lt_ptr_t) 0} |
| | 7518 | }; |
| | 7519 | |
| | 7520 | #ifdef __cplusplus |
| | 7521 | } |
| | 7522 | #endif |
| | 7523 | EOF |
| | 7524 | # Now try linking the two files. |
| | 7525 | mv conftest.$ac_objext conftstm.$ac_objext |
| | 7526 | lt_save_LIBS="$LIBS" |
| | 7527 | lt_save_CFLAGS="$CFLAGS" |
| | 7528 | LIBS="conftstm.$ac_objext" |
| | 7529 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| | 7530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 7531 | (eval $ac_link) 2>&5 |
| | 7532 | ac_status=$? |
| | 7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 7534 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| | 7535 | pipe_works=yes |
| | 7536 | fi |
| | 7537 | LIBS="$lt_save_LIBS" |
| | 7538 | CFLAGS="$lt_save_CFLAGS" |
| | 7539 | else |
| | 7540 | echo "cannot find nm_test_func in $nlist" >&5 |
| | 7541 | fi |
| | 7542 | else |
| | 7543 | echo "cannot find nm_test_var in $nlist" >&5 |
| | 7544 | fi |
| | 7545 | else |
| | 7546 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| | 7547 | fi |
| | 7548 | else |
| | 7549 | echo "$progname: failed program was:" >&5 |
| | 7550 | cat conftest.$ac_ext >&5 |
| | 7551 | fi |
| | 7552 | rm -f conftest* conftst* |
| | 7553 | |
| | 7554 | # Do not use the global_symbol_pipe unless it works. |
| | 7555 | if test "$pipe_works" = yes; then |
| | 7556 | break |
| | 7557 | else |
| | 7558 | lt_cv_sys_global_symbol_pipe= |
| | 7559 | fi |
| | 7560 | done |
| | 7561 | |
| | 7562 | fi |
| | 7563 | |
| | 7564 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| | 7565 | lt_cv_sys_global_symbol_to_cdecl= |
| | 7566 | fi |
| | 7567 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| | 7568 | echo "$as_me:$LINENO: result: failed" >&5 |
| | 7569 | echo "${ECHO_T}failed" >&6 |
| | 7570 | else |
| | 7571 | echo "$as_me:$LINENO: result: ok" >&5 |
| | 7572 | echo "${ECHO_T}ok" >&6 |
| | 7573 | fi |
| | 7574 | |
| | 7575 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| | 7576 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| | 7577 | if test "${lt_cv_objdir+set}" = set; then |
| | 7578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7579 | else |
| | 7580 | rm -f .libs 2>/dev/null |
| | 7581 | mkdir .libs 2>/dev/null |
| | 7582 | if test -d .libs; then |
| | 7583 | lt_cv_objdir=.libs |
| | 7584 | else |
| | 7585 | # MS-DOS does not allow filenames that begin with a dot. |
| | 7586 | lt_cv_objdir=_libs |
| | 7587 | fi |
| | 7588 | rmdir .libs 2>/dev/null |
| | 7589 | fi |
| | 7590 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| | 7591 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| | 7592 | objdir=$lt_cv_objdir |
| | 7593 | |
| | 7594 | |
| | 7595 | |
| | 7596 | |
| | 7597 | |
| | 7598 | case $host_os in |
| | 7599 | aix3*) |
| | 7600 | # AIX sometimes has problems with the GCC collect2 program. For some |
| | 7601 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| | 7602 | # vanish in a puff of smoke. |
| | 7603 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| | 7604 | COLLECT_NAMES= |
| | 7605 | export COLLECT_NAMES |
| | 7606 | fi |
| | 7607 | ;; |
| | 7608 | esac |
| | 7609 | |
| | 7610 | # Sed substitution that helps us do robust quoting. It backslashifies |
| | 7611 | # metacharacters that are still active within double-quoted strings. |
| | 7612 | Xsed='sed -e 1s/^X//' |
| | 7613 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| | 7614 | |
| | 7615 | # Same as above, but do not quote variable references. |
| | 7616 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| | 7617 | |
| | 7618 | # Sed substitution to delay expansion of an escaped shell variable in a |
| | 7619 | # double_quote_subst'ed string. |
| | 7620 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| | 7621 | |
| | 7622 | # Sed substitution to avoid accidental globbing in evaled expressions |
| | 7623 | no_glob_subst='s/\*/\\\*/g' |
| | 7624 | |
| | 7625 | # Constants: |
| | 7626 | rm="rm -f" |
| | 7627 | |
| | 7628 | # Global variables: |
| | 7629 | default_ofile=libtool |
| | 7630 | can_build_shared=yes |
| | 7631 | |
| | 7632 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| | 7633 | # which needs '.lib'). |
| | 7634 | libext=a |
| | 7635 | ltmain="$ac_aux_dir/ltmain.sh" |
| | 7636 | ofile="$default_ofile" |
| | 7637 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| | 7638 | |
| | 7639 | if test -n "$ac_tool_prefix"; then |
| | 7640 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| | 7641 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| | 7642 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 7643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 7644 | if test "${ac_cv_prog_AR+set}" = set; then |
| | 7645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7646 | else |
| | 7647 | if test -n "$AR"; then |
| | 7648 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| | 7649 | else |
| | 7650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 7651 | for as_dir in $PATH |
| | 7652 | do |
| | 7653 | IFS=$as_save_IFS |
| | 7654 | test -z "$as_dir" && as_dir=. |
| | 7655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 7656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 7657 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| | 7658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 7659 | break 2 |
| | 7660 | fi |
| | 7661 | done |
| | 7662 | done |
| | 7663 | |
| | 7664 | fi |
| | 7665 | fi |
| | 7666 | AR=$ac_cv_prog_AR |
| | 7667 | if test -n "$AR"; then |
| | 7668 | echo "$as_me:$LINENO: result: $AR" >&5 |
| | 7669 | echo "${ECHO_T}$AR" >&6 |
| | 7670 | else |
| | 7671 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7672 | echo "${ECHO_T}no" >&6 |
| | 7673 | fi |
| | 7674 | |
| | 7675 | fi |
| | 7676 | if test -z "$ac_cv_prog_AR"; then |
| | 7677 | ac_ct_AR=$AR |
| | 7678 | # Extract the first word of "ar", so it can be a program name with args. |
| | 7679 | set dummy ar; ac_word=$2 |
| | 7680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 7681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 7682 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| | 7683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7684 | else |
| | 7685 | if test -n "$ac_ct_AR"; then |
| | 7686 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| | 7687 | else |
| | 7688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 7689 | for as_dir in $PATH |
| | 7690 | do |
| | 7691 | IFS=$as_save_IFS |
| | 7692 | test -z "$as_dir" && as_dir=. |
| | 7693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 7694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 7695 | ac_cv_prog_ac_ct_AR="ar" |
| | 7696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 7697 | break 2 |
| | 7698 | fi |
| | 7699 | done |
| | 7700 | done |
| | 7701 | |
| | 7702 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| | 7703 | fi |
| | 7704 | fi |
| | 7705 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| | 7706 | if test -n "$ac_ct_AR"; then |
| | 7707 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| | 7708 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| | 7709 | else |
| | 7710 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7711 | echo "${ECHO_T}no" >&6 |
| | 7712 | fi |
| | 7713 | |
| | 7714 | AR=$ac_ct_AR |
| | 7715 | else |
| | 7716 | AR="$ac_cv_prog_AR" |
| | 7717 | fi |
| | 7718 | |
| | 7719 | if test -n "$ac_tool_prefix"; then |
| | 7720 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| | 7721 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| | 7722 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 7723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 7724 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| | 7725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7726 | else |
| | 7727 | if test -n "$RANLIB"; then |
| | 7728 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| | 7729 | else |
| | 7730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 7731 | for as_dir in $PATH |
| | 7732 | do |
| | 7733 | IFS=$as_save_IFS |
| | 7734 | test -z "$as_dir" && as_dir=. |
| | 7735 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 7736 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 7737 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| | 7738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 7739 | break 2 |
| | 7740 | fi |
| | 7741 | done |
| | 7742 | done |
| | 7743 | |
| | 7744 | fi |
| | 7745 | fi |
| | 7746 | RANLIB=$ac_cv_prog_RANLIB |
| | 7747 | if test -n "$RANLIB"; then |
| | 7748 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| | 7749 | echo "${ECHO_T}$RANLIB" >&6 |
| | 7750 | else |
| | 7751 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7752 | echo "${ECHO_T}no" >&6 |
| | 7753 | fi |
| | 7754 | |
| | 7755 | fi |
| | 7756 | if test -z "$ac_cv_prog_RANLIB"; then |
| | 7757 | ac_ct_RANLIB=$RANLIB |
| | 7758 | # Extract the first word of "ranlib", so it can be a program name with args. |
| | 7759 | set dummy ranlib; ac_word=$2 |
| | 7760 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 7761 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 7762 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| | 7763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7764 | else |
| | 7765 | if test -n "$ac_ct_RANLIB"; then |
| | 7766 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| | 7767 | else |
| | 7768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 7769 | for as_dir in $PATH |
| | 7770 | do |
| | 7771 | IFS=$as_save_IFS |
| | 7772 | test -z "$as_dir" && as_dir=. |
| | 7773 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 7774 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 7775 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| | 7776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 7777 | break 2 |
| | 7778 | fi |
| | 7779 | done |
| | 7780 | done |
| | 7781 | |
| | 7782 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| | 7783 | fi |
| | 7784 | fi |
| | 7785 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| | 7786 | if test -n "$ac_ct_RANLIB"; then |
| | 7787 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| | 7788 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| | 7789 | else |
| | 7790 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7791 | echo "${ECHO_T}no" >&6 |
| | 7792 | fi |
| | 7793 | |
| | 7794 | RANLIB=$ac_ct_RANLIB |
| | 7795 | else |
| | 7796 | RANLIB="$ac_cv_prog_RANLIB" |
| | 7797 | fi |
| | 7798 | |
| | 7799 | if test -n "$ac_tool_prefix"; then |
| | 7800 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| | 7801 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| | 7802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 7803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 7804 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| | 7805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7806 | else |
| | 7807 | if test -n "$STRIP"; then |
| | 7808 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| | 7809 | else |
| | 7810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 7811 | for as_dir in $PATH |
| | 7812 | do |
| | 7813 | IFS=$as_save_IFS |
| | 7814 | test -z "$as_dir" && as_dir=. |
| | 7815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 7816 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 7817 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| | 7818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 7819 | break 2 |
| | 7820 | fi |
| | 7821 | done |
| | 7822 | done |
| | 7823 | |
| | 7824 | fi |
| | 7825 | fi |
| | 7826 | STRIP=$ac_cv_prog_STRIP |
| | 7827 | if test -n "$STRIP"; then |
| | 7828 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| | 7829 | echo "${ECHO_T}$STRIP" >&6 |
| | 7830 | else |
| | 7831 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7832 | echo "${ECHO_T}no" >&6 |
| | 7833 | fi |
| | 7834 | |
| | 7835 | fi |
| | 7836 | if test -z "$ac_cv_prog_STRIP"; then |
| | 7837 | ac_ct_STRIP=$STRIP |
| | 7838 | # Extract the first word of "strip", so it can be a program name with args. |
| | 7839 | set dummy strip; ac_word=$2 |
| | 7840 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| | 7841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| | 7842 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| | 7843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7844 | else |
| | 7845 | if test -n "$ac_ct_STRIP"; then |
| | 7846 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| | 7847 | else |
| | 7848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | 7849 | for as_dir in $PATH |
| | 7850 | do |
| | 7851 | IFS=$as_save_IFS |
| | 7852 | test -z "$as_dir" && as_dir=. |
| | 7853 | for ac_exec_ext in '' $ac_executable_extensions; do |
| | 7854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | 7855 | ac_cv_prog_ac_ct_STRIP="strip" |
| | 7856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | 7857 | break 2 |
| | 7858 | fi |
| | 7859 | done |
| | 7860 | done |
| | 7861 | |
| | 7862 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| | 7863 | fi |
| | 7864 | fi |
| | 7865 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| | 7866 | if test -n "$ac_ct_STRIP"; then |
| | 7867 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| | 7868 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| | 7869 | else |
| | 7870 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7871 | echo "${ECHO_T}no" >&6 |
| | 7872 | fi |
| | 7873 | |
| | 7874 | STRIP=$ac_ct_STRIP |
| | 7875 | else |
| | 7876 | STRIP="$ac_cv_prog_STRIP" |
| | 7877 | fi |
| | 7878 | |
| | 7879 | |
| | 7880 | old_CC="$CC" |
| | 7881 | old_CFLAGS="$CFLAGS" |
| | 7882 | |
| | 7883 | # Set sane defaults for various variables |
| | 7884 | test -z "$AR" && AR=ar |
| | 7885 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| | 7886 | test -z "$AS" && AS=as |
| | 7887 | test -z "$CC" && CC=cc |
| | 7888 | test -z "$LTCC" && LTCC=$CC |
| | 7889 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| | 7890 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| | 7891 | test -z "$LD" && LD=ld |
| | 7892 | test -z "$LN_S" && LN_S="ln -s" |
| | 7893 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| | 7894 | test -z "$NM" && NM=nm |
| | 7895 | test -z "$SED" && SED=sed |
| | 7896 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| | 7897 | test -z "$RANLIB" && RANLIB=: |
| | 7898 | test -z "$STRIP" && STRIP=: |
| | 7899 | test -z "$ac_objext" && ac_objext=o |
| | 7900 | |
| | 7901 | # Determine commands to create old-style static archives. |
| | 7902 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| | 7903 | old_postinstall_cmds='chmod 644 $oldlib' |
| | 7904 | old_postuninstall_cmds= |
| | 7905 | |
| | 7906 | if test -n "$RANLIB"; then |
| | 7907 | case $host_os in |
| | 7908 | openbsd*) |
| | 7909 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| | 7910 | ;; |
| | 7911 | *) |
| | 7912 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| | 7913 | ;; |
| | 7914 | esac |
| | 7915 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| | 7916 | fi |
| | 7917 | |
| | 7918 | for cc_temp in $compiler""; do |
| | 7919 | case $cc_temp in |
| | 7920 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| | 7921 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| | 7922 | \-*) ;; |
| | 7923 | *) break;; |
| | 7924 | esac |
| | 7925 | done |
| | 7926 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| | 7927 | |
| | 7928 | |
| | 7929 | # Only perform the check for file, if the check method requires it |
| | 7930 | case $deplibs_check_method in |
| | 7931 | file_magic*) |
| | 7932 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| | 7933 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| | 7934 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| | 7935 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| | 7936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7937 | else |
| | 7938 | case $MAGIC_CMD in |
| | 7939 | [\\/*] | ?:[\\/]*) |
| | 7940 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| | 7941 | ;; |
| | 7942 | *) |
| | 7943 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| | 7944 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| | 7945 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| | 7946 | for ac_dir in $ac_dummy; do |
| | 7947 | IFS="$lt_save_ifs" |
| | 7948 | test -z "$ac_dir" && ac_dir=. |
| | 7949 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| | 7950 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| | 7951 | if test -n "$file_magic_test_file"; then |
| | 7952 | case $deplibs_check_method in |
| | 7953 | "file_magic "*) |
| | 7954 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| | 7955 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| | 7956 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| | 7957 | $EGREP "$file_magic_regex" > /dev/null; then |
| | 7958 | : |
| | 7959 | else |
| | 7960 | cat <<EOF 1>&2 |
| | 7961 | |
| | 7962 | *** Warning: the command libtool uses to detect shared libraries, |
| | 7963 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| | 7964 | *** The result is that libtool may fail to recognize shared libraries |
| | 7965 | *** as such. This will affect the creation of libtool libraries that |
| | 7966 | *** depend on shared libraries, but programs linked with such libtool |
| | 7967 | *** libraries will work regardless of this problem. Nevertheless, you |
| | 7968 | *** may want to report the problem to your system manager and/or to |
| | 7969 | *** bug-libtool@gnu.org |
| | 7970 | |
| | 7971 | EOF |
| | 7972 | fi ;; |
| | 7973 | esac |
| | 7974 | fi |
| | 7975 | break |
| | 7976 | fi |
| | 7977 | done |
| | 7978 | IFS="$lt_save_ifs" |
| | 7979 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| | 7980 | ;; |
| | 7981 | esac |
| | 7982 | fi |
| | 7983 | |
| | 7984 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| | 7985 | if test -n "$MAGIC_CMD"; then |
| | 7986 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| | 7987 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| | 7988 | else |
| | 7989 | echo "$as_me:$LINENO: result: no" >&5 |
| | 7990 | echo "${ECHO_T}no" >&6 |
| | 7991 | fi |
| | 7992 | |
| | 7993 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| | 7994 | if test -n "$ac_tool_prefix"; then |
| | 7995 | echo "$as_me:$LINENO: checking for file" >&5 |
| | 7996 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| | 7997 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| | 7998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 7999 | else |
| | 8000 | case $MAGIC_CMD in |
| | 8001 | [\\/*] | ?:[\\/]*) |
| | 8002 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| | 8003 | ;; |
| | 8004 | *) |
| | 8005 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| | 8006 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| | 8007 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| | 8008 | for ac_dir in $ac_dummy; do |
| | 8009 | IFS="$lt_save_ifs" |
| | 8010 | test -z "$ac_dir" && ac_dir=. |
| | 8011 | if test -f $ac_dir/file; then |
| | 8012 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| | 8013 | if test -n "$file_magic_test_file"; then |
| | 8014 | case $deplibs_check_method in |
| | 8015 | "file_magic "*) |
| | 8016 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| | 8017 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| | 8018 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| | 8019 | $EGREP "$file_magic_regex" > /dev/null; then |
| | 8020 | : |
| | 8021 | else |
| | 8022 | cat <<EOF 1>&2 |
| | 8023 | |
| | 8024 | *** Warning: the command libtool uses to detect shared libraries, |
| | 8025 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| | 8026 | *** The result is that libtool may fail to recognize shared libraries |
| | 8027 | *** as such. This will affect the creation of libtool libraries that |
| | 8028 | *** depend on shared libraries, but programs linked with such libtool |
| | 8029 | *** libraries will work regardless of this problem. Nevertheless, you |
| | 8030 | *** may want to report the problem to your system manager and/or to |
| | 8031 | *** bug-libtool@gnu.org |
| | 8032 | |
| | 8033 | EOF |
| | 8034 | fi ;; |
| | 8035 | esac |
| | 8036 | fi |
| | 8037 | break |
| | 8038 | fi |
| | 8039 | done |
| | 8040 | IFS="$lt_save_ifs" |
| | 8041 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| | 8042 | ;; |
| | 8043 | esac |
| | 8044 | fi |
| | 8045 | |
| | 8046 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| | 8047 | if test -n "$MAGIC_CMD"; then |
| | 8048 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| | 8049 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| | 8050 | else |
| | 8051 | echo "$as_me:$LINENO: result: no" >&5 |
| | 8052 | echo "${ECHO_T}no" >&6 |
| | 8053 | fi |
| | 8054 | |
| | 8055 | else |
| | 8056 | MAGIC_CMD=: |
| | 8057 | fi |
| | 8058 | fi |
| | 8059 | |
| | 8060 | fi |
| | 8061 | ;; |
| | 8062 | esac |
| | 8063 | |
| | 8064 | enable_dlopen=no |
| | 8065 | enable_win32_dll=no |
| | 8066 | |
| | 8067 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| | 8068 | if test "${enable_libtool_lock+set}" = set; then |
| | 8069 | enableval="$enable_libtool_lock" |
| | 8070 | |
| | 8071 | fi; |
| | 8072 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| | 8073 | |
| | 8074 | |
| | 8075 | # Check whether --with-pic or --without-pic was given. |
| | 8076 | if test "${with_pic+set}" = set; then |
| | 8077 | withval="$with_pic" |
| | 8078 | pic_mode="$withval" |
| | 8079 | else |
| | 8080 | pic_mode=default |
| | 8081 | fi; |
| | 8082 | test -z "$pic_mode" && pic_mode=default |
| | 8083 | |
| | 8084 | # Use C for the default configuration in the libtool script |
| | 8085 | tagname= |
| | 8086 | lt_save_CC="$CC" |
| | 8087 | ac_ext=c |
| | 8088 | ac_cpp='$CPP $CPPFLAGS' |
| | 8089 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 8090 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 8091 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | 8092 | |
| | 8093 | |
| | 8094 | # Source file extension for C test sources. |
| | 8095 | ac_ext=c |
| | 8096 | |
| | 8097 | # Object file extension for compiled C test sources. |
| | 8098 | objext=o |
| | 8099 | objext=$objext |
| | 8100 | |
| | 8101 | # Code to be used in simple compile tests |
| | 8102 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| | 8103 | |
| | 8104 | # Code to be used in simple link tests |
| | 8105 | lt_simple_link_test_code='int main(){return(0);}\n' |
| | 8106 | |
| | 8107 | |
| | 8108 | # If no C compiler was specified, use CC. |
| | 8109 | LTCC=${LTCC-"$CC"} |
| | 8110 | |
| | 8111 | # If no C compiler flags were specified, use CFLAGS. |
| | 8112 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| | 8113 | |
| | 8114 | # Allow CC to be a program name with arguments. |
| | 8115 | compiler=$CC |
| | 8116 | |
| | 8117 | |
| | 8118 | # save warnings/boilerplate of simple test code |
| | 8119 | ac_outfile=conftest.$ac_objext |
| | 8120 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| | 8121 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| | 8122 | _lt_compiler_boilerplate=`cat conftest.err` |
| | 8123 | $rm conftest* |
| | 8124 | |
| | 8125 | ac_outfile=conftest.$ac_objext |
| | 8126 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| | 8127 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| | 8128 | _lt_linker_boilerplate=`cat conftest.err` |
| | 8129 | $rm conftest* |
| | 8130 | |
| | 8131 | |
| | 8132 | |
| | 8133 | lt_prog_compiler_no_builtin_flag= |
| | 8134 | |
| | 8135 | if test "$GCC" = yes; then |
| | 8136 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| | 8137 | |
| | 8138 | |
| | 8139 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| | 8140 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| | 8141 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| | 8142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 8143 | else |
| | 8144 | lt_cv_prog_compiler_rtti_exceptions=no |
| | 8145 | ac_outfile=conftest.$ac_objext |
| | 8146 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 8147 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| | 8148 | # Insert the option either (1) after the last *FLAGS variable, or |
| | 8149 | # (2) before a word containing "conftest.", or (3) at the end. |
| | 8150 | # Note that $ac_compile itself does not contain backslashes and begins |
| | 8151 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | 8152 | # The option is referenced via a variable to avoid confusing sed. |
| | 8153 | lt_compile=`echo "$ac_compile" | $SED \ |
| | 8154 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| | 8155 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | 8156 | -e 's:$: $lt_compiler_flag:'` |
| | 8157 | (eval echo "\"\$as_me:8157: $lt_compile\"" >&5) |
| | 8158 | (eval "$lt_compile" 2>conftest.err) |
| | 8159 | ac_status=$? |
| | 8160 | cat conftest.err >&5 |
| | 8161 | echo "$as_me:8161: \$? = $ac_status" >&5 |
| | 8162 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| | 8163 | # The compiler can only warn and ignore the option if not recognized |
| | 8164 | # So say no if there are warnings other than the usual output. |
| | 8165 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| | 8166 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| | 8167 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| | 8168 | lt_cv_prog_compiler_rtti_exceptions=yes |
| | 8169 | fi |
| | 8170 | fi |
| | 8171 | $rm conftest* |
| | 8172 | |
| | 8173 | fi |
| | 8174 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| | 8175 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| | 8176 | |
| | 8177 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| | 8178 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| | 8179 | else |
| | 8180 | : |
| | 8181 | fi |
| | 8182 | |
| | 8183 | fi |
| | 8184 | |
| | 8185 | lt_prog_compiler_wl= |
| | 8186 | lt_prog_compiler_pic= |
| | 8187 | lt_prog_compiler_static= |
| | 8188 | |
| | 8189 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| | 8190 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| | 8191 | |
| | 8192 | if test "$GCC" = yes; then |
| | 8193 | lt_prog_compiler_wl='-Wl,' |
| | 8194 | lt_prog_compiler_static='-static' |
| | 8195 | |
| | 8196 | case $host_os in |
| | 8197 | aix*) |
| | 8198 | # All AIX code is PIC. |
| | 8199 | if test "$host_cpu" = ia64; then |
| | 8200 | # AIX 5 now supports IA64 processor |
| | 8201 | lt_prog_compiler_static='-Bstatic' |
| | 8202 | fi |
| | 8203 | ;; |
| | 8204 | |
| | 8205 | amigaos*) |
| | 8206 | # FIXME: we need at least 68020 code to build shared libraries, but |
| | 8207 | # adding the `-m68020' flag to GCC prevents building anything better, |
| | 8208 | # like `-m68040'. |
| | 8209 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| | 8210 | ;; |
| | 8211 | |
| | 8212 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| | 8213 | # PIC is the default for these OSes. |
| | 8214 | ;; |
| | 8215 | |
| | 8216 | mingw* | pw32* | os2*) |
| | 8217 | # This hack is so that the source file can tell whether it is being |
| | 8218 | # built for inclusion in a dll (and should export symbols for example). |
| | 8219 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| | 8220 | ;; |
| | 8221 | |
| | 8222 | darwin* | rhapsody*) |
| | 8223 | # PIC is the default on this platform |
| | 8224 | # Common symbols not allowed in MH_DYLIB files |
| | 8225 | lt_prog_compiler_pic='-fno-common' |
| | 8226 | ;; |
| | 8227 | |
| | 8228 | interix3*) |
| | 8229 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| | 8230 | # Instead, we relocate shared libraries at runtime. |
| | 8231 | ;; |
| | 8232 | |
| | 8233 | msdosdjgpp*) |
| | 8234 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| | 8235 | # on systems that don't support them. |
| | 8236 | lt_prog_compiler_can_build_shared=no |
| | 8237 | enable_shared=no |
| | 8238 | ;; |
| | 8239 | |
| | 8240 | sysv4*MP*) |
| | 8241 | if test -d /usr/nec; then |
| | 8242 | lt_prog_compiler_pic=-Kconform_pic |
| | 8243 | fi |
| | 8244 | ;; |
| | 8245 | |
| | 8246 | hpux*) |
| | 8247 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| | 8248 | # not for PA HP-UX. |
| | 8249 | case $host_cpu in |
| | 8250 | hppa*64*|ia64*) |
| | 8251 | # +Z the default |
| | 8252 | ;; |
| | 8253 | *) |
| | 8254 | lt_prog_compiler_pic='-fPIC' |
| | 8255 | ;; |
| | 8256 | esac |
| | 8257 | ;; |
| | 8258 | |
| | 8259 | *) |
| | 8260 | lt_prog_compiler_pic='-fPIC' |
| | 8261 | ;; |
| | 8262 | esac |
| | 8263 | else |
| | 8264 | # PORTME Check for flag to pass linker flags through the system compiler. |
| | 8265 | case $host_os in |
| | 8266 | aix*) |
| | 8267 | lt_prog_compiler_wl='-Wl,' |
| | 8268 | if test "$host_cpu" = ia64; then |
| | 8269 | # AIX 5 now supports IA64 processor |
| | 8270 | lt_prog_compiler_static='-Bstatic' |
| | 8271 | else |
| | 8272 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| | 8273 | fi |
| | 8274 | ;; |
| | 8275 | darwin*) |
| | 8276 | # PIC is the default on this platform |
| | 8277 | # Common symbols not allowed in MH_DYLIB files |
| | 8278 | case $cc_basename in |
| | 8279 | xlc*) |
| | 8280 | lt_prog_compiler_pic='-qnocommon' |
| | 8281 | lt_prog_compiler_wl='-Wl,' |
| | 8282 | ;; |
| | 8283 | esac |
| | 8284 | ;; |
| | 8285 | |
| | 8286 | mingw* | pw32* | os2*) |
| | 8287 | # This hack is so that the source file can tell whether it is being |
| | 8288 | # built for inclusion in a dll (and should export symbols for example). |
| | 8289 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| | 8290 | ;; |
| | 8291 | |
| | 8292 | hpux9* | hpux10* | hpux11*) |
| | 8293 | lt_prog_compiler_wl='-Wl,' |
| | 8294 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| | 8295 | # not for PA HP-UX. |
| | 8296 | case $host_cpu in |
| | 8297 | hppa*64*|ia64*) |
| | 8298 | # +Z the default |
| | 8299 | ;; |
| | 8300 | *) |
| | 8301 | lt_prog_compiler_pic='+Z' |
| | 8302 | ;; |
| | 8303 | esac |
| | 8304 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| | 8305 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| | 8306 | ;; |
| | 8307 | |
| | 8308 | irix5* | irix6* | nonstopux*) |
| | 8309 | lt_prog_compiler_wl='-Wl,' |
| | 8310 | # PIC (with -KPIC) is the default. |
| | 8311 | lt_prog_compiler_static='-non_shared' |
| | 8312 | ;; |
| | 8313 | |
| | 8314 | newsos6) |
| | 8315 | lt_prog_compiler_pic='-KPIC' |
| | 8316 | lt_prog_compiler_static='-Bstatic' |
| | 8317 | ;; |
| | 8318 | |
| | 8319 | linux*) |
| | 8320 | case $cc_basename in |
| | 8321 | icc* | ecc*) |
| | 8322 | lt_prog_compiler_wl='-Wl,' |
| | 8323 | lt_prog_compiler_pic='-KPIC' |
| | 8324 | lt_prog_compiler_static='-static' |
| | 8325 | ;; |
| | 8326 | pgcc* | pgf77* | pgf90* | pgf95*) |
| | 8327 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| | 8328 | # which looks to be a dead project) |
| | 8329 | lt_prog_compiler_wl='-Wl,' |
| | 8330 | lt_prog_compiler_pic='-fpic' |
| | 8331 | lt_prog_compiler_static='-Bstatic' |
| | 8332 | ;; |
| | 8333 | ccc*) |
| | 8334 | lt_prog_compiler_wl='-Wl,' |
| | 8335 | # All Alpha code is PIC. |
| | 8336 | lt_prog_compiler_static='-non_shared' |
| | 8337 | ;; |
| | 8338 | esac |
| | 8339 | ;; |
| | 8340 | |
| | 8341 | osf3* | osf4* | osf5*) |
| | 8342 | lt_prog_compiler_wl='-Wl,' |
| | 8343 | # All OSF/1 code is PIC. |
| | 8344 | lt_prog_compiler_static='-non_shared' |
| | 8345 | ;; |
| | 8346 | |
| | 8347 | solaris*) |
| | 8348 | lt_prog_compiler_pic='-KPIC' |
| | 8349 | lt_prog_compiler_static='-Bstatic' |
| | 8350 | case $cc_basename in |
| | 8351 | f77* | f90* | f95*) |
| | 8352 | lt_prog_compiler_wl='-Qoption ld ';; |
| | 8353 | *) |
| | 8354 | lt_prog_compiler_wl='-Wl,';; |
| | 8355 | esac |
| | 8356 | ;; |
| | 8357 | |
| | 8358 | sunos4*) |
| | 8359 | lt_prog_compiler_wl='-Qoption ld ' |
| | 8360 | lt_prog_compiler_pic='-PIC' |
| | 8361 | lt_prog_compiler_static='-Bstatic' |
| | 8362 | ;; |
| | 8363 | |
| | 8364 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| | 8365 | lt_prog_compiler_wl='-Wl,' |
| | 8366 | lt_prog_compiler_pic='-KPIC' |
| | 8367 | lt_prog_compiler_static='-Bstatic' |
| | 8368 | ;; |
| | 8369 | |
| | 8370 | sysv4*MP*) |
| | 8371 | if test -d /usr/nec ;then |
| | 8372 | lt_prog_compiler_pic='-Kconform_pic' |
| | 8373 | lt_prog_compiler_static='-Bstatic' |
| | 8374 | fi |
| | 8375 | ;; |
| | 8376 | |
| | 8377 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| | 8378 | lt_prog_compiler_wl='-Wl,' |
| | 8379 | lt_prog_compiler_pic='-KPIC' |
| | 8380 | lt_prog_compiler_static='-Bstatic' |
| | 8381 | ;; |
| | 8382 | |
| | 8383 | unicos*) |
| | 8384 | lt_prog_compiler_wl='-Wl,' |
| | 8385 | lt_prog_compiler_can_build_shared=no |
| | 8386 | ;; |
| | 8387 | |
| | 8388 | uts4*) |
| | 8389 | lt_prog_compiler_pic='-pic' |
| | 8390 | lt_prog_compiler_static='-Bstatic' |
| | 8391 | ;; |
| | 8392 | |
| | 8393 | *) |
| | 8394 | lt_prog_compiler_can_build_shared=no |
| | 8395 | ;; |
| | 8396 | esac |
| | 8397 | fi |
| | 8398 | |
| | 8399 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| | 8400 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| | 8401 | |
| | 8402 | # |
| | 8403 | # Check to make sure the PIC flag actually works. |
| | 8404 | # |
| | 8405 | if test -n "$lt_prog_compiler_pic"; then |
| | 8406 | |
| | 8407 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| | 8408 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| | 8409 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| | 8410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 8411 | else |
| | 8412 | lt_prog_compiler_pic_works=no |
| | 8413 | ac_outfile=conftest.$ac_objext |
| | 8414 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 8415 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| | 8416 | # Insert the option either (1) after the last *FLAGS variable, or |
| | 8417 | # (2) before a word containing "conftest.", or (3) at the end. |
| | 8418 | # Note that $ac_compile itself does not contain backslashes and begins |
| | 8419 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | 8420 | # The option is referenced via a variable to avoid confusing sed. |
| | 8421 | lt_compile=`echo "$ac_compile" | $SED \ |
| | 8422 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| | 8423 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | 8424 | -e 's:$: $lt_compiler_flag:'` |
| | 8425 | (eval echo "\"\$as_me:8425: $lt_compile\"" >&5) |
| | 8426 | (eval "$lt_compile" 2>conftest.err) |
| | 8427 | ac_status=$? |
| | 8428 | cat conftest.err >&5 |
| | 8429 | echo "$as_me:8429: \$? = $ac_status" >&5 |
| | 8430 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| | 8431 | # The compiler can only warn and ignore the option if not recognized |
| | 8432 | # So say no if there are warnings other than the usual output. |
| | 8433 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| | 8434 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| | 8435 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| | 8436 | lt_prog_compiler_pic_works=yes |
| | 8437 | fi |
| | 8438 | fi |
| | 8439 | $rm conftest* |
| | 8440 | |
| | 8441 | fi |
| | 8442 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| | 8443 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| | 8444 | |
| | 8445 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| | 8446 | case $lt_prog_compiler_pic in |
| | 8447 | "" | " "*) ;; |
| | 8448 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| | 8449 | esac |
| | 8450 | else |
| | 8451 | lt_prog_compiler_pic= |
| | 8452 | lt_prog_compiler_can_build_shared=no |
| | 8453 | fi |
| | 8454 | |
| | 8455 | fi |
| | 8456 | case $host_os in |
| | 8457 | # For platforms which do not support PIC, -DPIC is meaningless: |
| | 8458 | *djgpp*) |
| | 8459 | lt_prog_compiler_pic= |
| | 8460 | ;; |
| | 8461 | *) |
| | 8462 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| | 8463 | ;; |
| | 8464 | esac |
| | 8465 | |
| | 8466 | # |
| | 8467 | # Check to make sure the static flag actually works. |
| | 8468 | # |
| | 8469 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| | 8470 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| | 8471 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| | 8472 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| | 8473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 8474 | else |
| | 8475 | lt_prog_compiler_static_works=no |
| | 8476 | save_LDFLAGS="$LDFLAGS" |
| | 8477 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| | 8478 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| | 8479 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| | 8480 | # The linker can only warn and ignore the option if not recognized |
| | 8481 | # So say no if there are warnings |
| | 8482 | if test -s conftest.err; then |
| | 8483 | # Append any errors to the config.log. |
| | 8484 | cat conftest.err 1>&5 |
| | 8485 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| | 8486 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| | 8487 | if diff conftest.exp conftest.er2 >/dev/null; then |
| | 8488 | lt_prog_compiler_static_works=yes |
| | 8489 | fi |
| | 8490 | else |
| | 8491 | lt_prog_compiler_static_works=yes |
| | 8492 | fi |
| | 8493 | fi |
| | 8494 | $rm conftest* |
| | 8495 | LDFLAGS="$save_LDFLAGS" |
| | 8496 | |
| | 8497 | fi |
| | 8498 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| | 8499 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| | 8500 | |
| | 8501 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| | 8502 | : |
| | 8503 | else |
| | 8504 | lt_prog_compiler_static= |
| | 8505 | fi |
| | 8506 | |
| | 8507 | |
| | 8508 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| | 8509 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| | 8510 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| | 8511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 8512 | else |
| | 8513 | lt_cv_prog_compiler_c_o=no |
| | 8514 | $rm -r conftest 2>/dev/null |
| | 8515 | mkdir conftest |
| | 8516 | cd conftest |
| | 8517 | mkdir out |
| | 8518 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 8519 | |
| | 8520 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| | 8521 | # Insert the option either (1) after the last *FLAGS variable, or |
| | 8522 | # (2) before a word containing "conftest.", or (3) at the end. |
| | 8523 | # Note that $ac_compile itself does not contain backslashes and begins |
| | 8524 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | 8525 | lt_compile=`echo "$ac_compile" | $SED \ |
| | 8526 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| | 8527 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | 8528 | -e 's:$: $lt_compiler_flag:'` |
| | 8529 | (eval echo "\"\$as_me:8529: $lt_compile\"" >&5) |
| | 8530 | (eval "$lt_compile" 2>out/conftest.err) |
| | 8531 | ac_status=$? |
| | 8532 | cat out/conftest.err >&5 |
| | 8533 | echo "$as_me:8533: \$? = $ac_status" >&5 |
| | 8534 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| | 8535 | then |
| | 8536 | # The compiler can only warn and ignore the option if not recognized |
| | 8537 | # So say no if there are warnings |
| | 8538 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| | 8539 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| | 8540 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| | 8541 | lt_cv_prog_compiler_c_o=yes |
| | 8542 | fi |
| | 8543 | fi |
| | 8544 | chmod u+w . 2>&5 |
| | 8545 | $rm conftest* |
| | 8546 | # SGI C++ compiler will create directory out/ii_files/ for |
| | 8547 | # template instantiation |
| | 8548 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| | 8549 | $rm out/* && rmdir out |
| | 8550 | cd .. |
| | 8551 | rmdir conftest |
| | 8552 | $rm conftest* |
| | 8553 | |
| | 8554 | fi |
| | 8555 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| | 8556 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| | 8557 | |
| | 8558 | |
| | 8559 | hard_links="nottested" |
| | 8560 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| | 8561 | # do not overwrite the value of need_locks provided by the user |
| | 8562 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| | 8563 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| | 8564 | hard_links=yes |
| | 8565 | $rm conftest* |
| | 8566 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| | 8567 | touch conftest.a |
| | 8568 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| | 8569 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| | 8570 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| | 8571 | echo "${ECHO_T}$hard_links" >&6 |
| | 8572 | if test "$hard_links" = no; then |
| | 8573 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| | 8574 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| | 8575 | need_locks=warn |
| | 8576 | fi |
| | 8577 | else |
| | 8578 | need_locks=no |
| | 8579 | fi |
| | 8580 | |
| | 8581 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| | 8582 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| | 8583 | |
| | 8584 | runpath_var= |
| | 8585 | allow_undefined_flag= |
| | 8586 | enable_shared_with_static_runtimes=no |
| | 8587 | archive_cmds= |
| | 8588 | archive_expsym_cmds= |
| | 8589 | old_archive_From_new_cmds= |
| | 8590 | old_archive_from_expsyms_cmds= |
| | 8591 | export_dynamic_flag_spec= |
| | 8592 | whole_archive_flag_spec= |
| | 8593 | thread_safe_flag_spec= |
| | 8594 | hardcode_libdir_flag_spec= |
| | 8595 | hardcode_libdir_flag_spec_ld= |
| | 8596 | hardcode_libdir_separator= |
| | 8597 | hardcode_direct=no |
| | 8598 | hardcode_minus_L=no |
| | 8599 | hardcode_shlibpath_var=unsupported |
| | 8600 | link_all_deplibs=unknown |
| | 8601 | hardcode_automatic=no |
| | 8602 | module_cmds= |
| | 8603 | module_expsym_cmds= |
| | 8604 | always_export_symbols=no |
| | 8605 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| | 8606 | # include_expsyms should be a list of space-separated symbols to be *always* |
| | 8607 | # included in the symbol list |
| | 8608 | include_expsyms= |
| | 8609 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| | 8610 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| | 8611 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| | 8612 | # as well as any symbol that contains `d'. |
| | 8613 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| | 8614 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| | 8615 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| | 8616 | # the symbol is explicitly referenced. Since portable code cannot |
| | 8617 | # rely on this symbol name, it's probably fine to never include it in |
| | 8618 | # preloaded symbol tables. |
| | 8619 | extract_expsyms_cmds= |
| | 8620 | # Just being paranoid about ensuring that cc_basename is set. |
| | 8621 | for cc_temp in $compiler""; do |
| | 8622 | case $cc_temp in |
| | 8623 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| | 8624 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| | 8625 | \-*) ;; |
| | 8626 | *) break;; |
| | 8627 | esac |
| | 8628 | done |
| | 8629 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| | 8630 | |
| | 8631 | case $host_os in |
| | 8632 | cygwin* | mingw* | pw32*) |
| | 8633 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| | 8634 | # When not using gcc, we currently assume that we are using |
| | 8635 | # Microsoft Visual C++. |
| | 8636 | if test "$GCC" != yes; then |
| | 8637 | with_gnu_ld=no |
| | 8638 | fi |
| | 8639 | ;; |
| | 8640 | interix*) |
| | 8641 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| | 8642 | with_gnu_ld=yes |
| | 8643 | ;; |
| | 8644 | openbsd*) |
| | 8645 | with_gnu_ld=no |
| | 8646 | ;; |
| | 8647 | esac |
| | 8648 | |
| | 8649 | ld_shlibs=yes |
| | 8650 | if test "$with_gnu_ld" = yes; then |
| | 8651 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| | 8652 | wlarc='${wl}' |
| | 8653 | |
| | 8654 | # Set some defaults for GNU ld with shared library support. These |
| | 8655 | # are reset later if shared libraries are not supported. Putting them |
| | 8656 | # here allows them to be overridden if necessary. |
| | 8657 | runpath_var=LD_RUN_PATH |
| | 8658 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| | 8659 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| | 8660 | # ancient GNU ld didn't support --whole-archive et. al. |
| | 8661 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| | 8662 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| | 8663 | else |
| | 8664 | whole_archive_flag_spec= |
| | 8665 | fi |
| | 8666 | supports_anon_versioning=no |
| | 8667 | case `$LD -v 2>/dev/null` in |
| | 8668 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| | 8669 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| | 8670 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| | 8671 | *\ 2.11.*) ;; # other 2.11 versions |
| | 8672 | *) supports_anon_versioning=yes ;; |
| | 8673 | esac |
| | 8674 | |
| | 8675 | # See if GNU ld supports shared libraries. |
| | 8676 | case $host_os in |
| | 8677 | aix3* | aix4* | aix5*) |
| | 8678 | # On AIX/PPC, the GNU linker is very broken |
| | 8679 | if test "$host_cpu" != ia64; then |
| | 8680 | ld_shlibs=no |
| | 8681 | cat <<EOF 1>&2 |
| | 8682 | |
| | 8683 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| | 8684 | *** to be unable to reliably create shared libraries on AIX. |
| | 8685 | *** Therefore, libtool is disabling shared libraries support. If you |
| | 8686 | *** really care for shared libraries, you may want to modify your PATH |
| | 8687 | *** so that a non-GNU linker is found, and then restart. |
| | 8688 | |
| | 8689 | EOF |
| | 8690 | fi |
| | 8691 | ;; |
| | 8692 | |
| | 8693 | amigaos*) |
| | 8694 | 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)' |
| | 8695 | hardcode_libdir_flag_spec='-L$libdir' |
| | 8696 | hardcode_minus_L=yes |
| | 8697 | |
| | 8698 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| | 8699 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| | 8700 | # to version 4, is to share data among multiple programs linked |
| | 8701 | # with the same dynamic library. Since this doesn't match the |
| | 8702 | # behavior of shared libraries on other platforms, we can't use |
| | 8703 | # them. |
| | 8704 | ld_shlibs=no |
| | 8705 | ;; |
| | 8706 | |
| | 8707 | beos*) |
| | 8708 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 8709 | allow_undefined_flag=unsupported |
| | 8710 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| | 8711 | # support --undefined. This deserves some investigation. FIXME |
| | 8712 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 8713 | else |
| | 8714 | ld_shlibs=no |
| | 8715 | fi |
| | 8716 | ;; |
| | 8717 | |
| | 8718 | cygwin* | mingw* | pw32*) |
| | 8719 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| | 8720 | # as there is no search path for DLLs. |
| | 8721 | hardcode_libdir_flag_spec='-L$libdir' |
| | 8722 | allow_undefined_flag=unsupported |
| | 8723 | always_export_symbols=no |
| | 8724 | enable_shared_with_static_runtimes=yes |
| | 8725 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| | 8726 | |
| | 8727 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| | 8728 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| | 8729 | # If the export-symbols file already is a .def file (1st line |
| | 8730 | # is EXPORTS), use it as is; otherwise, prepend... |
| | 8731 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| | 8732 | cp $export_symbols $output_objdir/$soname.def; |
| | 8733 | else |
| | 8734 | echo EXPORTS > $output_objdir/$soname.def; |
| | 8735 | cat $export_symbols >> $output_objdir/$soname.def; |
| | 8736 | fi~ |
| | 8737 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| | 8738 | else |
| | 8739 | ld_shlibs=no |
| | 8740 | fi |
| | 8741 | ;; |
| | 8742 | |
| | 8743 | interix3*) |
| | 8744 | hardcode_direct=no |
| | 8745 | hardcode_shlibpath_var=no |
| | 8746 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| | 8747 | export_dynamic_flag_spec='${wl}-E' |
| | 8748 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| | 8749 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| | 8750 | # default) and relocated if they conflict, which is a slow very memory |
| | 8751 | # consuming and fragmenting process. To avoid this, we pick a random, |
| | 8752 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| | 8753 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| | 8754 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| | 8755 | 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' |
| | 8756 | ;; |
| | 8757 | |
| | 8758 | linux*) |
| | 8759 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 8760 | tmp_addflag= |
| | 8761 | case $cc_basename,$host_cpu in |
| | 8762 | pgcc*) # Portland Group C compiler |
| | 8763 | 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' |
| | 8764 | tmp_addflag=' $pic_flag' |
| | 8765 | ;; |
| | 8766 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| | 8767 | 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' |
| | 8768 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| | 8769 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| | 8770 | tmp_addflag=' -i_dynamic' ;; |
| | 8771 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| | 8772 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| | 8773 | ifc* | ifort*) # Intel Fortran compiler |
| | 8774 | tmp_addflag=' -nofor_main' ;; |
| | 8775 | esac |
| | 8776 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 8777 | |
| | 8778 | if test $supports_anon_versioning = yes; then |
| | 8779 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| | 8780 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| | 8781 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| | 8782 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| | 8783 | fi |
| | 8784 | link_all_deplibs=no |
| | 8785 | else |
| | 8786 | ld_shlibs=no |
| | 8787 | fi |
| | 8788 | ;; |
| | 8789 | |
| | 8790 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| | 8791 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| | 8792 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| | 8793 | wlarc= |
| | 8794 | else |
| | 8795 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 8796 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| | 8797 | fi |
| | 8798 | ;; |
| | 8799 | |
| | 8800 | solaris*) |
| | 8801 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| | 8802 | ld_shlibs=no |
| | 8803 | cat <<EOF 1>&2 |
| | 8804 | |
| | 8805 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| | 8806 | *** create shared libraries on Solaris systems. Therefore, libtool |
| | 8807 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| | 8808 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| | 8809 | *** your PATH or compiler configuration so that the native linker is |
| | 8810 | *** used, and then restart. |
| | 8811 | |
| | 8812 | EOF |
| | 8813 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 8814 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 8815 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| | 8816 | else |
| | 8817 | ld_shlibs=no |
| | 8818 | fi |
| | 8819 | ;; |
| | 8820 | |
| | 8821 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| | 8822 | case `$LD -v 2>&1` in |
| | 8823 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| | 8824 | ld_shlibs=no |
| | 8825 | cat <<_LT_EOF 1>&2 |
| | 8826 | |
| | 8827 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| | 8828 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| | 8829 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| | 8830 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| | 8831 | *** your PATH or compiler configuration so that the native linker is |
| | 8832 | *** used, and then restart. |
| | 8833 | |
| | 8834 | _LT_EOF |
| | 8835 | ;; |
| | 8836 | *) |
| | 8837 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 8838 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| | 8839 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| | 8840 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| | 8841 | else |
| | 8842 | ld_shlibs=no |
| | 8843 | fi |
| | 8844 | ;; |
| | 8845 | esac |
| | 8846 | ;; |
| | 8847 | |
| | 8848 | sunos4*) |
| | 8849 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| | 8850 | wlarc= |
| | 8851 | hardcode_direct=yes |
| | 8852 | hardcode_shlibpath_var=no |
| | 8853 | ;; |
| | 8854 | |
| | 8855 | *) |
| | 8856 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 8857 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 8858 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| | 8859 | else |
| | 8860 | ld_shlibs=no |
| | 8861 | fi |
| | 8862 | ;; |
| | 8863 | esac |
| | 8864 | |
| | 8865 | if test "$ld_shlibs" = no; then |
| | 8866 | runpath_var= |
| | 8867 | hardcode_libdir_flag_spec= |
| | 8868 | export_dynamic_flag_spec= |
| | 8869 | whole_archive_flag_spec= |
| | 8870 | fi |
| | 8871 | else |
| | 8872 | # PORTME fill in a description of your system's linker (not GNU ld) |
| | 8873 | case $host_os in |
| | 8874 | aix3*) |
| | 8875 | allow_undefined_flag=unsupported |
| | 8876 | always_export_symbols=yes |
| | 8877 | 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' |
| | 8878 | # Note: this linker hardcodes the directories in LIBPATH if there |
| | 8879 | # are no directories specified by -L. |
| | 8880 | hardcode_minus_L=yes |
| | 8881 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| | 8882 | # Neither direct hardcoding nor static linking is supported with a |
| | 8883 | # broken collect2. |
| | 8884 | hardcode_direct=unsupported |
| | 8885 | fi |
| | 8886 | ;; |
| | 8887 | |
| | 8888 | aix4* | aix5*) |
| | 8889 | if test "$host_cpu" = ia64; then |
| | 8890 | # On IA64, the linker does run time linking by default, so we don't |
| | 8891 | # have to do anything special. |
| | 8892 | aix_use_runtimelinking=no |
| | 8893 | exp_sym_flag='-Bexport' |
| | 8894 | no_entry_flag="" |
| | 8895 | else |
| | 8896 | # If we're using GNU nm, then we don't want the "-C" option. |
| | 8897 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| | 8898 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| | 8899 | 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' |
| | 8900 | else |
| | 8901 | 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' |
| | 8902 | fi |
| | 8903 | aix_use_runtimelinking=no |
| | 8904 | |
| | 8905 | # Test if we are trying to use run time linking or normal |
| | 8906 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| | 8907 | # need to do runtime linking. |
| | 8908 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| | 8909 | for ld_flag in $LDFLAGS; do |
| | 8910 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| | 8911 | aix_use_runtimelinking=yes |
| | 8912 | break |
| | 8913 | fi |
| | 8914 | done |
| | 8915 | ;; |
| | 8916 | esac |
| | 8917 | |
| | 8918 | exp_sym_flag='-bexport' |
| | 8919 | no_entry_flag='-bnoentry' |
| | 8920 | fi |
| | 8921 | |
| | 8922 | # When large executables or shared objects are built, AIX ld can |
| | 8923 | # have problems creating the table of contents. If linking a library |
| | 8924 | # or program results in "error TOC overflow" add -mminimal-toc to |
| | 8925 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| | 8926 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| | 8927 | |
| | 8928 | archive_cmds='' |
| | 8929 | hardcode_direct=yes |
| | 8930 | hardcode_libdir_separator=':' |
| | 8931 | link_all_deplibs=yes |
| | 8932 | |
| | 8933 | if test "$GCC" = yes; then |
| | 8934 | case $host_os in aix4.[012]|aix4.[012].*) |
| | 8935 | # We only want to do this on AIX 4.2 and lower, the check |
| | 8936 | # below for broken collect2 doesn't work under 4.3+ |
| | 8937 | collect2name=`${CC} -print-prog-name=collect2` |
| | 8938 | if test -f "$collect2name" && \ |
| | 8939 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| | 8940 | then |
| | 8941 | # We have reworked collect2 |
| | 8942 | hardcode_direct=yes |
| | 8943 | else |
| | 8944 | # We have old collect2 |
| | 8945 | hardcode_direct=unsupported |
| | 8946 | # It fails to find uninstalled libraries when the uninstalled |
| | 8947 | # path is not listed in the libpath. Setting hardcode_minus_L |
| | 8948 | # to unsupported forces relinking |
| | 8949 | hardcode_minus_L=yes |
| | 8950 | hardcode_libdir_flag_spec='-L$libdir' |
| | 8951 | hardcode_libdir_separator= |
| | 8952 | fi |
| | 8953 | ;; |
| | 8954 | esac |
| | 8955 | shared_flag='-shared' |
| | 8956 | if test "$aix_use_runtimelinking" = yes; then |
| | 8957 | shared_flag="$shared_flag "'${wl}-G' |
| | 8958 | fi |
| | 8959 | else |
| | 8960 | # not using gcc |
| | 8961 | if test "$host_cpu" = ia64; then |
| | 8962 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| | 8963 | # chokes on -Wl,-G. The following line is correct: |
| | 8964 | shared_flag='-G' |
| | 8965 | else |
| | 8966 | if test "$aix_use_runtimelinking" = yes; then |
| | 8967 | shared_flag='${wl}-G' |
| | 8968 | else |
| | 8969 | shared_flag='${wl}-bM:SRE' |
| | 8970 | fi |
| | 8971 | fi |
| | 8972 | fi |
| | 8973 | |
| | 8974 | # It seems that -bexpall does not export symbols beginning with |
| | 8975 | # underscore (_), so it is better to generate a list of symbols to export. |
| | 8976 | always_export_symbols=yes |
| | 8977 | if test "$aix_use_runtimelinking" = yes; then |
| | 8978 | # Warning - without using the other runtime loading flags (-brtl), |
| | 8979 | # -berok will link without error, but may produce a broken library. |
| | 8980 | allow_undefined_flag='-berok' |
| | 8981 | # Determine the default libpath from the value encoded in an empty executable. |
| | 8982 | cat >conftest.$ac_ext <<_ACEOF |
| | 8983 | /* confdefs.h. */ |
| | 8984 | _ACEOF |
| | 8985 | cat confdefs.h >>conftest.$ac_ext |
| | 8986 | cat >>conftest.$ac_ext <<_ACEOF |
| | 8987 | /* end confdefs.h. */ |
| | 8988 | |
| | 8989 | int |
| | 8990 | main () |
| | 8991 | { |
| | 8992 | |
| | 8993 | ; |
| | 8994 | return 0; |
| | 8995 | } |
| | 8996 | _ACEOF |
| | 8997 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 8998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 8999 | (eval $ac_link) 2>conftest.er1 |
| | 9000 | ac_status=$? |
| | 9001 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 9002 | rm -f conftest.er1 |
| | 9003 | cat conftest.err >&5 |
| | 9004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 9005 | (exit $ac_status); } && |
| | 9006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | 9007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 9008 | (eval $ac_try) 2>&5 |
| | 9009 | ac_status=$? |
| | 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 9011 | (exit $ac_status); }; } && |
| | 9012 | { ac_try='test -s conftest$ac_exeext' |
| | 9013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 9014 | (eval $ac_try) 2>&5 |
| | 9015 | ac_status=$? |
| | 9016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 9017 | (exit $ac_status); }; }; then |
| | 9018 | |
| | 9019 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| | 9020 | }'` |
| | 9021 | # Check for a 64-bit object if we didn't find anything. |
| | 9022 | if 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; } |
| | 9023 | }'`; fi |
| | 9024 | else |
| | 9025 | echo "$as_me: failed program was:" >&5 |
| | 9026 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 9027 | |
| | 9028 | fi |
| | 9029 | rm -f conftest.err conftest.$ac_objext \ |
| | 9030 | conftest$ac_exeext conftest.$ac_ext |
| | 9031 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| | 9032 | |
| | 9033 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| | 9034 | 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" |
| | 9035 | else |
| | 9036 | if test "$host_cpu" = ia64; then |
| | 9037 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| | 9038 | allow_undefined_flag="-z nodefs" |
| | 9039 | 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" |
| | 9040 | else |
| | 9041 | # Determine the default libpath from the value encoded in an empty executable. |
| | 9042 | cat >conftest.$ac_ext <<_ACEOF |
| | 9043 | /* confdefs.h. */ |
| | 9044 | _ACEOF |
| | 9045 | cat confdefs.h >>conftest.$ac_ext |
| | 9046 | cat >>conftest.$ac_ext <<_ACEOF |
| | 9047 | /* end confdefs.h. */ |
| | 9048 | |
| | 9049 | int |
| | 9050 | main () |
| | 9051 | { |
| | 9052 | |
| | 9053 | ; |
| | 9054 | return 0; |
| | 9055 | } |
| | 9056 | _ACEOF |
| | 9057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 9058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 9059 | (eval $ac_link) 2>conftest.er1 |
| | 9060 | ac_status=$? |
| | 9061 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 9062 | rm -f conftest.er1 |
| | 9063 | cat conftest.err >&5 |
| | 9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 9065 | (exit $ac_status); } && |
| | 9066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | 9067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 9068 | (eval $ac_try) 2>&5 |
| | 9069 | ac_status=$? |
| | 9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 9071 | (exit $ac_status); }; } && |
| | 9072 | { ac_try='test -s conftest$ac_exeext' |
| | 9073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 9074 | (eval $ac_try) 2>&5 |
| | 9075 | ac_status=$? |
| | 9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 9077 | (exit $ac_status); }; }; then |
| | 9078 | |
| | 9079 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| | 9080 | }'` |
| | 9081 | # Check for a 64-bit object if we didn't find anything. |
| | 9082 | if 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; } |
| | 9083 | }'`; fi |
| | 9084 | else |
| | 9085 | echo "$as_me: failed program was:" >&5 |
| | 9086 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 9087 | |
| | 9088 | fi |
| | 9089 | rm -f conftest.err conftest.$ac_objext \ |
| | 9090 | conftest$ac_exeext conftest.$ac_ext |
| | 9091 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| | 9092 | |
| | 9093 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| | 9094 | # Warning - without using the other run time loading flags, |
| | 9095 | # -berok will link without error, but may produce a broken library. |
| | 9096 | no_undefined_flag=' ${wl}-bernotok' |
| | 9097 | allow_undefined_flag=' ${wl}-berok' |
| | 9098 | # Exported symbols can be pulled into shared objects from archives |
| | 9099 | whole_archive_flag_spec='$convenience' |
| | 9100 | archive_cmds_need_lc=yes |
| | 9101 | # This is similar to how AIX traditionally builds its shared libraries. |
| | 9102 | 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' |
| | 9103 | fi |
| | 9104 | fi |
| | 9105 | ;; |
| | 9106 | |
| | 9107 | amigaos*) |
| | 9108 | 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)' |
| | 9109 | hardcode_libdir_flag_spec='-L$libdir' |
| | 9110 | hardcode_minus_L=yes |
| | 9111 | # see comment about different semantics on the GNU ld section |
| | 9112 | ld_shlibs=no |
| | 9113 | ;; |
| | 9114 | |
| | 9115 | bsdi[45]*) |
| | 9116 | export_dynamic_flag_spec=-rdynamic |
| | 9117 | ;; |
| | 9118 | |
| | 9119 | cygwin* | mingw* | pw32*) |
| | 9120 | # When not using gcc, we currently assume that we are using |
| | 9121 | # Microsoft Visual C++. |
| | 9122 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| | 9123 | # no search path for DLLs. |
| | 9124 | hardcode_libdir_flag_spec=' ' |
| | 9125 | allow_undefined_flag=unsupported |
| | 9126 | # Tell ltmain to make .lib files, not .a files. |
| | 9127 | libext=lib |
| | 9128 | # Tell ltmain to make .dll files, not .so files. |
| | 9129 | shrext_cmds=".dll" |
| | 9130 | # FIXME: Setting linknames here is a bad hack. |
| | 9131 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| | 9132 | # The linker will automatically build a .lib file if we build a DLL. |
| | 9133 | old_archive_From_new_cmds='true' |
| | 9134 | # FIXME: Should let the user specify the lib program. |
| | 9135 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| | 9136 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| | 9137 | enable_shared_with_static_runtimes=yes |
| | 9138 | ;; |
| | 9139 | |
| | 9140 | darwin* | rhapsody*) |
| | 9141 | case $host_os in |
| | 9142 | rhapsody* | darwin1.[012]) |
| | 9143 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| | 9144 | ;; |
| | 9145 | *) # Darwin 1.3 on |
| | 9146 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| | 9147 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| | 9148 | else |
| | 9149 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| | 9150 | 10.[012]) |
| | 9151 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| | 9152 | ;; |
| | 9153 | 10.*) |
| | 9154 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| | 9155 | ;; |
| | 9156 | esac |
| | 9157 | fi |
| | 9158 | ;; |
| | 9159 | esac |
| | 9160 | archive_cmds_need_lc=no |
| | 9161 | hardcode_direct=no |
| | 9162 | hardcode_automatic=yes |
| | 9163 | hardcode_shlibpath_var=unsupported |
| | 9164 | whole_archive_flag_spec='' |
| | 9165 | link_all_deplibs=yes |
| | 9166 | if test "$GCC" = yes ; then |
| | 9167 | output_verbose_link_cmd='echo' |
| | 9168 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| | 9169 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | 9170 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| | 9171 | 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}' |
| | 9172 | 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}' |
| | 9173 | else |
| | 9174 | case $cc_basename in |
| | 9175 | xlc*) |
| | 9176 | output_verbose_link_cmd='echo' |
| | 9177 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| | 9178 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | 9179 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| | 9180 | 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}' |
| | 9181 | 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}' |
| | 9182 | ;; |
| | 9183 | *) |
| | 9184 | ld_shlibs=no |
| | 9185 | ;; |
| | 9186 | esac |
| | 9187 | fi |
| | 9188 | ;; |
| | 9189 | |
| | 9190 | dgux*) |
| | 9191 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 9192 | hardcode_libdir_flag_spec='-L$libdir' |
| | 9193 | hardcode_shlibpath_var=no |
| | 9194 | ;; |
| | 9195 | |
| | 9196 | freebsd1*) |
| | 9197 | ld_shlibs=no |
| | 9198 | ;; |
| | 9199 | |
| | 9200 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| | 9201 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| | 9202 | # does not break anything, and helps significantly (at the cost of a little |
| | 9203 | # extra space). |
| | 9204 | freebsd2.2*) |
| | 9205 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| | 9206 | hardcode_libdir_flag_spec='-R$libdir' |
| | 9207 | hardcode_direct=yes |
| | 9208 | hardcode_shlibpath_var=no |
| | 9209 | ;; |
| | 9210 | |
| | 9211 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| | 9212 | freebsd2*) |
| | 9213 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| | 9214 | hardcode_direct=yes |
| | 9215 | hardcode_minus_L=yes |
| | 9216 | hardcode_shlibpath_var=no |
| | 9217 | ;; |
| | 9218 | |
| | 9219 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| | 9220 | freebsd* | dragonfly*) |
| | 9221 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| | 9222 | hardcode_libdir_flag_spec='-R$libdir' |
| | 9223 | hardcode_direct=yes |
| | 9224 | hardcode_shlibpath_var=no |
| | 9225 | ;; |
| | 9226 | |
| | 9227 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. |
| | 9228 | kfreebsd*-gnu) |
| | 9229 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| | 9230 | hardcode_libdir_flag_spec='-R$libdir' |
| | 9231 | hardcode_direct=yes |
| | 9232 | hardcode_shlibpath_var=no |
| | 9233 | link_all_deplibs=no |
| | 9234 | ;; |
| | 9235 | |
| | 9236 | hpux9*) |
| | 9237 | if test "$GCC" = yes; then |
| | 9238 | 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' |
| | 9239 | else |
| | 9240 | 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' |
| | 9241 | fi |
| | 9242 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| | 9243 | hardcode_libdir_separator=: |
| | 9244 | hardcode_direct=yes |
| | 9245 | |
| | 9246 | # hardcode_minus_L: Not really in the search PATH, |
| | 9247 | # but as the default location of the library. |
| | 9248 | hardcode_minus_L=yes |
| | 9249 | export_dynamic_flag_spec='${wl}-E' |
| | 9250 | ;; |
| | 9251 | |
| | 9252 | hpux10*) |
| | 9253 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| | 9254 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| | 9255 | else |
| | 9256 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| | 9257 | fi |
| | 9258 | if test "$with_gnu_ld" = no; then |
| | 9259 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| | 9260 | hardcode_libdir_separator=: |
| | 9261 | |
| | 9262 | hardcode_direct=yes |
| | 9263 | export_dynamic_flag_spec='${wl}-E' |
| | 9264 | |
| | 9265 | # hardcode_minus_L: Not really in the search PATH, |
| | 9266 | # but as the default location of the library. |
| | 9267 | hardcode_minus_L=yes |
| | 9268 | fi |
| | 9269 | ;; |
| | 9270 | |
| | 9271 | hpux11*) |
| | 9272 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| | 9273 | case $host_cpu in |
| | 9274 | hppa*64*) |
| | 9275 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9276 | ;; |
| | 9277 | ia64*) |
| | 9278 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| | 9279 | ;; |
| | 9280 | *) |
| | 9281 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| | 9282 | ;; |
| | 9283 | esac |
| | 9284 | else |
| | 9285 | case $host_cpu in |
| | 9286 | hppa*64*) |
| | 9287 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9288 | ;; |
| | 9289 | ia64*) |
| | 9290 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| | 9291 | ;; |
| | 9292 | *) |
| | 9293 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| | 9294 | ;; |
| | 9295 | esac |
| | 9296 | fi |
| | 9297 | if test "$with_gnu_ld" = no; then |
| | 9298 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| | 9299 | hardcode_libdir_separator=: |
| | 9300 | |
| | 9301 | case $host_cpu in |
| | 9302 | hppa*64*|ia64*) |
| | 9303 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| | 9304 | hardcode_direct=no |
| | 9305 | hardcode_shlibpath_var=no |
| | 9306 | ;; |
| | 9307 | *) |
| | 9308 | hardcode_direct=yes |
| | 9309 | export_dynamic_flag_spec='${wl}-E' |
| | 9310 | |
| | 9311 | # hardcode_minus_L: Not really in the search PATH, |
| | 9312 | # but as the default location of the library. |
| | 9313 | hardcode_minus_L=yes |
| | 9314 | ;; |
| | 9315 | esac |
| | 9316 | fi |
| | 9317 | ;; |
| | 9318 | |
| | 9319 | irix5* | irix6* | nonstopux*) |
| | 9320 | if test "$GCC" = yes; then |
| | 9321 | 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' |
| | 9322 | else |
| | 9323 | 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' |
| | 9324 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| | 9325 | fi |
| | 9326 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| | 9327 | hardcode_libdir_separator=: |
| | 9328 | link_all_deplibs=yes |
| | 9329 | ;; |
| | 9330 | |
| | 9331 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| | 9332 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| | 9333 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| | 9334 | else |
| | 9335 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| | 9336 | fi |
| | 9337 | hardcode_libdir_flag_spec='-R$libdir' |
| | 9338 | hardcode_direct=yes |
| | 9339 | hardcode_shlibpath_var=no |
| | 9340 | ;; |
| | 9341 | |
| | 9342 | newsos6) |
| | 9343 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 9344 | hardcode_direct=yes |
| | 9345 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| | 9346 | hardcode_libdir_separator=: |
| | 9347 | hardcode_shlibpath_var=no |
| | 9348 | ;; |
| | 9349 | |
| | 9350 | openbsd*) |
| | 9351 | hardcode_direct=yes |
| | 9352 | hardcode_shlibpath_var=no |
| | 9353 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| | 9354 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| | 9355 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| | 9356 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| | 9357 | export_dynamic_flag_spec='${wl}-E' |
| | 9358 | else |
| | 9359 | case $host_os in |
| | 9360 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| | 9361 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| | 9362 | hardcode_libdir_flag_spec='-R$libdir' |
| | 9363 | ;; |
| | 9364 | *) |
| | 9365 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| | 9366 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| | 9367 | ;; |
| | 9368 | esac |
| | 9369 | fi |
| | 9370 | ;; |
| | 9371 | |
| | 9372 | os2*) |
| | 9373 | hardcode_libdir_flag_spec='-L$libdir' |
| | 9374 | hardcode_minus_L=yes |
| | 9375 | allow_undefined_flag=unsupported |
| | 9376 | 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' |
| | 9377 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| | 9378 | ;; |
| | 9379 | |
| | 9380 | osf3*) |
| | 9381 | if test "$GCC" = yes; then |
| | 9382 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| | 9383 | 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' |
| | 9384 | else |
| | 9385 | allow_undefined_flag=' -expect_unresolved \*' |
| | 9386 | 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' |
| | 9387 | fi |
| | 9388 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| | 9389 | hardcode_libdir_separator=: |
| | 9390 | ;; |
| | 9391 | |
| | 9392 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| | 9393 | if test "$GCC" = yes; then |
| | 9394 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| | 9395 | 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' |
| | 9396 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| | 9397 | else |
| | 9398 | allow_undefined_flag=' -expect_unresolved \*' |
| | 9399 | 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' |
| | 9400 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| | 9401 | $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' |
| | 9402 | |
| | 9403 | # Both c and cxx compiler support -rpath directly |
| | 9404 | hardcode_libdir_flag_spec='-rpath $libdir' |
| | 9405 | fi |
| | 9406 | hardcode_libdir_separator=: |
| | 9407 | ;; |
| | 9408 | |
| | 9409 | solaris*) |
| | 9410 | no_undefined_flag=' -z text' |
| | 9411 | if test "$GCC" = yes; then |
| | 9412 | wlarc='${wl}' |
| | 9413 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9414 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| | 9415 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| | 9416 | else |
| | 9417 | wlarc='' |
| | 9418 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 9419 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| | 9420 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| | 9421 | fi |
| | 9422 | hardcode_libdir_flag_spec='-R$libdir' |
| | 9423 | hardcode_shlibpath_var=no |
| | 9424 | case $host_os in |
| | 9425 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| | 9426 | *) |
| | 9427 | # The compiler driver will combine linker options so we |
| | 9428 | # cannot just pass the convience library names through |
| | 9429 | # without $wl, iff we do not link with $LD. |
| | 9430 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| | 9431 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| | 9432 | case $wlarc in |
| | 9433 | '') |
| | 9434 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| | 9435 | *) |
| | 9436 | 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' ;; |
| | 9437 | esac ;; |
| | 9438 | esac |
| | 9439 | link_all_deplibs=yes |
| | 9440 | ;; |
| | 9441 | |
| | 9442 | sunos4*) |
| | 9443 | if test "x$host_vendor" = xsequent; then |
| | 9444 | # Use $CC to link under sequent, because it throws in some extra .o |
| | 9445 | # files that make .init and .fini sections work. |
| | 9446 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9447 | else |
| | 9448 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| | 9449 | fi |
| | 9450 | hardcode_libdir_flag_spec='-L$libdir' |
| | 9451 | hardcode_direct=yes |
| | 9452 | hardcode_minus_L=yes |
| | 9453 | hardcode_shlibpath_var=no |
| | 9454 | ;; |
| | 9455 | |
| | 9456 | sysv4) |
| | 9457 | case $host_vendor in |
| | 9458 | sni) |
| | 9459 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 9460 | hardcode_direct=yes # is this really true??? |
| | 9461 | ;; |
| | 9462 | siemens) |
| | 9463 | ## LD is ld it makes a PLAMLIB |
| | 9464 | ## CC just makes a GrossModule. |
| | 9465 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| | 9466 | reload_cmds='$CC -r -o $output$reload_objs' |
| | 9467 | hardcode_direct=no |
| | 9468 | ;; |
| | 9469 | motorola) |
| | 9470 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 9471 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| | 9472 | ;; |
| | 9473 | esac |
| | 9474 | runpath_var='LD_RUN_PATH' |
| | 9475 | hardcode_shlibpath_var=no |
| | 9476 | ;; |
| | 9477 | |
| | 9478 | sysv4.3*) |
| | 9479 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 9480 | hardcode_shlibpath_var=no |
| | 9481 | export_dynamic_flag_spec='-Bexport' |
| | 9482 | ;; |
| | 9483 | |
| | 9484 | sysv4*MP*) |
| | 9485 | if test -d /usr/nec; then |
| | 9486 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 9487 | hardcode_shlibpath_var=no |
| | 9488 | runpath_var=LD_RUN_PATH |
| | 9489 | hardcode_runpath_var=yes |
| | 9490 | ld_shlibs=yes |
| | 9491 | fi |
| | 9492 | ;; |
| | 9493 | |
| | 9494 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| | 9495 | no_undefined_flag='${wl}-z,text' |
| | 9496 | archive_cmds_need_lc=no |
| | 9497 | hardcode_shlibpath_var=no |
| | 9498 | runpath_var='LD_RUN_PATH' |
| | 9499 | |
| | 9500 | if test "$GCC" = yes; then |
| | 9501 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9502 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9503 | else |
| | 9504 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9505 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9506 | fi |
| | 9507 | ;; |
| | 9508 | |
| | 9509 | sysv5* | sco3.2v5* | sco5v6*) |
| | 9510 | # Note: We can NOT use -z defs as we might desire, because we do not |
| | 9511 | # link with -lc, and that would cause any symbols used from libc to |
| | 9512 | # always be unresolved, which means just about no library would |
| | 9513 | # ever link correctly. If we're not using GNU ld we use -z text |
| | 9514 | # though, which does catch some bad symbols but isn't as heavy-handed |
| | 9515 | # as -z defs. |
| | 9516 | no_undefined_flag='${wl}-z,text' |
| | 9517 | allow_undefined_flag='${wl}-z,nodefs' |
| | 9518 | archive_cmds_need_lc=no |
| | 9519 | hardcode_shlibpath_var=no |
| | 9520 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| | 9521 | hardcode_libdir_separator=':' |
| | 9522 | link_all_deplibs=yes |
| | 9523 | export_dynamic_flag_spec='${wl}-Bexport' |
| | 9524 | runpath_var='LD_RUN_PATH' |
| | 9525 | |
| | 9526 | if test "$GCC" = yes; then |
| | 9527 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9528 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9529 | else |
| | 9530 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9531 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 9532 | fi |
| | 9533 | ;; |
| | 9534 | |
| | 9535 | uts4*) |
| | 9536 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 9537 | hardcode_libdir_flag_spec='-L$libdir' |
| | 9538 | hardcode_shlibpath_var=no |
| | 9539 | ;; |
| | 9540 | |
| | 9541 | *) |
| | 9542 | ld_shlibs=no |
| | 9543 | ;; |
| | 9544 | esac |
| | 9545 | fi |
| | 9546 | |
| | 9547 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| | 9548 | echo "${ECHO_T}$ld_shlibs" >&6 |
| | 9549 | test "$ld_shlibs" = no && can_build_shared=no |
| | 9550 | |
| | 9551 | # |
| | 9552 | # Do we need to explicitly link libc? |
| | 9553 | # |
| | 9554 | case "x$archive_cmds_need_lc" in |
| | 9555 | x|xyes) |
| | 9556 | # Assume -lc should be added |
| | 9557 | archive_cmds_need_lc=yes |
| | 9558 | |
| | 9559 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| | 9560 | case $archive_cmds in |
| | 9561 | *'~'*) |
| | 9562 | # FIXME: we may have to deal with multi-command sequences. |
| | 9563 | ;; |
| | 9564 | '$CC '*) |
| | 9565 | # Test whether the compiler implicitly links with -lc since on some |
| | 9566 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| | 9567 | # to ld, don't add -lc before -lgcc. |
| | 9568 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| | 9569 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| | 9570 | $rm conftest* |
| | 9571 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 9572 | |
| | 9573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 9574 | (eval $ac_compile) 2>&5 |
| | 9575 | ac_status=$? |
| | 9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 9577 | (exit $ac_status); } 2>conftest.err; then |
| | 9578 | soname=conftest |
| | 9579 | lib=conftest |
| | 9580 | libobjs=conftest.$ac_objext |
| | 9581 | deplibs= |
| | 9582 | wl=$lt_prog_compiler_wl |
| | 9583 | pic_flag=$lt_prog_compiler_pic |
| | 9584 | compiler_flags=-v |
| | 9585 | linker_flags=-v |
| | 9586 | verstring= |
| | 9587 | output_objdir=. |
| | 9588 | libname=conftest |
| | 9589 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| | 9590 | allow_undefined_flag= |
| | 9591 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| | 9592 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| | 9593 | ac_status=$? |
| | 9594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 9595 | (exit $ac_status); } |
| | 9596 | then |
| | 9597 | archive_cmds_need_lc=no |
| | 9598 | else |
| | 9599 | archive_cmds_need_lc=yes |
| | 9600 | fi |
| | 9601 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| | 9602 | else |
| | 9603 | cat conftest.err 1>&5 |
| | 9604 | fi |
| | 9605 | $rm conftest* |
| | 9606 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| | 9607 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| | 9608 | ;; |
| | 9609 | esac |
| | 9610 | fi |
| | 9611 | ;; |
| | 9612 | esac |
| | 9613 | |
| | 9614 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| | 9615 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| | 9616 | library_names_spec= |
| | 9617 | libname_spec='lib$name' |
| | 9618 | soname_spec= |
| | 9619 | shrext_cmds=".so" |
| | 9620 | postinstall_cmds= |
| | 9621 | postuninstall_cmds= |
| | 9622 | finish_cmds= |
| | 9623 | finish_eval= |
| | 9624 | shlibpath_var= |
| | 9625 | shlibpath_overrides_runpath=unknown |
| | 9626 | version_type=none |
| | 9627 | dynamic_linker="$host_os ld.so" |
| | 9628 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| | 9629 | if test "$GCC" = yes; then |
| | 9630 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| | 9631 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| | 9632 | # if the path contains ";" then we assume it to be the separator |
| | 9633 | # otherwise default to the standard path separator (i.e. ":") - it is |
| | 9634 | # assumed that no part of a normal pathname contains ";" but that should |
| | 9635 | # okay in the real world where ";" in dirpaths is itself problematic. |
| | 9636 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| | 9637 | else |
| | 9638 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| | 9639 | fi |
| | 9640 | else |
| | 9641 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| | 9642 | fi |
| | 9643 | need_lib_prefix=unknown |
| | 9644 | hardcode_into_libs=no |
| | 9645 | |
| | 9646 | # when you set need_version to no, make sure it does not cause -set_version |
| | 9647 | # flags to be left without arguments |
| | 9648 | need_version=unknown |
| | 9649 | |
| | 9650 | case $host_os in |
| | 9651 | aix3*) |
| | 9652 | version_type=linux |
| | 9653 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| | 9654 | shlibpath_var=LIBPATH |
| | 9655 | |
| | 9656 | # AIX 3 has no versioning support, so we append a major version to the name. |
| | 9657 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9658 | ;; |
| | 9659 | |
| | 9660 | aix4* | aix5*) |
| | 9661 | version_type=linux |
| | 9662 | need_lib_prefix=no |
| | 9663 | need_version=no |
| | 9664 | hardcode_into_libs=yes |
| | 9665 | if test "$host_cpu" = ia64; then |
| | 9666 | # AIX 5 supports IA64 |
| | 9667 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| | 9668 | shlibpath_var=LD_LIBRARY_PATH |
| | 9669 | else |
| | 9670 | # With GCC up to 2.95.x, collect2 would create an import file |
| | 9671 | # for dependence libraries. The import file would start with |
| | 9672 | # the line `#! .'. This would cause the generated library to |
| | 9673 | # depend on `.', always an invalid library. This was fixed in |
| | 9674 | # development snapshots of GCC prior to 3.0. |
| | 9675 | case $host_os in |
| | 9676 | aix4 | aix4.[01] | aix4.[01].*) |
| | 9677 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| | 9678 | echo ' yes ' |
| | 9679 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| | 9680 | : |
| | 9681 | else |
| | 9682 | can_build_shared=no |
| | 9683 | fi |
| | 9684 | ;; |
| | 9685 | esac |
| | 9686 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| | 9687 | # soname into executable. Probably we can add versioning support to |
| | 9688 | # collect2, so additional links can be useful in future. |
| | 9689 | if test "$aix_use_runtimelinking" = yes; then |
| | 9690 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| | 9691 | # instead of lib<name>.a to let people know that these are not |
| | 9692 | # typical AIX shared libraries. |
| | 9693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 9694 | else |
| | 9695 | # We preserve .a as extension for shared libraries through AIX4.2 |
| | 9696 | # and later when we are not doing run time linking. |
| | 9697 | library_names_spec='${libname}${release}.a $libname.a' |
| | 9698 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9699 | fi |
| | 9700 | shlibpath_var=LIBPATH |
| | 9701 | fi |
| | 9702 | ;; |
| | 9703 | |
| | 9704 | amigaos*) |
| | 9705 | library_names_spec='$libname.ixlibrary $libname.a' |
| | 9706 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| | 9707 | 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' |
| | 9708 | ;; |
| | 9709 | |
| | 9710 | beos*) |
| | 9711 | library_names_spec='${libname}${shared_ext}' |
| | 9712 | dynamic_linker="$host_os ld.so" |
| | 9713 | shlibpath_var=LIBRARY_PATH |
| | 9714 | ;; |
| | 9715 | |
| | 9716 | bsdi[45]*) |
| | 9717 | version_type=linux |
| | 9718 | need_version=no |
| | 9719 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 9720 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9721 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| | 9722 | shlibpath_var=LD_LIBRARY_PATH |
| | 9723 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| | 9724 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| | 9725 | # the default ld.so.conf also contains /usr/contrib/lib and |
| | 9726 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| | 9727 | # libtool to hard-code these into programs |
| | 9728 | ;; |
| | 9729 | |
| | 9730 | cygwin* | mingw* | pw32*) |
| | 9731 | version_type=windows |
| | 9732 | shrext_cmds=".dll" |
| | 9733 | need_version=no |
| | 9734 | need_lib_prefix=no |
| | 9735 | |
| | 9736 | case $GCC,$host_os in |
| | 9737 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| | 9738 | library_names_spec='$libname.dll.a' |
| | 9739 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| | 9740 | postinstall_cmds='base_file=`basename \${file}`~ |
| | 9741 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| | 9742 | dldir=$destdir/`dirname \$dlpath`~ |
| | 9743 | test -d \$dldir || mkdir -p \$dldir~ |
| | 9744 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| | 9745 | chmod a+x \$dldir/$dlname' |
| | 9746 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| | 9747 | dlpath=$dir/\$dldll~ |
| | 9748 | $rm \$dlpath' |
| | 9749 | shlibpath_overrides_runpath=yes |
| | 9750 | |
| | 9751 | case $host_os in |
| | 9752 | cygwin*) |
| | 9753 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| | 9754 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | 9755 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| | 9756 | ;; |
| | 9757 | mingw*) |
| | 9758 | # MinGW DLLs use traditional 'lib' prefix |
| | 9759 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | 9760 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| | 9761 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| | 9762 | # It is most probably a Windows format PATH printed by |
| | 9763 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| | 9764 | # path with ; separators, and with drive letters. We can handle the |
| | 9765 | # drive letters (cygwin fileutils understands them), so leave them, |
| | 9766 | # especially as we might pass files found there to a mingw objdump, |
| | 9767 | # which wouldn't understand a cygwinified path. Ahh. |
| | 9768 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| | 9769 | else |
| | 9770 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| | 9771 | fi |
| | 9772 | ;; |
| | 9773 | pw32*) |
| | 9774 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| | 9775 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | 9776 | ;; |
| | 9777 | esac |
| | 9778 | ;; |
| | 9779 | |
| | 9780 | *) |
| | 9781 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| | 9782 | ;; |
| | 9783 | esac |
| | 9784 | dynamic_linker='Win32 ld.exe' |
| | 9785 | # FIXME: first we should search . and the directory the executable is in |
| | 9786 | shlibpath_var=PATH |
| | 9787 | ;; |
| | 9788 | |
| | 9789 | darwin* | rhapsody*) |
| | 9790 | dynamic_linker="$host_os dyld" |
| | 9791 | version_type=darwin |
| | 9792 | need_lib_prefix=no |
| | 9793 | need_version=no |
| | 9794 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| | 9795 | soname_spec='${libname}${release}${major}$shared_ext' |
| | 9796 | shlibpath_overrides_runpath=yes |
| | 9797 | shlibpath_var=DYLD_LIBRARY_PATH |
| | 9798 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| | 9799 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| | 9800 | if test "$GCC" = yes; then |
| | 9801 | 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"` |
| | 9802 | else |
| | 9803 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| | 9804 | fi |
| | 9805 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| | 9806 | ;; |
| | 9807 | |
| | 9808 | dgux*) |
| | 9809 | version_type=linux |
| | 9810 | need_lib_prefix=no |
| | 9811 | need_version=no |
| | 9812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| | 9813 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9814 | shlibpath_var=LD_LIBRARY_PATH |
| | 9815 | ;; |
| | 9816 | |
| | 9817 | freebsd1*) |
| | 9818 | dynamic_linker=no |
| | 9819 | ;; |
| | 9820 | |
| | 9821 | kfreebsd*-gnu) |
| | 9822 | version_type=linux |
| | 9823 | need_lib_prefix=no |
| | 9824 | need_version=no |
| | 9825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 9826 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9827 | shlibpath_var=LD_LIBRARY_PATH |
| | 9828 | shlibpath_overrides_runpath=no |
| | 9829 | hardcode_into_libs=yes |
| | 9830 | dynamic_linker='GNU ld.so' |
| | 9831 | ;; |
| | 9832 | |
| | 9833 | freebsd* | dragonfly*) |
| | 9834 | # DragonFly does not have aout. When/if they implement a new |
| | 9835 | # versioning mechanism, adjust this. |
| | 9836 | if test -x /usr/bin/objformat; then |
| | 9837 | objformat=`/usr/bin/objformat` |
| | 9838 | else |
| | 9839 | case $host_os in |
| | 9840 | freebsd[123]*) objformat=aout ;; |
| | 9841 | *) objformat=elf ;; |
| | 9842 | esac |
| | 9843 | fi |
| | 9844 | version_type=freebsd-$objformat |
| | 9845 | case $version_type in |
| | 9846 | freebsd-elf*) |
| | 9847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | 9848 | need_version=no |
| | 9849 | need_lib_prefix=no |
| | 9850 | ;; |
| | 9851 | freebsd-*) |
| | 9852 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| | 9853 | need_version=yes |
| | 9854 | ;; |
| | 9855 | esac |
| | 9856 | shlibpath_var=LD_LIBRARY_PATH |
| | 9857 | case $host_os in |
| | 9858 | freebsd2*) |
| | 9859 | shlibpath_overrides_runpath=yes |
| | 9860 | ;; |
| | 9861 | freebsd3.[01]* | freebsdelf3.[01]*) |
| | 9862 | shlibpath_overrides_runpath=yes |
| | 9863 | hardcode_into_libs=yes |
| | 9864 | ;; |
| | 9865 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| | 9866 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| | 9867 | shlibpath_overrides_runpath=no |
| | 9868 | hardcode_into_libs=yes |
| | 9869 | ;; |
| | 9870 | freebsd*) # from 4.6 on |
| | 9871 | shlibpath_overrides_runpath=yes |
| | 9872 | hardcode_into_libs=yes |
| | 9873 | ;; |
| | 9874 | esac |
| | 9875 | ;; |
| | 9876 | |
| | 9877 | gnu*) |
| | 9878 | version_type=linux |
| | 9879 | need_lib_prefix=no |
| | 9880 | need_version=no |
| | 9881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| | 9882 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9883 | shlibpath_var=LD_LIBRARY_PATH |
| | 9884 | hardcode_into_libs=yes |
| | 9885 | ;; |
| | 9886 | |
| | 9887 | hpux9* | hpux10* | hpux11*) |
| | 9888 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| | 9889 | # link against other versions. |
| | 9890 | version_type=sunos |
| | 9891 | need_lib_prefix=no |
| | 9892 | need_version=no |
| | 9893 | case $host_cpu in |
| | 9894 | ia64*) |
| | 9895 | shrext_cmds='.so' |
| | 9896 | hardcode_into_libs=yes |
| | 9897 | dynamic_linker="$host_os dld.so" |
| | 9898 | shlibpath_var=LD_LIBRARY_PATH |
| | 9899 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| | 9900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 9901 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9902 | if test "X$HPUX_IA64_MODE" = X32; then |
| | 9903 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| | 9904 | else |
| | 9905 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| | 9906 | fi |
| | 9907 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| | 9908 | ;; |
| | 9909 | hppa*64*) |
| | 9910 | shrext_cmds='.sl' |
| | 9911 | hardcode_into_libs=yes |
| | 9912 | dynamic_linker="$host_os dld.sl" |
| | 9913 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| | 9914 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| | 9915 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 9916 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9917 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| | 9918 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| | 9919 | ;; |
| | 9920 | *) |
| | 9921 | shrext_cmds='.sl' |
| | 9922 | dynamic_linker="$host_os dld.sl" |
| | 9923 | shlibpath_var=SHLIB_PATH |
| | 9924 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| | 9925 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 9926 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9927 | ;; |
| | 9928 | esac |
| | 9929 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| | 9930 | postinstall_cmds='chmod 555 $lib' |
| | 9931 | ;; |
| | 9932 | |
| | 9933 | interix3*) |
| | 9934 | version_type=linux |
| | 9935 | need_lib_prefix=no |
| | 9936 | need_version=no |
| | 9937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 9938 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9939 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| | 9940 | shlibpath_var=LD_LIBRARY_PATH |
| | 9941 | shlibpath_overrides_runpath=no |
| | 9942 | hardcode_into_libs=yes |
| | 9943 | ;; |
| | 9944 | |
| | 9945 | irix5* | irix6* | nonstopux*) |
| | 9946 | case $host_os in |
| | 9947 | nonstopux*) version_type=nonstopux ;; |
| | 9948 | *) |
| | 9949 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| | 9950 | version_type=linux |
| | 9951 | else |
| | 9952 | version_type=irix |
| | 9953 | fi ;; |
| | 9954 | esac |
| | 9955 | need_lib_prefix=no |
| | 9956 | need_version=no |
| | 9957 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | 9959 | case $host_os in |
| | 9960 | irix5* | nonstopux*) |
| | 9961 | libsuff= shlibsuff= |
| | 9962 | ;; |
| | 9963 | *) |
| | 9964 | case $LD in # libtool.m4 will add one of these switches to LD |
| | 9965 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| | 9966 | libsuff= shlibsuff= libmagic=32-bit;; |
| | 9967 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| | 9968 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| | 9969 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| | 9970 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| | 9971 | *) libsuff= shlibsuff= libmagic=never-match;; |
| | 9972 | esac |
| | 9973 | ;; |
| | 9974 | esac |
| | 9975 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| | 9976 | shlibpath_overrides_runpath=no |
| | 9977 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| | 9978 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| | 9979 | hardcode_into_libs=yes |
| | 9980 | ;; |
| | 9981 | |
| | 9982 | # No shared lib support for Linux oldld, aout, or coff. |
| | 9983 | linux*oldld* | linux*aout* | linux*coff*) |
| | 9984 | dynamic_linker=no |
| | 9985 | ;; |
| | 9986 | |
| | 9987 | # This must be Linux ELF. |
| | 9988 | linux*) |
| | 9989 | version_type=linux |
| | 9990 | need_lib_prefix=no |
| | 9991 | need_version=no |
| | 9992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 9993 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 9994 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| | 9995 | shlibpath_var=LD_LIBRARY_PATH |
| | 9996 | shlibpath_overrides_runpath=no |
| | 9997 | # This implies no fast_install, which is unacceptable. |
| | 9998 | # Some rework will be needed to allow for fast_install |
| | 9999 | # before this can be enabled. |
| | 10000 | hardcode_into_libs=yes |
| | 10001 | |
| | 10002 | # Append ld.so.conf contents to the search path |
| | 10003 | if test -f /etc/ld.so.conf; then |
| | 10004 | 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' ' '` |
| | 10005 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| | 10006 | fi |
| | 10007 | |
| | 10008 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| | 10009 | # powerpc, because MkLinux only supported shared libraries with the |
| | 10010 | # GNU dynamic linker. Since this was broken with cross compilers, |
| | 10011 | # most powerpc-linux boxes support dynamic linking these days and |
| | 10012 | # people can always --disable-shared, the test was removed, and we |
| | 10013 | # assume the GNU/Linux dynamic linker is in use. |
| | 10014 | dynamic_linker='GNU/Linux ld.so' |
| | 10015 | ;; |
| | 10016 | |
| | 10017 | netbsdelf*-gnu) |
| | 10018 | version_type=linux |
| | 10019 | need_lib_prefix=no |
| | 10020 | need_version=no |
| | 10021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 10022 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 10023 | shlibpath_var=LD_LIBRARY_PATH |
| | 10024 | shlibpath_overrides_runpath=no |
| | 10025 | hardcode_into_libs=yes |
| | 10026 | dynamic_linker='NetBSD ld.elf_so' |
| | 10027 | ;; |
| | 10028 | |
| | 10029 | knetbsd*-gnu) |
| | 10030 | version_type=linux |
| | 10031 | need_lib_prefix=no |
| | 10032 | need_version=no |
| | 10033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 10034 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 10035 | shlibpath_var=LD_LIBRARY_PATH |
| | 10036 | shlibpath_overrides_runpath=no |
| | 10037 | hardcode_into_libs=yes |
| | 10038 | dynamic_linker='GNU ld.so' |
| | 10039 | ;; |
| | 10040 | |
| | 10041 | netbsd*) |
| | 10042 | version_type=sunos |
| | 10043 | need_lib_prefix=no |
| | 10044 | need_version=no |
| | 10045 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| | 10046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | 10047 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| | 10048 | dynamic_linker='NetBSD (a.out) ld.so' |
| | 10049 | else |
| | 10050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 10051 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 10052 | dynamic_linker='NetBSD ld.elf_so' |
| | 10053 | fi |
| | 10054 | shlibpath_var=LD_LIBRARY_PATH |
| | 10055 | shlibpath_overrides_runpath=yes |
| | 10056 | hardcode_into_libs=yes |
| | 10057 | ;; |
| | 10058 | |
| | 10059 | newsos6) |
| | 10060 | version_type=linux |
| | 10061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 10062 | shlibpath_var=LD_LIBRARY_PATH |
| | 10063 | shlibpath_overrides_runpath=yes |
| | 10064 | ;; |
| | 10065 | |
| | 10066 | nto-qnx*) |
| | 10067 | version_type=linux |
| | 10068 | need_lib_prefix=no |
| | 10069 | need_version=no |
| | 10070 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 10071 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 10072 | shlibpath_var=LD_LIBRARY_PATH |
| | 10073 | shlibpath_overrides_runpath=yes |
| | 10074 | ;; |
| | 10075 | |
| | 10076 | openbsd*) |
| | 10077 | version_type=sunos |
| | 10078 | sys_lib_dlsearch_path_spec="/usr/lib" |
| | 10079 | need_lib_prefix=no |
| | 10080 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| | 10081 | case $host_os in |
| | 10082 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| | 10083 | *) need_version=no ;; |
| | 10084 | esac |
| | 10085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | 10086 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| | 10087 | shlibpath_var=LD_LIBRARY_PATH |
| | 10088 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| | 10089 | case $host_os in |
| | 10090 | openbsd2.[89] | openbsd2.[89].*) |
| | 10091 | shlibpath_overrides_runpath=no |
| | 10092 | ;; |
| | 10093 | *) |
| | 10094 | shlibpath_overrides_runpath=yes |
| | 10095 | ;; |
| | 10096 | esac |
| | 10097 | else |
| | 10098 | shlibpath_overrides_runpath=yes |
| | 10099 | fi |
| | 10100 | ;; |
| | 10101 | |
| | 10102 | os2*) |
| | 10103 | libname_spec='$name' |
| | 10104 | shrext_cmds=".dll" |
| | 10105 | need_lib_prefix=no |
| | 10106 | library_names_spec='$libname${shared_ext} $libname.a' |
| | 10107 | dynamic_linker='OS/2 ld.exe' |
| | 10108 | shlibpath_var=LIBPATH |
| | 10109 | ;; |
| | 10110 | |
| | 10111 | osf3* | osf4* | osf5*) |
| | 10112 | version_type=osf |
| | 10113 | need_lib_prefix=no |
| | 10114 | need_version=no |
| | 10115 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 10116 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 10117 | shlibpath_var=LD_LIBRARY_PATH |
| | 10118 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| | 10119 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| | 10120 | ;; |
| | 10121 | |
| | 10122 | solaris*) |
| | 10123 | version_type=linux |
| | 10124 | need_lib_prefix=no |
| | 10125 | need_version=no |
| | 10126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 10127 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 10128 | shlibpath_var=LD_LIBRARY_PATH |
| | 10129 | shlibpath_overrides_runpath=yes |
| | 10130 | hardcode_into_libs=yes |
| | 10131 | # ldd complains unless libraries are executable |
| | 10132 | postinstall_cmds='chmod +x $lib' |
| | 10133 | ;; |
| | 10134 | |
| | 10135 | sunos4*) |
| | 10136 | version_type=sunos |
| | 10137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | 10138 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| | 10139 | shlibpath_var=LD_LIBRARY_PATH |
| | 10140 | shlibpath_overrides_runpath=yes |
| | 10141 | if test "$with_gnu_ld" = yes; then |
| | 10142 | need_lib_prefix=no |
| | 10143 | fi |
| | 10144 | need_version=yes |
| | 10145 | ;; |
| | 10146 | |
| | 10147 | sysv4 | sysv4.3*) |
| | 10148 | version_type=linux |
| | 10149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 10150 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 10151 | shlibpath_var=LD_LIBRARY_PATH |
| | 10152 | case $host_vendor in |
| | 10153 | sni) |
| | 10154 | shlibpath_overrides_runpath=no |
| | 10155 | need_lib_prefix=no |
| | 10156 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| | 10157 | runpath_var=LD_RUN_PATH |
| | 10158 | ;; |
| | 10159 | siemens) |
| | 10160 | need_lib_prefix=no |
| | 10161 | ;; |
| | 10162 | motorola) |
| | 10163 | need_lib_prefix=no |
| | 10164 | need_version=no |
| | 10165 | shlibpath_overrides_runpath=no |
| | 10166 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| | 10167 | ;; |
| | 10168 | esac |
| | 10169 | ;; |
| | 10170 | |
| | 10171 | sysv4*MP*) |
| | 10172 | if test -d /usr/nec ;then |
| | 10173 | version_type=linux |
| | 10174 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| | 10175 | soname_spec='$libname${shared_ext}.$major' |
| | 10176 | shlibpath_var=LD_LIBRARY_PATH |
| | 10177 | fi |
| | 10178 | ;; |
| | 10179 | |
| | 10180 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| | 10181 | version_type=freebsd-elf |
| | 10182 | need_lib_prefix=no |
| | 10183 | need_version=no |
| | 10184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | 10185 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 10186 | shlibpath_var=LD_LIBRARY_PATH |
| | 10187 | hardcode_into_libs=yes |
| | 10188 | if test "$with_gnu_ld" = yes; then |
| | 10189 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| | 10190 | shlibpath_overrides_runpath=no |
| | 10191 | else |
| | 10192 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| | 10193 | shlibpath_overrides_runpath=yes |
| | 10194 | case $host_os in |
| | 10195 | sco3.2v5*) |
| | 10196 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| | 10197 | ;; |
| | 10198 | esac |
| | 10199 | fi |
| | 10200 | sys_lib_dlsearch_path_spec='/usr/lib' |
| | 10201 | ;; |
| | 10202 | |
| | 10203 | uts4*) |
| | 10204 | version_type=linux |
| | 10205 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 10206 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 10207 | shlibpath_var=LD_LIBRARY_PATH |
| | 10208 | ;; |
| | 10209 | |
| | 10210 | *) |
| | 10211 | dynamic_linker=no |
| | 10212 | ;; |
| | 10213 | esac |
| | 10214 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| | 10215 | echo "${ECHO_T}$dynamic_linker" >&6 |
| | 10216 | test "$dynamic_linker" = no && can_build_shared=no |
| | 10217 | |
| | 10218 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| | 10219 | if test "$GCC" = yes; then |
| | 10220 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| | 10221 | fi |
| | 10222 | |
| | 10223 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| | 10224 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| | 10225 | hardcode_action= |
| | 10226 | if test -n "$hardcode_libdir_flag_spec" || \ |
| | 10227 | test -n "$runpath_var" || \ |
| | 10228 | test "X$hardcode_automatic" = "Xyes" ; then |
| | 10229 | |
| | 10230 | # We can hardcode non-existant directories. |
| | 10231 | if test "$hardcode_direct" != no && |
| | 10232 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| | 10233 | # have to relink, otherwise we might link with an installed library |
| | 10234 | # when we should be linking with a yet-to-be-installed one |
| | 10235 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| | 10236 | test "$hardcode_minus_L" != no; then |
| | 10237 | # Linking always hardcodes the temporary library directory. |
| | 10238 | hardcode_action=relink |
| | 10239 | else |
| | 10240 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| | 10241 | hardcode_action=immediate |
| | 10242 | fi |
| | 10243 | else |
| | 10244 | # We cannot hardcode anything, or else we can only hardcode existing |
| | 10245 | # directories. |
| | 10246 | hardcode_action=unsupported |
| | 10247 | fi |
| | 10248 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| | 10249 | echo "${ECHO_T}$hardcode_action" >&6 |
| | 10250 | |
| | 10251 | if test "$hardcode_action" = relink; then |
| | 10252 | # Fast installation is not supported |
| | 10253 | enable_fast_install=no |
| | 10254 | elif test "$shlibpath_overrides_runpath" = yes || |
| | 10255 | test "$enable_shared" = no; then |
| | 10256 | # Fast installation is not necessary |
| | 10257 | enable_fast_install=needless |
| | 10258 | fi |
| | 10259 | |
| | 10260 | striplib= |
| | 10261 | old_striplib= |
| | 10262 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| | 10263 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| | 10264 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| | 10265 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| | 10266 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| | 10267 | echo "$as_me:$LINENO: result: yes" >&5 |
| | 10268 | echo "${ECHO_T}yes" >&6 |
| | 10269 | else |
| | 10270 | # FIXME - insert some real tests, host_os isn't really good enough |
| | 10271 | case $host_os in |
| | 10272 | darwin*) |
| | 10273 | if test -n "$STRIP" ; then |
| | 10274 | striplib="$STRIP -x" |
| | 10275 | echo "$as_me:$LINENO: result: yes" >&5 |
| | 10276 | echo "${ECHO_T}yes" >&6 |
| | 10277 | else |
| | 10278 | echo "$as_me:$LINENO: result: no" >&5 |
| | 10279 | echo "${ECHO_T}no" >&6 |
| | 10280 | fi |
| | 10281 | ;; |
| | 10282 | *) |
| | 10283 | echo "$as_me:$LINENO: result: no" >&5 |
| | 10284 | echo "${ECHO_T}no" >&6 |
| | 10285 | ;; |
| | 10286 | esac |
| | 10287 | fi |
| | 10288 | |
| | 10289 | if test "x$enable_dlopen" != xyes; then |
| | 10290 | enable_dlopen=unknown |
| | 10291 | enable_dlopen_self=unknown |
| | 10292 | enable_dlopen_self_static=unknown |
| | 10293 | else |
| | 10294 | lt_cv_dlopen=no |
| | 10295 | lt_cv_dlopen_libs= |
| | 10296 | |
| | 10297 | case $host_os in |
| | 10298 | beos*) |
| | 10299 | lt_cv_dlopen="load_add_on" |
| | 10300 | lt_cv_dlopen_libs= |
| | 10301 | lt_cv_dlopen_self=yes |
| | 10302 | ;; |
| | 10303 | |
| | 10304 | mingw* | pw32*) |
| | 10305 | lt_cv_dlopen="LoadLibrary" |
| | 10306 | lt_cv_dlopen_libs= |
| | 10307 | ;; |
| | 10308 | |
| | 10309 | cygwin*) |
| | 10310 | lt_cv_dlopen="dlopen" |
| | 10311 | lt_cv_dlopen_libs= |
| | 10312 | ;; |
| | 10313 | |
| | 10314 | darwin*) |
| | 10315 | # if libdl is installed we need to link against it |
| | 10316 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| | 10317 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| | 10318 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| | 10319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 10320 | else |
| | 10321 | ac_check_lib_save_LIBS=$LIBS |
| | 10322 | LIBS="-ldl $LIBS" |
| | 10323 | cat >conftest.$ac_ext <<_ACEOF |
| | 10324 | /* confdefs.h. */ |
| | 10325 | _ACEOF |
| | 10326 | cat confdefs.h >>conftest.$ac_ext |
| | 10327 | cat >>conftest.$ac_ext <<_ACEOF |
| | 10328 | /* end confdefs.h. */ |
| | 10329 | |
| | 10330 | /* Override any gcc2 internal prototype to avoid an error. */ |
| | 10331 | #ifdef __cplusplus |
| | 10332 | extern "C" |
| | 10333 | #endif |
| | 10334 | /* We use char because int might match the return type of a gcc2 |
| | 10335 | builtin and then its argument prototype would still apply. */ |
| | 10336 | char dlopen (); |
| | 10337 | int |
| | 10338 | main () |
| | 10339 | { |
| | 10340 | dlopen (); |
| | 10341 | ; |
| | 10342 | return 0; |
| | 10343 | } |
| | 10344 | _ACEOF |
| | 10345 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 10346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 10347 | (eval $ac_link) 2>conftest.er1 |
| | 10348 | ac_status=$? |
| | 10349 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 10350 | rm -f conftest.er1 |
| | 10351 | cat conftest.err >&5 |
| | 10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10353 | (exit $ac_status); } && |
| | 10354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | 10355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10356 | (eval $ac_try) 2>&5 |
| | 10357 | ac_status=$? |
| | 10358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10359 | (exit $ac_status); }; } && |
| | 10360 | { ac_try='test -s conftest$ac_exeext' |
| | 10361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10362 | (eval $ac_try) 2>&5 |
| | 10363 | ac_status=$? |
| | 10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10365 | (exit $ac_status); }; }; then |
| | 10366 | ac_cv_lib_dl_dlopen=yes |
| | 10367 | else |
| | 10368 | echo "$as_me: failed program was:" >&5 |
| | 10369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 10370 | |
| | 10371 | ac_cv_lib_dl_dlopen=no |
| | 10372 | fi |
| | 10373 | rm -f conftest.err conftest.$ac_objext \ |
| | 10374 | conftest$ac_exeext conftest.$ac_ext |
| | 10375 | LIBS=$ac_check_lib_save_LIBS |
| | 10376 | fi |
| | 10377 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| | 10378 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| | 10379 | if test $ac_cv_lib_dl_dlopen = yes; then |
| | 10380 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| | 10381 | else |
| | 10382 | |
| | 10383 | lt_cv_dlopen="dyld" |
| | 10384 | lt_cv_dlopen_libs= |
| | 10385 | lt_cv_dlopen_self=yes |
| | 10386 | |
| | 10387 | fi |
| | 10388 | |
| | 10389 | ;; |
| | 10390 | |
| | 10391 | *) |
| | 10392 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
| | 10393 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
| | 10394 | if test "${ac_cv_func_shl_load+set}" = set; then |
| | 10395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 10396 | else |
| | 10397 | cat >conftest.$ac_ext <<_ACEOF |
| | 10398 | /* confdefs.h. */ |
| | 10399 | _ACEOF |
| | 10400 | cat confdefs.h >>conftest.$ac_ext |
| | 10401 | cat >>conftest.$ac_ext <<_ACEOF |
| | 10402 | /* end confdefs.h. */ |
| | 10403 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
| | 10404 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| | 10405 | #define shl_load innocuous_shl_load |
| | 10406 | |
| | 10407 | /* System header to define __stub macros and hopefully few prototypes, |
| | 10408 | which can conflict with char shl_load (); below. |
| | 10409 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | 10410 | <limits.h> exists even on freestanding compilers. */ |
| | 10411 | |
| | 10412 | #ifdef __STDC__ |
| | 10413 | # include <limits.h> |
| | 10414 | #else |
| | 10415 | # include <assert.h> |
| | 10416 | #endif |
| | 10417 | |
| | 10418 | #undef shl_load |
| | 10419 | |
| | 10420 | /* Override any gcc2 internal prototype to avoid an error. */ |
| | 10421 | #ifdef __cplusplus |
| | 10422 | extern "C" |
| | 10423 | { |
| | 10424 | #endif |
| | 10425 | /* We use char because int might match the return type of a gcc2 |
| | 10426 | builtin and then its argument prototype would still apply. */ |
| | 10427 | char shl_load (); |
| | 10428 | /* The GNU C library defines this for functions which it implements |
| | 10429 | to always fail with ENOSYS. Some functions are actually named |
| | 10430 | something starting with __ and the normal name is an alias. */ |
| | 10431 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
| | 10432 | choke me |
| | 10433 | #else |
| | 10434 | char (*f) () = shl_load; |
| | 10435 | #endif |
| | 10436 | #ifdef __cplusplus |
| | 10437 | } |
| | 10438 | #endif |
| | 10439 | |
| | 10440 | int |
| | 10441 | main () |
| | 10442 | { |
| | 10443 | return f != shl_load; |
| | 10444 | ; |
| | 10445 | return 0; |
| | 10446 | } |
| | 10447 | _ACEOF |
| | 10448 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 10449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 10450 | (eval $ac_link) 2>conftest.er1 |
| | 10451 | ac_status=$? |
| | 10452 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 10453 | rm -f conftest.er1 |
| | 10454 | cat conftest.err >&5 |
| | 10455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10456 | (exit $ac_status); } && |
| | 10457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | 10458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10459 | (eval $ac_try) 2>&5 |
| | 10460 | ac_status=$? |
| | 10461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10462 | (exit $ac_status); }; } && |
| | 10463 | { ac_try='test -s conftest$ac_exeext' |
| | 10464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10465 | (eval $ac_try) 2>&5 |
| | 10466 | ac_status=$? |
| | 10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10468 | (exit $ac_status); }; }; then |
| | 10469 | ac_cv_func_shl_load=yes |
| | 10470 | else |
| | 10471 | echo "$as_me: failed program was:" >&5 |
| | 10472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 10473 | |
| | 10474 | ac_cv_func_shl_load=no |
| | 10475 | fi |
| | 10476 | rm -f conftest.err conftest.$ac_objext \ |
| | 10477 | conftest$ac_exeext conftest.$ac_ext |
| | 10478 | fi |
| | 10479 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
| | 10480 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
| | 10481 | if test $ac_cv_func_shl_load = yes; then |
| | 10482 | lt_cv_dlopen="shl_load" |
| | 10483 | else |
| | 10484 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| | 10485 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| | 10486 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| | 10487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 10488 | else |
| | 10489 | ac_check_lib_save_LIBS=$LIBS |
| | 10490 | LIBS="-ldld $LIBS" |
| | 10491 | cat >conftest.$ac_ext <<_ACEOF |
| | 10492 | /* confdefs.h. */ |
| | 10493 | _ACEOF |
| | 10494 | cat confdefs.h >>conftest.$ac_ext |
| | 10495 | cat >>conftest.$ac_ext <<_ACEOF |
| | 10496 | /* end confdefs.h. */ |
| | 10497 | |
| | 10498 | /* Override any gcc2 internal prototype to avoid an error. */ |
| | 10499 | #ifdef __cplusplus |
| | 10500 | extern "C" |
| | 10501 | #endif |
| | 10502 | /* We use char because int might match the return type of a gcc2 |
| | 10503 | builtin and then its argument prototype would still apply. */ |
| | 10504 | char shl_load (); |
| | 10505 | int |
| | 10506 | main () |
| | 10507 | { |
| | 10508 | shl_load (); |
| | 10509 | ; |
| | 10510 | return 0; |
| | 10511 | } |
| | 10512 | _ACEOF |
| | 10513 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 10514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 10515 | (eval $ac_link) 2>conftest.er1 |
| | 10516 | ac_status=$? |
| | 10517 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 10518 | rm -f conftest.er1 |
| | 10519 | cat conftest.err >&5 |
| | 10520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10521 | (exit $ac_status); } && |
| | 10522 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | 10523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10524 | (eval $ac_try) 2>&5 |
| | 10525 | ac_status=$? |
| | 10526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10527 | (exit $ac_status); }; } && |
| | 10528 | { ac_try='test -s conftest$ac_exeext' |
| | 10529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10530 | (eval $ac_try) 2>&5 |
| | 10531 | ac_status=$? |
| | 10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10533 | (exit $ac_status); }; }; then |
| | 10534 | ac_cv_lib_dld_shl_load=yes |
| | 10535 | else |
| | 10536 | echo "$as_me: failed program was:" >&5 |
| | 10537 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 10538 | |
| | 10539 | ac_cv_lib_dld_shl_load=no |
| | 10540 | fi |
| | 10541 | rm -f conftest.err conftest.$ac_objext \ |
| | 10542 | conftest$ac_exeext conftest.$ac_ext |
| | 10543 | LIBS=$ac_check_lib_save_LIBS |
| | 10544 | fi |
| | 10545 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| | 10546 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| | 10547 | if test $ac_cv_lib_dld_shl_load = yes; then |
| | 10548 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
| | 10549 | else |
| | 10550 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
| | 10551 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
| | 10552 | if test "${ac_cv_func_dlopen+set}" = set; then |
| | 10553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 10554 | else |
| | 10555 | cat >conftest.$ac_ext <<_ACEOF |
| | 10556 | /* confdefs.h. */ |
| | 10557 | _ACEOF |
| | 10558 | cat confdefs.h >>conftest.$ac_ext |
| | 10559 | cat >>conftest.$ac_ext <<_ACEOF |
| | 10560 | /* end confdefs.h. */ |
| | 10561 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
| | 10562 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| | 10563 | #define dlopen innocuous_dlopen |
| | 10564 | |
| | 10565 | /* System header to define __stub macros and hopefully few prototypes, |
| | 10566 | which can conflict with char dlopen (); below. |
| | 10567 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| | 10568 | <limits.h> exists even on freestanding compilers. */ |
| | 10569 | |
| | 10570 | #ifdef __STDC__ |
| | 10571 | # include <limits.h> |
| | 10572 | #else |
| | 10573 | # include <assert.h> |
| | 10574 | #endif |
| | 10575 | |
| | 10576 | #undef dlopen |
| | 10577 | |
| | 10578 | /* Override any gcc2 internal prototype to avoid an error. */ |
| | 10579 | #ifdef __cplusplus |
| | 10580 | extern "C" |
| | 10581 | { |
| | 10582 | #endif |
| | 10583 | /* We use char because int might match the return type of a gcc2 |
| | 10584 | builtin and then its argument prototype would still apply. */ |
| | 10585 | char dlopen (); |
| | 10586 | /* The GNU C library defines this for functions which it implements |
| | 10587 | to always fail with ENOSYS. Some functions are actually named |
| | 10588 | something starting with __ and the normal name is an alias. */ |
| | 10589 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
| | 10590 | choke me |
| | 10591 | #else |
| | 10592 | char (*f) () = dlopen; |
| | 10593 | #endif |
| | 10594 | #ifdef __cplusplus |
| | 10595 | } |
| | 10596 | #endif |
| | 10597 | |
| | 10598 | int |
| | 10599 | main () |
| | 10600 | { |
| | 10601 | return f != dlopen; |
| | 10602 | ; |
| | 10603 | return 0; |
| | 10604 | } |
| | 10605 | _ACEOF |
| | 10606 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 10607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 10608 | (eval $ac_link) 2>conftest.er1 |
| | 10609 | ac_status=$? |
| | 10610 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 10611 | rm -f conftest.er1 |
| | 10612 | cat conftest.err >&5 |
| | 10613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10614 | (exit $ac_status); } && |
| | 10615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | 10616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10617 | (eval $ac_try) 2>&5 |
| | 10618 | ac_status=$? |
| | 10619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10620 | (exit $ac_status); }; } && |
| | 10621 | { ac_try='test -s conftest$ac_exeext' |
| | 10622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10623 | (eval $ac_try) 2>&5 |
| | 10624 | ac_status=$? |
| | 10625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10626 | (exit $ac_status); }; }; then |
| | 10627 | ac_cv_func_dlopen=yes |
| | 10628 | else |
| | 10629 | echo "$as_me: failed program was:" >&5 |
| | 10630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 10631 | |
| | 10632 | ac_cv_func_dlopen=no |
| | 10633 | fi |
| | 10634 | rm -f conftest.err conftest.$ac_objext \ |
| | 10635 | conftest$ac_exeext conftest.$ac_ext |
| | 10636 | fi |
| | 10637 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
| | 10638 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
| | 10639 | if test $ac_cv_func_dlopen = yes; then |
| | 10640 | lt_cv_dlopen="dlopen" |
| | 10641 | else |
| | 10642 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| | 10643 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| | 10644 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| | 10645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 10646 | else |
| | 10647 | ac_check_lib_save_LIBS=$LIBS |
| | 10648 | LIBS="-ldl $LIBS" |
| | 10649 | cat >conftest.$ac_ext <<_ACEOF |
| | 10650 | /* confdefs.h. */ |
| | 10651 | _ACEOF |
| | 10652 | cat confdefs.h >>conftest.$ac_ext |
| | 10653 | cat >>conftest.$ac_ext <<_ACEOF |
| | 10654 | /* end confdefs.h. */ |
| | 10655 | |
| | 10656 | /* Override any gcc2 internal prototype to avoid an error. */ |
| | 10657 | #ifdef __cplusplus |
| | 10658 | extern "C" |
| | 10659 | #endif |
| | 10660 | /* We use char because int might match the return type of a gcc2 |
| | 10661 | builtin and then its argument prototype would still apply. */ |
| | 10662 | char dlopen (); |
| | 10663 | int |
| | 10664 | main () |
| | 10665 | { |
| | 10666 | dlopen (); |
| | 10667 | ; |
| | 10668 | return 0; |
| | 10669 | } |
| | 10670 | _ACEOF |
| | 10671 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 10672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 10673 | (eval $ac_link) 2>conftest.er1 |
| | 10674 | ac_status=$? |
| | 10675 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 10676 | rm -f conftest.er1 |
| | 10677 | cat conftest.err >&5 |
| | 10678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10679 | (exit $ac_status); } && |
| | 10680 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | 10681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10682 | (eval $ac_try) 2>&5 |
| | 10683 | ac_status=$? |
| | 10684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10685 | (exit $ac_status); }; } && |
| | 10686 | { ac_try='test -s conftest$ac_exeext' |
| | 10687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10688 | (eval $ac_try) 2>&5 |
| | 10689 | ac_status=$? |
| | 10690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10691 | (exit $ac_status); }; }; then |
| | 10692 | ac_cv_lib_dl_dlopen=yes |
| | 10693 | else |
| | 10694 | echo "$as_me: failed program was:" >&5 |
| | 10695 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 10696 | |
| | 10697 | ac_cv_lib_dl_dlopen=no |
| | 10698 | fi |
| | 10699 | rm -f conftest.err conftest.$ac_objext \ |
| | 10700 | conftest$ac_exeext conftest.$ac_ext |
| | 10701 | LIBS=$ac_check_lib_save_LIBS |
| | 10702 | fi |
| | 10703 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| | 10704 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| | 10705 | if test $ac_cv_lib_dl_dlopen = yes; then |
| | 10706 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| | 10707 | else |
| | 10708 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
| | 10709 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
| | 10710 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
| | 10711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 10712 | else |
| | 10713 | ac_check_lib_save_LIBS=$LIBS |
| | 10714 | LIBS="-lsvld $LIBS" |
| | 10715 | cat >conftest.$ac_ext <<_ACEOF |
| | 10716 | /* confdefs.h. */ |
| | 10717 | _ACEOF |
| | 10718 | cat confdefs.h >>conftest.$ac_ext |
| | 10719 | cat >>conftest.$ac_ext <<_ACEOF |
| | 10720 | /* end confdefs.h. */ |
| | 10721 | |
| | 10722 | /* Override any gcc2 internal prototype to avoid an error. */ |
| | 10723 | #ifdef __cplusplus |
| | 10724 | extern "C" |
| | 10725 | #endif |
| | 10726 | /* We use char because int might match the return type of a gcc2 |
| | 10727 | builtin and then its argument prototype would still apply. */ |
| | 10728 | char dlopen (); |
| | 10729 | int |
| | 10730 | main () |
| | 10731 | { |
| | 10732 | dlopen (); |
| | 10733 | ; |
| | 10734 | return 0; |
| | 10735 | } |
| | 10736 | _ACEOF |
| | 10737 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 10738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 10739 | (eval $ac_link) 2>conftest.er1 |
| | 10740 | ac_status=$? |
| | 10741 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 10742 | rm -f conftest.er1 |
| | 10743 | cat conftest.err >&5 |
| | 10744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10745 | (exit $ac_status); } && |
| | 10746 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | 10747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10748 | (eval $ac_try) 2>&5 |
| | 10749 | ac_status=$? |
| | 10750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10751 | (exit $ac_status); }; } && |
| | 10752 | { ac_try='test -s conftest$ac_exeext' |
| | 10753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10754 | (eval $ac_try) 2>&5 |
| | 10755 | ac_status=$? |
| | 10756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10757 | (exit $ac_status); }; }; then |
| | 10758 | ac_cv_lib_svld_dlopen=yes |
| | 10759 | else |
| | 10760 | echo "$as_me: failed program was:" >&5 |
| | 10761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 10762 | |
| | 10763 | ac_cv_lib_svld_dlopen=no |
| | 10764 | fi |
| | 10765 | rm -f conftest.err conftest.$ac_objext \ |
| | 10766 | conftest$ac_exeext conftest.$ac_ext |
| | 10767 | LIBS=$ac_check_lib_save_LIBS |
| | 10768 | fi |
| | 10769 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
| | 10770 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
| | 10771 | if test $ac_cv_lib_svld_dlopen = yes; then |
| | 10772 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| | 10773 | else |
| | 10774 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
| | 10775 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
| | 10776 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
| | 10777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 10778 | else |
| | 10779 | ac_check_lib_save_LIBS=$LIBS |
| | 10780 | LIBS="-ldld $LIBS" |
| | 10781 | cat >conftest.$ac_ext <<_ACEOF |
| | 10782 | /* confdefs.h. */ |
| | 10783 | _ACEOF |
| | 10784 | cat confdefs.h >>conftest.$ac_ext |
| | 10785 | cat >>conftest.$ac_ext <<_ACEOF |
| | 10786 | /* end confdefs.h. */ |
| | 10787 | |
| | 10788 | /* Override any gcc2 internal prototype to avoid an error. */ |
| | 10789 | #ifdef __cplusplus |
| | 10790 | extern "C" |
| | 10791 | #endif |
| | 10792 | /* We use char because int might match the return type of a gcc2 |
| | 10793 | builtin and then its argument prototype would still apply. */ |
| | 10794 | char dld_link (); |
| | 10795 | int |
| | 10796 | main () |
| | 10797 | { |
| | 10798 | dld_link (); |
| | 10799 | ; |
| | 10800 | return 0; |
| | 10801 | } |
| | 10802 | _ACEOF |
| | 10803 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 10804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 10805 | (eval $ac_link) 2>conftest.er1 |
| | 10806 | ac_status=$? |
| | 10807 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 10808 | rm -f conftest.er1 |
| | 10809 | cat conftest.err >&5 |
| | 10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10811 | (exit $ac_status); } && |
| | 10812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| | 10813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10814 | (eval $ac_try) 2>&5 |
| | 10815 | ac_status=$? |
| | 10816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10817 | (exit $ac_status); }; } && |
| | 10818 | { ac_try='test -s conftest$ac_exeext' |
| | 10819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 10820 | (eval $ac_try) 2>&5 |
| | 10821 | ac_status=$? |
| | 10822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10823 | (exit $ac_status); }; }; then |
| | 10824 | ac_cv_lib_dld_dld_link=yes |
| | 10825 | else |
| | 10826 | echo "$as_me: failed program was:" >&5 |
| | 10827 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 10828 | |
| | 10829 | ac_cv_lib_dld_dld_link=no |
| | 10830 | fi |
| | 10831 | rm -f conftest.err conftest.$ac_objext \ |
| | 10832 | conftest$ac_exeext conftest.$ac_ext |
| | 10833 | LIBS=$ac_check_lib_save_LIBS |
| | 10834 | fi |
| | 10835 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
| | 10836 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
| | 10837 | if test $ac_cv_lib_dld_dld_link = yes; then |
| | 10838 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
| | 10839 | fi |
| | 10840 | |
| | 10841 | |
| | 10842 | fi |
| | 10843 | |
| | 10844 | |
| | 10845 | fi |
| | 10846 | |
| | 10847 | |
| | 10848 | fi |
| | 10849 | |
| | 10850 | |
| | 10851 | fi |
| | 10852 | |
| | 10853 | |
| | 10854 | fi |
| | 10855 | |
| | 10856 | ;; |
| | 10857 | esac |
| | 10858 | |
| | 10859 | if test "x$lt_cv_dlopen" != xno; then |
| | 10860 | enable_dlopen=yes |
| | 10861 | else |
| | 10862 | enable_dlopen=no |
| | 10863 | fi |
| | 10864 | |
| | 10865 | case $lt_cv_dlopen in |
| | 10866 | dlopen) |
| | 10867 | save_CPPFLAGS="$CPPFLAGS" |
| | 10868 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| | 10869 | |
| | 10870 | save_LDFLAGS="$LDFLAGS" |
| | 10871 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| | 10872 | |
| | 10873 | save_LIBS="$LIBS" |
| | 10874 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| | 10875 | |
| | 10876 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
| | 10877 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
| | 10878 | if test "${lt_cv_dlopen_self+set}" = set; then |
| | 10879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 10880 | else |
| | 10881 | if test "$cross_compiling" = yes; then : |
| | 10882 | lt_cv_dlopen_self=cross |
| | 10883 | else |
| | 10884 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| | 10885 | lt_status=$lt_dlunknown |
| | 10886 | cat > conftest.$ac_ext <<EOF |
| | 10887 | #line 10887 "configure" |
| | 10888 | #include "confdefs.h" |
| | 10889 | |
| | 10890 | #if HAVE_DLFCN_H |
| | 10891 | #include <dlfcn.h> |
| | 10892 | #endif |
| | 10893 | |
| | 10894 | #include <stdio.h> |
| | 10895 | |
| | 10896 | #ifdef RTLD_GLOBAL |
| | 10897 | # define LT_DLGLOBAL RTLD_GLOBAL |
| | 10898 | #else |
| | 10899 | # ifdef DL_GLOBAL |
| | 10900 | # define LT_DLGLOBAL DL_GLOBAL |
| | 10901 | # else |
| | 10902 | # define LT_DLGLOBAL 0 |
| | 10903 | # endif |
| | 10904 | #endif |
| | 10905 | |
| | 10906 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| | 10907 | find out it does not work in some platform. */ |
| | 10908 | #ifndef LT_DLLAZY_OR_NOW |
| | 10909 | # ifdef RTLD_LAZY |
| | 10910 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| | 10911 | # else |
| | 10912 | # ifdef DL_LAZY |
| | 10913 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| | 10914 | # else |
| | 10915 | # ifdef RTLD_NOW |
| | 10916 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| | 10917 | # else |
| | 10918 | # ifdef DL_NOW |
| | 10919 | # define LT_DLLAZY_OR_NOW DL_NOW |
| | 10920 | # else |
| | 10921 | # define LT_DLLAZY_OR_NOW 0 |
| | 10922 | # endif |
| | 10923 | # endif |
| | 10924 | # endif |
| | 10925 | # endif |
| | 10926 | #endif |
| | 10927 | |
| | 10928 | #ifdef __cplusplus |
| | 10929 | extern "C" void exit (int); |
| | 10930 | #endif |
| | 10931 | |
| | 10932 | void fnord() { int i=42;} |
| | 10933 | int main () |
| | 10934 | { |
| | 10935 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| | 10936 | int status = $lt_dlunknown; |
| | 10937 | |
| | 10938 | if (self) |
| | 10939 | { |
| | 10940 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| | 10941 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| | 10942 | /* dlclose (self); */ |
| | 10943 | } |
| | 10944 | else |
| | 10945 | puts (dlerror ()); |
| | 10946 | |
| | 10947 | exit (status); |
| | 10948 | } |
| | 10949 | EOF |
| | 10950 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 10951 | (eval $ac_link) 2>&5 |
| | 10952 | ac_status=$? |
| | 10953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 10954 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| | 10955 | (./conftest; exit; ) >&5 2>/dev/null |
| | 10956 | lt_status=$? |
| | 10957 | case x$lt_status in |
| | 10958 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| | 10959 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| | 10960 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| | 10961 | esac |
| | 10962 | else : |
| | 10963 | # compilation failed |
| | 10964 | lt_cv_dlopen_self=no |
| | 10965 | fi |
| | 10966 | fi |
| | 10967 | rm -fr conftest* |
| | 10968 | |
| | 10969 | |
| | 10970 | fi |
| | 10971 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
| | 10972 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
| | 10973 | |
| | 10974 | if test "x$lt_cv_dlopen_self" = xyes; then |
| | 10975 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| | 10976 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
| | 10977 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
| | 10978 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
| | 10979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 10980 | else |
| | 10981 | if test "$cross_compiling" = yes; then : |
| | 10982 | lt_cv_dlopen_self_static=cross |
| | 10983 | else |
| | 10984 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| | 10985 | lt_status=$lt_dlunknown |
| | 10986 | cat > conftest.$ac_ext <<EOF |
| | 10987 | #line 10987 "configure" |
| | 10988 | #include "confdefs.h" |
| | 10989 | |
| | 10990 | #if HAVE_DLFCN_H |
| | 10991 | #include <dlfcn.h> |
| | 10992 | #endif |
| | 10993 | |
| | 10994 | #include <stdio.h> |
| | 10995 | |
| | 10996 | #ifdef RTLD_GLOBAL |
| | 10997 | # define LT_DLGLOBAL RTLD_GLOBAL |
| | 10998 | #else |
| | 10999 | # ifdef DL_GLOBAL |
| | 11000 | # define LT_DLGLOBAL DL_GLOBAL |
| | 11001 | # else |
| | 11002 | # define LT_DLGLOBAL 0 |
| | 11003 | # endif |
| | 11004 | #endif |
| | 11005 | |
| | 11006 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| | 11007 | find out it does not work in some platform. */ |
| | 11008 | #ifndef LT_DLLAZY_OR_NOW |
| | 11009 | # ifdef RTLD_LAZY |
| | 11010 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| | 11011 | # else |
| | 11012 | # ifdef DL_LAZY |
| | 11013 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| | 11014 | # else |
| | 11015 | # ifdef RTLD_NOW |
| | 11016 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| | 11017 | # else |
| | 11018 | # ifdef DL_NOW |
| | 11019 | # define LT_DLLAZY_OR_NOW DL_NOW |
| | 11020 | # else |
| | 11021 | # define LT_DLLAZY_OR_NOW 0 |
| | 11022 | # endif |
| | 11023 | # endif |
| | 11024 | # endif |
| | 11025 | # endif |
| | 11026 | #endif |
| | 11027 | |
| | 11028 | #ifdef __cplusplus |
| | 11029 | extern "C" void exit (int); |
| | 11030 | #endif |
| | 11031 | |
| | 11032 | void fnord() { int i=42;} |
| | 11033 | int main () |
| | 11034 | { |
| | 11035 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| | 11036 | int status = $lt_dlunknown; |
| | 11037 | |
| | 11038 | if (self) |
| | 11039 | { |
| | 11040 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| | 11041 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| | 11042 | /* dlclose (self); */ |
| | 11043 | } |
| | 11044 | else |
| | 11045 | puts (dlerror ()); |
| | 11046 | |
| | 11047 | exit (status); |
| | 11048 | } |
| | 11049 | EOF |
| | 11050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 11051 | (eval $ac_link) 2>&5 |
| | 11052 | ac_status=$? |
| | 11053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 11054 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
| | 11055 | (./conftest; exit; ) >&5 2>/dev/null |
| | 11056 | lt_status=$? |
| | 11057 | case x$lt_status in |
| | 11058 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| | 11059 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| | 11060 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| | 11061 | esac |
| | 11062 | else : |
| | 11063 | # compilation failed |
| | 11064 | lt_cv_dlopen_self_static=no |
| | 11065 | fi |
| | 11066 | fi |
| | 11067 | rm -fr conftest* |
| | 11068 | |
| | 11069 | |
| | 11070 | fi |
| | 11071 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
| | 11072 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
| | 11073 | fi |
| | 11074 | |
| | 11075 | CPPFLAGS="$save_CPPFLAGS" |
| | 11076 | LDFLAGS="$save_LDFLAGS" |
| | 11077 | LIBS="$save_LIBS" |
| | 11078 | ;; |
| | 11079 | esac |
| | 11080 | |
| | 11081 | case $lt_cv_dlopen_self in |
| | 11082 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| | 11083 | *) enable_dlopen_self=unknown ;; |
| | 11084 | esac |
| | 11085 | |
| | 11086 | case $lt_cv_dlopen_self_static in |
| | 11087 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| | 11088 | *) enable_dlopen_self_static=unknown ;; |
| | 11089 | esac |
| | 11090 | fi |
| | 11091 | |
| | 11092 | |
| | 11093 | # Report which library types will actually be built |
| | 11094 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| | 11095 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| | 11096 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| | 11097 | echo "${ECHO_T}$can_build_shared" >&6 |
| | 11098 | |
| | 11099 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| | 11100 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| | 11101 | test "$can_build_shared" = "no" && enable_shared=no |
| | 11102 | |
| | 11103 | # On AIX, shared libraries and static libraries use the same namespace, and |
| | 11104 | # are all built from PIC. |
| | 11105 | case $host_os in |
| | 11106 | aix3*) |
| | 11107 | test "$enable_shared" = yes && enable_static=no |
| | 11108 | if test -n "$RANLIB"; then |
| | 11109 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| | 11110 | postinstall_cmds='$RANLIB $lib' |
| | 11111 | fi |
| | 11112 | ;; |
| | 11113 | |
| | 11114 | aix4* | aix5*) |
| | 11115 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| | 11116 | test "$enable_shared" = yes && enable_static=no |
| | 11117 | fi |
| | 11118 | ;; |
| | 11119 | esac |
| | 11120 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| | 11121 | echo "${ECHO_T}$enable_shared" >&6 |
| | 11122 | |
| | 11123 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| | 11124 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| | 11125 | # Make sure either enable_shared or enable_static is yes. |
| | 11126 | test "$enable_shared" = yes || enable_static=yes |
| | 11127 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| | 11128 | echo "${ECHO_T}$enable_static" >&6 |
| | 11129 | |
| | 11130 | # The else clause should only fire when bootstrapping the |
| | 11131 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| | 11132 | # with your package, and you will get complaints that there are |
| | 11133 | # no rules to generate ltmain.sh. |
| | 11134 | if test -f "$ltmain"; then |
| | 11135 | # See if we are running on zsh, and set the options which allow our commands through |
| | 11136 | # without removal of \ escapes. |
| | 11137 | if test -n "${ZSH_VERSION+set}" ; then |
| | 11138 | setopt NO_GLOB_SUBST |
| | 11139 | fi |
| | 11140 | # Now quote all the things that may contain metacharacters while being |
| | 11141 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| | 11142 | # variables and quote the copies for generation of the libtool script. |
| | 11143 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| | 11144 | SED SHELL STRIP \ |
| | 11145 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| | 11146 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| | 11147 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| | 11148 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| | 11149 | lt_cv_sys_global_symbol_to_c_name_address \ |
| | 11150 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| | 11151 | old_postinstall_cmds old_postuninstall_cmds \ |
| | 11152 | compiler \ |
| | 11153 | CC \ |
| | 11154 | LD \ |
| | 11155 | lt_prog_compiler_wl \ |
| | 11156 | lt_prog_compiler_pic \ |
| | 11157 | lt_prog_compiler_static \ |
| | 11158 | lt_prog_compiler_no_builtin_flag \ |
| | 11159 | export_dynamic_flag_spec \ |
| | 11160 | thread_safe_flag_spec \ |
| | 11161 | whole_archive_flag_spec \ |
| | 11162 | enable_shared_with_static_runtimes \ |
| | 11163 | old_archive_cmds \ |
| | 11164 | old_archive_from_new_cmds \ |
| | 11165 | predep_objects \ |
| | 11166 | postdep_objects \ |
| | 11167 | predeps \ |
| | 11168 | postdeps \ |
| | 11169 | compiler_lib_search_path \ |
| | 11170 | archive_cmds \ |
| | 11171 | archive_expsym_cmds \ |
| | 11172 | postinstall_cmds \ |
| | 11173 | postuninstall_cmds \ |
| | 11174 | old_archive_from_expsyms_cmds \ |
| | 11175 | allow_undefined_flag \ |
| | 11176 | no_undefined_flag \ |
| | 11177 | export_symbols_cmds \ |
| | 11178 | hardcode_libdir_flag_spec \ |
| | 11179 | hardcode_libdir_flag_spec_ld \ |
| | 11180 | hardcode_libdir_separator \ |
| | 11181 | hardcode_automatic \ |
| | 11182 | module_cmds \ |
| | 11183 | module_expsym_cmds \ |
| | 11184 | lt_cv_prog_compiler_c_o \ |
| | 11185 | exclude_expsyms \ |
| | 11186 | include_expsyms; do |
| | 11187 | |
| | 11188 | case $var in |
| | 11189 | old_archive_cmds | \ |
| | 11190 | old_archive_from_new_cmds | \ |
| | 11191 | archive_cmds | \ |
| | 11192 | archive_expsym_cmds | \ |
| | 11193 | module_cmds | \ |
| | 11194 | module_expsym_cmds | \ |
| | 11195 | old_archive_from_expsyms_cmds | \ |
| | 11196 | export_symbols_cmds | \ |
| | 11197 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| | 11198 | postinstall_cmds | postuninstall_cmds | \ |
| | 11199 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| | 11200 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| | 11201 | # Double-quote double-evaled strings. |
| | 11202 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| | 11203 | ;; |
| | 11204 | *) |
| | 11205 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| | 11206 | ;; |
| | 11207 | esac |
| | 11208 | done |
| | 11209 | |
| | 11210 | case $lt_echo in |
| | 11211 | *'\$0 --fallback-echo"') |
| | 11212 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| | 11213 | ;; |
| | 11214 | esac |
| | 11215 | |
| | 11216 | cfgfile="${ofile}T" |
| | 11217 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
| | 11218 | $rm -f "$cfgfile" |
| | 11219 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
| | 11220 | echo "$as_me: creating $ofile" >&6;} |
| | 11221 | |
| | 11222 | cat <<__EOF__ >> "$cfgfile" |
| | 11223 | #! $SHELL |
| | 11224 | |
| | 11225 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| | 11226 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
| | 11227 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| | 11228 | # |
| | 11229 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
| | 11230 | # Free Software Foundation, Inc. |
| | 11231 | # |
| | 11232 | # This file is part of GNU Libtool: |
| | 11233 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
| | 11234 | # |
| | 11235 | # This program is free software; you can redistribute it and/or modify |
| | 11236 | # it under the terms of the GNU General Public License as published by |
| | 11237 | # the Free Software Foundation; either version 2 of the License, or |
| | 11238 | # (at your option) any later version. |
| | 11239 | # |
| | 11240 | # This program is distributed in the hope that it will be useful, but |
| | 11241 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| | 11242 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| | 11243 | # General Public License for more details. |
| | 11244 | # |
| | 11245 | # You should have received a copy of the GNU General Public License |
| | 11246 | # along with this program; if not, write to the Free Software |
| | 11247 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| | 11248 | # |
| | 11249 | # As a special exception to the GNU General Public License, if you |
| | 11250 | # distribute this file as part of a program that contains a |
| | 11251 | # configuration script generated by Autoconf, you may include it under |
| | 11252 | # the same distribution terms that you use for the rest of that program. |
| | 11253 | |
| | 11254 | # A sed program that does not truncate output. |
| | 11255 | SED=$lt_SED |
| | 11256 | |
| | 11257 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| | 11258 | Xsed="$SED -e 1s/^X//" |
| | 11259 | |
| | 11260 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| | 11261 | # if CDPATH is set. |
| | 11262 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| | 11263 | |
| | 11264 | # The names of the tagged configurations supported by this script. |
| | 11265 | available_tags= |
| | 11266 | |
| | 11267 | # ### BEGIN LIBTOOL CONFIG |
| | 11268 | |
| | 11269 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| | 11270 | |
| | 11271 | # Shell to use when invoking shell scripts. |
| | 11272 | SHELL=$lt_SHELL |
| | 11273 | |
| | 11274 | # Whether or not to build shared libraries. |
| | 11275 | build_libtool_libs=$enable_shared |
| | 11276 | |
| | 11277 | # Whether or not to build static libraries. |
| | 11278 | build_old_libs=$enable_static |
| | 11279 | |
| | 11280 | # Whether or not to add -lc for building shared libraries. |
| | 11281 | build_libtool_need_lc=$archive_cmds_need_lc |
| | 11282 | |
| | 11283 | # Whether or not to disallow shared libs when runtime libs are static |
| | 11284 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| | 11285 | |
| | 11286 | # Whether or not to optimize for fast installation. |
| | 11287 | fast_install=$enable_fast_install |
| | 11288 | |
| | 11289 | # The host system. |
| | 11290 | host_alias=$host_alias |
| | 11291 | host=$host |
| | 11292 | host_os=$host_os |
| | 11293 | |
| | 11294 | # The build system. |
| | 11295 | build_alias=$build_alias |
| | 11296 | build=$build |
| | 11297 | build_os=$build_os |
| | 11298 | |
| | 11299 | # An echo program that does not interpret backslashes. |
| | 11300 | echo=$lt_echo |
| | 11301 | |
| | 11302 | # The archiver. |
| | 11303 | AR=$lt_AR |
| | 11304 | AR_FLAGS=$lt_AR_FLAGS |
| | 11305 | |
| | 11306 | # A C compiler. |
| | 11307 | LTCC=$lt_LTCC |
| | 11308 | |
| | 11309 | # LTCC compiler flags. |
| | 11310 | LTCFLAGS=$lt_LTCFLAGS |
| | 11311 | |
| | 11312 | # A language-specific compiler. |
| | 11313 | CC=$lt_compiler |
| | 11314 | |
| | 11315 | # Is the compiler the GNU C compiler? |
| | 11316 | with_gcc=$GCC |
| | 11317 | |
| | 11318 | # An ERE matcher. |
| | 11319 | EGREP=$lt_EGREP |
| | 11320 | |
| | 11321 | # The linker used to build libraries. |
| | 11322 | LD=$lt_LD |
| | 11323 | |
| | 11324 | # Whether we need hard or soft links. |
| | 11325 | LN_S=$lt_LN_S |
| | 11326 | |
| | 11327 | # A BSD-compatible nm program. |
| | 11328 | NM=$lt_NM |
| | 11329 | |
| | 11330 | # A symbol stripping program |
| | 11331 | STRIP=$lt_STRIP |
| | 11332 | |
| | 11333 | # Used to examine libraries when file_magic_cmd begins "file" |
| | 11334 | MAGIC_CMD=$MAGIC_CMD |
| | 11335 | |
| | 11336 | # Used on cygwin: DLL creation program. |
| | 11337 | DLLTOOL="$DLLTOOL" |
| | 11338 | |
| | 11339 | # Used on cygwin: object dumper. |
| | 11340 | OBJDUMP="$OBJDUMP" |
| | 11341 | |
| | 11342 | # Used on cygwin: assembler. |
| | 11343 | AS="$AS" |
| | 11344 | |
| | 11345 | # The name of the directory that contains temporary libtool files. |
| | 11346 | objdir=$objdir |
| | 11347 | |
| | 11348 | # How to create reloadable object files. |
| | 11349 | reload_flag=$lt_reload_flag |
| | 11350 | reload_cmds=$lt_reload_cmds |
| | 11351 | |
| | 11352 | # How to pass a linker flag through the compiler. |
| | 11353 | wl=$lt_lt_prog_compiler_wl |
| | 11354 | |
| | 11355 | # Object file suffix (normally "o"). |
| | 11356 | objext="$ac_objext" |
| | 11357 | |
| | 11358 | # Old archive suffix (normally "a"). |
| | 11359 | libext="$libext" |
| | 11360 | |
| | 11361 | # Shared library suffix (normally ".so"). |
| | 11362 | shrext_cmds='$shrext_cmds' |
| | 11363 | |
| | 11364 | # Executable file suffix (normally ""). |
| | 11365 | exeext="$exeext" |
| | 11366 | |
| | 11367 | # Additional compiler flags for building library objects. |
| | 11368 | pic_flag=$lt_lt_prog_compiler_pic |
| | 11369 | pic_mode=$pic_mode |
| | 11370 | |
| | 11371 | # What is the maximum length of a command? |
| | 11372 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| | 11373 | |
| | 11374 | # Does compiler simultaneously support -c and -o options? |
| | 11375 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| | 11376 | |
| | 11377 | # Must we lock files when doing compilation? |
| | 11378 | need_locks=$lt_need_locks |
| | 11379 | |
| | 11380 | # Do we need the lib prefix for modules? |
| | 11381 | need_lib_prefix=$need_lib_prefix |
| | 11382 | |
| | 11383 | # Do we need a version for libraries? |
| | 11384 | need_version=$need_version |
| | 11385 | |
| | 11386 | # Whether dlopen is supported. |
| | 11387 | dlopen_support=$enable_dlopen |
| | 11388 | |
| | 11389 | # Whether dlopen of programs is supported. |
| | 11390 | dlopen_self=$enable_dlopen_self |
| | 11391 | |
| | 11392 | # Whether dlopen of statically linked programs is supported. |
| | 11393 | dlopen_self_static=$enable_dlopen_self_static |
| | 11394 | |
| | 11395 | # Compiler flag to prevent dynamic linking. |
| | 11396 | link_static_flag=$lt_lt_prog_compiler_static |
| | 11397 | |
| | 11398 | # Compiler flag to turn off builtin functions. |
| | 11399 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| | 11400 | |
| | 11401 | # Compiler flag to allow reflexive dlopens. |
| | 11402 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| | 11403 | |
| | 11404 | # Compiler flag to generate shared objects directly from archives. |
| | 11405 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| | 11406 | |
| | 11407 | # Compiler flag to generate thread-safe objects. |
| | 11408 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
| | 11409 | |
| | 11410 | # Library versioning type. |
| | 11411 | version_type=$version_type |
| | 11412 | |
| | 11413 | # Format of library name prefix. |
| | 11414 | libname_spec=$lt_libname_spec |
| | 11415 | |
| | 11416 | # List of archive names. First name is the real one, the rest are links. |
| | 11417 | # The last name is the one that the linker finds with -lNAME. |
| | 11418 | library_names_spec=$lt_library_names_spec |
| | 11419 | |
| | 11420 | # The coded name of the library, if different from the real name. |
| | 11421 | soname_spec=$lt_soname_spec |
| | 11422 | |
| | 11423 | # Commands used to build and install an old-style archive. |
| | 11424 | RANLIB=$lt_RANLIB |
| | 11425 | old_archive_cmds=$lt_old_archive_cmds |
| | 11426 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| | 11427 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| | 11428 | |
| | 11429 | # Create an old-style archive from a shared archive. |
| | 11430 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| | 11431 | |
| | 11432 | # Create a temporary old-style archive to link instead of a shared archive. |
| | 11433 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| | 11434 | |
| | 11435 | # Commands used to build and install a shared archive. |
| | 11436 | archive_cmds=$lt_archive_cmds |
| | 11437 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| | 11438 | postinstall_cmds=$lt_postinstall_cmds |
| | 11439 | postuninstall_cmds=$lt_postuninstall_cmds |
| | 11440 | |
| | 11441 | # Commands used to build a loadable module (assumed same as above if empty) |
| | 11442 | module_cmds=$lt_module_cmds |
| | 11443 | module_expsym_cmds=$lt_module_expsym_cmds |
| | 11444 | |
| | 11445 | # Commands to strip libraries. |
| | 11446 | old_striplib=$lt_old_striplib |
| | 11447 | striplib=$lt_striplib |
| | 11448 | |
| | 11449 | # Dependencies to place before the objects being linked to create a |
| | 11450 | # shared library. |
| | 11451 | predep_objects=$lt_predep_objects |
| | 11452 | |
| | 11453 | # Dependencies to place after the objects being linked to create a |
| | 11454 | # shared library. |
| | 11455 | postdep_objects=$lt_postdep_objects |
| | 11456 | |
| | 11457 | # Dependencies to place before the objects being linked to create a |
| | 11458 | # shared library. |
| | 11459 | predeps=$lt_predeps |
| | 11460 | |
| | 11461 | # Dependencies to place after the objects being linked to create a |
| | 11462 | # shared library. |
| | 11463 | postdeps=$lt_postdeps |
| | 11464 | |
| | 11465 | # The library search path used internally by the compiler when linking |
| | 11466 | # a shared library. |
| | 11467 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| | 11468 | |
| | 11469 | # Method to check whether dependent libraries are shared objects. |
| | 11470 | deplibs_check_method=$lt_deplibs_check_method |
| | 11471 | |
| | 11472 | # Command to use when deplibs_check_method == file_magic. |
| | 11473 | file_magic_cmd=$lt_file_magic_cmd |
| | 11474 | |
| | 11475 | # Flag that allows shared libraries with undefined symbols to be built. |
| | 11476 | allow_undefined_flag=$lt_allow_undefined_flag |
| | 11477 | |
| | 11478 | # Flag that forces no undefined symbols. |
| | 11479 | no_undefined_flag=$lt_no_undefined_flag |
| | 11480 | |
| | 11481 | # Commands used to finish a libtool library installation in a directory. |
| | 11482 | finish_cmds=$lt_finish_cmds |
| | 11483 | |
| | 11484 | # Same as above, but a single script fragment to be evaled but not shown. |
| | 11485 | finish_eval=$lt_finish_eval |
| | 11486 | |
| | 11487 | # Take the output of nm and produce a listing of raw symbols and C names. |
| | 11488 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| | 11489 | |
| | 11490 | # Transform the output of nm in a proper C declaration |
| | 11491 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| | 11492 | |
| | 11493 | # Transform the output of nm in a C name address pair |
| | 11494 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| | 11495 | |
| | 11496 | # This is the shared library runtime path variable. |
| | 11497 | runpath_var=$runpath_var |
| | 11498 | |
| | 11499 | # This is the shared library path variable. |
| | 11500 | shlibpath_var=$shlibpath_var |
| | 11501 | |
| | 11502 | # Is shlibpath searched before the hard-coded library search path? |
| | 11503 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| | 11504 | |
| | 11505 | # How to hardcode a shared library path into an executable. |
| | 11506 | hardcode_action=$hardcode_action |
| | 11507 | |
| | 11508 | # Whether we should hardcode library paths into libraries. |
| | 11509 | hardcode_into_libs=$hardcode_into_libs |
| | 11510 | |
| | 11511 | # Flag to hardcode \$libdir into a binary during linking. |
| | 11512 | # This must work even if \$libdir does not exist. |
| | 11513 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| | 11514 | |
| | 11515 | # If ld is used when linking, flag to hardcode \$libdir into |
| | 11516 | # a binary during linking. This must work even if \$libdir does |
| | 11517 | # not exist. |
| | 11518 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| | 11519 | |
| | 11520 | # Whether we need a single -rpath flag with a separated argument. |
| | 11521 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| | 11522 | |
| | 11523 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| | 11524 | # resulting binary. |
| | 11525 | hardcode_direct=$hardcode_direct |
| | 11526 | |
| | 11527 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| | 11528 | # resulting binary. |
| | 11529 | hardcode_minus_L=$hardcode_minus_L |
| | 11530 | |
| | 11531 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| | 11532 | # the resulting binary. |
| | 11533 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| | 11534 | |
| | 11535 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| | 11536 | # and all subsequent libraries and executables linked against it. |
| | 11537 | hardcode_automatic=$hardcode_automatic |
| | 11538 | |
| | 11539 | # Variables whose values should be saved in libtool wrapper scripts and |
| | 11540 | # restored at relink time. |
| | 11541 | variables_saved_for_relink="$variables_saved_for_relink" |
| | 11542 | |
| | 11543 | # Whether libtool must link a program against all its dependency libraries. |
| | 11544 | link_all_deplibs=$link_all_deplibs |
| | 11545 | |
| | 11546 | # Compile-time system search path for libraries |
| | 11547 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| | 11548 | |
| | 11549 | # Run-time system search path for libraries |
| | 11550 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| | 11551 | |
| | 11552 | # Fix the shell variable \$srcfile for the compiler. |
| | 11553 | fix_srcfile_path="$fix_srcfile_path" |
| | 11554 | |
| | 11555 | # Set to yes if exported symbols are required. |
| | 11556 | always_export_symbols=$always_export_symbols |
| | 11557 | |
| | 11558 | # The commands to list exported symbols. |
| | 11559 | export_symbols_cmds=$lt_export_symbols_cmds |
| | 11560 | |
| | 11561 | # The commands to extract the exported symbol list from a shared archive. |
| | 11562 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| | 11563 | |
| | 11564 | # Symbols that should not be listed in the preloaded symbols. |
| | 11565 | exclude_expsyms=$lt_exclude_expsyms |
| | 11566 | |
| | 11567 | # Symbols that must always be exported. |
| | 11568 | include_expsyms=$lt_include_expsyms |
| | 11569 | |
| | 11570 | # ### END LIBTOOL CONFIG |
| | 11571 | |
| | 11572 | __EOF__ |
| | 11573 | |
| | 11574 | |
| | 11575 | case $host_os in |
| | 11576 | aix3*) |
| | 11577 | cat <<\EOF >> "$cfgfile" |
| | 11578 | |
| | 11579 | # AIX sometimes has problems with the GCC collect2 program. For some |
| | 11580 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| | 11581 | # vanish in a puff of smoke. |
| | 11582 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| | 11583 | COLLECT_NAMES= |
| | 11584 | export COLLECT_NAMES |
| | 11585 | fi |
| | 11586 | EOF |
| | 11587 | ;; |
| | 11588 | esac |
| | 11589 | |
| | 11590 | # We use sed instead of cat because bash on DJGPP gets confused if |
| | 11591 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| | 11592 | # text mode, it properly converts lines to CR/LF. This bash problem |
| | 11593 | # is reportedly fixed, but why not run on old versions too? |
| | 11594 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
| | 11595 | |
| | 11596 | mv -f "$cfgfile" "$ofile" || \ |
| | 11597 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| | 11598 | chmod +x "$ofile" |
| | 11599 | |
| | 11600 | else |
| | 11601 | # If there is no Makefile yet, we rely on a make rule to execute |
| | 11602 | # `config.status --recheck' to rerun these tests and create the |
| | 11603 | # libtool script then. |
| | 11604 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| | 11605 | if test -f "$ltmain_in"; then |
| | 11606 | test -f Makefile && make "$ltmain" |
| | 11607 | fi |
| | 11608 | fi |
| | 11609 | |
| | 11610 | |
| | 11611 | ac_ext=c |
| | 11612 | ac_cpp='$CPP $CPPFLAGS' |
| | 11613 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 11614 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 11615 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | 11616 | |
| | 11617 | CC="$lt_save_CC" |
| | 11618 | |
| | 11619 | |
| | 11620 | # Check whether --with-tags or --without-tags was given. |
| | 11621 | if test "${with_tags+set}" = set; then |
| | 11622 | withval="$with_tags" |
| | 11623 | tagnames="$withval" |
| | 11624 | fi; |
| | 11625 | |
| | 11626 | if test -f "$ltmain" && test -n "$tagnames"; then |
| | 11627 | if test ! -f "${ofile}"; then |
| | 11628 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
| | 11629 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
| | 11630 | fi |
| | 11631 | |
| | 11632 | if test -z "$LTCC"; then |
| | 11633 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
| | 11634 | if test -z "$LTCC"; then |
| | 11635 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
| | 11636 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
| | 11637 | else |
| | 11638 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
| | 11639 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
| | 11640 | fi |
| | 11641 | fi |
| | 11642 | if test -z "$LTCFLAGS"; then |
| | 11643 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
| | 11644 | fi |
| | 11645 | |
| | 11646 | # Extract list of available tagged configurations in $ofile. |
| | 11647 | # Note that this assumes the entire list is on one line. |
| | 11648 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
| | 11649 | |
| | 11650 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| | 11651 | for tagname in $tagnames; do |
| | 11652 | IFS="$lt_save_ifs" |
| | 11653 | # Check whether tagname contains only valid characters |
| | 11654 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
| | 11655 | "") ;; |
| | 11656 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
| | 11657 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
| | 11658 | { (exit 1); exit 1; }; } |
| | 11659 | ;; |
| | 11660 | esac |
| | 11661 | |
| | 11662 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
| | 11663 | then |
| | 11664 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
| | 11665 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
| | 11666 | { (exit 1); exit 1; }; } |
| | 11667 | fi |
| | 11668 | |
| | 11669 | # Update the list of available tags. |
| | 11670 | if test -n "$tagname"; then |
| | 11671 | echo appending configuration tag \"$tagname\" to $ofile |
| | 11672 | |
| | 11673 | case $tagname in |
| | 11674 | CXX) |
| | 11675 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| | 11676 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| | 11677 | (test "X$CXX" != "Xg++"))) ; then |
| | 11678 | ac_ext=cc |
| | 11679 | ac_cpp='$CXXCPP $CPPFLAGS' |
| | 11680 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 11681 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 11682 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| | 11683 | |
| | 11684 | |
| | 11685 | |
| | 11686 | |
| | 11687 | archive_cmds_need_lc_CXX=no |
| | 11688 | allow_undefined_flag_CXX= |
| | 11689 | always_export_symbols_CXX=no |
| | 11690 | archive_expsym_cmds_CXX= |
| | 11691 | export_dynamic_flag_spec_CXX= |
| | 11692 | hardcode_direct_CXX=no |
| | 11693 | hardcode_libdir_flag_spec_CXX= |
| | 11694 | hardcode_libdir_flag_spec_ld_CXX= |
| | 11695 | hardcode_libdir_separator_CXX= |
| | 11696 | hardcode_minus_L_CXX=no |
| | 11697 | hardcode_shlibpath_var_CXX=unsupported |
| | 11698 | hardcode_automatic_CXX=no |
| | 11699 | module_cmds_CXX= |
| | 11700 | module_expsym_cmds_CXX= |
| | 11701 | link_all_deplibs_CXX=unknown |
| | 11702 | old_archive_cmds_CXX=$old_archive_cmds |
| | 11703 | no_undefined_flag_CXX= |
| | 11704 | whole_archive_flag_spec_CXX= |
| | 11705 | enable_shared_with_static_runtimes_CXX=no |
| | 11706 | |
| | 11707 | # Dependencies to place before and after the object being linked: |
| | 11708 | predep_objects_CXX= |
| | 11709 | postdep_objects_CXX= |
| | 11710 | predeps_CXX= |
| | 11711 | postdeps_CXX= |
| | 11712 | compiler_lib_search_path_CXX= |
| | 11713 | |
| | 11714 | # Source file extension for C++ test sources. |
| | 11715 | ac_ext=cpp |
| | 11716 | |
| | 11717 | # Object file extension for compiled C++ test sources. |
| | 11718 | objext=o |
| | 11719 | objext_CXX=$objext |
| | 11720 | |
| | 11721 | # Code to be used in simple compile tests |
| | 11722 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| | 11723 | |
| | 11724 | # Code to be used in simple link tests |
| | 11725 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
| | 11726 | |
| | 11727 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| | 11728 | |
| | 11729 | # If no C compiler was specified, use CC. |
| | 11730 | LTCC=${LTCC-"$CC"} |
| | 11731 | |
| | 11732 | # If no C compiler flags were specified, use CFLAGS. |
| | 11733 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| | 11734 | |
| | 11735 | # Allow CC to be a program name with arguments. |
| | 11736 | compiler=$CC |
| | 11737 | |
| | 11738 | |
| | 11739 | # save warnings/boilerplate of simple test code |
| | 11740 | ac_outfile=conftest.$ac_objext |
| | 11741 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| | 11742 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| | 11743 | _lt_compiler_boilerplate=`cat conftest.err` |
| | 11744 | $rm conftest* |
| | 11745 | |
| | 11746 | ac_outfile=conftest.$ac_objext |
| | 11747 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| | 11748 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| | 11749 | _lt_linker_boilerplate=`cat conftest.err` |
| | 11750 | $rm conftest* |
| | 11751 | |
| | 11752 | |
| | 11753 | # Allow CC to be a program name with arguments. |
| | 11754 | lt_save_CC=$CC |
| | 11755 | lt_save_LD=$LD |
| | 11756 | lt_save_GCC=$GCC |
| | 11757 | GCC=$GXX |
| | 11758 | lt_save_with_gnu_ld=$with_gnu_ld |
| | 11759 | lt_save_path_LD=$lt_cv_path_LD |
| | 11760 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| | 11761 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| | 11762 | else |
| | 11763 | $as_unset lt_cv_prog_gnu_ld |
| | 11764 | fi |
| | 11765 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| | 11766 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| | 11767 | else |
| | 11768 | $as_unset lt_cv_path_LD |
| | 11769 | fi |
| | 11770 | test -z "${LDCXX+set}" || LD=$LDCXX |
| | 11771 | CC=${CXX-"c++"} |
| | 11772 | compiler=$CC |
| | 11773 | compiler_CXX=$CC |
| | 11774 | for cc_temp in $compiler""; do |
| | 11775 | case $cc_temp in |
| | 11776 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| | 11777 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| | 11778 | \-*) ;; |
| | 11779 | *) break;; |
| | 11780 | esac |
| | 11781 | done |
| | 11782 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| | 11783 | |
| | 11784 | |
| | 11785 | # We don't want -fno-exception wen compiling C++ code, so set the |
| | 11786 | # no_builtin_flag separately |
| | 11787 | if test "$GXX" = yes; then |
| | 11788 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| | 11789 | else |
| | 11790 | lt_prog_compiler_no_builtin_flag_CXX= |
| | 11791 | fi |
| | 11792 | |
| | 11793 | if test "$GXX" = yes; then |
| | 11794 | # Set up default GNU C++ configuration |
| | 11795 | |
| | 11796 | |
| | 11797 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| | 11798 | if test "${with_gnu_ld+set}" = set; then |
| | 11799 | withval="$with_gnu_ld" |
| | 11800 | test "$withval" = no || with_gnu_ld=yes |
| | 11801 | else |
| | 11802 | with_gnu_ld=no |
| | 11803 | fi; |
| | 11804 | ac_prog=ld |
| | 11805 | if test "$GCC" = yes; then |
| | 11806 | # Check if gcc -print-prog-name=ld gives a path. |
| | 11807 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
| | 11808 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
| | 11809 | case $host in |
| | 11810 | *-*-mingw*) |
| | 11811 | # gcc leaves a trailing carriage return which upsets mingw |
| | 11812 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| | 11813 | *) |
| | 11814 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| | 11815 | esac |
| | 11816 | case $ac_prog in |
| | 11817 | # Accept absolute paths. |
| | 11818 | [\\/]* | ?:[\\/]*) |
| | 11819 | re_direlt='/[^/][^/]*/\.\./' |
| | 11820 | # Canonicalize the pathname of ld |
| | 11821 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
| | 11822 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| | 11823 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
| | 11824 | done |
| | 11825 | test -z "$LD" && LD="$ac_prog" |
| | 11826 | ;; |
| | 11827 | "") |
| | 11828 | # If it fails, then pretend we aren't using GCC. |
| | 11829 | ac_prog=ld |
| | 11830 | ;; |
| | 11831 | *) |
| | 11832 | # If it is relative, then search for the first ld in PATH. |
| | 11833 | with_gnu_ld=unknown |
| | 11834 | ;; |
| | 11835 | esac |
| | 11836 | elif test "$with_gnu_ld" = yes; then |
| | 11837 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| | 11838 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| | 11839 | else |
| | 11840 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| | 11841 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| | 11842 | fi |
| | 11843 | if test "${lt_cv_path_LD+set}" = set; then |
| | 11844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 11845 | else |
| | 11846 | if test -z "$LD"; then |
| | 11847 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| | 11848 | for ac_dir in $PATH; do |
| | 11849 | IFS="$lt_save_ifs" |
| | 11850 | test -z "$ac_dir" && ac_dir=. |
| | 11851 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| | 11852 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| | 11853 | # Check to see if the program is GNU ld. I'd rather use --version, |
| | 11854 | # but apparently some variants of GNU ld only accept -v. |
| | 11855 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| | 11856 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| | 11857 | *GNU* | *'with BFD'*) |
| | 11858 | test "$with_gnu_ld" != no && break |
| | 11859 | ;; |
| | 11860 | *) |
| | 11861 | test "$with_gnu_ld" != yes && break |
| | 11862 | ;; |
| | 11863 | esac |
| | 11864 | fi |
| | 11865 | done |
| | 11866 | IFS="$lt_save_ifs" |
| | 11867 | else |
| | 11868 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| | 11869 | fi |
| | 11870 | fi |
| | 11871 | |
| | 11872 | LD="$lt_cv_path_LD" |
| | 11873 | if test -n "$LD"; then |
| | 11874 | echo "$as_me:$LINENO: result: $LD" >&5 |
| | 11875 | echo "${ECHO_T}$LD" >&6 |
| | 11876 | else |
| | 11877 | echo "$as_me:$LINENO: result: no" >&5 |
| | 11878 | echo "${ECHO_T}no" >&6 |
| | 11879 | fi |
| | 11880 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| | 11881 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| | 11882 | { (exit 1); exit 1; }; } |
| | 11883 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| | 11884 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| | 11885 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
| | 11886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 11887 | else |
| | 11888 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| | 11889 | case `$LD -v 2>&1 </dev/null` in |
| | 11890 | *GNU* | *'with BFD'*) |
| | 11891 | lt_cv_prog_gnu_ld=yes |
| | 11892 | ;; |
| | 11893 | *) |
| | 11894 | lt_cv_prog_gnu_ld=no |
| | 11895 | ;; |
| | 11896 | esac |
| | 11897 | fi |
| | 11898 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
| | 11899 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
| | 11900 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| | 11901 | |
| | 11902 | |
| | 11903 | |
| | 11904 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| | 11905 | # archiving commands below assume that GNU ld is being used. |
| | 11906 | if test "$with_gnu_ld" = yes; then |
| | 11907 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 11908 | 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' |
| | 11909 | |
| | 11910 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| | 11911 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| | 11912 | |
| | 11913 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| | 11914 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| | 11915 | # investigate it a little bit more. (MM) |
| | 11916 | wlarc='${wl}' |
| | 11917 | |
| | 11918 | # ancient GNU ld didn't support --whole-archive et. al. |
| | 11919 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
| | 11920 | grep 'no-whole-archive' > /dev/null; then |
| | 11921 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| | 11922 | else |
| | 11923 | whole_archive_flag_spec_CXX= |
| | 11924 | fi |
| | 11925 | else |
| | 11926 | with_gnu_ld=no |
| | 11927 | wlarc= |
| | 11928 | |
| | 11929 | # A generic and very simple default shared library creation |
| | 11930 | # command for GNU C++ for the case where it uses the native |
| | 11931 | # linker, instead of GNU ld. If possible, this setting should |
| | 11932 | # overridden to take advantage of the native linker features on |
| | 11933 | # the platform it is being used on. |
| | 11934 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| | 11935 | fi |
| | 11936 | |
| | 11937 | # Commands to make compiler produce verbose output that lists |
| | 11938 | # what "hidden" libraries, object files and flags are used when |
| | 11939 | # linking a shared library. |
| | 11940 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| | 11941 | |
| | 11942 | else |
| | 11943 | GXX=no |
| | 11944 | with_gnu_ld=no |
| | 11945 | wlarc= |
| | 11946 | fi |
| | 11947 | |
| | 11948 | # PORTME: fill in a description of your system's C++ link characteristics |
| | 11949 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| | 11950 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| | 11951 | ld_shlibs_CXX=yes |
| | 11952 | case $host_os in |
| | 11953 | aix3*) |
| | 11954 | # FIXME: insert proper C++ library support |
| | 11955 | ld_shlibs_CXX=no |
| | 11956 | ;; |
| | 11957 | aix4* | aix5*) |
| | 11958 | if test "$host_cpu" = ia64; then |
| | 11959 | # On IA64, the linker does run time linking by default, so we don't |
| | 11960 | # have to do anything special. |
| | 11961 | aix_use_runtimelinking=no |
| | 11962 | exp_sym_flag='-Bexport' |
| | 11963 | no_entry_flag="" |
| | 11964 | else |
| | 11965 | aix_use_runtimelinking=no |
| | 11966 | |
| | 11967 | # Test if we are trying to use run time linking or normal |
| | 11968 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| | 11969 | # need to do runtime linking. |
| | 11970 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| | 11971 | for ld_flag in $LDFLAGS; do |
| | 11972 | case $ld_flag in |
| | 11973 | *-brtl*) |
| | 11974 | aix_use_runtimelinking=yes |
| | 11975 | break |
| | 11976 | ;; |
| | 11977 | esac |
| | 11978 | done |
| | 11979 | ;; |
| | 11980 | esac |
| | 11981 | |
| | 11982 | exp_sym_flag='-bexport' |
| | 11983 | no_entry_flag='-bnoentry' |
| | 11984 | fi |
| | 11985 | |
| | 11986 | # When large executables or shared objects are built, AIX ld can |
| | 11987 | # have problems creating the table of contents. If linking a library |
| | 11988 | # or program results in "error TOC overflow" add -mminimal-toc to |
| | 11989 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| | 11990 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| | 11991 | |
| | 11992 | archive_cmds_CXX='' |
| | 11993 | hardcode_direct_CXX=yes |
| | 11994 | hardcode_libdir_separator_CXX=':' |
| | 11995 | link_all_deplibs_CXX=yes |
| | 11996 | |
| | 11997 | if test "$GXX" = yes; then |
| | 11998 | case $host_os in aix4.[012]|aix4.[012].*) |
| | 11999 | # We only want to do this on AIX 4.2 and lower, the check |
| | 12000 | # below for broken collect2 doesn't work under 4.3+ |
| | 12001 | collect2name=`${CC} -print-prog-name=collect2` |
| | 12002 | if test -f "$collect2name" && \ |
| | 12003 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| | 12004 | then |
| | 12005 | # We have reworked collect2 |
| | 12006 | hardcode_direct_CXX=yes |
| | 12007 | else |
| | 12008 | # We have old collect2 |
| | 12009 | hardcode_direct_CXX=unsupported |
| | 12010 | # It fails to find uninstalled libraries when the uninstalled |
| | 12011 | # path is not listed in the libpath. Setting hardcode_minus_L |
| | 12012 | # to unsupported forces relinking |
| | 12013 | hardcode_minus_L_CXX=yes |
| | 12014 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| | 12015 | hardcode_libdir_separator_CXX= |
| | 12016 | fi |
| | 12017 | ;; |
| | 12018 | esac |
| | 12019 | shared_flag='-shared' |
| | 12020 | if test "$aix_use_runtimelinking" = yes; then |
| | 12021 | shared_flag="$shared_flag "'${wl}-G' |
| | 12022 | fi |
| | 12023 | else |
| | 12024 | # not using gcc |
| | 12025 | if test "$host_cpu" = ia64; then |
| | 12026 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| | 12027 | # chokes on -Wl,-G. The following line is correct: |
| | 12028 | shared_flag='-G' |
| | 12029 | else |
| | 12030 | if test "$aix_use_runtimelinking" = yes; then |
| | 12031 | shared_flag='${wl}-G' |
| | 12032 | else |
| | 12033 | shared_flag='${wl}-bM:SRE' |
| | 12034 | fi |
| | 12035 | fi |
| | 12036 | fi |
| | 12037 | |
| | 12038 | # It seems that -bexpall does not export symbols beginning with |
| | 12039 | # underscore (_), so it is better to generate a list of symbols to export. |
| | 12040 | always_export_symbols_CXX=yes |
| | 12041 | if test "$aix_use_runtimelinking" = yes; then |
| | 12042 | # Warning - without using the other runtime loading flags (-brtl), |
| | 12043 | # -berok will link without error, but may produce a broken library. |
| | 12044 | allow_undefined_flag_CXX='-berok' |
| | 12045 | # Determine the default libpath from the value encoded in an empty executable. |
| | 12046 | cat >conftest.$ac_ext <<_ACEOF |
| | 12047 | /* confdefs.h. */ |
| | 12048 | _ACEOF |
| | 12049 | cat confdefs.h >>conftest.$ac_ext |
| | 12050 | cat >>conftest.$ac_ext <<_ACEOF |
| | 12051 | /* end confdefs.h. */ |
| | 12052 | |
| | 12053 | int |
| | 12054 | main () |
| | 12055 | { |
| | 12056 | |
| | 12057 | ; |
| | 12058 | return 0; |
| | 12059 | } |
| | 12060 | _ACEOF |
| | 12061 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 12062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 12063 | (eval $ac_link) 2>conftest.er1 |
| | 12064 | ac_status=$? |
| | 12065 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 12066 | rm -f conftest.er1 |
| | 12067 | cat conftest.err >&5 |
| | 12068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 12069 | (exit $ac_status); } && |
| | 12070 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | 12071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 12072 | (eval $ac_try) 2>&5 |
| | 12073 | ac_status=$? |
| | 12074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 12075 | (exit $ac_status); }; } && |
| | 12076 | { ac_try='test -s conftest$ac_exeext' |
| | 12077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 12078 | (eval $ac_try) 2>&5 |
| | 12079 | ac_status=$? |
| | 12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 12081 | (exit $ac_status); }; }; then |
| | 12082 | |
| | 12083 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| | 12084 | }'` |
| | 12085 | # Check for a 64-bit object if we didn't find anything. |
| | 12086 | if 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; } |
| | 12087 | }'`; fi |
| | 12088 | else |
| | 12089 | echo "$as_me: failed program was:" >&5 |
| | 12090 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 12091 | |
| | 12092 | fi |
| | 12093 | rm -f conftest.err conftest.$ac_objext \ |
| | 12094 | conftest$ac_exeext conftest.$ac_ext |
| | 12095 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| | 12096 | |
| | 12097 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| | 12098 | |
| | 12099 | 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" |
| | 12100 | else |
| | 12101 | if test "$host_cpu" = ia64; then |
| | 12102 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| | 12103 | allow_undefined_flag_CXX="-z nodefs" |
| | 12104 | 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" |
| | 12105 | else |
| | 12106 | # Determine the default libpath from the value encoded in an empty executable. |
| | 12107 | cat >conftest.$ac_ext <<_ACEOF |
| | 12108 | /* confdefs.h. */ |
| | 12109 | _ACEOF |
| | 12110 | cat confdefs.h >>conftest.$ac_ext |
| | 12111 | cat >>conftest.$ac_ext <<_ACEOF |
| | 12112 | /* end confdefs.h. */ |
| | 12113 | |
| | 12114 | int |
| | 12115 | main () |
| | 12116 | { |
| | 12117 | |
| | 12118 | ; |
| | 12119 | return 0; |
| | 12120 | } |
| | 12121 | _ACEOF |
| | 12122 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 12123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 12124 | (eval $ac_link) 2>conftest.er1 |
| | 12125 | ac_status=$? |
| | 12126 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 12127 | rm -f conftest.er1 |
| | 12128 | cat conftest.err >&5 |
| | 12129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 12130 | (exit $ac_status); } && |
| | 12131 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
| | 12132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 12133 | (eval $ac_try) 2>&5 |
| | 12134 | ac_status=$? |
| | 12135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 12136 | (exit $ac_status); }; } && |
| | 12137 | { ac_try='test -s conftest$ac_exeext' |
| | 12138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 12139 | (eval $ac_try) 2>&5 |
| | 12140 | ac_status=$? |
| | 12141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 12142 | (exit $ac_status); }; }; then |
| | 12143 | |
| | 12144 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| | 12145 | }'` |
| | 12146 | # Check for a 64-bit object if we didn't find anything. |
| | 12147 | if 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; } |
| | 12148 | }'`; fi |
| | 12149 | else |
| | 12150 | echo "$as_me: failed program was:" >&5 |
| | 12151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 12152 | |
| | 12153 | fi |
| | 12154 | rm -f conftest.err conftest.$ac_objext \ |
| | 12155 | conftest$ac_exeext conftest.$ac_ext |
| | 12156 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| | 12157 | |
| | 12158 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| | 12159 | # Warning - without using the other run time loading flags, |
| | 12160 | # -berok will link without error, but may produce a broken library. |
| | 12161 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| | 12162 | allow_undefined_flag_CXX=' ${wl}-berok' |
| | 12163 | # Exported symbols can be pulled into shared objects from archives |
| | 12164 | whole_archive_flag_spec_CXX='$convenience' |
| | 12165 | archive_cmds_need_lc_CXX=yes |
| | 12166 | # This is similar to how AIX traditionally builds its shared libraries. |
| | 12167 | 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' |
| | 12168 | fi |
| | 12169 | fi |
| | 12170 | ;; |
| | 12171 | |
| | 12172 | beos*) |
| | 12173 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 12174 | allow_undefined_flag_CXX=unsupported |
| | 12175 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| | 12176 | # support --undefined. This deserves some investigation. FIXME |
| | 12177 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 12178 | else |
| | 12179 | ld_shlibs_CXX=no |
| | 12180 | fi |
| | 12181 | ;; |
| | 12182 | |
| | 12183 | chorus*) |
| | 12184 | case $cc_basename in |
| | 12185 | *) |
| | 12186 | # FIXME: insert proper C++ library support |
| | 12187 | ld_shlibs_CXX=no |
| | 12188 | ;; |
| | 12189 | esac |
| | 12190 | ;; |
| | 12191 | |
| | 12192 | cygwin* | mingw* | pw32*) |
| | 12193 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| | 12194 | # as there is no search path for DLLs. |
| | 12195 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| | 12196 | allow_undefined_flag_CXX=unsupported |
| | 12197 | always_export_symbols_CXX=no |
| | 12198 | enable_shared_with_static_runtimes_CXX=yes |
| | 12199 | |
| | 12200 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| | 12201 | 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' |
| | 12202 | # If the export-symbols file already is a .def file (1st line |
| | 12203 | # is EXPORTS), use it as is; otherwise, prepend... |
| | 12204 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| | 12205 | cp $export_symbols $output_objdir/$soname.def; |
| | 12206 | else |
| | 12207 | echo EXPORTS > $output_objdir/$soname.def; |
| | 12208 | cat $export_symbols >> $output_objdir/$soname.def; |
| | 12209 | fi~ |
| | 12210 | $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' |
| | 12211 | else |
| | 12212 | ld_shlibs_CXX=no |
| | 12213 | fi |
| | 12214 | ;; |
| | 12215 | darwin* | rhapsody*) |
| | 12216 | case $host_os in |
| | 12217 | rhapsody* | darwin1.[012]) |
| | 12218 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
| | 12219 | ;; |
| | 12220 | *) # Darwin 1.3 on |
| | 12221 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| | 12222 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| | 12223 | else |
| | 12224 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| | 12225 | 10.[012]) |
| | 12226 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| | 12227 | ;; |
| | 12228 | 10.*) |
| | 12229 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
| | 12230 | ;; |
| | 12231 | esac |
| | 12232 | fi |
| | 12233 | ;; |
| | 12234 | esac |
| | 12235 | archive_cmds_need_lc_CXX=no |
| | 12236 | hardcode_direct_CXX=no |
| | 12237 | hardcode_automatic_CXX=yes |
| | 12238 | hardcode_shlibpath_var_CXX=unsupported |
| | 12239 | whole_archive_flag_spec_CXX='' |
| | 12240 | link_all_deplibs_CXX=yes |
| | 12241 | |
| | 12242 | if test "$GXX" = yes ; then |
| | 12243 | lt_int_apple_cc_single_mod=no |
| | 12244 | output_verbose_link_cmd='echo' |
| | 12245 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
| | 12246 | lt_int_apple_cc_single_mod=yes |
| | 12247 | fi |
| | 12248 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | 12249 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| | 12250 | else |
| | 12251 | 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' |
| | 12252 | fi |
| | 12253 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | 12254 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| | 12255 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | 12256 | 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}' |
| | 12257 | else |
| | 12258 | 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}' |
| | 12259 | fi |
| | 12260 | 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}' |
| | 12261 | else |
| | 12262 | case $cc_basename in |
| | 12263 | xlc*) |
| | 12264 | output_verbose_link_cmd='echo' |
| | 12265 | 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' |
| | 12266 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | 12267 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| | 12268 | 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}' |
| | 12269 | 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}' |
| | 12270 | ;; |
| | 12271 | *) |
| | 12272 | ld_shlibs_CXX=no |
| | 12273 | ;; |
| | 12274 | esac |
| | 12275 | fi |
| | 12276 | ;; |
| | 12277 | |
| | 12278 | dgux*) |
| | 12279 | case $cc_basename in |
| | 12280 | ec++*) |
| | 12281 | # FIXME: insert proper C++ library support |
| | 12282 | ld_shlibs_CXX=no |
| | 12283 | ;; |
| | 12284 | ghcx*) |
| | 12285 | # Green Hills C++ Compiler |
| | 12286 | # FIXME: insert proper C++ library support |
| | 12287 | ld_shlibs_CXX=no |
| | 12288 | ;; |
| | 12289 | *) |
| | 12290 | # FIXME: insert proper C++ library support |
| | 12291 | ld_shlibs_CXX=no |
| | 12292 | ;; |
| | 12293 | esac |
| | 12294 | ;; |
| | 12295 | freebsd[12]*) |
| | 12296 | # C++ shared libraries reported to be fairly broken before switch to ELF |
| | 12297 | ld_shlibs_CXX=no |
| | 12298 | ;; |
| | 12299 | freebsd-elf*) |
| | 12300 | archive_cmds_need_lc_CXX=no |
| | 12301 | ;; |
| | 12302 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| | 12303 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| | 12304 | # conventions |
| | 12305 | ld_shlibs_CXX=yes |
| | 12306 | ;; |
| | 12307 | gnu*) |
| | 12308 | ;; |
| | 12309 | hpux9*) |
| | 12310 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| | 12311 | hardcode_libdir_separator_CXX=: |
| | 12312 | export_dynamic_flag_spec_CXX='${wl}-E' |
| | 12313 | hardcode_direct_CXX=yes |
| | 12314 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| | 12315 | # but as the default |
| | 12316 | # location of the library. |
| | 12317 | |
| | 12318 | case $cc_basename in |
| | 12319 | CC*) |
| | 12320 | # FIXME: insert proper C++ library support |
| | 12321 | ld_shlibs_CXX=no |
| | 12322 | ;; |
| | 12323 | aCC*) |
| | 12324 | 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' |
| | 12325 | # Commands to make compiler produce verbose output that lists |
| | 12326 | # what "hidden" libraries, object files and flags are used when |
| | 12327 | # linking a shared library. |
| | 12328 | # |
| | 12329 | # There doesn't appear to be a way to prevent this compiler from |
| | 12330 | # explicitly linking system object files so we need to strip them |
| | 12331 | # from the output so that they don't get included in the library |
| | 12332 | # dependencies. |
| | 12333 | 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' |
| | 12334 | ;; |
| | 12335 | *) |
| | 12336 | if test "$GXX" = yes; then |
| | 12337 | 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' |
| | 12338 | else |
| | 12339 | # FIXME: insert proper C++ library support |
| | 12340 | ld_shlibs_CXX=no |
| | 12341 | fi |
| | 12342 | ;; |
| | 12343 | esac |
| | 12344 | ;; |
| | 12345 | hpux10*|hpux11*) |
| | 12346 | if test $with_gnu_ld = no; then |
| | 12347 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| | 12348 | hardcode_libdir_separator_CXX=: |
| | 12349 | |
| | 12350 | case $host_cpu in |
| | 12351 | hppa*64*|ia64*) |
| | 12352 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
| | 12353 | ;; |
| | 12354 | *) |
| | 12355 | export_dynamic_flag_spec_CXX='${wl}-E' |
| | 12356 | ;; |
| | 12357 | esac |
| | 12358 | fi |
| | 12359 | case $host_cpu in |
| | 12360 | hppa*64*|ia64*) |
| | 12361 | hardcode_direct_CXX=no |
| | 12362 | hardcode_shlibpath_var_CXX=no |
| | 12363 | ;; |
| | 12364 | *) |
| | 12365 | hardcode_direct_CXX=yes |
| | 12366 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| | 12367 | # but as the default |
| | 12368 | # location of the library. |
| | 12369 | ;; |
| | 12370 | esac |
| | 12371 | |
| | 12372 | case $cc_basename in |
| | 12373 | CC*) |
| | 12374 | # FIXME: insert proper C++ library support |
| | 12375 | ld_shlibs_CXX=no |
| | 12376 | ;; |
| | 12377 | aCC*) |
| | 12378 | case $host_cpu in |
| | 12379 | hppa*64*) |
| | 12380 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| | 12381 | ;; |
| | 12382 | ia64*) |
| | 12383 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| | 12384 | ;; |
| | 12385 | *) |
| | 12386 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| | 12387 | ;; |
| | 12388 | esac |
| | 12389 | # Commands to make compiler produce verbose output that lists |
| | 12390 | # what "hidden" libraries, object files and flags are used when |
| | 12391 | # linking a shared library. |
| | 12392 | # |
| | 12393 | # There doesn't appear to be a way to prevent this compiler from |
| | 12394 | # explicitly linking system object files so we need to strip them |
| | 12395 | # from the output so that they don't get included in the library |
| | 12396 | # dependencies. |
| | 12397 | 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' |
| | 12398 | ;; |
| | 12399 | *) |
| | 12400 | if test "$GXX" = yes; then |
| | 12401 | if test $with_gnu_ld = no; then |
| | 12402 | case $host_cpu in |
| | 12403 | hppa*64*) |
| | 12404 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| | 12405 | ;; |
| | 12406 | ia64*) |
| | 12407 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| | 12408 | ;; |
| | 12409 | *) |
| | 12410 | 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' |
| | 12411 | ;; |
| | 12412 | esac |
| | 12413 | fi |
| | 12414 | else |
| | 12415 | # FIXME: insert proper C++ library support |
| | 12416 | ld_shlibs_CXX=no |
| | 12417 | fi |
| | 12418 | ;; |
| | 12419 | esac |
| | 12420 | ;; |
| | 12421 | interix3*) |
| | 12422 | hardcode_direct_CXX=no |
| | 12423 | hardcode_shlibpath_var_CXX=no |
| | 12424 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| | 12425 | export_dynamic_flag_spec_CXX='${wl}-E' |
| | 12426 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| | 12427 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| | 12428 | # default) and relocated if they conflict, which is a slow very memory |
| | 12429 | # consuming and fragmenting process. To avoid this, we pick a random, |
| | 12430 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| | 12431 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| | 12432 | 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' |
| | 12433 | 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' |
| | 12434 | ;; |
| | 12435 | irix5* | irix6*) |
| | 12436 | case $cc_basename in |
| | 12437 | CC*) |
| | 12438 | # SGI C++ |
| | 12439 | 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' |
| | 12440 | |
| | 12441 | # Archives containing C++ object files must be created using |
| | 12442 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| | 12443 | # necessary to make sure instantiated templates are included |
| | 12444 | # in the archive. |
| | 12445 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| | 12446 | ;; |
| | 12447 | *) |
| | 12448 | if test "$GXX" = yes; then |
| | 12449 | if test "$with_gnu_ld" = no; then |
| | 12450 | 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' |
| | 12451 | else |
| | 12452 | 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' |
| | 12453 | fi |
| | 12454 | fi |
| | 12455 | link_all_deplibs_CXX=yes |
| | 12456 | ;; |
| | 12457 | esac |
| | 12458 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| | 12459 | hardcode_libdir_separator_CXX=: |
| | 12460 | ;; |
| | 12461 | linux*) |
| | 12462 | case $cc_basename in |
| | 12463 | KCC*) |
| | 12464 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | 12465 | |
| | 12466 | # KCC will only create a shared library if the output file |
| | 12467 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| | 12468 | # to its proper name (with version) after linking. |
| | 12469 | 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' |
| | 12470 | 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' |
| | 12471 | # Commands to make compiler produce verbose output that lists |
| | 12472 | # what "hidden" libraries, object files and flags are used when |
| | 12473 | # linking a shared library. |
| | 12474 | # |
| | 12475 | # There doesn't appear to be a way to prevent this compiler from |
| | 12476 | # explicitly linking system object files so we need to strip them |
| | 12477 | # from the output so that they don't get included in the library |
| | 12478 | # dependencies. |
| | 12479 | 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' |
| | 12480 | |
| | 12481 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
| | 12482 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| | 12483 | |
| | 12484 | # Archives containing C++ object files must be created using |
| | 12485 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| | 12486 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| | 12487 | ;; |
| | 12488 | icpc*) |
| | 12489 | # Intel C++ |
| | 12490 | with_gnu_ld=yes |
| | 12491 | # version 8.0 and above of icpc choke on multiply defined symbols |
| | 12492 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| | 12493 | # earlier do not add the objects themselves. |
| | 12494 | case `$CC -V 2>&1` in |
| | 12495 | *"Version 7."*) |
| | 12496 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 12497 | 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' |
| | 12498 | ;; |
| | 12499 | *) # Version 8.0 or newer |
| | 12500 | tmp_idyn= |
| | 12501 | case $host_cpu in |
| | 12502 | ia64*) tmp_idyn=' -i_dynamic';; |
| | 12503 | esac |
| | 12504 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 12505 | 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' |
| | 12506 | ;; |
| | 12507 | esac |
| | 12508 | archive_cmds_need_lc_CXX=no |
| | 12509 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| | 12510 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| | 12511 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| | 12512 | ;; |
| | 12513 | pgCC*) |
| | 12514 | # Portland Group C++ compiler |
| | 12515 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| | 12516 | 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' |
| | 12517 | |
| | 12518 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| | 12519 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| | 12520 | 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' |
| | 12521 | ;; |
| | 12522 | cxx*) |
| | 12523 | # Compaq C++ |
| | 12524 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 12525 | 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' |
| | 12526 | |
| | 12527 | runpath_var=LD_RUN_PATH |
| | 12528 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| | 12529 | hardcode_libdir_separator_CXX=: |
| | 12530 | |
| | 12531 | # Commands to make compiler produce verbose output that lists |
| | 12532 | # what "hidden" libraries, object files and flags are used when |
| | 12533 | # linking a shared library. |
| | 12534 | # |
| | 12535 | # There doesn't appear to be a way to prevent this compiler from |
| | 12536 | # explicitly linking system object files so we need to strip them |
| | 12537 | # from the output so that they don't get included in the library |
| | 12538 | # dependencies. |
| | 12539 | 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' |
| | 12540 | ;; |
| | 12541 | esac |
| | 12542 | ;; |
| | 12543 | lynxos*) |
| | 12544 | # FIXME: insert proper C++ library support |
| | 12545 | ld_shlibs_CXX=no |
| | 12546 | ;; |
| | 12547 | m88k*) |
| | 12548 | # FIXME: insert proper C++ library support |
| | 12549 | ld_shlibs_CXX=no |
| | 12550 | ;; |
| | 12551 | mvs*) |
| | 12552 | case $cc_basename in |
| | 12553 | cxx*) |
| | 12554 | # FIXME: insert proper C++ library support |
| | 12555 | ld_shlibs_CXX=no |
| | 12556 | ;; |
| | 12557 | *) |
| | 12558 | # FIXME: insert proper C++ library support |
| | 12559 | ld_shlibs_CXX=no |
| | 12560 | ;; |
| | 12561 | esac |
| | 12562 | ;; |
| | 12563 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| | 12564 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| | 12565 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| | 12566 | wlarc= |
| | 12567 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| | 12568 | hardcode_direct_CXX=yes |
| | 12569 | hardcode_shlibpath_var_CXX=no |
| | 12570 | fi |
| | 12571 | # Workaround some broken pre-1.5 toolchains |
| | 12572 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| | 12573 | ;; |
| | 12574 | openbsd2*) |
| | 12575 | # C++ shared libraries are fairly broken |
| | 12576 | ld_shlibs_CXX=no |
| | 12577 | ;; |
| | 12578 | openbsd*) |
| | 12579 | hardcode_direct_CXX=yes |
| | 12580 | hardcode_shlibpath_var_CXX=no |
| | 12581 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| | 12582 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| | 12583 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| | 12584 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| | 12585 | export_dynamic_flag_spec_CXX='${wl}-E' |
| | 12586 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| | 12587 | fi |
| | 12588 | output_verbose_link_cmd='echo' |
| | 12589 | ;; |
| | 12590 | osf3*) |
| | 12591 | case $cc_basename in |
| | 12592 | KCC*) |
| | 12593 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | 12594 | |
| | 12595 | # KCC will only create a shared library if the output file |
| | 12596 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| | 12597 | # to its proper name (with version) after linking. |
| | 12598 | 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' |
| | 12599 | |
| | 12600 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| | 12601 | hardcode_libdir_separator_CXX=: |
| | 12602 | |
| | 12603 | # Archives containing C++ object files must be created using |
| | 12604 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| | 12605 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| | 12606 | |
| | 12607 | ;; |
| | 12608 | RCC*) |
| | 12609 | # Rational C++ 2.4.1 |
| | 12610 | # FIXME: insert proper C++ library support |
| | 12611 | ld_shlibs_CXX=no |
| | 12612 | ;; |
| | 12613 | cxx*) |
| | 12614 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| | 12615 | 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' |
| | 12616 | |
| | 12617 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| | 12618 | hardcode_libdir_separator_CXX=: |
| | 12619 | |
| | 12620 | # Commands to make compiler produce verbose output that lists |
| | 12621 | # what "hidden" libraries, object files and flags are used when |
| | 12622 | # linking a shared library. |
| | 12623 | # |
| | 12624 | # There doesn't appear to be a way to prevent this compiler from |
| | 12625 | # explicitly linking system object files so we need to strip them |
| | 12626 | # from the output so that they don't get included in the library |
| | 12627 | # dependencies. |
| | 12628 | 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' |
| | 12629 | ;; |
| | 12630 | *) |
| | 12631 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| | 12632 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| | 12633 | 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' |
| | 12634 | |
| | 12635 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| | 12636 | hardcode_libdir_separator_CXX=: |
| | 12637 | |
| | 12638 | # Commands to make compiler produce verbose output that lists |
| | 12639 | # what "hidden" libraries, object files and flags are used when |
| | 12640 | # linking a shared library. |
| | 12641 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| | 12642 | |
| | 12643 | else |
| | 12644 | # FIXME: insert proper C++ library support |
| | 12645 | ld_shlibs_CXX=no |
| | 12646 | fi |
| | 12647 | ;; |
| | 12648 | esac |
| | 12649 | ;; |
| | 12650 | osf4* | osf5*) |
| | 12651 | case $cc_basename in |
| | 12652 | KCC*) |
| | 12653 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | 12654 | |
| | 12655 | # KCC will only create a shared library if the output file |
| | 12656 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| | 12657 | # to its proper name (with version) after linking. |
| | 12658 | 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' |
| | 12659 | |
| | 12660 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| | 12661 | hardcode_libdir_separator_CXX=: |
| | 12662 | |
| | 12663 | # Archives containing C++ object files must be created using |
| | 12664 | # the KAI C++ compiler. |
| | 12665 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
| | 12666 | ;; |
| | 12667 | RCC*) |
| | 12668 | # Rational C++ 2.4.1 |
| | 12669 | # FIXME: insert proper C++ library support |
| | 12670 | ld_shlibs_CXX=no |
| | 12671 | ;; |
| | 12672 | cxx*) |
| | 12673 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| | 12674 | 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' |
| | 12675 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| | 12676 | echo "-hidden">> $lib.exp~ |
| | 12677 | $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~ |
| | 12678 | $rm $lib.exp' |
| | 12679 | |
| | 12680 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| | 12681 | hardcode_libdir_separator_CXX=: |
| | 12682 | |
| | 12683 | # Commands to make compiler produce verbose output that lists |
| | 12684 | # what "hidden" libraries, object files and flags are used when |
| | 12685 | # linking a shared library. |
| | 12686 | # |
| | 12687 | # There doesn't appear to be a way to prevent this compiler from |
| | 12688 | # explicitly linking system object files so we need to strip them |
| | 12689 | # from the output so that they don't get included in the library |
| | 12690 | # dependencies. |
| | 12691 | 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' |
| | 12692 | ;; |
| | 12693 | *) |
| | 12694 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| | 12695 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| | 12696 | 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' |
| | 12697 | |
| | 12698 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| | 12699 | hardcode_libdir_separator_CXX=: |
| | 12700 | |
| | 12701 | # Commands to make compiler produce verbose output that lists |
| | 12702 | # what "hidden" libraries, object files and flags are used when |
| | 12703 | # linking a shared library. |
| | 12704 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
| | 12705 | |
| | 12706 | else |
| | 12707 | # FIXME: insert proper C++ library support |
| | 12708 | ld_shlibs_CXX=no |
| | 12709 | fi |
| | 12710 | ;; |
| | 12711 | esac |
| | 12712 | ;; |
| | 12713 | psos*) |
| | 12714 | # FIXME: insert proper C++ library support |
| | 12715 | ld_shlibs_CXX=no |
| | 12716 | ;; |
| | 12717 | sunos4*) |
| | 12718 | case $cc_basename in |
| | 12719 | CC*) |
| | 12720 | # Sun C++ 4.x |
| | 12721 | # FIXME: insert proper C++ library support |
| | 12722 | ld_shlibs_CXX=no |
| | 12723 | ;; |
| | 12724 | lcc*) |
| | 12725 | # Lucid |
| | 12726 | # FIXME: insert proper C++ library support |
| | 12727 | ld_shlibs_CXX=no |
| | 12728 | ;; |
| | 12729 | *) |
| | 12730 | # FIXME: insert proper C++ library support |
| | 12731 | ld_shlibs_CXX=no |
| | 12732 | ;; |
| | 12733 | esac |
| | 12734 | ;; |
| | 12735 | solaris*) |
| | 12736 | case $cc_basename in |
| | 12737 | CC*) |
| | 12738 | # Sun C++ 4.2, 5.x and Centerline C++ |
| | 12739 | archive_cmds_need_lc_CXX=yes |
| | 12740 | no_undefined_flag_CXX=' -zdefs' |
| | 12741 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| | 12742 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| | 12743 | $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' |
| | 12744 | |
| | 12745 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| | 12746 | hardcode_shlibpath_var_CXX=no |
| | 12747 | case $host_os in |
| | 12748 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| | 12749 | *) |
| | 12750 | # The C++ compiler is used as linker so we must use $wl |
| | 12751 | # flag to pass the commands to the underlying system |
| | 12752 | # linker. We must also pass each convience library through |
| | 12753 | # to the system linker between allextract/defaultextract. |
| | 12754 | # The C++ compiler will combine linker options so we |
| | 12755 | # cannot just pass the convience library names through |
| | 12756 | # without $wl. |
| | 12757 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| | 12758 | 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' |
| | 12759 | ;; |
| | 12760 | esac |
| | 12761 | link_all_deplibs_CXX=yes |
| | 12762 | |
| | 12763 | output_verbose_link_cmd='echo' |
| | 12764 | |
| | 12765 | # Archives containing C++ object files must be created using |
| | 12766 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| | 12767 | # necessary to make sure instantiated templates are included |
| | 12768 | # in the archive. |
| | 12769 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| | 12770 | ;; |
| | 12771 | gcx*) |
| | 12772 | # Green Hills C++ Compiler |
| | 12773 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| | 12774 | |
| | 12775 | # The C++ compiler must be used to create the archive. |
| | 12776 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| | 12777 | ;; |
| | 12778 | *) |
| | 12779 | # GNU C++ compiler with Solaris linker |
| | 12780 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| | 12781 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| | 12782 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
| | 12783 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| | 12784 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| | 12785 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| | 12786 | |
| | 12787 | # Commands to make compiler produce verbose output that lists |
| | 12788 | # what "hidden" libraries, object files and flags are used when |
| | 12789 | # linking a shared library. |
| | 12790 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| | 12791 | else |
| | 12792 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| | 12793 | # platform. |
| | 12794 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| | 12795 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| | 12796 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
| | 12797 | |
| | 12798 | # Commands to make compiler produce verbose output that lists |
| | 12799 | # what "hidden" libraries, object files and flags are used when |
| | 12800 | # linking a shared library. |
| | 12801 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
| | 12802 | fi |
| | 12803 | |
| | 12804 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| | 12805 | fi |
| | 12806 | ;; |
| | 12807 | esac |
| | 12808 | ;; |
| | 12809 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| | 12810 | no_undefined_flag_CXX='${wl}-z,text' |
| | 12811 | archive_cmds_need_lc_CXX=no |
| | 12812 | hardcode_shlibpath_var_CXX=no |
| | 12813 | runpath_var='LD_RUN_PATH' |
| | 12814 | |
| | 12815 | case $cc_basename in |
| | 12816 | CC*) |
| | 12817 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 12818 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 12819 | ;; |
| | 12820 | *) |
| | 12821 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 12822 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 12823 | ;; |
| | 12824 | esac |
| | 12825 | ;; |
| | 12826 | sysv5* | sco3.2v5* | sco5v6*) |
| | 12827 | # Note: We can NOT use -z defs as we might desire, because we do not |
| | 12828 | # link with -lc, and that would cause any symbols used from libc to |
| | 12829 | # always be unresolved, which means just about no library would |
| | 12830 | # ever link correctly. If we're not using GNU ld we use -z text |
| | 12831 | # though, which does catch some bad symbols but isn't as heavy-handed |
| | 12832 | # as -z defs. |
| | 12833 | # For security reasons, it is highly recommended that you always |
| | 12834 | # use absolute paths for naming shared libraries, and exclude the |
| | 12835 | # DT_RUNPATH tag from executables and libraries. But doing so |
| | 12836 | # requires that you compile everything twice, which is a pain. |
| | 12837 | # So that behaviour is only enabled if SCOABSPATH is set to a |
| | 12838 | # non-empty value in the environment. Most likely only useful for |
| | 12839 | # creating official distributions of packages. |
| | 12840 | # This is a hack until libtool officially supports absolute path |
| | 12841 | # names for shared libraries. |
| | 12842 | no_undefined_flag_CXX='${wl}-z,text' |
| | 12843 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| | 12844 | archive_cmds_need_lc_CXX=no |
| | 12845 | hardcode_shlibpath_var_CXX=no |
| | 12846 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| | 12847 | hardcode_libdir_separator_CXX=':' |
| | 12848 | link_all_deplibs_CXX=yes |
| | 12849 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| | 12850 | runpath_var='LD_RUN_PATH' |
| | 12851 | |
| | 12852 | case $cc_basename in |
| | 12853 | CC*) |
| | 12854 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 12855 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 12856 | ;; |
| | 12857 | *) |
| | 12858 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 12859 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 12860 | ;; |
| | 12861 | esac |
| | 12862 | ;; |
| | 12863 | tandem*) |
| | 12864 | case $cc_basename in |
| | 12865 | NCC*) |
| | 12866 | # NonStop-UX NCC 3.20 |
| | 12867 | # FIXME: insert proper C++ library support |
| | 12868 | ld_shlibs_CXX=no |
| | 12869 | ;; |
| | 12870 | *) |
| | 12871 | # FIXME: insert proper C++ library support |
| | 12872 | ld_shlibs_CXX=no |
| | 12873 | ;; |
| | 12874 | esac |
| | 12875 | ;; |
| | 12876 | vxworks*) |
| | 12877 | # FIXME: insert proper C++ library support |
| | 12878 | ld_shlibs_CXX=no |
| | 12879 | ;; |
| | 12880 | *) |
| | 12881 | # FIXME: insert proper C++ library support |
| | 12882 | ld_shlibs_CXX=no |
| | 12883 | ;; |
| | 12884 | esac |
| | 12885 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| | 12886 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| | 12887 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| | 12888 | |
| | 12889 | GCC_CXX="$GXX" |
| | 12890 | LD_CXX="$LD" |
| | 12891 | |
| | 12892 | |
| | 12893 | cat > conftest.$ac_ext <<EOF |
| | 12894 | class Foo |
| | 12895 | { |
| | 12896 | public: |
| | 12897 | Foo (void) { a = 0; } |
| | 12898 | private: |
| | 12899 | int a; |
| | 12900 | }; |
| | 12901 | EOF |
| | 12902 | |
| | 12903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 12904 | (eval $ac_compile) 2>&5 |
| | 12905 | ac_status=$? |
| | 12906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 12907 | (exit $ac_status); }; then |
| | 12908 | # Parse the compiler output and extract the necessary |
| | 12909 | # objects, libraries and library flags. |
| | 12910 | |
| | 12911 | # Sentinel used to keep track of whether or not we are before |
| | 12912 | # the conftest object file. |
| | 12913 | pre_test_object_deps_done=no |
| | 12914 | |
| | 12915 | # The `*' in the case matches for architectures that use `case' in |
| | 12916 | # $output_verbose_cmd can trigger glob expansion during the loop |
| | 12917 | # eval without this substitution. |
| | 12918 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
| | 12919 | |
| | 12920 | for p in `eval $output_verbose_link_cmd`; do |
| | 12921 | case $p in |
| | 12922 | |
| | 12923 | -L* | -R* | -l*) |
| | 12924 | # Some compilers place space between "-{L,R}" and the path. |
| | 12925 | # Remove the space. |
| | 12926 | if test $p = "-L" \ |
| | 12927 | || test $p = "-R"; then |
| | 12928 | prev=$p |
| | 12929 | continue |
| | 12930 | else |
| | 12931 | prev= |
| | 12932 | fi |
| | 12933 | |
| | 12934 | if test "$pre_test_object_deps_done" = no; then |
| | 12935 | case $p in |
| | 12936 | -L* | -R*) |
| | 12937 | # Internal compiler library paths should come after those |
| | 12938 | # provided the user. The postdeps already come after the |
| | 12939 | # user supplied libs so there is no need to process them. |
| | 12940 | if test -z "$compiler_lib_search_path_CXX"; then |
| | 12941 | compiler_lib_search_path_CXX="${prev}${p}" |
| | 12942 | else |
| | 12943 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| | 12944 | fi |
| | 12945 | ;; |
| | 12946 | # The "-l" case would never come before the object being |
| | 12947 | # linked, so don't bother handling this case. |
| | 12948 | esac |
| | 12949 | else |
| | 12950 | if test -z "$postdeps_CXX"; then |
| | 12951 | postdeps_CXX="${prev}${p}" |
| | 12952 | else |
| | 12953 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| | 12954 | fi |
| | 12955 | fi |
| | 12956 | ;; |
| | 12957 | |
| | 12958 | *.$objext) |
| | 12959 | # This assumes that the test object file only shows up |
| | 12960 | # once in the compiler output. |
| | 12961 | if test "$p" = "conftest.$objext"; then |
| | 12962 | pre_test_object_deps_done=yes |
| | 12963 | continue |
| | 12964 | fi |
| | 12965 | |
| | 12966 | if test "$pre_test_object_deps_done" = no; then |
| | 12967 | if test -z "$predep_objects_CXX"; then |
| | 12968 | predep_objects_CXX="$p" |
| | 12969 | else |
| | 12970 | predep_objects_CXX="$predep_objects_CXX $p" |
| | 12971 | fi |
| | 12972 | else |
| | 12973 | if test -z "$postdep_objects_CXX"; then |
| | 12974 | postdep_objects_CXX="$p" |
| | 12975 | else |
| | 12976 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| | 12977 | fi |
| | 12978 | fi |
| | 12979 | ;; |
| | 12980 | |
| | 12981 | *) ;; # Ignore the rest. |
| | 12982 | |
| | 12983 | esac |
| | 12984 | done |
| | 12985 | |
| | 12986 | # Clean up. |
| | 12987 | rm -f a.out a.exe |
| | 12988 | else |
| | 12989 | echo "libtool.m4: error: problem compiling CXX test program" |
| | 12990 | fi |
| | 12991 | |
| | 12992 | $rm -f confest.$objext |
| | 12993 | |
| | 12994 | # PORTME: override above test on systems where it is broken |
| | 12995 | case $host_os in |
| | 12996 | interix3*) |
| | 12997 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| | 12998 | # hack all around it, let's just trust "g++" to DTRT. |
| | 12999 | predep_objects_CXX= |
| | 13000 | postdep_objects_CXX= |
| | 13001 | postdeps_CXX= |
| | 13002 | ;; |
| | 13003 | |
| | 13004 | solaris*) |
| | 13005 | case $cc_basename in |
| | 13006 | CC*) |
| | 13007 | # Adding this requires a known-good setup of shared libraries for |
| | 13008 | # Sun compiler versions before 5.6, else PIC objects from an old |
| | 13009 | # archive will be linked into the output, leading to subtle bugs. |
| | 13010 | postdeps_CXX='-lCstd -lCrun' |
| | 13011 | ;; |
| | 13012 | esac |
| | 13013 | ;; |
| | 13014 | esac |
| | 13015 | |
| | 13016 | |
| | 13017 | case " $postdeps_CXX " in |
| | 13018 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| | 13019 | esac |
| | 13020 | |
| | 13021 | lt_prog_compiler_wl_CXX= |
| | 13022 | lt_prog_compiler_pic_CXX= |
| | 13023 | lt_prog_compiler_static_CXX= |
| | 13024 | |
| | 13025 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| | 13026 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| | 13027 | |
| | 13028 | # C++ specific cases for pic, static, wl, etc. |
| | 13029 | if test "$GXX" = yes; then |
| | 13030 | lt_prog_compiler_wl_CXX='-Wl,' |
| | 13031 | lt_prog_compiler_static_CXX='-static' |
| | 13032 | |
| | 13033 | case $host_os in |
| | 13034 | aix*) |
| | 13035 | # All AIX code is PIC. |
| | 13036 | if test "$host_cpu" = ia64; then |
| | 13037 | # AIX 5 now supports IA64 processor |
| | 13038 | lt_prog_compiler_static_CXX='-Bstatic' |
| | 13039 | fi |
| | 13040 | ;; |
| | 13041 | amigaos*) |
| | 13042 | # FIXME: we need at least 68020 code to build shared libraries, but |
| | 13043 | # adding the `-m68020' flag to GCC prevents building anything better, |
| | 13044 | # like `-m68040'. |
| | 13045 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| | 13046 | ;; |
| | 13047 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| | 13048 | # PIC is the default for these OSes. |
| | 13049 | ;; |
| | 13050 | mingw* | os2* | pw32*) |
| | 13051 | # This hack is so that the source file can tell whether it is being |
| | 13052 | # built for inclusion in a dll (and should export symbols for example). |
| | 13053 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| | 13054 | ;; |
| | 13055 | darwin* | rhapsody*) |
| | 13056 | # PIC is the default on this platform |
| | 13057 | # Common symbols not allowed in MH_DYLIB files |
| | 13058 | lt_prog_compiler_pic_CXX='-fno-common' |
| | 13059 | ;; |
| | 13060 | *djgpp*) |
| | 13061 | # DJGPP does not support shared libraries at all |
| | 13062 | lt_prog_compiler_pic_CXX= |
| | 13063 | ;; |
| | 13064 | interix3*) |
| | 13065 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| | 13066 | # Instead, we relocate shared libraries at runtime. |
| | 13067 | ;; |
| | 13068 | sysv4*MP*) |
| | 13069 | if test -d /usr/nec; then |
| | 13070 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| | 13071 | fi |
| | 13072 | ;; |
| | 13073 | hpux*) |
| | 13074 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| | 13075 | # not for PA HP-UX. |
| | 13076 | case $host_cpu in |
| | 13077 | hppa*64*|ia64*) |
| | 13078 | ;; |
| | 13079 | *) |
| | 13080 | lt_prog_compiler_pic_CXX='-fPIC' |
| | 13081 | ;; |
| | 13082 | esac |
| | 13083 | ;; |
| | 13084 | *) |
| | 13085 | lt_prog_compiler_pic_CXX='-fPIC' |
| | 13086 | ;; |
| | 13087 | esac |
| | 13088 | else |
| | 13089 | case $host_os in |
| | 13090 | aix4* | aix5*) |
| | 13091 | # All AIX code is PIC. |
| | 13092 | if test "$host_cpu" = ia64; then |
| | 13093 | # AIX 5 now supports IA64 processor |
| | 13094 | lt_prog_compiler_static_CXX='-Bstatic' |
| | 13095 | else |
| | 13096 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| | 13097 | fi |
| | 13098 | ;; |
| | 13099 | chorus*) |
| | 13100 | case $cc_basename in |
| | 13101 | cxch68*) |
| | 13102 | # Green Hills C++ Compiler |
| | 13103 | # _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" |
| | 13104 | ;; |
| | 13105 | esac |
| | 13106 | ;; |
| | 13107 | darwin*) |
| | 13108 | # PIC is the default on this platform |
| | 13109 | # Common symbols not allowed in MH_DYLIB files |
| | 13110 | case $cc_basename in |
| | 13111 | xlc*) |
| | 13112 | lt_prog_compiler_pic_CXX='-qnocommon' |
| | 13113 | lt_prog_compiler_wl_CXX='-Wl,' |
| | 13114 | ;; |
| | 13115 | esac |
| | 13116 | ;; |
| | 13117 | dgux*) |
| | 13118 | case $cc_basename in |
| | 13119 | ec++*) |
| | 13120 | lt_prog_compiler_pic_CXX='-KPIC' |
| | 13121 | ;; |
| | 13122 | ghcx*) |
| | 13123 | # Green Hills C++ Compiler |
| | 13124 | lt_prog_compiler_pic_CXX='-pic' |
| | 13125 | ;; |
| | 13126 | *) |
| | 13127 | ;; |
| | 13128 | esac |
| | 13129 | ;; |
| | 13130 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| | 13131 | # FreeBSD uses GNU C++ |
| | 13132 | ;; |
| | 13133 | hpux9* | hpux10* | hpux11*) |
| | 13134 | case $cc_basename in |
| | 13135 | CC*) |
| | 13136 | lt_prog_compiler_wl_CXX='-Wl,' |
| | 13137 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| | 13138 | if test "$host_cpu" != ia64; then |
| | 13139 | lt_prog_compiler_pic_CXX='+Z' |
| | 13140 | fi |
| | 13141 | ;; |
| | 13142 | aCC*) |
| | 13143 | lt_prog_compiler_wl_CXX='-Wl,' |
| | 13144 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| | 13145 | case $host_cpu in |
| | 13146 | hppa*64*|ia64*) |
| | 13147 | # +Z the default |
| | 13148 | ;; |
| | 13149 | *) |
| | 13150 | lt_prog_compiler_pic_CXX='+Z' |
| | 13151 | ;; |
| | 13152 | esac |
| | 13153 | ;; |
| | 13154 | *) |
| | 13155 | ;; |
| | 13156 | esac |
| | 13157 | ;; |
| | 13158 | interix*) |
| | 13159 | # This is c89, which is MS Visual C++ (no shared libs) |
| | 13160 | # Anyone wants to do a port? |
| | 13161 | ;; |
| | 13162 | irix5* | irix6* | nonstopux*) |
| | 13163 | case $cc_basename in |
| | 13164 | CC*) |
| | 13165 | lt_prog_compiler_wl_CXX='-Wl,' |
| | 13166 | lt_prog_compiler_static_CXX='-non_shared' |
| | 13167 | # CC pic flag -KPIC is the default. |
| | 13168 | ;; |
| | 13169 | *) |
| | 13170 | ;; |
| | 13171 | esac |
| | 13172 | ;; |
| | 13173 | linux*) |
| | 13174 | case $cc_basename in |
| | 13175 | KCC*) |
| | 13176 | # KAI C++ Compiler |
| | 13177 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| | 13178 | lt_prog_compiler_pic_CXX='-fPIC' |
| | 13179 | ;; |
| | 13180 | icpc* | ecpc*) |
| | 13181 | # Intel C++ |
| | 13182 | lt_prog_compiler_wl_CXX='-Wl,' |
| | 13183 | lt_prog_compiler_pic_CXX='-KPIC' |
| | 13184 | lt_prog_compiler_static_CXX='-static' |
| | 13185 | ;; |
| | 13186 | pgCC*) |
| | 13187 | # Portland Group C++ compiler. |
| | 13188 | lt_prog_compiler_wl_CXX='-Wl,' |
| | 13189 | lt_prog_compiler_pic_CXX='-fpic' |
| | 13190 | lt_prog_compiler_static_CXX='-Bstatic' |
| | 13191 | ;; |
| | 13192 | cxx*) |
| | 13193 | # Compaq C++ |
| | 13194 | # Make sure the PIC flag is empty. It appears that all Alpha |
| | 13195 | # Linux and Compaq Tru64 Unix objects are PIC. |
| | 13196 | lt_prog_compiler_pic_CXX= |
| | 13197 | lt_prog_compiler_static_CXX='-non_shared' |
| | 13198 | ;; |
| | 13199 | *) |
| | 13200 | ;; |
| | 13201 | esac |
| | 13202 | ;; |
| | 13203 | lynxos*) |
| | 13204 | ;; |
| | 13205 | m88k*) |
| | 13206 | ;; |
| | 13207 | mvs*) |
| | 13208 | case $cc_basename in |
| | 13209 | cxx*) |
| | 13210 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| | 13211 | ;; |
| | 13212 | *) |
| | 13213 | ;; |
| | 13214 | esac |
| | 13215 | ;; |
| | 13216 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| | 13217 | ;; |
| | 13218 | osf3* | osf4* | osf5*) |
| | 13219 | case $cc_basename in |
| | 13220 | KCC*) |
| | 13221 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| | 13222 | ;; |
| | 13223 | RCC*) |
| | 13224 | # Rational C++ 2.4.1 |
| | 13225 | lt_prog_compiler_pic_CXX='-pic' |
| | 13226 | ;; |
| | 13227 | cxx*) |
| | 13228 | # Digital/Compaq C++ |
| | 13229 | lt_prog_compiler_wl_CXX='-Wl,' |
| | 13230 | # Make sure the PIC flag is empty. It appears that all Alpha |
| | 13231 | # Linux and Compaq Tru64 Unix objects are PIC. |
| | 13232 | lt_prog_compiler_pic_CXX= |
| | 13233 | lt_prog_compiler_static_CXX='-non_shared' |
| | 13234 | ;; |
| | 13235 | *) |
| | 13236 | ;; |
| | 13237 | esac |
| | 13238 | ;; |
| | 13239 | psos*) |
| | 13240 | ;; |
| | 13241 | solaris*) |
| | 13242 | case $cc_basename in |
| | 13243 | CC*) |
| | 13244 | # Sun C++ 4.2, 5.x and Centerline C++ |
| | 13245 | lt_prog_compiler_pic_CXX='-KPIC' |
| | 13246 | lt_prog_compiler_static_CXX='-Bstatic' |
| | 13247 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| | 13248 | ;; |
| | 13249 | gcx*) |
| | 13250 | # Green Hills C++ Compiler |
| | 13251 | lt_prog_compiler_pic_CXX='-PIC' |
| | 13252 | ;; |
| | 13253 | *) |
| | 13254 | ;; |
| | 13255 | esac |
| | 13256 | ;; |
| | 13257 | sunos4*) |
| | 13258 | case $cc_basename in |
| | 13259 | CC*) |
| | 13260 | # Sun C++ 4.x |
| | 13261 | lt_prog_compiler_pic_CXX='-pic' |
| | 13262 | lt_prog_compiler_static_CXX='-Bstatic' |
| | 13263 | ;; |
| | 13264 | lcc*) |
| | 13265 | # Lucid |
| | 13266 | lt_prog_compiler_pic_CXX='-pic' |
| | 13267 | ;; |
| | 13268 | *) |
| | 13269 | ;; |
| | 13270 | esac |
| | 13271 | ;; |
| | 13272 | tandem*) |
| | 13273 | case $cc_basename in |
| | 13274 | NCC*) |
| | 13275 | # NonStop-UX NCC 3.20 |
| | 13276 | lt_prog_compiler_pic_CXX='-KPIC' |
| | 13277 | ;; |
| | 13278 | *) |
| | 13279 | ;; |
| | 13280 | esac |
| | 13281 | ;; |
| | 13282 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| | 13283 | case $cc_basename in |
| | 13284 | CC*) |
| | 13285 | lt_prog_compiler_wl_CXX='-Wl,' |
| | 13286 | lt_prog_compiler_pic_CXX='-KPIC' |
| | 13287 | lt_prog_compiler_static_CXX='-Bstatic' |
| | 13288 | ;; |
| | 13289 | esac |
| | 13290 | ;; |
| | 13291 | vxworks*) |
| | 13292 | ;; |
| | 13293 | *) |
| | 13294 | lt_prog_compiler_can_build_shared_CXX=no |
| | 13295 | ;; |
| | 13296 | esac |
| | 13297 | fi |
| | 13298 | |
| | 13299 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
| | 13300 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
| | 13301 | |
| | 13302 | # |
| | 13303 | # Check to make sure the PIC flag actually works. |
| | 13304 | # |
| | 13305 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| | 13306 | |
| | 13307 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| | 13308 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
| | 13309 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
| | 13310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 13311 | else |
| | 13312 | lt_prog_compiler_pic_works_CXX=no |
| | 13313 | ac_outfile=conftest.$ac_objext |
| | 13314 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 13315 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| | 13316 | # Insert the option either (1) after the last *FLAGS variable, or |
| | 13317 | # (2) before a word containing "conftest.", or (3) at the end. |
| | 13318 | # Note that $ac_compile itself does not contain backslashes and begins |
| | 13319 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | 13320 | # The option is referenced via a variable to avoid confusing sed. |
| | 13321 | lt_compile=`echo "$ac_compile" | $SED \ |
| | 13322 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| | 13323 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | 13324 | -e 's:$: $lt_compiler_flag:'` |
| | 13325 | (eval echo "\"\$as_me:13325: $lt_compile\"" >&5) |
| | 13326 | (eval "$lt_compile" 2>conftest.err) |
| | 13327 | ac_status=$? |
| | 13328 | cat conftest.err >&5 |
| | 13329 | echo "$as_me:13329: \$? = $ac_status" >&5 |
| | 13330 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| | 13331 | # The compiler can only warn and ignore the option if not recognized |
| | 13332 | # So say no if there are warnings other than the usual output. |
| | 13333 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| | 13334 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| | 13335 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| | 13336 | lt_prog_compiler_pic_works_CXX=yes |
| | 13337 | fi |
| | 13338 | fi |
| | 13339 | $rm conftest* |
| | 13340 | |
| | 13341 | fi |
| | 13342 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
| | 13343 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
| | 13344 | |
| | 13345 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
| | 13346 | case $lt_prog_compiler_pic_CXX in |
| | 13347 | "" | " "*) ;; |
| | 13348 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| | 13349 | esac |
| | 13350 | else |
| | 13351 | lt_prog_compiler_pic_CXX= |
| | 13352 | lt_prog_compiler_can_build_shared_CXX=no |
| | 13353 | fi |
| | 13354 | |
| | 13355 | fi |
| | 13356 | case $host_os in |
| | 13357 | # For platforms which do not support PIC, -DPIC is meaningless: |
| | 13358 | *djgpp*) |
| | 13359 | lt_prog_compiler_pic_CXX= |
| | 13360 | ;; |
| | 13361 | *) |
| | 13362 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| | 13363 | ;; |
| | 13364 | esac |
| | 13365 | |
| | 13366 | # |
| | 13367 | # Check to make sure the static flag actually works. |
| | 13368 | # |
| | 13369 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| | 13370 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| | 13371 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| | 13372 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
| | 13373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 13374 | else |
| | 13375 | lt_prog_compiler_static_works_CXX=no |
| | 13376 | save_LDFLAGS="$LDFLAGS" |
| | 13377 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| | 13378 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| | 13379 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| | 13380 | # The linker can only warn and ignore the option if not recognized |
| | 13381 | # So say no if there are warnings |
| | 13382 | if test -s conftest.err; then |
| | 13383 | # Append any errors to the config.log. |
| | 13384 | cat conftest.err 1>&5 |
| | 13385 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| | 13386 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| | 13387 | if diff conftest.exp conftest.er2 >/dev/null; then |
| | 13388 | lt_prog_compiler_static_works_CXX=yes |
| | 13389 | fi |
| | 13390 | else |
| | 13391 | lt_prog_compiler_static_works_CXX=yes |
| | 13392 | fi |
| | 13393 | fi |
| | 13394 | $rm conftest* |
| | 13395 | LDFLAGS="$save_LDFLAGS" |
| | 13396 | |
| | 13397 | fi |
| | 13398 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
| | 13399 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
| | 13400 | |
| | 13401 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
| | 13402 | : |
| | 13403 | else |
| | 13404 | lt_prog_compiler_static_CXX= |
| | 13405 | fi |
| | 13406 | |
| | 13407 | |
| | 13408 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| | 13409 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| | 13410 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
| | 13411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 13412 | else |
| | 13413 | lt_cv_prog_compiler_c_o_CXX=no |
| | 13414 | $rm -r conftest 2>/dev/null |
| | 13415 | mkdir conftest |
| | 13416 | cd conftest |
| | 13417 | mkdir out |
| | 13418 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 13419 | |
| | 13420 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| | 13421 | # Insert the option either (1) after the last *FLAGS variable, or |
| | 13422 | # (2) before a word containing "conftest.", or (3) at the end. |
| | 13423 | # Note that $ac_compile itself does not contain backslashes and begins |
| | 13424 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | 13425 | lt_compile=`echo "$ac_compile" | $SED \ |
| | 13426 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| | 13427 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | 13428 | -e 's:$: $lt_compiler_flag:'` |
| | 13429 | (eval echo "\"\$as_me:13429: $lt_compile\"" >&5) |
| | 13430 | (eval "$lt_compile" 2>out/conftest.err) |
| | 13431 | ac_status=$? |
| | 13432 | cat out/conftest.err >&5 |
| | 13433 | echo "$as_me:13433: \$? = $ac_status" >&5 |
| | 13434 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| | 13435 | then |
| | 13436 | # The compiler can only warn and ignore the option if not recognized |
| | 13437 | # So say no if there are warnings |
| | 13438 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| | 13439 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| | 13440 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| | 13441 | lt_cv_prog_compiler_c_o_CXX=yes |
| | 13442 | fi |
| | 13443 | fi |
| | 13444 | chmod u+w . 2>&5 |
| | 13445 | $rm conftest* |
| | 13446 | # SGI C++ compiler will create directory out/ii_files/ for |
| | 13447 | # template instantiation |
| | 13448 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| | 13449 | $rm out/* && rmdir out |
| | 13450 | cd .. |
| | 13451 | rmdir conftest |
| | 13452 | $rm conftest* |
| | 13453 | |
| | 13454 | fi |
| | 13455 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| | 13456 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
| | 13457 | |
| | 13458 | |
| | 13459 | hard_links="nottested" |
| | 13460 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| | 13461 | # do not overwrite the value of need_locks provided by the user |
| | 13462 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| | 13463 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| | 13464 | hard_links=yes |
| | 13465 | $rm conftest* |
| | 13466 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| | 13467 | touch conftest.a |
| | 13468 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| | 13469 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| | 13470 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| | 13471 | echo "${ECHO_T}$hard_links" >&6 |
| | 13472 | if test "$hard_links" = no; then |
| | 13473 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| | 13474 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| | 13475 | need_locks=warn |
| | 13476 | fi |
| | 13477 | else |
| | 13478 | need_locks=no |
| | 13479 | fi |
| | 13480 | |
| | 13481 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| | 13482 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| | 13483 | |
| | 13484 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| | 13485 | case $host_os in |
| | 13486 | aix4* | aix5*) |
| | 13487 | # If we're using GNU nm, then we don't want the "-C" option. |
| | 13488 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| | 13489 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| | 13490 | 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' |
| | 13491 | else |
| | 13492 | 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' |
| | 13493 | fi |
| | 13494 | ;; |
| | 13495 | pw32*) |
| | 13496 | export_symbols_cmds_CXX="$ltdll_cmds" |
| | 13497 | ;; |
| | 13498 | cygwin* | mingw*) |
| | 13499 | 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' |
| | 13500 | ;; |
| | 13501 | kfreebsd*-gnu) |
| | 13502 | link_all_deplibs_CXX=no |
| | 13503 | ;; |
| | 13504 | linux*) |
| | 13505 | link_all_deplibs_CXX=no |
| | 13506 | ;; |
| | 13507 | *) |
| | 13508 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| | 13509 | ;; |
| | 13510 | esac |
| | 13511 | |
| | 13512 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
| | 13513 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
| | 13514 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| | 13515 | |
| | 13516 | # |
| | 13517 | # Do we need to explicitly link libc? |
| | 13518 | # |
| | 13519 | case "x$archive_cmds_need_lc_CXX" in |
| | 13520 | x|xyes) |
| | 13521 | # Assume -lc should be added |
| | 13522 | archive_cmds_need_lc_CXX=yes |
| | 13523 | |
| | 13524 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| | 13525 | case $archive_cmds_CXX in |
| | 13526 | *'~'*) |
| | 13527 | # FIXME: we may have to deal with multi-command sequences. |
| | 13528 | ;; |
| | 13529 | '$CC '*) |
| | 13530 | # Test whether the compiler implicitly links with -lc since on some |
| | 13531 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| | 13532 | # to ld, don't add -lc before -lgcc. |
| | 13533 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| | 13534 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| | 13535 | $rm conftest* |
| | 13536 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 13537 | |
| | 13538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 13539 | (eval $ac_compile) 2>&5 |
| | 13540 | ac_status=$? |
| | 13541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 13542 | (exit $ac_status); } 2>conftest.err; then |
| | 13543 | soname=conftest |
| | 13544 | lib=conftest |
| | 13545 | libobjs=conftest.$ac_objext |
| | 13546 | deplibs= |
| | 13547 | wl=$lt_prog_compiler_wl_CXX |
| | 13548 | pic_flag=$lt_prog_compiler_pic_CXX |
| | 13549 | compiler_flags=-v |
| | 13550 | linker_flags=-v |
| | 13551 | verstring= |
| | 13552 | output_objdir=. |
| | 13553 | libname=conftest |
| | 13554 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| | 13555 | allow_undefined_flag_CXX= |
| | 13556 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| | 13557 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| | 13558 | ac_status=$? |
| | 13559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 13560 | (exit $ac_status); } |
| | 13561 | then |
| | 13562 | archive_cmds_need_lc_CXX=no |
| | 13563 | else |
| | 13564 | archive_cmds_need_lc_CXX=yes |
| | 13565 | fi |
| | 13566 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| | 13567 | else |
| | 13568 | cat conftest.err 1>&5 |
| | 13569 | fi |
| | 13570 | $rm conftest* |
| | 13571 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
| | 13572 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
| | 13573 | ;; |
| | 13574 | esac |
| | 13575 | fi |
| | 13576 | ;; |
| | 13577 | esac |
| | 13578 | |
| | 13579 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| | 13580 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| | 13581 | library_names_spec= |
| | 13582 | libname_spec='lib$name' |
| | 13583 | soname_spec= |
| | 13584 | shrext_cmds=".so" |
| | 13585 | postinstall_cmds= |
| | 13586 | postuninstall_cmds= |
| | 13587 | finish_cmds= |
| | 13588 | finish_eval= |
| | 13589 | shlibpath_var= |
| | 13590 | shlibpath_overrides_runpath=unknown |
| | 13591 | version_type=none |
| | 13592 | dynamic_linker="$host_os ld.so" |
| | 13593 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| | 13594 | if test "$GCC" = yes; then |
| | 13595 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| | 13596 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| | 13597 | # if the path contains ";" then we assume it to be the separator |
| | 13598 | # otherwise default to the standard path separator (i.e. ":") - it is |
| | 13599 | # assumed that no part of a normal pathname contains ";" but that should |
| | 13600 | # okay in the real world where ";" in dirpaths is itself problematic. |
| | 13601 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| | 13602 | else |
| | 13603 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| | 13604 | fi |
| | 13605 | else |
| | 13606 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| | 13607 | fi |
| | 13608 | need_lib_prefix=unknown |
| | 13609 | hardcode_into_libs=no |
| | 13610 | |
| | 13611 | # when you set need_version to no, make sure it does not cause -set_version |
| | 13612 | # flags to be left without arguments |
| | 13613 | need_version=unknown |
| | 13614 | |
| | 13615 | case $host_os in |
| | 13616 | aix3*) |
| | 13617 | version_type=linux |
| | 13618 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| | 13619 | shlibpath_var=LIBPATH |
| | 13620 | |
| | 13621 | # AIX 3 has no versioning support, so we append a major version to the name. |
| | 13622 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13623 | ;; |
| | 13624 | |
| | 13625 | aix4* | aix5*) |
| | 13626 | version_type=linux |
| | 13627 | need_lib_prefix=no |
| | 13628 | need_version=no |
| | 13629 | hardcode_into_libs=yes |
| | 13630 | if test "$host_cpu" = ia64; then |
| | 13631 | # AIX 5 supports IA64 |
| | 13632 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| | 13633 | shlibpath_var=LD_LIBRARY_PATH |
| | 13634 | else |
| | 13635 | # With GCC up to 2.95.x, collect2 would create an import file |
| | 13636 | # for dependence libraries. The import file would start with |
| | 13637 | # the line `#! .'. This would cause the generated library to |
| | 13638 | # depend on `.', always an invalid library. This was fixed in |
| | 13639 | # development snapshots of GCC prior to 3.0. |
| | 13640 | case $host_os in |
| | 13641 | aix4 | aix4.[01] | aix4.[01].*) |
| | 13642 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| | 13643 | echo ' yes ' |
| | 13644 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| | 13645 | : |
| | 13646 | else |
| | 13647 | can_build_shared=no |
| | 13648 | fi |
| | 13649 | ;; |
| | 13650 | esac |
| | 13651 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| | 13652 | # soname into executable. Probably we can add versioning support to |
| | 13653 | # collect2, so additional links can be useful in future. |
| | 13654 | if test "$aix_use_runtimelinking" = yes; then |
| | 13655 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| | 13656 | # instead of lib<name>.a to let people know that these are not |
| | 13657 | # typical AIX shared libraries. |
| | 13658 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 13659 | else |
| | 13660 | # We preserve .a as extension for shared libraries through AIX4.2 |
| | 13661 | # and later when we are not doing run time linking. |
| | 13662 | library_names_spec='${libname}${release}.a $libname.a' |
| | 13663 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13664 | fi |
| | 13665 | shlibpath_var=LIBPATH |
| | 13666 | fi |
| | 13667 | ;; |
| | 13668 | |
| | 13669 | amigaos*) |
| | 13670 | library_names_spec='$libname.ixlibrary $libname.a' |
| | 13671 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| | 13672 | 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' |
| | 13673 | ;; |
| | 13674 | |
| | 13675 | beos*) |
| | 13676 | library_names_spec='${libname}${shared_ext}' |
| | 13677 | dynamic_linker="$host_os ld.so" |
| | 13678 | shlibpath_var=LIBRARY_PATH |
| | 13679 | ;; |
| | 13680 | |
| | 13681 | bsdi[45]*) |
| | 13682 | version_type=linux |
| | 13683 | need_version=no |
| | 13684 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 13685 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13686 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| | 13687 | shlibpath_var=LD_LIBRARY_PATH |
| | 13688 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| | 13689 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| | 13690 | # the default ld.so.conf also contains /usr/contrib/lib and |
| | 13691 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| | 13692 | # libtool to hard-code these into programs |
| | 13693 | ;; |
| | 13694 | |
| | 13695 | cygwin* | mingw* | pw32*) |
| | 13696 | version_type=windows |
| | 13697 | shrext_cmds=".dll" |
| | 13698 | need_version=no |
| | 13699 | need_lib_prefix=no |
| | 13700 | |
| | 13701 | case $GCC,$host_os in |
| | 13702 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| | 13703 | library_names_spec='$libname.dll.a' |
| | 13704 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| | 13705 | postinstall_cmds='base_file=`basename \${file}`~ |
| | 13706 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| | 13707 | dldir=$destdir/`dirname \$dlpath`~ |
| | 13708 | test -d \$dldir || mkdir -p \$dldir~ |
| | 13709 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| | 13710 | chmod a+x \$dldir/$dlname' |
| | 13711 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| | 13712 | dlpath=$dir/\$dldll~ |
| | 13713 | $rm \$dlpath' |
| | 13714 | shlibpath_overrides_runpath=yes |
| | 13715 | |
| | 13716 | case $host_os in |
| | 13717 | cygwin*) |
| | 13718 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| | 13719 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | 13720 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| | 13721 | ;; |
| | 13722 | mingw*) |
| | 13723 | # MinGW DLLs use traditional 'lib' prefix |
| | 13724 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | 13725 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| | 13726 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| | 13727 | # It is most probably a Windows format PATH printed by |
| | 13728 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| | 13729 | # path with ; separators, and with drive letters. We can handle the |
| | 13730 | # drive letters (cygwin fileutils understands them), so leave them, |
| | 13731 | # especially as we might pass files found there to a mingw objdump, |
| | 13732 | # which wouldn't understand a cygwinified path. Ahh. |
| | 13733 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| | 13734 | else |
| | 13735 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| | 13736 | fi |
| | 13737 | ;; |
| | 13738 | pw32*) |
| | 13739 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| | 13740 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | 13741 | ;; |
| | 13742 | esac |
| | 13743 | ;; |
| | 13744 | |
| | 13745 | *) |
| | 13746 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| | 13747 | ;; |
| | 13748 | esac |
| | 13749 | dynamic_linker='Win32 ld.exe' |
| | 13750 | # FIXME: first we should search . and the directory the executable is in |
| | 13751 | shlibpath_var=PATH |
| | 13752 | ;; |
| | 13753 | |
| | 13754 | darwin* | rhapsody*) |
| | 13755 | dynamic_linker="$host_os dyld" |
| | 13756 | version_type=darwin |
| | 13757 | need_lib_prefix=no |
| | 13758 | need_version=no |
| | 13759 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| | 13760 | soname_spec='${libname}${release}${major}$shared_ext' |
| | 13761 | shlibpath_overrides_runpath=yes |
| | 13762 | shlibpath_var=DYLD_LIBRARY_PATH |
| | 13763 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| | 13764 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| | 13765 | if test "$GCC" = yes; then |
| | 13766 | 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"` |
| | 13767 | else |
| | 13768 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| | 13769 | fi |
| | 13770 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| | 13771 | ;; |
| | 13772 | |
| | 13773 | dgux*) |
| | 13774 | version_type=linux |
| | 13775 | need_lib_prefix=no |
| | 13776 | need_version=no |
| | 13777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| | 13778 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13779 | shlibpath_var=LD_LIBRARY_PATH |
| | 13780 | ;; |
| | 13781 | |
| | 13782 | freebsd1*) |
| | 13783 | dynamic_linker=no |
| | 13784 | ;; |
| | 13785 | |
| | 13786 | kfreebsd*-gnu) |
| | 13787 | version_type=linux |
| | 13788 | need_lib_prefix=no |
| | 13789 | need_version=no |
| | 13790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 13791 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13792 | shlibpath_var=LD_LIBRARY_PATH |
| | 13793 | shlibpath_overrides_runpath=no |
| | 13794 | hardcode_into_libs=yes |
| | 13795 | dynamic_linker='GNU ld.so' |
| | 13796 | ;; |
| | 13797 | |
| | 13798 | freebsd* | dragonfly*) |
| | 13799 | # DragonFly does not have aout. When/if they implement a new |
| | 13800 | # versioning mechanism, adjust this. |
| | 13801 | if test -x /usr/bin/objformat; then |
| | 13802 | objformat=`/usr/bin/objformat` |
| | 13803 | else |
| | 13804 | case $host_os in |
| | 13805 | freebsd[123]*) objformat=aout ;; |
| | 13806 | *) objformat=elf ;; |
| | 13807 | esac |
| | 13808 | fi |
| | 13809 | version_type=freebsd-$objformat |
| | 13810 | case $version_type in |
| | 13811 | freebsd-elf*) |
| | 13812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | 13813 | need_version=no |
| | 13814 | need_lib_prefix=no |
| | 13815 | ;; |
| | 13816 | freebsd-*) |
| | 13817 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| | 13818 | need_version=yes |
| | 13819 | ;; |
| | 13820 | esac |
| | 13821 | shlibpath_var=LD_LIBRARY_PATH |
| | 13822 | case $host_os in |
| | 13823 | freebsd2*) |
| | 13824 | shlibpath_overrides_runpath=yes |
| | 13825 | ;; |
| | 13826 | freebsd3.[01]* | freebsdelf3.[01]*) |
| | 13827 | shlibpath_overrides_runpath=yes |
| | 13828 | hardcode_into_libs=yes |
| | 13829 | ;; |
| | 13830 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| | 13831 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| | 13832 | shlibpath_overrides_runpath=no |
| | 13833 | hardcode_into_libs=yes |
| | 13834 | ;; |
| | 13835 | freebsd*) # from 4.6 on |
| | 13836 | shlibpath_overrides_runpath=yes |
| | 13837 | hardcode_into_libs=yes |
| | 13838 | ;; |
| | 13839 | esac |
| | 13840 | ;; |
| | 13841 | |
| | 13842 | gnu*) |
| | 13843 | version_type=linux |
| | 13844 | need_lib_prefix=no |
| | 13845 | need_version=no |
| | 13846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| | 13847 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13848 | shlibpath_var=LD_LIBRARY_PATH |
| | 13849 | hardcode_into_libs=yes |
| | 13850 | ;; |
| | 13851 | |
| | 13852 | hpux9* | hpux10* | hpux11*) |
| | 13853 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| | 13854 | # link against other versions. |
| | 13855 | version_type=sunos |
| | 13856 | need_lib_prefix=no |
| | 13857 | need_version=no |
| | 13858 | case $host_cpu in |
| | 13859 | ia64*) |
| | 13860 | shrext_cmds='.so' |
| | 13861 | hardcode_into_libs=yes |
| | 13862 | dynamic_linker="$host_os dld.so" |
| | 13863 | shlibpath_var=LD_LIBRARY_PATH |
| | 13864 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| | 13865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 13866 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13867 | if test "X$HPUX_IA64_MODE" = X32; then |
| | 13868 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| | 13869 | else |
| | 13870 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| | 13871 | fi |
| | 13872 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| | 13873 | ;; |
| | 13874 | hppa*64*) |
| | 13875 | shrext_cmds='.sl' |
| | 13876 | hardcode_into_libs=yes |
| | 13877 | dynamic_linker="$host_os dld.sl" |
| | 13878 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| | 13879 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| | 13880 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 13881 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13882 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| | 13883 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| | 13884 | ;; |
| | 13885 | *) |
| | 13886 | shrext_cmds='.sl' |
| | 13887 | dynamic_linker="$host_os dld.sl" |
| | 13888 | shlibpath_var=SHLIB_PATH |
| | 13889 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| | 13890 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 13891 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13892 | ;; |
| | 13893 | esac |
| | 13894 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| | 13895 | postinstall_cmds='chmod 555 $lib' |
| | 13896 | ;; |
| | 13897 | |
| | 13898 | interix3*) |
| | 13899 | version_type=linux |
| | 13900 | need_lib_prefix=no |
| | 13901 | need_version=no |
| | 13902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 13903 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13904 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| | 13905 | shlibpath_var=LD_LIBRARY_PATH |
| | 13906 | shlibpath_overrides_runpath=no |
| | 13907 | hardcode_into_libs=yes |
| | 13908 | ;; |
| | 13909 | |
| | 13910 | irix5* | irix6* | nonstopux*) |
| | 13911 | case $host_os in |
| | 13912 | nonstopux*) version_type=nonstopux ;; |
| | 13913 | *) |
| | 13914 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| | 13915 | version_type=linux |
| | 13916 | else |
| | 13917 | version_type=irix |
| | 13918 | fi ;; |
| | 13919 | esac |
| | 13920 | need_lib_prefix=no |
| | 13921 | need_version=no |
| | 13922 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | 13924 | case $host_os in |
| | 13925 | irix5* | nonstopux*) |
| | 13926 | libsuff= shlibsuff= |
| | 13927 | ;; |
| | 13928 | *) |
| | 13929 | case $LD in # libtool.m4 will add one of these switches to LD |
| | 13930 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| | 13931 | libsuff= shlibsuff= libmagic=32-bit;; |
| | 13932 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| | 13933 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| | 13934 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| | 13935 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| | 13936 | *) libsuff= shlibsuff= libmagic=never-match;; |
| | 13937 | esac |
| | 13938 | ;; |
| | 13939 | esac |
| | 13940 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| | 13941 | shlibpath_overrides_runpath=no |
| | 13942 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| | 13943 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| | 13944 | hardcode_into_libs=yes |
| | 13945 | ;; |
| | 13946 | |
| | 13947 | # No shared lib support for Linux oldld, aout, or coff. |
| | 13948 | linux*oldld* | linux*aout* | linux*coff*) |
| | 13949 | dynamic_linker=no |
| | 13950 | ;; |
| | 13951 | |
| | 13952 | # This must be Linux ELF. |
| | 13953 | linux*) |
| | 13954 | version_type=linux |
| | 13955 | need_lib_prefix=no |
| | 13956 | need_version=no |
| | 13957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 13958 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13959 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| | 13960 | shlibpath_var=LD_LIBRARY_PATH |
| | 13961 | shlibpath_overrides_runpath=no |
| | 13962 | # This implies no fast_install, which is unacceptable. |
| | 13963 | # Some rework will be needed to allow for fast_install |
| | 13964 | # before this can be enabled. |
| | 13965 | hardcode_into_libs=yes |
| | 13966 | |
| | 13967 | # Append ld.so.conf contents to the search path |
| | 13968 | if test -f /etc/ld.so.conf; then |
| | 13969 | 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' ' '` |
| | 13970 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| | 13971 | fi |
| | 13972 | |
| | 13973 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| | 13974 | # powerpc, because MkLinux only supported shared libraries with the |
| | 13975 | # GNU dynamic linker. Since this was broken with cross compilers, |
| | 13976 | # most powerpc-linux boxes support dynamic linking these days and |
| | 13977 | # people can always --disable-shared, the test was removed, and we |
| | 13978 | # assume the GNU/Linux dynamic linker is in use. |
| | 13979 | dynamic_linker='GNU/Linux ld.so' |
| | 13980 | ;; |
| | 13981 | |
| | 13982 | netbsdelf*-gnu) |
| | 13983 | version_type=linux |
| | 13984 | need_lib_prefix=no |
| | 13985 | need_version=no |
| | 13986 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 13987 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 13988 | shlibpath_var=LD_LIBRARY_PATH |
| | 13989 | shlibpath_overrides_runpath=no |
| | 13990 | hardcode_into_libs=yes |
| | 13991 | dynamic_linker='NetBSD ld.elf_so' |
| | 13992 | ;; |
| | 13993 | |
| | 13994 | knetbsd*-gnu) |
| | 13995 | version_type=linux |
| | 13996 | need_lib_prefix=no |
| | 13997 | need_version=no |
| | 13998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 13999 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 14000 | shlibpath_var=LD_LIBRARY_PATH |
| | 14001 | shlibpath_overrides_runpath=no |
| | 14002 | hardcode_into_libs=yes |
| | 14003 | dynamic_linker='GNU ld.so' |
| | 14004 | ;; |
| | 14005 | |
| | 14006 | netbsd*) |
| | 14007 | version_type=sunos |
| | 14008 | need_lib_prefix=no |
| | 14009 | need_version=no |
| | 14010 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| | 14011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | 14012 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| | 14013 | dynamic_linker='NetBSD (a.out) ld.so' |
| | 14014 | else |
| | 14015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 14016 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 14017 | dynamic_linker='NetBSD ld.elf_so' |
| | 14018 | fi |
| | 14019 | shlibpath_var=LD_LIBRARY_PATH |
| | 14020 | shlibpath_overrides_runpath=yes |
| | 14021 | hardcode_into_libs=yes |
| | 14022 | ;; |
| | 14023 | |
| | 14024 | newsos6) |
| | 14025 | version_type=linux |
| | 14026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 14027 | shlibpath_var=LD_LIBRARY_PATH |
| | 14028 | shlibpath_overrides_runpath=yes |
| | 14029 | ;; |
| | 14030 | |
| | 14031 | nto-qnx*) |
| | 14032 | version_type=linux |
| | 14033 | need_lib_prefix=no |
| | 14034 | need_version=no |
| | 14035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 14036 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 14037 | shlibpath_var=LD_LIBRARY_PATH |
| | 14038 | shlibpath_overrides_runpath=yes |
| | 14039 | ;; |
| | 14040 | |
| | 14041 | openbsd*) |
| | 14042 | version_type=sunos |
| | 14043 | sys_lib_dlsearch_path_spec="/usr/lib" |
| | 14044 | need_lib_prefix=no |
| | 14045 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| | 14046 | case $host_os in |
| | 14047 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| | 14048 | *) need_version=no ;; |
| | 14049 | esac |
| | 14050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | 14051 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| | 14052 | shlibpath_var=LD_LIBRARY_PATH |
| | 14053 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| | 14054 | case $host_os in |
| | 14055 | openbsd2.[89] | openbsd2.[89].*) |
| | 14056 | shlibpath_overrides_runpath=no |
| | 14057 | ;; |
| | 14058 | *) |
| | 14059 | shlibpath_overrides_runpath=yes |
| | 14060 | ;; |
| | 14061 | esac |
| | 14062 | else |
| | 14063 | shlibpath_overrides_runpath=yes |
| | 14064 | fi |
| | 14065 | ;; |
| | 14066 | |
| | 14067 | os2*) |
| | 14068 | libname_spec='$name' |
| | 14069 | shrext_cmds=".dll" |
| | 14070 | need_lib_prefix=no |
| | 14071 | library_names_spec='$libname${shared_ext} $libname.a' |
| | 14072 | dynamic_linker='OS/2 ld.exe' |
| | 14073 | shlibpath_var=LIBPATH |
| | 14074 | ;; |
| | 14075 | |
| | 14076 | osf3* | osf4* | osf5*) |
| | 14077 | version_type=osf |
| | 14078 | need_lib_prefix=no |
| | 14079 | need_version=no |
| | 14080 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 14081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 14082 | shlibpath_var=LD_LIBRARY_PATH |
| | 14083 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| | 14084 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| | 14085 | ;; |
| | 14086 | |
| | 14087 | solaris*) |
| | 14088 | version_type=linux |
| | 14089 | need_lib_prefix=no |
| | 14090 | need_version=no |
| | 14091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 14092 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 14093 | shlibpath_var=LD_LIBRARY_PATH |
| | 14094 | shlibpath_overrides_runpath=yes |
| | 14095 | hardcode_into_libs=yes |
| | 14096 | # ldd complains unless libraries are executable |
| | 14097 | postinstall_cmds='chmod +x $lib' |
| | 14098 | ;; |
| | 14099 | |
| | 14100 | sunos4*) |
| | 14101 | version_type=sunos |
| | 14102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | 14103 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| | 14104 | shlibpath_var=LD_LIBRARY_PATH |
| | 14105 | shlibpath_overrides_runpath=yes |
| | 14106 | if test "$with_gnu_ld" = yes; then |
| | 14107 | need_lib_prefix=no |
| | 14108 | fi |
| | 14109 | need_version=yes |
| | 14110 | ;; |
| | 14111 | |
| | 14112 | sysv4 | sysv4.3*) |
| | 14113 | version_type=linux |
| | 14114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 14115 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 14116 | shlibpath_var=LD_LIBRARY_PATH |
| | 14117 | case $host_vendor in |
| | 14118 | sni) |
| | 14119 | shlibpath_overrides_runpath=no |
| | 14120 | need_lib_prefix=no |
| | 14121 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| | 14122 | runpath_var=LD_RUN_PATH |
| | 14123 | ;; |
| | 14124 | siemens) |
| | 14125 | need_lib_prefix=no |
| | 14126 | ;; |
| | 14127 | motorola) |
| | 14128 | need_lib_prefix=no |
| | 14129 | need_version=no |
| | 14130 | shlibpath_overrides_runpath=no |
| | 14131 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| | 14132 | ;; |
| | 14133 | esac |
| | 14134 | ;; |
| | 14135 | |
| | 14136 | sysv4*MP*) |
| | 14137 | if test -d /usr/nec ;then |
| | 14138 | version_type=linux |
| | 14139 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| | 14140 | soname_spec='$libname${shared_ext}.$major' |
| | 14141 | shlibpath_var=LD_LIBRARY_PATH |
| | 14142 | fi |
| | 14143 | ;; |
| | 14144 | |
| | 14145 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| | 14146 | version_type=freebsd-elf |
| | 14147 | need_lib_prefix=no |
| | 14148 | need_version=no |
| | 14149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | 14150 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 14151 | shlibpath_var=LD_LIBRARY_PATH |
| | 14152 | hardcode_into_libs=yes |
| | 14153 | if test "$with_gnu_ld" = yes; then |
| | 14154 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| | 14155 | shlibpath_overrides_runpath=no |
| | 14156 | else |
| | 14157 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| | 14158 | shlibpath_overrides_runpath=yes |
| | 14159 | case $host_os in |
| | 14160 | sco3.2v5*) |
| | 14161 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| | 14162 | ;; |
| | 14163 | esac |
| | 14164 | fi |
| | 14165 | sys_lib_dlsearch_path_spec='/usr/lib' |
| | 14166 | ;; |
| | 14167 | |
| | 14168 | uts4*) |
| | 14169 | version_type=linux |
| | 14170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 14171 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 14172 | shlibpath_var=LD_LIBRARY_PATH |
| | 14173 | ;; |
| | 14174 | |
| | 14175 | *) |
| | 14176 | dynamic_linker=no |
| | 14177 | ;; |
| | 14178 | esac |
| | 14179 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| | 14180 | echo "${ECHO_T}$dynamic_linker" >&6 |
| | 14181 | test "$dynamic_linker" = no && can_build_shared=no |
| | 14182 | |
| | 14183 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| | 14184 | if test "$GCC" = yes; then |
| | 14185 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| | 14186 | fi |
| | 14187 | |
| | 14188 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| | 14189 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| | 14190 | hardcode_action_CXX= |
| | 14191 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
| | 14192 | test -n "$runpath_var_CXX" || \ |
| | 14193 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| | 14194 | |
| | 14195 | # We can hardcode non-existant directories. |
| | 14196 | if test "$hardcode_direct_CXX" != no && |
| | 14197 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| | 14198 | # have to relink, otherwise we might link with an installed library |
| | 14199 | # when we should be linking with a yet-to-be-installed one |
| | 14200 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| | 14201 | test "$hardcode_minus_L_CXX" != no; then |
| | 14202 | # Linking always hardcodes the temporary library directory. |
| | 14203 | hardcode_action_CXX=relink |
| | 14204 | else |
| | 14205 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| | 14206 | hardcode_action_CXX=immediate |
| | 14207 | fi |
| | 14208 | else |
| | 14209 | # We cannot hardcode anything, or else we can only hardcode existing |
| | 14210 | # directories. |
| | 14211 | hardcode_action_CXX=unsupported |
| | 14212 | fi |
| | 14213 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
| | 14214 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
| | 14215 | |
| | 14216 | if test "$hardcode_action_CXX" = relink; then |
| | 14217 | # Fast installation is not supported |
| | 14218 | enable_fast_install=no |
| | 14219 | elif test "$shlibpath_overrides_runpath" = yes || |
| | 14220 | test "$enable_shared" = no; then |
| | 14221 | # Fast installation is not necessary |
| | 14222 | enable_fast_install=needless |
| | 14223 | fi |
| | 14224 | |
| | 14225 | |
| | 14226 | # The else clause should only fire when bootstrapping the |
| | 14227 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| | 14228 | # with your package, and you will get complaints that there are |
| | 14229 | # no rules to generate ltmain.sh. |
| | 14230 | if test -f "$ltmain"; then |
| | 14231 | # See if we are running on zsh, and set the options which allow our commands through |
| | 14232 | # without removal of \ escapes. |
| | 14233 | if test -n "${ZSH_VERSION+set}" ; then |
| | 14234 | setopt NO_GLOB_SUBST |
| | 14235 | fi |
| | 14236 | # Now quote all the things that may contain metacharacters while being |
| | 14237 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| | 14238 | # variables and quote the copies for generation of the libtool script. |
| | 14239 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| | 14240 | SED SHELL STRIP \ |
| | 14241 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| | 14242 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| | 14243 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| | 14244 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| | 14245 | lt_cv_sys_global_symbol_to_c_name_address \ |
| | 14246 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| | 14247 | old_postinstall_cmds old_postuninstall_cmds \ |
| | 14248 | compiler_CXX \ |
| | 14249 | CC_CXX \ |
| | 14250 | LD_CXX \ |
| | 14251 | lt_prog_compiler_wl_CXX \ |
| | 14252 | lt_prog_compiler_pic_CXX \ |
| | 14253 | lt_prog_compiler_static_CXX \ |
| | 14254 | lt_prog_compiler_no_builtin_flag_CXX \ |
| | 14255 | export_dynamic_flag_spec_CXX \ |
| | 14256 | thread_safe_flag_spec_CXX \ |
| | 14257 | whole_archive_flag_spec_CXX \ |
| | 14258 | enable_shared_with_static_runtimes_CXX \ |
| | 14259 | old_archive_cmds_CXX \ |
| | 14260 | old_archive_from_new_cmds_CXX \ |
| | 14261 | predep_objects_CXX \ |
| | 14262 | postdep_objects_CXX \ |
| | 14263 | predeps_CXX \ |
| | 14264 | postdeps_CXX \ |
| | 14265 | compiler_lib_search_path_CXX \ |
| | 14266 | archive_cmds_CXX \ |
| | 14267 | archive_expsym_cmds_CXX \ |
| | 14268 | postinstall_cmds_CXX \ |
| | 14269 | postuninstall_cmds_CXX \ |
| | 14270 | old_archive_from_expsyms_cmds_CXX \ |
| | 14271 | allow_undefined_flag_CXX \ |
| | 14272 | no_undefined_flag_CXX \ |
| | 14273 | export_symbols_cmds_CXX \ |
| | 14274 | hardcode_libdir_flag_spec_CXX \ |
| | 14275 | hardcode_libdir_flag_spec_ld_CXX \ |
| | 14276 | hardcode_libdir_separator_CXX \ |
| | 14277 | hardcode_automatic_CXX \ |
| | 14278 | module_cmds_CXX \ |
| | 14279 | module_expsym_cmds_CXX \ |
| | 14280 | lt_cv_prog_compiler_c_o_CXX \ |
| | 14281 | exclude_expsyms_CXX \ |
| | 14282 | include_expsyms_CXX; do |
| | 14283 | |
| | 14284 | case $var in |
| | 14285 | old_archive_cmds_CXX | \ |
| | 14286 | old_archive_from_new_cmds_CXX | \ |
| | 14287 | archive_cmds_CXX | \ |
| | 14288 | archive_expsym_cmds_CXX | \ |
| | 14289 | module_cmds_CXX | \ |
| | 14290 | module_expsym_cmds_CXX | \ |
| | 14291 | old_archive_from_expsyms_cmds_CXX | \ |
| | 14292 | export_symbols_cmds_CXX | \ |
| | 14293 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| | 14294 | postinstall_cmds | postuninstall_cmds | \ |
| | 14295 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| | 14296 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| | 14297 | # Double-quote double-evaled strings. |
| | 14298 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| | 14299 | ;; |
| | 14300 | *) |
| | 14301 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| | 14302 | ;; |
| | 14303 | esac |
| | 14304 | done |
| | 14305 | |
| | 14306 | case $lt_echo in |
| | 14307 | *'\$0 --fallback-echo"') |
| | 14308 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| | 14309 | ;; |
| | 14310 | esac |
| | 14311 | |
| | 14312 | cfgfile="$ofile" |
| | 14313 | |
| | 14314 | cat <<__EOF__ >> "$cfgfile" |
| | 14315 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| | 14316 | |
| | 14317 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| | 14318 | |
| | 14319 | # Shell to use when invoking shell scripts. |
| | 14320 | SHELL=$lt_SHELL |
| | 14321 | |
| | 14322 | # Whether or not to build shared libraries. |
| | 14323 | build_libtool_libs=$enable_shared |
| | 14324 | |
| | 14325 | # Whether or not to build static libraries. |
| | 14326 | build_old_libs=$enable_static |
| | 14327 | |
| | 14328 | # Whether or not to add -lc for building shared libraries. |
| | 14329 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| | 14330 | |
| | 14331 | # Whether or not to disallow shared libs when runtime libs are static |
| | 14332 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| | 14333 | |
| | 14334 | # Whether or not to optimize for fast installation. |
| | 14335 | fast_install=$enable_fast_install |
| | 14336 | |
| | 14337 | # The host system. |
| | 14338 | host_alias=$host_alias |
| | 14339 | host=$host |
| | 14340 | host_os=$host_os |
| | 14341 | |
| | 14342 | # The build system. |
| | 14343 | build_alias=$build_alias |
| | 14344 | build=$build |
| | 14345 | build_os=$build_os |
| | 14346 | |
| | 14347 | # An echo program that does not interpret backslashes. |
| | 14348 | echo=$lt_echo |
| | 14349 | |
| | 14350 | # The archiver. |
| | 14351 | AR=$lt_AR |
| | 14352 | AR_FLAGS=$lt_AR_FLAGS |
| | 14353 | |
| | 14354 | # A C compiler. |
| | 14355 | LTCC=$lt_LTCC |
| | 14356 | |
| | 14357 | # LTCC compiler flags. |
| | 14358 | LTCFLAGS=$lt_LTCFLAGS |
| | 14359 | |
| | 14360 | # A language-specific compiler. |
| | 14361 | CC=$lt_compiler_CXX |
| | 14362 | |
| | 14363 | # Is the compiler the GNU C compiler? |
| | 14364 | with_gcc=$GCC_CXX |
| | 14365 | |
| | 14366 | # An ERE matcher. |
| | 14367 | EGREP=$lt_EGREP |
| | 14368 | |
| | 14369 | # The linker used to build libraries. |
| | 14370 | LD=$lt_LD_CXX |
| | 14371 | |
| | 14372 | # Whether we need hard or soft links. |
| | 14373 | LN_S=$lt_LN_S |
| | 14374 | |
| | 14375 | # A BSD-compatible nm program. |
| | 14376 | NM=$lt_NM |
| | 14377 | |
| | 14378 | # A symbol stripping program |
| | 14379 | STRIP=$lt_STRIP |
| | 14380 | |
| | 14381 | # Used to examine libraries when file_magic_cmd begins "file" |
| | 14382 | MAGIC_CMD=$MAGIC_CMD |
| | 14383 | |
| | 14384 | # Used on cygwin: DLL creation program. |
| | 14385 | DLLTOOL="$DLLTOOL" |
| | 14386 | |
| | 14387 | # Used on cygwin: object dumper. |
| | 14388 | OBJDUMP="$OBJDUMP" |
| | 14389 | |
| | 14390 | # Used on cygwin: assembler. |
| | 14391 | AS="$AS" |
| | 14392 | |
| | 14393 | # The name of the directory that contains temporary libtool files. |
| | 14394 | objdir=$objdir |
| | 14395 | |
| | 14396 | # How to create reloadable object files. |
| | 14397 | reload_flag=$lt_reload_flag |
| | 14398 | reload_cmds=$lt_reload_cmds |
| | 14399 | |
| | 14400 | # How to pass a linker flag through the compiler. |
| | 14401 | wl=$lt_lt_prog_compiler_wl_CXX |
| | 14402 | |
| | 14403 | # Object file suffix (normally "o"). |
| | 14404 | objext="$ac_objext" |
| | 14405 | |
| | 14406 | # Old archive suffix (normally "a"). |
| | 14407 | libext="$libext" |
| | 14408 | |
| | 14409 | # Shared library suffix (normally ".so"). |
| | 14410 | shrext_cmds='$shrext_cmds' |
| | 14411 | |
| | 14412 | # Executable file suffix (normally ""). |
| | 14413 | exeext="$exeext" |
| | 14414 | |
| | 14415 | # Additional compiler flags for building library objects. |
| | 14416 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| | 14417 | pic_mode=$pic_mode |
| | 14418 | |
| | 14419 | # What is the maximum length of a command? |
| | 14420 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| | 14421 | |
| | 14422 | # Does compiler simultaneously support -c and -o options? |
| | 14423 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| | 14424 | |
| | 14425 | # Must we lock files when doing compilation? |
| | 14426 | need_locks=$lt_need_locks |
| | 14427 | |
| | 14428 | # Do we need the lib prefix for modules? |
| | 14429 | need_lib_prefix=$need_lib_prefix |
| | 14430 | |
| | 14431 | # Do we need a version for libraries? |
| | 14432 | need_version=$need_version |
| | 14433 | |
| | 14434 | # Whether dlopen is supported. |
| | 14435 | dlopen_support=$enable_dlopen |
| | 14436 | |
| | 14437 | # Whether dlopen of programs is supported. |
| | 14438 | dlopen_self=$enable_dlopen_self |
| | 14439 | |
| | 14440 | # Whether dlopen of statically linked programs is supported. |
| | 14441 | dlopen_self_static=$enable_dlopen_self_static |
| | 14442 | |
| | 14443 | # Compiler flag to prevent dynamic linking. |
| | 14444 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| | 14445 | |
| | 14446 | # Compiler flag to turn off builtin functions. |
| | 14447 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| | 14448 | |
| | 14449 | # Compiler flag to allow reflexive dlopens. |
| | 14450 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| | 14451 | |
| | 14452 | # Compiler flag to generate shared objects directly from archives. |
| | 14453 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| | 14454 | |
| | 14455 | # Compiler flag to generate thread-safe objects. |
| | 14456 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
| | 14457 | |
| | 14458 | # Library versioning type. |
| | 14459 | version_type=$version_type |
| | 14460 | |
| | 14461 | # Format of library name prefix. |
| | 14462 | libname_spec=$lt_libname_spec |
| | 14463 | |
| | 14464 | # List of archive names. First name is the real one, the rest are links. |
| | 14465 | # The last name is the one that the linker finds with -lNAME. |
| | 14466 | library_names_spec=$lt_library_names_spec |
| | 14467 | |
| | 14468 | # The coded name of the library, if different from the real name. |
| | 14469 | soname_spec=$lt_soname_spec |
| | 14470 | |
| | 14471 | # Commands used to build and install an old-style archive. |
| | 14472 | RANLIB=$lt_RANLIB |
| | 14473 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| | 14474 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| | 14475 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| | 14476 | |
| | 14477 | # Create an old-style archive from a shared archive. |
| | 14478 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| | 14479 | |
| | 14480 | # Create a temporary old-style archive to link instead of a shared archive. |
| | 14481 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| | 14482 | |
| | 14483 | # Commands used to build and install a shared archive. |
| | 14484 | archive_cmds=$lt_archive_cmds_CXX |
| | 14485 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| | 14486 | postinstall_cmds=$lt_postinstall_cmds |
| | 14487 | postuninstall_cmds=$lt_postuninstall_cmds |
| | 14488 | |
| | 14489 | # Commands used to build a loadable module (assumed same as above if empty) |
| | 14490 | module_cmds=$lt_module_cmds_CXX |
| | 14491 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| | 14492 | |
| | 14493 | # Commands to strip libraries. |
| | 14494 | old_striplib=$lt_old_striplib |
| | 14495 | striplib=$lt_striplib |
| | 14496 | |
| | 14497 | # Dependencies to place before the objects being linked to create a |
| | 14498 | # shared library. |
| | 14499 | predep_objects=$lt_predep_objects_CXX |
| | 14500 | |
| | 14501 | # Dependencies to place after the objects being linked to create a |
| | 14502 | # shared library. |
| | 14503 | postdep_objects=$lt_postdep_objects_CXX |
| | 14504 | |
| | 14505 | # Dependencies to place before the objects being linked to create a |
| | 14506 | # shared library. |
| | 14507 | predeps=$lt_predeps_CXX |
| | 14508 | |
| | 14509 | # Dependencies to place after the objects being linked to create a |
| | 14510 | # shared library. |
| | 14511 | postdeps=$lt_postdeps_CXX |
| | 14512 | |
| | 14513 | # The library search path used internally by the compiler when linking |
| | 14514 | # a shared library. |
| | 14515 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| | 14516 | |
| | 14517 | # Method to check whether dependent libraries are shared objects. |
| | 14518 | deplibs_check_method=$lt_deplibs_check_method |
| | 14519 | |
| | 14520 | # Command to use when deplibs_check_method == file_magic. |
| | 14521 | file_magic_cmd=$lt_file_magic_cmd |
| | 14522 | |
| | 14523 | # Flag that allows shared libraries with undefined symbols to be built. |
| | 14524 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| | 14525 | |
| | 14526 | # Flag that forces no undefined symbols. |
| | 14527 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| | 14528 | |
| | 14529 | # Commands used to finish a libtool library installation in a directory. |
| | 14530 | finish_cmds=$lt_finish_cmds |
| | 14531 | |
| | 14532 | # Same as above, but a single script fragment to be evaled but not shown. |
| | 14533 | finish_eval=$lt_finish_eval |
| | 14534 | |
| | 14535 | # Take the output of nm and produce a listing of raw symbols and C names. |
| | 14536 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| | 14537 | |
| | 14538 | # Transform the output of nm in a proper C declaration |
| | 14539 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| | 14540 | |
| | 14541 | # Transform the output of nm in a C name address pair |
| | 14542 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| | 14543 | |
| | 14544 | # This is the shared library runtime path variable. |
| | 14545 | runpath_var=$runpath_var |
| | 14546 | |
| | 14547 | # This is the shared library path variable. |
| | 14548 | shlibpath_var=$shlibpath_var |
| | 14549 | |
| | 14550 | # Is shlibpath searched before the hard-coded library search path? |
| | 14551 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| | 14552 | |
| | 14553 | # How to hardcode a shared library path into an executable. |
| | 14554 | hardcode_action=$hardcode_action_CXX |
| | 14555 | |
| | 14556 | # Whether we should hardcode library paths into libraries. |
| | 14557 | hardcode_into_libs=$hardcode_into_libs |
| | 14558 | |
| | 14559 | # Flag to hardcode \$libdir into a binary during linking. |
| | 14560 | # This must work even if \$libdir does not exist. |
| | 14561 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| | 14562 | |
| | 14563 | # If ld is used when linking, flag to hardcode \$libdir into |
| | 14564 | # a binary during linking. This must work even if \$libdir does |
| | 14565 | # not exist. |
| | 14566 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| | 14567 | |
| | 14568 | # Whether we need a single -rpath flag with a separated argument. |
| | 14569 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| | 14570 | |
| | 14571 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| | 14572 | # resulting binary. |
| | 14573 | hardcode_direct=$hardcode_direct_CXX |
| | 14574 | |
| | 14575 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| | 14576 | # resulting binary. |
| | 14577 | hardcode_minus_L=$hardcode_minus_L_CXX |
| | 14578 | |
| | 14579 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| | 14580 | # the resulting binary. |
| | 14581 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| | 14582 | |
| | 14583 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| | 14584 | # and all subsequent libraries and executables linked against it. |
| | 14585 | hardcode_automatic=$hardcode_automatic_CXX |
| | 14586 | |
| | 14587 | # Variables whose values should be saved in libtool wrapper scripts and |
| | 14588 | # restored at relink time. |
| | 14589 | variables_saved_for_relink="$variables_saved_for_relink" |
| | 14590 | |
| | 14591 | # Whether libtool must link a program against all its dependency libraries. |
| | 14592 | link_all_deplibs=$link_all_deplibs_CXX |
| | 14593 | |
| | 14594 | # Compile-time system search path for libraries |
| | 14595 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| | 14596 | |
| | 14597 | # Run-time system search path for libraries |
| | 14598 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| | 14599 | |
| | 14600 | # Fix the shell variable \$srcfile for the compiler. |
| | 14601 | fix_srcfile_path="$fix_srcfile_path_CXX" |
| | 14602 | |
| | 14603 | # Set to yes if exported symbols are required. |
| | 14604 | always_export_symbols=$always_export_symbols_CXX |
| | 14605 | |
| | 14606 | # The commands to list exported symbols. |
| | 14607 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| | 14608 | |
| | 14609 | # The commands to extract the exported symbol list from a shared archive. |
| | 14610 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| | 14611 | |
| | 14612 | # Symbols that should not be listed in the preloaded symbols. |
| | 14613 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| | 14614 | |
| | 14615 | # Symbols that must always be exported. |
| | 14616 | include_expsyms=$lt_include_expsyms_CXX |
| | 14617 | |
| | 14618 | # ### END LIBTOOL TAG CONFIG: $tagname |
| | 14619 | |
| | 14620 | __EOF__ |
| | 14621 | |
| | 14622 | |
| | 14623 | else |
| | 14624 | # If there is no Makefile yet, we rely on a make rule to execute |
| | 14625 | # `config.status --recheck' to rerun these tests and create the |
| | 14626 | # libtool script then. |
| | 14627 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| | 14628 | if test -f "$ltmain_in"; then |
| | 14629 | test -f Makefile && make "$ltmain" |
| | 14630 | fi |
| | 14631 | fi |
| | 14632 | |
| | 14633 | |
| | 14634 | ac_ext=c |
| | 14635 | ac_cpp='$CPP $CPPFLAGS' |
| | 14636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 14637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 14638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | 14639 | |
| | 14640 | CC=$lt_save_CC |
| | 14641 | LDCXX=$LD |
| | 14642 | LD=$lt_save_LD |
| | 14643 | GCC=$lt_save_GCC |
| | 14644 | with_gnu_ldcxx=$with_gnu_ld |
| | 14645 | with_gnu_ld=$lt_save_with_gnu_ld |
| | 14646 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| | 14647 | lt_cv_path_LD=$lt_save_path_LD |
| | 14648 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| | 14649 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| | 14650 | |
| | 14651 | else |
| | 14652 | tagname="" |
| | 14653 | fi |
| | 14654 | ;; |
| | 14655 | |
| | 14656 | F77) |
| | 14657 | if test -n "$F77" && test "X$F77" != "Xno"; then |
| | 14658 | |
| | 14659 | ac_ext=f |
| | 14660 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| | 14661 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 14662 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| | 14663 | |
| | 14664 | |
| | 14665 | archive_cmds_need_lc_F77=no |
| | 14666 | allow_undefined_flag_F77= |
| | 14667 | always_export_symbols_F77=no |
| | 14668 | archive_expsym_cmds_F77= |
| | 14669 | export_dynamic_flag_spec_F77= |
| | 14670 | hardcode_direct_F77=no |
| | 14671 | hardcode_libdir_flag_spec_F77= |
| | 14672 | hardcode_libdir_flag_spec_ld_F77= |
| | 14673 | hardcode_libdir_separator_F77= |
| | 14674 | hardcode_minus_L_F77=no |
| | 14675 | hardcode_automatic_F77=no |
| | 14676 | module_cmds_F77= |
| | 14677 | module_expsym_cmds_F77= |
| | 14678 | link_all_deplibs_F77=unknown |
| | 14679 | old_archive_cmds_F77=$old_archive_cmds |
| | 14680 | no_undefined_flag_F77= |
| | 14681 | whole_archive_flag_spec_F77= |
| | 14682 | enable_shared_with_static_runtimes_F77=no |
| | 14683 | |
| | 14684 | # Source file extension for f77 test sources. |
| | 14685 | ac_ext=f |
| | 14686 | |
| | 14687 | # Object file extension for compiled f77 test sources. |
| | 14688 | objext=o |
| | 14689 | objext_F77=$objext |
| | 14690 | |
| | 14691 | # Code to be used in simple compile tests |
| | 14692 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
| | 14693 | |
| | 14694 | # Code to be used in simple link tests |
| | 14695 | lt_simple_link_test_code=" program t\n end\n" |
| | 14696 | |
| | 14697 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| | 14698 | |
| | 14699 | # If no C compiler was specified, use CC. |
| | 14700 | LTCC=${LTCC-"$CC"} |
| | 14701 | |
| | 14702 | # If no C compiler flags were specified, use CFLAGS. |
| | 14703 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| | 14704 | |
| | 14705 | # Allow CC to be a program name with arguments. |
| | 14706 | compiler=$CC |
| | 14707 | |
| | 14708 | |
| | 14709 | # save warnings/boilerplate of simple test code |
| | 14710 | ac_outfile=conftest.$ac_objext |
| | 14711 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| | 14712 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| | 14713 | _lt_compiler_boilerplate=`cat conftest.err` |
| | 14714 | $rm conftest* |
| | 14715 | |
| | 14716 | ac_outfile=conftest.$ac_objext |
| | 14717 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| | 14718 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| | 14719 | _lt_linker_boilerplate=`cat conftest.err` |
| | 14720 | $rm conftest* |
| | 14721 | |
| | 14722 | |
| | 14723 | # Allow CC to be a program name with arguments. |
| | 14724 | lt_save_CC="$CC" |
| | 14725 | CC=${F77-"f77"} |
| | 14726 | compiler=$CC |
| | 14727 | compiler_F77=$CC |
| | 14728 | for cc_temp in $compiler""; do |
| | 14729 | case $cc_temp in |
| | 14730 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| | 14731 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| | 14732 | \-*) ;; |
| | 14733 | *) break;; |
| | 14734 | esac |
| | 14735 | done |
| | 14736 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| | 14737 | |
| | 14738 | |
| | 14739 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
| | 14740 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
| | 14741 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
| | 14742 | echo "${ECHO_T}$can_build_shared" >&6 |
| | 14743 | |
| | 14744 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
| | 14745 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
| | 14746 | test "$can_build_shared" = "no" && enable_shared=no |
| | 14747 | |
| | 14748 | # On AIX, shared libraries and static libraries use the same namespace, and |
| | 14749 | # are all built from PIC. |
| | 14750 | case $host_os in |
| | 14751 | aix3*) |
| | 14752 | test "$enable_shared" = yes && enable_static=no |
| | 14753 | if test -n "$RANLIB"; then |
| | 14754 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| | 14755 | postinstall_cmds='$RANLIB $lib' |
| | 14756 | fi |
| | 14757 | ;; |
| | 14758 | aix4* | aix5*) |
| | 14759 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| | 14760 | test "$enable_shared" = yes && enable_static=no |
| | 14761 | fi |
| | 14762 | ;; |
| | 14763 | esac |
| | 14764 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| | 14765 | echo "${ECHO_T}$enable_shared" >&6 |
| | 14766 | |
| | 14767 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
| | 14768 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
| | 14769 | # Make sure either enable_shared or enable_static is yes. |
| | 14770 | test "$enable_shared" = yes || enable_static=yes |
| | 14771 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
| | 14772 | echo "${ECHO_T}$enable_static" >&6 |
| | 14773 | |
| | 14774 | GCC_F77="$G77" |
| | 14775 | LD_F77="$LD" |
| | 14776 | |
| | 14777 | lt_prog_compiler_wl_F77= |
| | 14778 | lt_prog_compiler_pic_F77= |
| | 14779 | lt_prog_compiler_static_F77= |
| | 14780 | |
| | 14781 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| | 14782 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| | 14783 | |
| | 14784 | if test "$GCC" = yes; then |
| | 14785 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14786 | lt_prog_compiler_static_F77='-static' |
| | 14787 | |
| | 14788 | case $host_os in |
| | 14789 | aix*) |
| | 14790 | # All AIX code is PIC. |
| | 14791 | if test "$host_cpu" = ia64; then |
| | 14792 | # AIX 5 now supports IA64 processor |
| | 14793 | lt_prog_compiler_static_F77='-Bstatic' |
| | 14794 | fi |
| | 14795 | ;; |
| | 14796 | |
| | 14797 | amigaos*) |
| | 14798 | # FIXME: we need at least 68020 code to build shared libraries, but |
| | 14799 | # adding the `-m68020' flag to GCC prevents building anything better, |
| | 14800 | # like `-m68040'. |
| | 14801 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
| | 14802 | ;; |
| | 14803 | |
| | 14804 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| | 14805 | # PIC is the default for these OSes. |
| | 14806 | ;; |
| | 14807 | |
| | 14808 | mingw* | pw32* | os2*) |
| | 14809 | # This hack is so that the source file can tell whether it is being |
| | 14810 | # built for inclusion in a dll (and should export symbols for example). |
| | 14811 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| | 14812 | ;; |
| | 14813 | |
| | 14814 | darwin* | rhapsody*) |
| | 14815 | # PIC is the default on this platform |
| | 14816 | # Common symbols not allowed in MH_DYLIB files |
| | 14817 | lt_prog_compiler_pic_F77='-fno-common' |
| | 14818 | ;; |
| | 14819 | |
| | 14820 | interix3*) |
| | 14821 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| | 14822 | # Instead, we relocate shared libraries at runtime. |
| | 14823 | ;; |
| | 14824 | |
| | 14825 | msdosdjgpp*) |
| | 14826 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| | 14827 | # on systems that don't support them. |
| | 14828 | lt_prog_compiler_can_build_shared_F77=no |
| | 14829 | enable_shared=no |
| | 14830 | ;; |
| | 14831 | |
| | 14832 | sysv4*MP*) |
| | 14833 | if test -d /usr/nec; then |
| | 14834 | lt_prog_compiler_pic_F77=-Kconform_pic |
| | 14835 | fi |
| | 14836 | ;; |
| | 14837 | |
| | 14838 | hpux*) |
| | 14839 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| | 14840 | # not for PA HP-UX. |
| | 14841 | case $host_cpu in |
| | 14842 | hppa*64*|ia64*) |
| | 14843 | # +Z the default |
| | 14844 | ;; |
| | 14845 | *) |
| | 14846 | lt_prog_compiler_pic_F77='-fPIC' |
| | 14847 | ;; |
| | 14848 | esac |
| | 14849 | ;; |
| | 14850 | |
| | 14851 | *) |
| | 14852 | lt_prog_compiler_pic_F77='-fPIC' |
| | 14853 | ;; |
| | 14854 | esac |
| | 14855 | else |
| | 14856 | # PORTME Check for flag to pass linker flags through the system compiler. |
| | 14857 | case $host_os in |
| | 14858 | aix*) |
| | 14859 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14860 | if test "$host_cpu" = ia64; then |
| | 14861 | # AIX 5 now supports IA64 processor |
| | 14862 | lt_prog_compiler_static_F77='-Bstatic' |
| | 14863 | else |
| | 14864 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
| | 14865 | fi |
| | 14866 | ;; |
| | 14867 | darwin*) |
| | 14868 | # PIC is the default on this platform |
| | 14869 | # Common symbols not allowed in MH_DYLIB files |
| | 14870 | case $cc_basename in |
| | 14871 | xlc*) |
| | 14872 | lt_prog_compiler_pic_F77='-qnocommon' |
| | 14873 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14874 | ;; |
| | 14875 | esac |
| | 14876 | ;; |
| | 14877 | |
| | 14878 | mingw* | pw32* | os2*) |
| | 14879 | # This hack is so that the source file can tell whether it is being |
| | 14880 | # built for inclusion in a dll (and should export symbols for example). |
| | 14881 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
| | 14882 | ;; |
| | 14883 | |
| | 14884 | hpux9* | hpux10* | hpux11*) |
| | 14885 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14886 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| | 14887 | # not for PA HP-UX. |
| | 14888 | case $host_cpu in |
| | 14889 | hppa*64*|ia64*) |
| | 14890 | # +Z the default |
| | 14891 | ;; |
| | 14892 | *) |
| | 14893 | lt_prog_compiler_pic_F77='+Z' |
| | 14894 | ;; |
| | 14895 | esac |
| | 14896 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| | 14897 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
| | 14898 | ;; |
| | 14899 | |
| | 14900 | irix5* | irix6* | nonstopux*) |
| | 14901 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14902 | # PIC (with -KPIC) is the default. |
| | 14903 | lt_prog_compiler_static_F77='-non_shared' |
| | 14904 | ;; |
| | 14905 | |
| | 14906 | newsos6) |
| | 14907 | lt_prog_compiler_pic_F77='-KPIC' |
| | 14908 | lt_prog_compiler_static_F77='-Bstatic' |
| | 14909 | ;; |
| | 14910 | |
| | 14911 | linux*) |
| | 14912 | case $cc_basename in |
| | 14913 | icc* | ecc*) |
| | 14914 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14915 | lt_prog_compiler_pic_F77='-KPIC' |
| | 14916 | lt_prog_compiler_static_F77='-static' |
| | 14917 | ;; |
| | 14918 | pgcc* | pgf77* | pgf90* | pgf95*) |
| | 14919 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| | 14920 | # which looks to be a dead project) |
| | 14921 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14922 | lt_prog_compiler_pic_F77='-fpic' |
| | 14923 | lt_prog_compiler_static_F77='-Bstatic' |
| | 14924 | ;; |
| | 14925 | ccc*) |
| | 14926 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14927 | # All Alpha code is PIC. |
| | 14928 | lt_prog_compiler_static_F77='-non_shared' |
| | 14929 | ;; |
| | 14930 | esac |
| | 14931 | ;; |
| | 14932 | |
| | 14933 | osf3* | osf4* | osf5*) |
| | 14934 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14935 | # All OSF/1 code is PIC. |
| | 14936 | lt_prog_compiler_static_F77='-non_shared' |
| | 14937 | ;; |
| | 14938 | |
| | 14939 | solaris*) |
| | 14940 | lt_prog_compiler_pic_F77='-KPIC' |
| | 14941 | lt_prog_compiler_static_F77='-Bstatic' |
| | 14942 | case $cc_basename in |
| | 14943 | f77* | f90* | f95*) |
| | 14944 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
| | 14945 | *) |
| | 14946 | lt_prog_compiler_wl_F77='-Wl,';; |
| | 14947 | esac |
| | 14948 | ;; |
| | 14949 | |
| | 14950 | sunos4*) |
| | 14951 | lt_prog_compiler_wl_F77='-Qoption ld ' |
| | 14952 | lt_prog_compiler_pic_F77='-PIC' |
| | 14953 | lt_prog_compiler_static_F77='-Bstatic' |
| | 14954 | ;; |
| | 14955 | |
| | 14956 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| | 14957 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14958 | lt_prog_compiler_pic_F77='-KPIC' |
| | 14959 | lt_prog_compiler_static_F77='-Bstatic' |
| | 14960 | ;; |
| | 14961 | |
| | 14962 | sysv4*MP*) |
| | 14963 | if test -d /usr/nec ;then |
| | 14964 | lt_prog_compiler_pic_F77='-Kconform_pic' |
| | 14965 | lt_prog_compiler_static_F77='-Bstatic' |
| | 14966 | fi |
| | 14967 | ;; |
| | 14968 | |
| | 14969 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| | 14970 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14971 | lt_prog_compiler_pic_F77='-KPIC' |
| | 14972 | lt_prog_compiler_static_F77='-Bstatic' |
| | 14973 | ;; |
| | 14974 | |
| | 14975 | unicos*) |
| | 14976 | lt_prog_compiler_wl_F77='-Wl,' |
| | 14977 | lt_prog_compiler_can_build_shared_F77=no |
| | 14978 | ;; |
| | 14979 | |
| | 14980 | uts4*) |
| | 14981 | lt_prog_compiler_pic_F77='-pic' |
| | 14982 | lt_prog_compiler_static_F77='-Bstatic' |
| | 14983 | ;; |
| | 14984 | |
| | 14985 | *) |
| | 14986 | lt_prog_compiler_can_build_shared_F77=no |
| | 14987 | ;; |
| | 14988 | esac |
| | 14989 | fi |
| | 14990 | |
| | 14991 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
| | 14992 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
| | 14993 | |
| | 14994 | # |
| | 14995 | # Check to make sure the PIC flag actually works. |
| | 14996 | # |
| | 14997 | if test -n "$lt_prog_compiler_pic_F77"; then |
| | 14998 | |
| | 14999 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
| | 15000 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
| | 15001 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
| | 15002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 15003 | else |
| | 15004 | lt_prog_compiler_pic_works_F77=no |
| | 15005 | ac_outfile=conftest.$ac_objext |
| | 15006 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 15007 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
| | 15008 | # Insert the option either (1) after the last *FLAGS variable, or |
| | 15009 | # (2) before a word containing "conftest.", or (3) at the end. |
| | 15010 | # Note that $ac_compile itself does not contain backslashes and begins |
| | 15011 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | 15012 | # The option is referenced via a variable to avoid confusing sed. |
| | 15013 | lt_compile=`echo "$ac_compile" | $SED \ |
| | 15014 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| | 15015 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | 15016 | -e 's:$: $lt_compiler_flag:'` |
| | 15017 | (eval echo "\"\$as_me:15017: $lt_compile\"" >&5) |
| | 15018 | (eval "$lt_compile" 2>conftest.err) |
| | 15019 | ac_status=$? |
| | 15020 | cat conftest.err >&5 |
| | 15021 | echo "$as_me:15021: \$? = $ac_status" >&5 |
| | 15022 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| | 15023 | # The compiler can only warn and ignore the option if not recognized |
| | 15024 | # So say no if there are warnings other than the usual output. |
| | 15025 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| | 15026 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| | 15027 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| | 15028 | lt_prog_compiler_pic_works_F77=yes |
| | 15029 | fi |
| | 15030 | fi |
| | 15031 | $rm conftest* |
| | 15032 | |
| | 15033 | fi |
| | 15034 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
| | 15035 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
| | 15036 | |
| | 15037 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
| | 15038 | case $lt_prog_compiler_pic_F77 in |
| | 15039 | "" | " "*) ;; |
| | 15040 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
| | 15041 | esac |
| | 15042 | else |
| | 15043 | lt_prog_compiler_pic_F77= |
| | 15044 | lt_prog_compiler_can_build_shared_F77=no |
| | 15045 | fi |
| | 15046 | |
| | 15047 | fi |
| | 15048 | case $host_os in |
| | 15049 | # For platforms which do not support PIC, -DPIC is meaningless: |
| | 15050 | *djgpp*) |
| | 15051 | lt_prog_compiler_pic_F77= |
| | 15052 | ;; |
| | 15053 | *) |
| | 15054 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
| | 15055 | ;; |
| | 15056 | esac |
| | 15057 | |
| | 15058 | # |
| | 15059 | # Check to make sure the static flag actually works. |
| | 15060 | # |
| | 15061 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
| | 15062 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| | 15063 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| | 15064 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
| | 15065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 15066 | else |
| | 15067 | lt_prog_compiler_static_works_F77=no |
| | 15068 | save_LDFLAGS="$LDFLAGS" |
| | 15069 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| | 15070 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| | 15071 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| | 15072 | # The linker can only warn and ignore the option if not recognized |
| | 15073 | # So say no if there are warnings |
| | 15074 | if test -s conftest.err; then |
| | 15075 | # Append any errors to the config.log. |
| | 15076 | cat conftest.err 1>&5 |
| | 15077 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| | 15078 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| | 15079 | if diff conftest.exp conftest.er2 >/dev/null; then |
| | 15080 | lt_prog_compiler_static_works_F77=yes |
| | 15081 | fi |
| | 15082 | else |
| | 15083 | lt_prog_compiler_static_works_F77=yes |
| | 15084 | fi |
| | 15085 | fi |
| | 15086 | $rm conftest* |
| | 15087 | LDFLAGS="$save_LDFLAGS" |
| | 15088 | |
| | 15089 | fi |
| | 15090 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
| | 15091 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
| | 15092 | |
| | 15093 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
| | 15094 | : |
| | 15095 | else |
| | 15096 | lt_prog_compiler_static_F77= |
| | 15097 | fi |
| | 15098 | |
| | 15099 | |
| | 15100 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| | 15101 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| | 15102 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
| | 15103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 15104 | else |
| | 15105 | lt_cv_prog_compiler_c_o_F77=no |
| | 15106 | $rm -r conftest 2>/dev/null |
| | 15107 | mkdir conftest |
| | 15108 | cd conftest |
| | 15109 | mkdir out |
| | 15110 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 15111 | |
| | 15112 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| | 15113 | # Insert the option either (1) after the last *FLAGS variable, or |
| | 15114 | # (2) before a word containing "conftest.", or (3) at the end. |
| | 15115 | # Note that $ac_compile itself does not contain backslashes and begins |
| | 15116 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | 15117 | lt_compile=`echo "$ac_compile" | $SED \ |
| | 15118 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| | 15119 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | 15120 | -e 's:$: $lt_compiler_flag:'` |
| | 15121 | (eval echo "\"\$as_me:15121: $lt_compile\"" >&5) |
| | 15122 | (eval "$lt_compile" 2>out/conftest.err) |
| | 15123 | ac_status=$? |
| | 15124 | cat out/conftest.err >&5 |
| | 15125 | echo "$as_me:15125: \$? = $ac_status" >&5 |
| | 15126 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| | 15127 | then |
| | 15128 | # The compiler can only warn and ignore the option if not recognized |
| | 15129 | # So say no if there are warnings |
| | 15130 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| | 15131 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| | 15132 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| | 15133 | lt_cv_prog_compiler_c_o_F77=yes |
| | 15134 | fi |
| | 15135 | fi |
| | 15136 | chmod u+w . 2>&5 |
| | 15137 | $rm conftest* |
| | 15138 | # SGI C++ compiler will create directory out/ii_files/ for |
| | 15139 | # template instantiation |
| | 15140 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| | 15141 | $rm out/* && rmdir out |
| | 15142 | cd .. |
| | 15143 | rmdir conftest |
| | 15144 | $rm conftest* |
| | 15145 | |
| | 15146 | fi |
| | 15147 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
| | 15148 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
| | 15149 | |
| | 15150 | |
| | 15151 | hard_links="nottested" |
| | 15152 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
| | 15153 | # do not overwrite the value of need_locks provided by the user |
| | 15154 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| | 15155 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| | 15156 | hard_links=yes |
| | 15157 | $rm conftest* |
| | 15158 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| | 15159 | touch conftest.a |
| | 15160 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| | 15161 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| | 15162 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| | 15163 | echo "${ECHO_T}$hard_links" >&6 |
| | 15164 | if test "$hard_links" = no; then |
| | 15165 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| | 15166 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| | 15167 | need_locks=warn |
| | 15168 | fi |
| | 15169 | else |
| | 15170 | need_locks=no |
| | 15171 | fi |
| | 15172 | |
| | 15173 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| | 15174 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| | 15175 | |
| | 15176 | runpath_var= |
| | 15177 | allow_undefined_flag_F77= |
| | 15178 | enable_shared_with_static_runtimes_F77=no |
| | 15179 | archive_cmds_F77= |
| | 15180 | archive_expsym_cmds_F77= |
| | 15181 | old_archive_From_new_cmds_F77= |
| | 15182 | old_archive_from_expsyms_cmds_F77= |
| | 15183 | export_dynamic_flag_spec_F77= |
| | 15184 | whole_archive_flag_spec_F77= |
| | 15185 | thread_safe_flag_spec_F77= |
| | 15186 | hardcode_libdir_flag_spec_F77= |
| | 15187 | hardcode_libdir_flag_spec_ld_F77= |
| | 15188 | hardcode_libdir_separator_F77= |
| | 15189 | hardcode_direct_F77=no |
| | 15190 | hardcode_minus_L_F77=no |
| | 15191 | hardcode_shlibpath_var_F77=unsupported |
| | 15192 | link_all_deplibs_F77=unknown |
| | 15193 | hardcode_automatic_F77=no |
| | 15194 | module_cmds_F77= |
| | 15195 | module_expsym_cmds_F77= |
| | 15196 | always_export_symbols_F77=no |
| | 15197 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| | 15198 | # include_expsyms should be a list of space-separated symbols to be *always* |
| | 15199 | # included in the symbol list |
| | 15200 | include_expsyms_F77= |
| | 15201 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| | 15202 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| | 15203 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| | 15204 | # as well as any symbol that contains `d'. |
| | 15205 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
| | 15206 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| | 15207 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| | 15208 | # the symbol is explicitly referenced. Since portable code cannot |
| | 15209 | # rely on this symbol name, it's probably fine to never include it in |
| | 15210 | # preloaded symbol tables. |
| | 15211 | extract_expsyms_cmds= |
| | 15212 | # Just being paranoid about ensuring that cc_basename is set. |
| | 15213 | for cc_temp in $compiler""; do |
| | 15214 | case $cc_temp in |
| | 15215 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| | 15216 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| | 15217 | \-*) ;; |
| | 15218 | *) break;; |
| | 15219 | esac |
| | 15220 | done |
| | 15221 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| | 15222 | |
| | 15223 | case $host_os in |
| | 15224 | cygwin* | mingw* | pw32*) |
| | 15225 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| | 15226 | # When not using gcc, we currently assume that we are using |
| | 15227 | # Microsoft Visual C++. |
| | 15228 | if test "$GCC" != yes; then |
| | 15229 | with_gnu_ld=no |
| | 15230 | fi |
| | 15231 | ;; |
| | 15232 | interix*) |
| | 15233 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| | 15234 | with_gnu_ld=yes |
| | 15235 | ;; |
| | 15236 | openbsd*) |
| | 15237 | with_gnu_ld=no |
| | 15238 | ;; |
| | 15239 | esac |
| | 15240 | |
| | 15241 | ld_shlibs_F77=yes |
| | 15242 | if test "$with_gnu_ld" = yes; then |
| | 15243 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| | 15244 | wlarc='${wl}' |
| | 15245 | |
| | 15246 | # Set some defaults for GNU ld with shared library support. These |
| | 15247 | # are reset later if shared libraries are not supported. Putting them |
| | 15248 | # here allows them to be overridden if necessary. |
| | 15249 | runpath_var=LD_RUN_PATH |
| | 15250 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
| | 15251 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
| | 15252 | # ancient GNU ld didn't support --whole-archive et. al. |
| | 15253 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| | 15254 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| | 15255 | else |
| | 15256 | whole_archive_flag_spec_F77= |
| | 15257 | fi |
| | 15258 | supports_anon_versioning=no |
| | 15259 | case `$LD -v 2>/dev/null` in |
| | 15260 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| | 15261 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| | 15262 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| | 15263 | *\ 2.11.*) ;; # other 2.11 versions |
| | 15264 | *) supports_anon_versioning=yes ;; |
| | 15265 | esac |
| | 15266 | |
| | 15267 | # See if GNU ld supports shared libraries. |
| | 15268 | case $host_os in |
| | 15269 | aix3* | aix4* | aix5*) |
| | 15270 | # On AIX/PPC, the GNU linker is very broken |
| | 15271 | if test "$host_cpu" != ia64; then |
| | 15272 | ld_shlibs_F77=no |
| | 15273 | cat <<EOF 1>&2 |
| | 15274 | |
| | 15275 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| | 15276 | *** to be unable to reliably create shared libraries on AIX. |
| | 15277 | *** Therefore, libtool is disabling shared libraries support. If you |
| | 15278 | *** really care for shared libraries, you may want to modify your PATH |
| | 15279 | *** so that a non-GNU linker is found, and then restart. |
| | 15280 | |
| | 15281 | EOF |
| | 15282 | fi |
| | 15283 | ;; |
| | 15284 | |
| | 15285 | amigaos*) |
| | 15286 | 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)' |
| | 15287 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | 15288 | hardcode_minus_L_F77=yes |
| | 15289 | |
| | 15290 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| | 15291 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| | 15292 | # to version 4, is to share data among multiple programs linked |
| | 15293 | # with the same dynamic library. Since this doesn't match the |
| | 15294 | # behavior of shared libraries on other platforms, we can't use |
| | 15295 | # them. |
| | 15296 | ld_shlibs_F77=no |
| | 15297 | ;; |
| | 15298 | |
| | 15299 | beos*) |
| | 15300 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 15301 | allow_undefined_flag_F77=unsupported |
| | 15302 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| | 15303 | # support --undefined. This deserves some investigation. FIXME |
| | 15304 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 15305 | else |
| | 15306 | ld_shlibs_F77=no |
| | 15307 | fi |
| | 15308 | ;; |
| | 15309 | |
| | 15310 | cygwin* | mingw* | pw32*) |
| | 15311 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
| | 15312 | # as there is no search path for DLLs. |
| | 15313 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | 15314 | allow_undefined_flag_F77=unsupported |
| | 15315 | always_export_symbols_F77=no |
| | 15316 | enable_shared_with_static_runtimes_F77=yes |
| | 15317 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| | 15318 | |
| | 15319 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| | 15320 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| | 15321 | # If the export-symbols file already is a .def file (1st line |
| | 15322 | # is EXPORTS), use it as is; otherwise, prepend... |
| | 15323 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| | 15324 | cp $export_symbols $output_objdir/$soname.def; |
| | 15325 | else |
| | 15326 | echo EXPORTS > $output_objdir/$soname.def; |
| | 15327 | cat $export_symbols >> $output_objdir/$soname.def; |
| | 15328 | fi~ |
| | 15329 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| | 15330 | else |
| | 15331 | ld_shlibs_F77=no |
| | 15332 | fi |
| | 15333 | ;; |
| | 15334 | |
| | 15335 | interix3*) |
| | 15336 | hardcode_direct_F77=no |
| | 15337 | hardcode_shlibpath_var_F77=no |
| | 15338 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| | 15339 | export_dynamic_flag_spec_F77='${wl}-E' |
| | 15340 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| | 15341 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| | 15342 | # default) and relocated if they conflict, which is a slow very memory |
| | 15343 | # consuming and fragmenting process. To avoid this, we pick a random, |
| | 15344 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| | 15345 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| | 15346 | 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' |
| | 15347 | 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' |
| | 15348 | ;; |
| | 15349 | |
| | 15350 | linux*) |
| | 15351 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 15352 | tmp_addflag= |
| | 15353 | case $cc_basename,$host_cpu in |
| | 15354 | pgcc*) # Portland Group C compiler |
| | 15355 | 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' |
| | 15356 | tmp_addflag=' $pic_flag' |
| | 15357 | ;; |
| | 15358 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| | 15359 | 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' |
| | 15360 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| | 15361 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| | 15362 | tmp_addflag=' -i_dynamic' ;; |
| | 15363 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| | 15364 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| | 15365 | ifc* | ifort*) # Intel Fortran compiler |
| | 15366 | tmp_addflag=' -nofor_main' ;; |
| | 15367 | esac |
| | 15368 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 15369 | |
| | 15370 | if test $supports_anon_versioning = yes; then |
| | 15371 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
| | 15372 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| | 15373 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| | 15374 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| | 15375 | fi |
| | 15376 | link_all_deplibs_F77=no |
| | 15377 | else |
| | 15378 | ld_shlibs_F77=no |
| | 15379 | fi |
| | 15380 | ;; |
| | 15381 | |
| | 15382 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| | 15383 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| | 15384 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| | 15385 | wlarc= |
| | 15386 | else |
| | 15387 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 15388 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| | 15389 | fi |
| | 15390 | ;; |
| | 15391 | |
| | 15392 | solaris*) |
| | 15393 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| | 15394 | ld_shlibs_F77=no |
| | 15395 | cat <<EOF 1>&2 |
| | 15396 | |
| | 15397 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| | 15398 | *** create shared libraries on Solaris systems. Therefore, libtool |
| | 15399 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| | 15400 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| | 15401 | *** your PATH or compiler configuration so that the native linker is |
| | 15402 | *** used, and then restart. |
| | 15403 | |
| | 15404 | EOF |
| | 15405 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 15406 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 15407 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| | 15408 | else |
| | 15409 | ld_shlibs_F77=no |
| | 15410 | fi |
| | 15411 | ;; |
| | 15412 | |
| | 15413 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| | 15414 | case `$LD -v 2>&1` in |
| | 15415 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| | 15416 | ld_shlibs_F77=no |
| | 15417 | cat <<_LT_EOF 1>&2 |
| | 15418 | |
| | 15419 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| | 15420 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| | 15421 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| | 15422 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| | 15423 | *** your PATH or compiler configuration so that the native linker is |
| | 15424 | *** used, and then restart. |
| | 15425 | |
| | 15426 | _LT_EOF |
| | 15427 | ;; |
| | 15428 | *) |
| | 15429 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 15430 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| | 15431 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| | 15432 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| | 15433 | else |
| | 15434 | ld_shlibs_F77=no |
| | 15435 | fi |
| | 15436 | ;; |
| | 15437 | esac |
| | 15438 | ;; |
| | 15439 | |
| | 15440 | sunos4*) |
| | 15441 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| | 15442 | wlarc= |
| | 15443 | hardcode_direct_F77=yes |
| | 15444 | hardcode_shlibpath_var_F77=no |
| | 15445 | ;; |
| | 15446 | |
| | 15447 | *) |
| | 15448 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 15449 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 15450 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| | 15451 | else |
| | 15452 | ld_shlibs_F77=no |
| | 15453 | fi |
| | 15454 | ;; |
| | 15455 | esac |
| | 15456 | |
| | 15457 | if test "$ld_shlibs_F77" = no; then |
| | 15458 | runpath_var= |
| | 15459 | hardcode_libdir_flag_spec_F77= |
| | 15460 | export_dynamic_flag_spec_F77= |
| | 15461 | whole_archive_flag_spec_F77= |
| | 15462 | fi |
| | 15463 | else |
| | 15464 | # PORTME fill in a description of your system's linker (not GNU ld) |
| | 15465 | case $host_os in |
| | 15466 | aix3*) |
| | 15467 | allow_undefined_flag_F77=unsupported |
| | 15468 | always_export_symbols_F77=yes |
| | 15469 | 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' |
| | 15470 | # Note: this linker hardcodes the directories in LIBPATH if there |
| | 15471 | # are no directories specified by -L. |
| | 15472 | hardcode_minus_L_F77=yes |
| | 15473 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| | 15474 | # Neither direct hardcoding nor static linking is supported with a |
| | 15475 | # broken collect2. |
| | 15476 | hardcode_direct_F77=unsupported |
| | 15477 | fi |
| | 15478 | ;; |
| | 15479 | |
| | 15480 | aix4* | aix5*) |
| | 15481 | if test "$host_cpu" = ia64; then |
| | 15482 | # On IA64, the linker does run time linking by default, so we don't |
| | 15483 | # have to do anything special. |
| | 15484 | aix_use_runtimelinking=no |
| | 15485 | exp_sym_flag='-Bexport' |
| | 15486 | no_entry_flag="" |
| | 15487 | else |
| | 15488 | # If we're using GNU nm, then we don't want the "-C" option. |
| | 15489 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| | 15490 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| | 15491 | 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' |
| | 15492 | else |
| | 15493 | 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' |
| | 15494 | fi |
| | 15495 | aix_use_runtimelinking=no |
| | 15496 | |
| | 15497 | # Test if we are trying to use run time linking or normal |
| | 15498 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| | 15499 | # need to do runtime linking. |
| | 15500 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| | 15501 | for ld_flag in $LDFLAGS; do |
| | 15502 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| | 15503 | aix_use_runtimelinking=yes |
| | 15504 | break |
| | 15505 | fi |
| | 15506 | done |
| | 15507 | ;; |
| | 15508 | esac |
| | 15509 | |
| | 15510 | exp_sym_flag='-bexport' |
| | 15511 | no_entry_flag='-bnoentry' |
| | 15512 | fi |
| | 15513 | |
| | 15514 | # When large executables or shared objects are built, AIX ld can |
| | 15515 | # have problems creating the table of contents. If linking a library |
| | 15516 | # or program results in "error TOC overflow" add -mminimal-toc to |
| | 15517 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| | 15518 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| | 15519 | |
| | 15520 | archive_cmds_F77='' |
| | 15521 | hardcode_direct_F77=yes |
| | 15522 | hardcode_libdir_separator_F77=':' |
| | 15523 | link_all_deplibs_F77=yes |
| | 15524 | |
| | 15525 | if test "$GCC" = yes; then |
| | 15526 | case $host_os in aix4.[012]|aix4.[012].*) |
| | 15527 | # We only want to do this on AIX 4.2 and lower, the check |
| | 15528 | # below for broken collect2 doesn't work under 4.3+ |
| | 15529 | collect2name=`${CC} -print-prog-name=collect2` |
| | 15530 | if test -f "$collect2name" && \ |
| | 15531 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| | 15532 | then |
| | 15533 | # We have reworked collect2 |
| | 15534 | hardcode_direct_F77=yes |
| | 15535 | else |
| | 15536 | # We have old collect2 |
| | 15537 | hardcode_direct_F77=unsupported |
| | 15538 | # It fails to find uninstalled libraries when the uninstalled |
| | 15539 | # path is not listed in the libpath. Setting hardcode_minus_L |
| | 15540 | # to unsupported forces relinking |
| | 15541 | hardcode_minus_L_F77=yes |
| | 15542 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | 15543 | hardcode_libdir_separator_F77= |
| | 15544 | fi |
| | 15545 | ;; |
| | 15546 | esac |
| | 15547 | shared_flag='-shared' |
| | 15548 | if test "$aix_use_runtimelinking" = yes; then |
| | 15549 | shared_flag="$shared_flag "'${wl}-G' |
| | 15550 | fi |
| | 15551 | else |
| | 15552 | # not using gcc |
| | 15553 | if test "$host_cpu" = ia64; then |
| | 15554 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| | 15555 | # chokes on -Wl,-G. The following line is correct: |
| | 15556 | shared_flag='-G' |
| | 15557 | else |
| | 15558 | if test "$aix_use_runtimelinking" = yes; then |
| | 15559 | shared_flag='${wl}-G' |
| | 15560 | else |
| | 15561 | shared_flag='${wl}-bM:SRE' |
| | 15562 | fi |
| | 15563 | fi |
| | 15564 | fi |
| | 15565 | |
| | 15566 | # It seems that -bexpall does not export symbols beginning with |
| | 15567 | # underscore (_), so it is better to generate a list of symbols to export. |
| | 15568 | always_export_symbols_F77=yes |
| | 15569 | if test "$aix_use_runtimelinking" = yes; then |
| | 15570 | # Warning - without using the other runtime loading flags (-brtl), |
| | 15571 | # -berok will link without error, but may produce a broken library. |
| | 15572 | allow_undefined_flag_F77='-berok' |
| | 15573 | # Determine the default libpath from the value encoded in an empty executable. |
| | 15574 | cat >conftest.$ac_ext <<_ACEOF |
| | 15575 | program main |
| | 15576 | |
| | 15577 | end |
| | 15578 | _ACEOF |
| | 15579 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 15580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 15581 | (eval $ac_link) 2>conftest.er1 |
| | 15582 | ac_status=$? |
| | 15583 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 15584 | rm -f conftest.er1 |
| | 15585 | cat conftest.err >&5 |
| | 15586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 15587 | (exit $ac_status); } && |
| | 15588 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| | 15589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 15590 | (eval $ac_try) 2>&5 |
| | 15591 | ac_status=$? |
| | 15592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 15593 | (exit $ac_status); }; } && |
| | 15594 | { ac_try='test -s conftest$ac_exeext' |
| | 15595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 15596 | (eval $ac_try) 2>&5 |
| | 15597 | ac_status=$? |
| | 15598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 15599 | (exit $ac_status); }; }; then |
| | 15600 | |
| | 15601 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| | 15602 | }'` |
| | 15603 | # Check for a 64-bit object if we didn't find anything. |
| | 15604 | if 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; } |
| | 15605 | }'`; fi |
| | 15606 | else |
| | 15607 | echo "$as_me: failed program was:" >&5 |
| | 15608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 15609 | |
| | 15610 | fi |
| | 15611 | rm -f conftest.err conftest.$ac_objext \ |
| | 15612 | conftest$ac_exeext conftest.$ac_ext |
| | 15613 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| | 15614 | |
| | 15615 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| | 15616 | 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" |
| | 15617 | else |
| | 15618 | if test "$host_cpu" = ia64; then |
| | 15619 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
| | 15620 | allow_undefined_flag_F77="-z nodefs" |
| | 15621 | 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" |
| | 15622 | else |
| | 15623 | # Determine the default libpath from the value encoded in an empty executable. |
| | 15624 | cat >conftest.$ac_ext <<_ACEOF |
| | 15625 | program main |
| | 15626 | |
| | 15627 | end |
| | 15628 | _ACEOF |
| | 15629 | rm -f conftest.$ac_objext conftest$ac_exeext |
| | 15630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| | 15631 | (eval $ac_link) 2>conftest.er1 |
| | 15632 | ac_status=$? |
| | 15633 | grep -v '^ *+' conftest.er1 >conftest.err |
| | 15634 | rm -f conftest.er1 |
| | 15635 | cat conftest.err >&5 |
| | 15636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 15637 | (exit $ac_status); } && |
| | 15638 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
| | 15639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 15640 | (eval $ac_try) 2>&5 |
| | 15641 | ac_status=$? |
| | 15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 15643 | (exit $ac_status); }; } && |
| | 15644 | { ac_try='test -s conftest$ac_exeext' |
| | 15645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| | 15646 | (eval $ac_try) 2>&5 |
| | 15647 | ac_status=$? |
| | 15648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 15649 | (exit $ac_status); }; }; then |
| | 15650 | |
| | 15651 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| | 15652 | }'` |
| | 15653 | # Check for a 64-bit object if we didn't find anything. |
| | 15654 | if 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; } |
| | 15655 | }'`; fi |
| | 15656 | else |
| | 15657 | echo "$as_me: failed program was:" >&5 |
| | 15658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| | 15659 | |
| | 15660 | fi |
| | 15661 | rm -f conftest.err conftest.$ac_objext \ |
| | 15662 | conftest$ac_exeext conftest.$ac_ext |
| | 15663 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| | 15664 | |
| | 15665 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
| | 15666 | # Warning - without using the other run time loading flags, |
| | 15667 | # -berok will link without error, but may produce a broken library. |
| | 15668 | no_undefined_flag_F77=' ${wl}-bernotok' |
| | 15669 | allow_undefined_flag_F77=' ${wl}-berok' |
| | 15670 | # Exported symbols can be pulled into shared objects from archives |
| | 15671 | whole_archive_flag_spec_F77='$convenience' |
| | 15672 | archive_cmds_need_lc_F77=yes |
| | 15673 | # This is similar to how AIX traditionally builds its shared libraries. |
| | 15674 | 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' |
| | 15675 | fi |
| | 15676 | fi |
| | 15677 | ;; |
| | 15678 | |
| | 15679 | amigaos*) |
| | 15680 | 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)' |
| | 15681 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | 15682 | hardcode_minus_L_F77=yes |
| | 15683 | # see comment about different semantics on the GNU ld section |
| | 15684 | ld_shlibs_F77=no |
| | 15685 | ;; |
| | 15686 | |
| | 15687 | bsdi[45]*) |
| | 15688 | export_dynamic_flag_spec_F77=-rdynamic |
| | 15689 | ;; |
| | 15690 | |
| | 15691 | cygwin* | mingw* | pw32*) |
| | 15692 | # When not using gcc, we currently assume that we are using |
| | 15693 | # Microsoft Visual C++. |
| | 15694 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| | 15695 | # no search path for DLLs. |
| | 15696 | hardcode_libdir_flag_spec_F77=' ' |
| | 15697 | allow_undefined_flag_F77=unsupported |
| | 15698 | # Tell ltmain to make .lib files, not .a files. |
| | 15699 | libext=lib |
| | 15700 | # Tell ltmain to make .dll files, not .so files. |
| | 15701 | shrext_cmds=".dll" |
| | 15702 | # FIXME: Setting linknames here is a bad hack. |
| | 15703 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| | 15704 | # The linker will automatically build a .lib file if we build a DLL. |
| | 15705 | old_archive_From_new_cmds_F77='true' |
| | 15706 | # FIXME: Should let the user specify the lib program. |
| | 15707 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| | 15708 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
| | 15709 | enable_shared_with_static_runtimes_F77=yes |
| | 15710 | ;; |
| | 15711 | |
| | 15712 | darwin* | rhapsody*) |
| | 15713 | case $host_os in |
| | 15714 | rhapsody* | darwin1.[012]) |
| | 15715 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
| | 15716 | ;; |
| | 15717 | *) # Darwin 1.3 on |
| | 15718 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| | 15719 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| | 15720 | else |
| | 15721 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| | 15722 | 10.[012]) |
| | 15723 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| | 15724 | ;; |
| | 15725 | 10.*) |
| | 15726 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
| | 15727 | ;; |
| | 15728 | esac |
| | 15729 | fi |
| | 15730 | ;; |
| | 15731 | esac |
| | 15732 | archive_cmds_need_lc_F77=no |
| | 15733 | hardcode_direct_F77=no |
| | 15734 | hardcode_automatic_F77=yes |
| | 15735 | hardcode_shlibpath_var_F77=unsupported |
| | 15736 | whole_archive_flag_spec_F77='' |
| | 15737 | link_all_deplibs_F77=yes |
| | 15738 | if test "$GCC" = yes ; then |
| | 15739 | output_verbose_link_cmd='echo' |
| | 15740 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| | 15741 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | 15742 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| | 15743 | 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}' |
| | 15744 | 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}' |
| | 15745 | else |
| | 15746 | case $cc_basename in |
| | 15747 | xlc*) |
| | 15748 | output_verbose_link_cmd='echo' |
| | 15749 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| | 15750 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | 15751 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| | 15752 | 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}' |
| | 15753 | 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}' |
| | 15754 | ;; |
| | 15755 | *) |
| | 15756 | ld_shlibs_F77=no |
| | 15757 | ;; |
| | 15758 | esac |
| | 15759 | fi |
| | 15760 | ;; |
| | 15761 | |
| | 15762 | dgux*) |
| | 15763 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 15764 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | 15765 | hardcode_shlibpath_var_F77=no |
| | 15766 | ;; |
| | 15767 | |
| | 15768 | freebsd1*) |
| | 15769 | ld_shlibs_F77=no |
| | 15770 | ;; |
| | 15771 | |
| | 15772 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| | 15773 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| | 15774 | # does not break anything, and helps significantly (at the cost of a little |
| | 15775 | # extra space). |
| | 15776 | freebsd2.2*) |
| | 15777 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| | 15778 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| | 15779 | hardcode_direct_F77=yes |
| | 15780 | hardcode_shlibpath_var_F77=no |
| | 15781 | ;; |
| | 15782 | |
| | 15783 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| | 15784 | freebsd2*) |
| | 15785 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| | 15786 | hardcode_direct_F77=yes |
| | 15787 | hardcode_minus_L_F77=yes |
| | 15788 | hardcode_shlibpath_var_F77=no |
| | 15789 | ;; |
| | 15790 | |
| | 15791 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| | 15792 | freebsd* | dragonfly*) |
| | 15793 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| | 15794 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| | 15795 | hardcode_direct_F77=yes |
| | 15796 | hardcode_shlibpath_var_F77=no |
| | 15797 | ;; |
| | 15798 | |
| | 15799 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. |
| | 15800 | kfreebsd*-gnu) |
| | 15801 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| | 15802 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| | 15803 | hardcode_direct_F77=yes |
| | 15804 | hardcode_shlibpath_var_F77=no |
| | 15805 | link_all_deplibs_F77=no |
| | 15806 | ;; |
| | 15807 | |
| | 15808 | hpux9*) |
| | 15809 | if test "$GCC" = yes; then |
| | 15810 | 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' |
| | 15811 | else |
| | 15812 | 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' |
| | 15813 | fi |
| | 15814 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| | 15815 | hardcode_libdir_separator_F77=: |
| | 15816 | hardcode_direct_F77=yes |
| | 15817 | |
| | 15818 | # hardcode_minus_L: Not really in the search PATH, |
| | 15819 | # but as the default location of the library. |
| | 15820 | hardcode_minus_L_F77=yes |
| | 15821 | export_dynamic_flag_spec_F77='${wl}-E' |
| | 15822 | ;; |
| | 15823 | |
| | 15824 | hpux10*) |
| | 15825 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| | 15826 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| | 15827 | else |
| | 15828 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| | 15829 | fi |
| | 15830 | if test "$with_gnu_ld" = no; then |
| | 15831 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| | 15832 | hardcode_libdir_separator_F77=: |
| | 15833 | |
| | 15834 | hardcode_direct_F77=yes |
| | 15835 | export_dynamic_flag_spec_F77='${wl}-E' |
| | 15836 | |
| | 15837 | # hardcode_minus_L: Not really in the search PATH, |
| | 15838 | # but as the default location of the library. |
| | 15839 | hardcode_minus_L_F77=yes |
| | 15840 | fi |
| | 15841 | ;; |
| | 15842 | |
| | 15843 | hpux11*) |
| | 15844 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| | 15845 | case $host_cpu in |
| | 15846 | hppa*64*) |
| | 15847 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 15848 | ;; |
| | 15849 | ia64*) |
| | 15850 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| | 15851 | ;; |
| | 15852 | *) |
| | 15853 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| | 15854 | ;; |
| | 15855 | esac |
| | 15856 | else |
| | 15857 | case $host_cpu in |
| | 15858 | hppa*64*) |
| | 15859 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 15860 | ;; |
| | 15861 | ia64*) |
| | 15862 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| | 15863 | ;; |
| | 15864 | *) |
| | 15865 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| | 15866 | ;; |
| | 15867 | esac |
| | 15868 | fi |
| | 15869 | if test "$with_gnu_ld" = no; then |
| | 15870 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
| | 15871 | hardcode_libdir_separator_F77=: |
| | 15872 | |
| | 15873 | case $host_cpu in |
| | 15874 | hppa*64*|ia64*) |
| | 15875 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
| | 15876 | hardcode_direct_F77=no |
| | 15877 | hardcode_shlibpath_var_F77=no |
| | 15878 | ;; |
| | 15879 | *) |
| | 15880 | hardcode_direct_F77=yes |
| | 15881 | export_dynamic_flag_spec_F77='${wl}-E' |
| | 15882 | |
| | 15883 | # hardcode_minus_L: Not really in the search PATH, |
| | 15884 | # but as the default location of the library. |
| | 15885 | hardcode_minus_L_F77=yes |
| | 15886 | ;; |
| | 15887 | esac |
| | 15888 | fi |
| | 15889 | ;; |
| | 15890 | |
| | 15891 | irix5* | irix6* | nonstopux*) |
| | 15892 | if test "$GCC" = yes; then |
| | 15893 | 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' |
| | 15894 | else |
| | 15895 | 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' |
| | 15896 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
| | 15897 | fi |
| | 15898 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| | 15899 | hardcode_libdir_separator_F77=: |
| | 15900 | link_all_deplibs_F77=yes |
| | 15901 | ;; |
| | 15902 | |
| | 15903 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
| | 15904 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| | 15905 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| | 15906 | else |
| | 15907 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| | 15908 | fi |
| | 15909 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| | 15910 | hardcode_direct_F77=yes |
| | 15911 | hardcode_shlibpath_var_F77=no |
| | 15912 | ;; |
| | 15913 | |
| | 15914 | newsos6) |
| | 15915 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 15916 | hardcode_direct_F77=yes |
| | 15917 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| | 15918 | hardcode_libdir_separator_F77=: |
| | 15919 | hardcode_shlibpath_var_F77=no |
| | 15920 | ;; |
| | 15921 | |
| | 15922 | openbsd*) |
| | 15923 | hardcode_direct_F77=yes |
| | 15924 | hardcode_shlibpath_var_F77=no |
| | 15925 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| | 15926 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| | 15927 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| | 15928 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| | 15929 | export_dynamic_flag_spec_F77='${wl}-E' |
| | 15930 | else |
| | 15931 | case $host_os in |
| | 15932 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| | 15933 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| | 15934 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| | 15935 | ;; |
| | 15936 | *) |
| | 15937 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| | 15938 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
| | 15939 | ;; |
| | 15940 | esac |
| | 15941 | fi |
| | 15942 | ;; |
| | 15943 | |
| | 15944 | os2*) |
| | 15945 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | 15946 | hardcode_minus_L_F77=yes |
| | 15947 | allow_undefined_flag_F77=unsupported |
| | 15948 | 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' |
| | 15949 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| | 15950 | ;; |
| | 15951 | |
| | 15952 | osf3*) |
| | 15953 | if test "$GCC" = yes; then |
| | 15954 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| | 15955 | 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' |
| | 15956 | else |
| | 15957 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| | 15958 | 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' |
| | 15959 | fi |
| | 15960 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| | 15961 | hardcode_libdir_separator_F77=: |
| | 15962 | ;; |
| | 15963 | |
| | 15964 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| | 15965 | if test "$GCC" = yes; then |
| | 15966 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
| | 15967 | 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' |
| | 15968 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
| | 15969 | else |
| | 15970 | allow_undefined_flag_F77=' -expect_unresolved \*' |
| | 15971 | 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' |
| | 15972 | 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~ |
| | 15973 | $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' |
| | 15974 | |
| | 15975 | # Both c and cxx compiler support -rpath directly |
| | 15976 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
| | 15977 | fi |
| | 15978 | hardcode_libdir_separator_F77=: |
| | 15979 | ;; |
| | 15980 | |
| | 15981 | solaris*) |
| | 15982 | no_undefined_flag_F77=' -z text' |
| | 15983 | if test "$GCC" = yes; then |
| | 15984 | wlarc='${wl}' |
| | 15985 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 15986 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| | 15987 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| | 15988 | else |
| | 15989 | wlarc='' |
| | 15990 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 15991 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| | 15992 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| | 15993 | fi |
| | 15994 | hardcode_libdir_flag_spec_F77='-R$libdir' |
| | 15995 | hardcode_shlibpath_var_F77=no |
| | 15996 | case $host_os in |
| | 15997 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| | 15998 | *) |
| | 15999 | # The compiler driver will combine linker options so we |
| | 16000 | # cannot just pass the convience library names through |
| | 16001 | # without $wl, iff we do not link with $LD. |
| | 16002 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| | 16003 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| | 16004 | case $wlarc in |
| | 16005 | '') |
| | 16006 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
| | 16007 | *) |
| | 16008 | 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' ;; |
| | 16009 | esac ;; |
| | 16010 | esac |
| | 16011 | link_all_deplibs_F77=yes |
| | 16012 | ;; |
| | 16013 | |
| | 16014 | sunos4*) |
| | 16015 | if test "x$host_vendor" = xsequent; then |
| | 16016 | # Use $CC to link under sequent, because it throws in some extra .o |
| | 16017 | # files that make .init and .fini sections work. |
| | 16018 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 16019 | else |
| | 16020 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| | 16021 | fi |
| | 16022 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | 16023 | hardcode_direct_F77=yes |
| | 16024 | hardcode_minus_L_F77=yes |
| | 16025 | hardcode_shlibpath_var_F77=no |
| | 16026 | ;; |
| | 16027 | |
| | 16028 | sysv4) |
| | 16029 | case $host_vendor in |
| | 16030 | sni) |
| | 16031 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 16032 | hardcode_direct_F77=yes # is this really true??? |
| | 16033 | ;; |
| | 16034 | siemens) |
| | 16035 | ## LD is ld it makes a PLAMLIB |
| | 16036 | ## CC just makes a GrossModule. |
| | 16037 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| | 16038 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
| | 16039 | hardcode_direct_F77=no |
| | 16040 | ;; |
| | 16041 | motorola) |
| | 16042 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 16043 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
| | 16044 | ;; |
| | 16045 | esac |
| | 16046 | runpath_var='LD_RUN_PATH' |
| | 16047 | hardcode_shlibpath_var_F77=no |
| | 16048 | ;; |
| | 16049 | |
| | 16050 | sysv4.3*) |
| | 16051 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 16052 | hardcode_shlibpath_var_F77=no |
| | 16053 | export_dynamic_flag_spec_F77='-Bexport' |
| | 16054 | ;; |
| | 16055 | |
| | 16056 | sysv4*MP*) |
| | 16057 | if test -d /usr/nec; then |
| | 16058 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 16059 | hardcode_shlibpath_var_F77=no |
| | 16060 | runpath_var=LD_RUN_PATH |
| | 16061 | hardcode_runpath_var=yes |
| | 16062 | ld_shlibs_F77=yes |
| | 16063 | fi |
| | 16064 | ;; |
| | 16065 | |
| | 16066 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| | 16067 | no_undefined_flag_F77='${wl}-z,text' |
| | 16068 | archive_cmds_need_lc_F77=no |
| | 16069 | hardcode_shlibpath_var_F77=no |
| | 16070 | runpath_var='LD_RUN_PATH' |
| | 16071 | |
| | 16072 | if test "$GCC" = yes; then |
| | 16073 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 16074 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 16075 | else |
| | 16076 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 16077 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 16078 | fi |
| | 16079 | ;; |
| | 16080 | |
| | 16081 | sysv5* | sco3.2v5* | sco5v6*) |
| | 16082 | # Note: We can NOT use -z defs as we might desire, because we do not |
| | 16083 | # link with -lc, and that would cause any symbols used from libc to |
| | 16084 | # always be unresolved, which means just about no library would |
| | 16085 | # ever link correctly. If we're not using GNU ld we use -z text |
| | 16086 | # though, which does catch some bad symbols but isn't as heavy-handed |
| | 16087 | # as -z defs. |
| | 16088 | no_undefined_flag_F77='${wl}-z,text' |
| | 16089 | allow_undefined_flag_F77='${wl}-z,nodefs' |
| | 16090 | archive_cmds_need_lc_F77=no |
| | 16091 | hardcode_shlibpath_var_F77=no |
| | 16092 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| | 16093 | hardcode_libdir_separator_F77=':' |
| | 16094 | link_all_deplibs_F77=yes |
| | 16095 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
| | 16096 | runpath_var='LD_RUN_PATH' |
| | 16097 | |
| | 16098 | if test "$GCC" = yes; then |
| | 16099 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 16100 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 16101 | else |
| | 16102 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 16103 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| | 16104 | fi |
| | 16105 | ;; |
| | 16106 | |
| | 16107 | uts4*) |
| | 16108 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| | 16109 | hardcode_libdir_flag_spec_F77='-L$libdir' |
| | 16110 | hardcode_shlibpath_var_F77=no |
| | 16111 | ;; |
| | 16112 | |
| | 16113 | *) |
| | 16114 | ld_shlibs_F77=no |
| | 16115 | ;; |
| | 16116 | esac |
| | 16117 | fi |
| | 16118 | |
| | 16119 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
| | 16120 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
| | 16121 | test "$ld_shlibs_F77" = no && can_build_shared=no |
| | 16122 | |
| | 16123 | # |
| | 16124 | # Do we need to explicitly link libc? |
| | 16125 | # |
| | 16126 | case "x$archive_cmds_need_lc_F77" in |
| | 16127 | x|xyes) |
| | 16128 | # Assume -lc should be added |
| | 16129 | archive_cmds_need_lc_F77=yes |
| | 16130 | |
| | 16131 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| | 16132 | case $archive_cmds_F77 in |
| | 16133 | *'~'*) |
| | 16134 | # FIXME: we may have to deal with multi-command sequences. |
| | 16135 | ;; |
| | 16136 | '$CC '*) |
| | 16137 | # Test whether the compiler implicitly links with -lc since on some |
| | 16138 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| | 16139 | # to ld, don't add -lc before -lgcc. |
| | 16140 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| | 16141 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| | 16142 | $rm conftest* |
| | 16143 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 16144 | |
| | 16145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| | 16146 | (eval $ac_compile) 2>&5 |
| | 16147 | ac_status=$? |
| | 16148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 16149 | (exit $ac_status); } 2>conftest.err; then |
| | 16150 | soname=conftest |
| | 16151 | lib=conftest |
| | 16152 | libobjs=conftest.$ac_objext |
| | 16153 | deplibs= |
| | 16154 | wl=$lt_prog_compiler_wl_F77 |
| | 16155 | pic_flag=$lt_prog_compiler_pic_F77 |
| | 16156 | compiler_flags=-v |
| | 16157 | linker_flags=-v |
| | 16158 | verstring= |
| | 16159 | output_objdir=. |
| | 16160 | libname=conftest |
| | 16161 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
| | 16162 | allow_undefined_flag_F77= |
| | 16163 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| | 16164 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| | 16165 | ac_status=$? |
| | 16166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| | 16167 | (exit $ac_status); } |
| | 16168 | then |
| | 16169 | archive_cmds_need_lc_F77=no |
| | 16170 | else |
| | 16171 | archive_cmds_need_lc_F77=yes |
| | 16172 | fi |
| | 16173 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
| | 16174 | else |
| | 16175 | cat conftest.err 1>&5 |
| | 16176 | fi |
| | 16177 | $rm conftest* |
| | 16178 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
| | 16179 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
| | 16180 | ;; |
| | 16181 | esac |
| | 16182 | fi |
| | 16183 | ;; |
| | 16184 | esac |
| | 16185 | |
| | 16186 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| | 16187 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| | 16188 | library_names_spec= |
| | 16189 | libname_spec='lib$name' |
| | 16190 | soname_spec= |
| | 16191 | shrext_cmds=".so" |
| | 16192 | postinstall_cmds= |
| | 16193 | postuninstall_cmds= |
| | 16194 | finish_cmds= |
| | 16195 | finish_eval= |
| | 16196 | shlibpath_var= |
| | 16197 | shlibpath_overrides_runpath=unknown |
| | 16198 | version_type=none |
| | 16199 | dynamic_linker="$host_os ld.so" |
| | 16200 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| | 16201 | if test "$GCC" = yes; then |
| | 16202 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| | 16203 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| | 16204 | # if the path contains ";" then we assume it to be the separator |
| | 16205 | # otherwise default to the standard path separator (i.e. ":") - it is |
| | 16206 | # assumed that no part of a normal pathname contains ";" but that should |
| | 16207 | # okay in the real world where ";" in dirpaths is itself problematic. |
| | 16208 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| | 16209 | else |
| | 16210 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| | 16211 | fi |
| | 16212 | else |
| | 16213 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| | 16214 | fi |
| | 16215 | need_lib_prefix=unknown |
| | 16216 | hardcode_into_libs=no |
| | 16217 | |
| | 16218 | # when you set need_version to no, make sure it does not cause -set_version |
| | 16219 | # flags to be left without arguments |
| | 16220 | need_version=unknown |
| | 16221 | |
| | 16222 | case $host_os in |
| | 16223 | aix3*) |
| | 16224 | version_type=linux |
| | 16225 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| | 16226 | shlibpath_var=LIBPATH |
| | 16227 | |
| | 16228 | # AIX 3 has no versioning support, so we append a major version to the name. |
| | 16229 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16230 | ;; |
| | 16231 | |
| | 16232 | aix4* | aix5*) |
| | 16233 | version_type=linux |
| | 16234 | need_lib_prefix=no |
| | 16235 | need_version=no |
| | 16236 | hardcode_into_libs=yes |
| | 16237 | if test "$host_cpu" = ia64; then |
| | 16238 | # AIX 5 supports IA64 |
| | 16239 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| | 16240 | shlibpath_var=LD_LIBRARY_PATH |
| | 16241 | else |
| | 16242 | # With GCC up to 2.95.x, collect2 would create an import file |
| | 16243 | # for dependence libraries. The import file would start with |
| | 16244 | # the line `#! .'. This would cause the generated library to |
| | 16245 | # depend on `.', always an invalid library. This was fixed in |
| | 16246 | # development snapshots of GCC prior to 3.0. |
| | 16247 | case $host_os in |
| | 16248 | aix4 | aix4.[01] | aix4.[01].*) |
| | 16249 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| | 16250 | echo ' yes ' |
| | 16251 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| | 16252 | : |
| | 16253 | else |
| | 16254 | can_build_shared=no |
| | 16255 | fi |
| | 16256 | ;; |
| | 16257 | esac |
| | 16258 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| | 16259 | # soname into executable. Probably we can add versioning support to |
| | 16260 | # collect2, so additional links can be useful in future. |
| | 16261 | if test "$aix_use_runtimelinking" = yes; then |
| | 16262 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| | 16263 | # instead of lib<name>.a to let people know that these are not |
| | 16264 | # typical AIX shared libraries. |
| | 16265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16266 | else |
| | 16267 | # We preserve .a as extension for shared libraries through AIX4.2 |
| | 16268 | # and later when we are not doing run time linking. |
| | 16269 | library_names_spec='${libname}${release}.a $libname.a' |
| | 16270 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16271 | fi |
| | 16272 | shlibpath_var=LIBPATH |
| | 16273 | fi |
| | 16274 | ;; |
| | 16275 | |
| | 16276 | amigaos*) |
| | 16277 | library_names_spec='$libname.ixlibrary $libname.a' |
| | 16278 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| | 16279 | 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' |
| | 16280 | ;; |
| | 16281 | |
| | 16282 | beos*) |
| | 16283 | library_names_spec='${libname}${shared_ext}' |
| | 16284 | dynamic_linker="$host_os ld.so" |
| | 16285 | shlibpath_var=LIBRARY_PATH |
| | 16286 | ;; |
| | 16287 | |
| | 16288 | bsdi[45]*) |
| | 16289 | version_type=linux |
| | 16290 | need_version=no |
| | 16291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16292 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16293 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| | 16294 | shlibpath_var=LD_LIBRARY_PATH |
| | 16295 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| | 16296 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| | 16297 | # the default ld.so.conf also contains /usr/contrib/lib and |
| | 16298 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| | 16299 | # libtool to hard-code these into programs |
| | 16300 | ;; |
| | 16301 | |
| | 16302 | cygwin* | mingw* | pw32*) |
| | 16303 | version_type=windows |
| | 16304 | shrext_cmds=".dll" |
| | 16305 | need_version=no |
| | 16306 | need_lib_prefix=no |
| | 16307 | |
| | 16308 | case $GCC,$host_os in |
| | 16309 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| | 16310 | library_names_spec='$libname.dll.a' |
| | 16311 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| | 16312 | postinstall_cmds='base_file=`basename \${file}`~ |
| | 16313 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| | 16314 | dldir=$destdir/`dirname \$dlpath`~ |
| | 16315 | test -d \$dldir || mkdir -p \$dldir~ |
| | 16316 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| | 16317 | chmod a+x \$dldir/$dlname' |
| | 16318 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| | 16319 | dlpath=$dir/\$dldll~ |
| | 16320 | $rm \$dlpath' |
| | 16321 | shlibpath_overrides_runpath=yes |
| | 16322 | |
| | 16323 | case $host_os in |
| | 16324 | cygwin*) |
| | 16325 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| | 16326 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | 16327 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| | 16328 | ;; |
| | 16329 | mingw*) |
| | 16330 | # MinGW DLLs use traditional 'lib' prefix |
| | 16331 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | 16332 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| | 16333 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| | 16334 | # It is most probably a Windows format PATH printed by |
| | 16335 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| | 16336 | # path with ; separators, and with drive letters. We can handle the |
| | 16337 | # drive letters (cygwin fileutils understands them), so leave them, |
| | 16338 | # especially as we might pass files found there to a mingw objdump, |
| | 16339 | # which wouldn't understand a cygwinified path. Ahh. |
| | 16340 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| | 16341 | else |
| | 16342 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| | 16343 | fi |
| | 16344 | ;; |
| | 16345 | pw32*) |
| | 16346 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| | 16347 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| | 16348 | ;; |
| | 16349 | esac |
| | 16350 | ;; |
| | 16351 | |
| | 16352 | *) |
| | 16353 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| | 16354 | ;; |
| | 16355 | esac |
| | 16356 | dynamic_linker='Win32 ld.exe' |
| | 16357 | # FIXME: first we should search . and the directory the executable is in |
| | 16358 | shlibpath_var=PATH |
| | 16359 | ;; |
| | 16360 | |
| | 16361 | darwin* | rhapsody*) |
| | 16362 | dynamic_linker="$host_os dyld" |
| | 16363 | version_type=darwin |
| | 16364 | need_lib_prefix=no |
| | 16365 | need_version=no |
| | 16366 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| | 16367 | soname_spec='${libname}${release}${major}$shared_ext' |
| | 16368 | shlibpath_overrides_runpath=yes |
| | 16369 | shlibpath_var=DYLD_LIBRARY_PATH |
| | 16370 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| | 16371 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| | 16372 | if test "$GCC" = yes; then |
| | 16373 | 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"` |
| | 16374 | else |
| | 16375 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| | 16376 | fi |
| | 16377 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| | 16378 | ;; |
| | 16379 | |
| | 16380 | dgux*) |
| | 16381 | version_type=linux |
| | 16382 | need_lib_prefix=no |
| | 16383 | need_version=no |
| | 16384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| | 16385 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16386 | shlibpath_var=LD_LIBRARY_PATH |
| | 16387 | ;; |
| | 16388 | |
| | 16389 | freebsd1*) |
| | 16390 | dynamic_linker=no |
| | 16391 | ;; |
| | 16392 | |
| | 16393 | kfreebsd*-gnu) |
| | 16394 | version_type=linux |
| | 16395 | need_lib_prefix=no |
| | 16396 | need_version=no |
| | 16397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 16398 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16399 | shlibpath_var=LD_LIBRARY_PATH |
| | 16400 | shlibpath_overrides_runpath=no |
| | 16401 | hardcode_into_libs=yes |
| | 16402 | dynamic_linker='GNU ld.so' |
| | 16403 | ;; |
| | 16404 | |
| | 16405 | freebsd* | dragonfly*) |
| | 16406 | # DragonFly does not have aout. When/if they implement a new |
| | 16407 | # versioning mechanism, adjust this. |
| | 16408 | if test -x /usr/bin/objformat; then |
| | 16409 | objformat=`/usr/bin/objformat` |
| | 16410 | else |
| | 16411 | case $host_os in |
| | 16412 | freebsd[123]*) objformat=aout ;; |
| | 16413 | *) objformat=elf ;; |
| | 16414 | esac |
| | 16415 | fi |
| | 16416 | version_type=freebsd-$objformat |
| | 16417 | case $version_type in |
| | 16418 | freebsd-elf*) |
| | 16419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | 16420 | need_version=no |
| | 16421 | need_lib_prefix=no |
| | 16422 | ;; |
| | 16423 | freebsd-*) |
| | 16424 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| | 16425 | need_version=yes |
| | 16426 | ;; |
| | 16427 | esac |
| | 16428 | shlibpath_var=LD_LIBRARY_PATH |
| | 16429 | case $host_os in |
| | 16430 | freebsd2*) |
| | 16431 | shlibpath_overrides_runpath=yes |
| | 16432 | ;; |
| | 16433 | freebsd3.[01]* | freebsdelf3.[01]*) |
| | 16434 | shlibpath_overrides_runpath=yes |
| | 16435 | hardcode_into_libs=yes |
| | 16436 | ;; |
| | 16437 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| | 16438 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| | 16439 | shlibpath_overrides_runpath=no |
| | 16440 | hardcode_into_libs=yes |
| | 16441 | ;; |
| | 16442 | freebsd*) # from 4.6 on |
| | 16443 | shlibpath_overrides_runpath=yes |
| | 16444 | hardcode_into_libs=yes |
| | 16445 | ;; |
| | 16446 | esac |
| | 16447 | ;; |
| | 16448 | |
| | 16449 | gnu*) |
| | 16450 | version_type=linux |
| | 16451 | need_lib_prefix=no |
| | 16452 | need_version=no |
| | 16453 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| | 16454 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16455 | shlibpath_var=LD_LIBRARY_PATH |
| | 16456 | hardcode_into_libs=yes |
| | 16457 | ;; |
| | 16458 | |
| | 16459 | hpux9* | hpux10* | hpux11*) |
| | 16460 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| | 16461 | # link against other versions. |
| | 16462 | version_type=sunos |
| | 16463 | need_lib_prefix=no |
| | 16464 | need_version=no |
| | 16465 | case $host_cpu in |
| | 16466 | ia64*) |
| | 16467 | shrext_cmds='.so' |
| | 16468 | hardcode_into_libs=yes |
| | 16469 | dynamic_linker="$host_os dld.so" |
| | 16470 | shlibpath_var=LD_LIBRARY_PATH |
| | 16471 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| | 16472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16473 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16474 | if test "X$HPUX_IA64_MODE" = X32; then |
| | 16475 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| | 16476 | else |
| | 16477 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| | 16478 | fi |
| | 16479 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| | 16480 | ;; |
| | 16481 | hppa*64*) |
| | 16482 | shrext_cmds='.sl' |
| | 16483 | hardcode_into_libs=yes |
| | 16484 | dynamic_linker="$host_os dld.sl" |
| | 16485 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| | 16486 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| | 16487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16488 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16489 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| | 16490 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| | 16491 | ;; |
| | 16492 | *) |
| | 16493 | shrext_cmds='.sl' |
| | 16494 | dynamic_linker="$host_os dld.sl" |
| | 16495 | shlibpath_var=SHLIB_PATH |
| | 16496 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| | 16497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16498 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16499 | ;; |
| | 16500 | esac |
| | 16501 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| | 16502 | postinstall_cmds='chmod 555 $lib' |
| | 16503 | ;; |
| | 16504 | |
| | 16505 | interix3*) |
| | 16506 | version_type=linux |
| | 16507 | need_lib_prefix=no |
| | 16508 | need_version=no |
| | 16509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 16510 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16511 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| | 16512 | shlibpath_var=LD_LIBRARY_PATH |
| | 16513 | shlibpath_overrides_runpath=no |
| | 16514 | hardcode_into_libs=yes |
| | 16515 | ;; |
| | 16516 | |
| | 16517 | irix5* | irix6* | nonstopux*) |
| | 16518 | case $host_os in |
| | 16519 | nonstopux*) version_type=nonstopux ;; |
| | 16520 | *) |
| | 16521 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| | 16522 | version_type=linux |
| | 16523 | else |
| | 16524 | version_type=irix |
| | 16525 | fi ;; |
| | 16526 | esac |
| | 16527 | need_lib_prefix=no |
| | 16528 | need_version=no |
| | 16529 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | 16531 | case $host_os in |
| | 16532 | irix5* | nonstopux*) |
| | 16533 | libsuff= shlibsuff= |
| | 16534 | ;; |
| | 16535 | *) |
| | 16536 | case $LD in # libtool.m4 will add one of these switches to LD |
| | 16537 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| | 16538 | libsuff= shlibsuff= libmagic=32-bit;; |
| | 16539 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| | 16540 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| | 16541 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| | 16542 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| | 16543 | *) libsuff= shlibsuff= libmagic=never-match;; |
| | 16544 | esac |
| | 16545 | ;; |
| | 16546 | esac |
| | 16547 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| | 16548 | shlibpath_overrides_runpath=no |
| | 16549 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| | 16550 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| | 16551 | hardcode_into_libs=yes |
| | 16552 | ;; |
| | 16553 | |
| | 16554 | # No shared lib support for Linux oldld, aout, or coff. |
| | 16555 | linux*oldld* | linux*aout* | linux*coff*) |
| | 16556 | dynamic_linker=no |
| | 16557 | ;; |
| | 16558 | |
| | 16559 | # This must be Linux ELF. |
| | 16560 | linux*) |
| | 16561 | version_type=linux |
| | 16562 | need_lib_prefix=no |
| | 16563 | need_version=no |
| | 16564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16565 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16566 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| | 16567 | shlibpath_var=LD_LIBRARY_PATH |
| | 16568 | shlibpath_overrides_runpath=no |
| | 16569 | # This implies no fast_install, which is unacceptable. |
| | 16570 | # Some rework will be needed to allow for fast_install |
| | 16571 | # before this can be enabled. |
| | 16572 | hardcode_into_libs=yes |
| | 16573 | |
| | 16574 | # Append ld.so.conf contents to the search path |
| | 16575 | if test -f /etc/ld.so.conf; then |
| | 16576 | 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' ' '` |
| | 16577 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| | 16578 | fi |
| | 16579 | |
| | 16580 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| | 16581 | # powerpc, because MkLinux only supported shared libraries with the |
| | 16582 | # GNU dynamic linker. Since this was broken with cross compilers, |
| | 16583 | # most powerpc-linux boxes support dynamic linking these days and |
| | 16584 | # people can always --disable-shared, the test was removed, and we |
| | 16585 | # assume the GNU/Linux dynamic linker is in use. |
| | 16586 | dynamic_linker='GNU/Linux ld.so' |
| | 16587 | ;; |
| | 16588 | |
| | 16589 | netbsdelf*-gnu) |
| | 16590 | version_type=linux |
| | 16591 | need_lib_prefix=no |
| | 16592 | need_version=no |
| | 16593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 16594 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16595 | shlibpath_var=LD_LIBRARY_PATH |
| | 16596 | shlibpath_overrides_runpath=no |
| | 16597 | hardcode_into_libs=yes |
| | 16598 | dynamic_linker='NetBSD ld.elf_so' |
| | 16599 | ;; |
| | 16600 | |
| | 16601 | knetbsd*-gnu) |
| | 16602 | version_type=linux |
| | 16603 | need_lib_prefix=no |
| | 16604 | need_version=no |
| | 16605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 16606 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16607 | shlibpath_var=LD_LIBRARY_PATH |
| | 16608 | shlibpath_overrides_runpath=no |
| | 16609 | hardcode_into_libs=yes |
| | 16610 | dynamic_linker='GNU ld.so' |
| | 16611 | ;; |
| | 16612 | |
| | 16613 | netbsd*) |
| | 16614 | version_type=sunos |
| | 16615 | need_lib_prefix=no |
| | 16616 | need_version=no |
| | 16617 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| | 16618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | 16619 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| | 16620 | dynamic_linker='NetBSD (a.out) ld.so' |
| | 16621 | else |
| | 16622 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | 16623 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16624 | dynamic_linker='NetBSD ld.elf_so' |
| | 16625 | fi |
| | 16626 | shlibpath_var=LD_LIBRARY_PATH |
| | 16627 | shlibpath_overrides_runpath=yes |
| | 16628 | hardcode_into_libs=yes |
| | 16629 | ;; |
| | 16630 | |
| | 16631 | newsos6) |
| | 16632 | version_type=linux |
| | 16633 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16634 | shlibpath_var=LD_LIBRARY_PATH |
| | 16635 | shlibpath_overrides_runpath=yes |
| | 16636 | ;; |
| | 16637 | |
| | 16638 | nto-qnx*) |
| | 16639 | version_type=linux |
| | 16640 | need_lib_prefix=no |
| | 16641 | need_version=no |
| | 16642 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16643 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16644 | shlibpath_var=LD_LIBRARY_PATH |
| | 16645 | shlibpath_overrides_runpath=yes |
| | 16646 | ;; |
| | 16647 | |
| | 16648 | openbsd*) |
| | 16649 | version_type=sunos |
| | 16650 | sys_lib_dlsearch_path_spec="/usr/lib" |
| | 16651 | need_lib_prefix=no |
| | 16652 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| | 16653 | case $host_os in |
| | 16654 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| | 16655 | *) need_version=no ;; |
| | 16656 | esac |
| | 16657 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | 16658 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| | 16659 | shlibpath_var=LD_LIBRARY_PATH |
| | 16660 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| | 16661 | case $host_os in |
| | 16662 | openbsd2.[89] | openbsd2.[89].*) |
| | 16663 | shlibpath_overrides_runpath=no |
| | 16664 | ;; |
| | 16665 | *) |
| | 16666 | shlibpath_overrides_runpath=yes |
| | 16667 | ;; |
| | 16668 | esac |
| | 16669 | else |
| | 16670 | shlibpath_overrides_runpath=yes |
| | 16671 | fi |
| | 16672 | ;; |
| | 16673 | |
| | 16674 | os2*) |
| | 16675 | libname_spec='$name' |
| | 16676 | shrext_cmds=".dll" |
| | 16677 | need_lib_prefix=no |
| | 16678 | library_names_spec='$libname${shared_ext} $libname.a' |
| | 16679 | dynamic_linker='OS/2 ld.exe' |
| | 16680 | shlibpath_var=LIBPATH |
| | 16681 | ;; |
| | 16682 | |
| | 16683 | osf3* | osf4* | osf5*) |
| | 16684 | version_type=osf |
| | 16685 | need_lib_prefix=no |
| | 16686 | need_version=no |
| | 16687 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16688 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16689 | shlibpath_var=LD_LIBRARY_PATH |
| | 16690 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| | 16691 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| | 16692 | ;; |
| | 16693 | |
| | 16694 | solaris*) |
| | 16695 | version_type=linux |
| | 16696 | need_lib_prefix=no |
| | 16697 | need_version=no |
| | 16698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16699 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16700 | shlibpath_var=LD_LIBRARY_PATH |
| | 16701 | shlibpath_overrides_runpath=yes |
| | 16702 | hardcode_into_libs=yes |
| | 16703 | # ldd complains unless libraries are executable |
| | 16704 | postinstall_cmds='chmod +x $lib' |
| | 16705 | ;; |
| | 16706 | |
| | 16707 | sunos4*) |
| | 16708 | version_type=sunos |
| | 16709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| | 16710 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| | 16711 | shlibpath_var=LD_LIBRARY_PATH |
| | 16712 | shlibpath_overrides_runpath=yes |
| | 16713 | if test "$with_gnu_ld" = yes; then |
| | 16714 | need_lib_prefix=no |
| | 16715 | fi |
| | 16716 | need_version=yes |
| | 16717 | ;; |
| | 16718 | |
| | 16719 | sysv4 | sysv4.3*) |
| | 16720 | version_type=linux |
| | 16721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16722 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16723 | shlibpath_var=LD_LIBRARY_PATH |
| | 16724 | case $host_vendor in |
| | 16725 | sni) |
| | 16726 | shlibpath_overrides_runpath=no |
| | 16727 | need_lib_prefix=no |
| | 16728 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| | 16729 | runpath_var=LD_RUN_PATH |
| | 16730 | ;; |
| | 16731 | siemens) |
| | 16732 | need_lib_prefix=no |
| | 16733 | ;; |
| | 16734 | motorola) |
| | 16735 | need_lib_prefix=no |
| | 16736 | need_version=no |
| | 16737 | shlibpath_overrides_runpath=no |
| | 16738 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| | 16739 | ;; |
| | 16740 | esac |
| | 16741 | ;; |
| | 16742 | |
| | 16743 | sysv4*MP*) |
| | 16744 | if test -d /usr/nec ;then |
| | 16745 | version_type=linux |
| | 16746 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| | 16747 | soname_spec='$libname${shared_ext}.$major' |
| | 16748 | shlibpath_var=LD_LIBRARY_PATH |
| | 16749 | fi |
| | 16750 | ;; |
| | 16751 | |
| | 16752 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| | 16753 | version_type=freebsd-elf |
| | 16754 | need_lib_prefix=no |
| | 16755 | need_version=no |
| | 16756 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| | 16757 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16758 | shlibpath_var=LD_LIBRARY_PATH |
| | 16759 | hardcode_into_libs=yes |
| | 16760 | if test "$with_gnu_ld" = yes; then |
| | 16761 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| | 16762 | shlibpath_overrides_runpath=no |
| | 16763 | else |
| | 16764 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| | 16765 | shlibpath_overrides_runpath=yes |
| | 16766 | case $host_os in |
| | 16767 | sco3.2v5*) |
| | 16768 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| | 16769 | ;; |
| | 16770 | esac |
| | 16771 | fi |
| | 16772 | sys_lib_dlsearch_path_spec='/usr/lib' |
| | 16773 | ;; |
| | 16774 | |
| | 16775 | uts4*) |
| | 16776 | version_type=linux |
| | 16777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | 16778 | soname_spec='${libname}${release}${shared_ext}$major' |
| | 16779 | shlibpath_var=LD_LIBRARY_PATH |
| | 16780 | ;; |
| | 16781 | |
| | 16782 | *) |
| | 16783 | dynamic_linker=no |
| | 16784 | ;; |
| | 16785 | esac |
| | 16786 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| | 16787 | echo "${ECHO_T}$dynamic_linker" >&6 |
| | 16788 | test "$dynamic_linker" = no && can_build_shared=no |
| | 16789 | |
| | 16790 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| | 16791 | if test "$GCC" = yes; then |
| | 16792 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| | 16793 | fi |
| | 16794 | |
| | 16795 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| | 16796 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| | 16797 | hardcode_action_F77= |
| | 16798 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
| | 16799 | test -n "$runpath_var_F77" || \ |
| | 16800 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
| | 16801 | |
| | 16802 | # We can hardcode non-existant directories. |
| | 16803 | if test "$hardcode_direct_F77" != no && |
| | 16804 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| | 16805 | # have to relink, otherwise we might link with an installed library |
| | 16806 | # when we should be linking with a yet-to-be-installed one |
| | 16807 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
| | 16808 | test "$hardcode_minus_L_F77" != no; then |
| | 16809 | # Linking always hardcodes the temporary library directory. |
| | 16810 | hardcode_action_F77=relink |
| | 16811 | else |
| | 16812 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| | 16813 | hardcode_action_F77=immediate |
| | 16814 | fi |
| | 16815 | else |
| | 16816 | # We cannot hardcode anything, or else we can only hardcode existing |
| | 16817 | # directories. |
| | 16818 | hardcode_action_F77=unsupported |
| | 16819 | fi |
| | 16820 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
| | 16821 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
| | 16822 | |
| | 16823 | if test "$hardcode_action_F77" = relink; then |
| | 16824 | # Fast installation is not supported |
| | 16825 | enable_fast_install=no |
| | 16826 | elif test "$shlibpath_overrides_runpath" = yes || |
| | 16827 | test "$enable_shared" = no; then |
| | 16828 | # Fast installation is not necessary |
| | 16829 | enable_fast_install=needless |
| | 16830 | fi |
| | 16831 | |
| | 16832 | |
| | 16833 | # The else clause should only fire when bootstrapping the |
| | 16834 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
| | 16835 | # with your package, and you will get complaints that there are |
| | 16836 | # no rules to generate ltmain.sh. |
| | 16837 | if test -f "$ltmain"; then |
| | 16838 | # See if we are running on zsh, and set the options which allow our commands through |
| | 16839 | # without removal of \ escapes. |
| | 16840 | if test -n "${ZSH_VERSION+set}" ; then |
| | 16841 | setopt NO_GLOB_SUBST |
| | 16842 | fi |
| | 16843 | # Now quote all the things that may contain metacharacters while being |
| | 16844 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
| | 16845 | # variables and quote the copies for generation of the libtool script. |
| | 16846 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
| | 16847 | SED SHELL STRIP \ |
| | 16848 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
| | 16849 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
| | 16850 | deplibs_check_method reload_flag reload_cmds need_locks \ |
| | 16851 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
| | 16852 | lt_cv_sys_global_symbol_to_c_name_address \ |
| | 16853 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
| | 16854 | old_postinstall_cmds old_postuninstall_cmds \ |
| | 16855 | compiler_F77 \ |
| | 16856 | CC_F77 \ |
| | 16857 | LD_F77 \ |
| | 16858 | lt_prog_compiler_wl_F77 \ |
| | 16859 | lt_prog_compiler_pic_F77 \ |
| | 16860 | lt_prog_compiler_static_F77 \ |
| | 16861 | lt_prog_compiler_no_builtin_flag_F77 \ |
| | 16862 | export_dynamic_flag_spec_F77 \ |
| | 16863 | thread_safe_flag_spec_F77 \ |
| | 16864 | whole_archive_flag_spec_F77 \ |
| | 16865 | enable_shared_with_static_runtimes_F77 \ |
| | 16866 | old_archive_cmds_F77 \ |
| | 16867 | old_archive_from_new_cmds_F77 \ |
| | 16868 | predep_objects_F77 \ |
| | 16869 | postdep_objects_F77 \ |
| | 16870 | predeps_F77 \ |
| | 16871 | postdeps_F77 \ |
| | 16872 | compiler_lib_search_path_F77 \ |
| | 16873 | archive_cmds_F77 \ |
| | 16874 | archive_expsym_cmds_F77 \ |
| | 16875 | postinstall_cmds_F77 \ |
| | 16876 | postuninstall_cmds_F77 \ |
| | 16877 | old_archive_from_expsyms_cmds_F77 \ |
| | 16878 | allow_undefined_flag_F77 \ |
| | 16879 | no_undefined_flag_F77 \ |
| | 16880 | export_symbols_cmds_F77 \ |
| | 16881 | hardcode_libdir_flag_spec_F77 \ |
| | 16882 | hardcode_libdir_flag_spec_ld_F77 \ |
| | 16883 | hardcode_libdir_separator_F77 \ |
| | 16884 | hardcode_automatic_F77 \ |
| | 16885 | module_cmds_F77 \ |
| | 16886 | module_expsym_cmds_F77 \ |
| | 16887 | lt_cv_prog_compiler_c_o_F77 \ |
| | 16888 | exclude_expsyms_F77 \ |
| | 16889 | include_expsyms_F77; do |
| | 16890 | |
| | 16891 | case $var in |
| | 16892 | old_archive_cmds_F77 | \ |
| | 16893 | old_archive_from_new_cmds_F77 | \ |
| | 16894 | archive_cmds_F77 | \ |
| | 16895 | archive_expsym_cmds_F77 | \ |
| | 16896 | module_cmds_F77 | \ |
| | 16897 | module_expsym_cmds_F77 | \ |
| | 16898 | old_archive_from_expsyms_cmds_F77 | \ |
| | 16899 | export_symbols_cmds_F77 | \ |
| | 16900 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
| | 16901 | postinstall_cmds | postuninstall_cmds | \ |
| | 16902 | old_postinstall_cmds | old_postuninstall_cmds | \ |
| | 16903 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
| | 16904 | # Double-quote double-evaled strings. |
| | 16905 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
| | 16906 | ;; |
| | 16907 | *) |
| | 16908 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
| | 16909 | ;; |
| | 16910 | esac |
| | 16911 | done |
| | 16912 | |
| | 16913 | case $lt_echo in |
| | 16914 | *'\$0 --fallback-echo"') |
| | 16915 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
| | 16916 | ;; |
| | 16917 | esac |
| | 16918 | |
| | 16919 | cfgfile="$ofile" |
| | 16920 | |
| | 16921 | cat <<__EOF__ >> "$cfgfile" |
| | 16922 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
| | 16923 | |
| | 16924 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| | 16925 | |
| | 16926 | # Shell to use when invoking shell scripts. |
| | 16927 | SHELL=$lt_SHELL |
| | 16928 | |
| | 16929 | # Whether or not to build shared libraries. |
| | 16930 | build_libtool_libs=$enable_shared |
| | 16931 | |
| | 16932 | # Whether or not to build static libraries. |
| | 16933 | build_old_libs=$enable_static |
| | 16934 | |
| | 16935 | # Whether or not to add -lc for building shared libraries. |
| | 16936 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
| | 16937 | |
| | 16938 | # Whether or not to disallow shared libs when runtime libs are static |
| | 16939 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
| | 16940 | |
| | 16941 | # Whether or not to optimize for fast installation. |
| | 16942 | fast_install=$enable_fast_install |
| | 16943 | |
| | 16944 | # The host system. |
| | 16945 | host_alias=$host_alias |
| | 16946 | host=$host |
| | 16947 | host_os=$host_os |
| | 16948 | |
| | 16949 | # The build system. |
| | 16950 | build_alias=$build_alias |
| | 16951 | build=$build |
| | 16952 | build_os=$build_os |
| | 16953 | |
| | 16954 | # An echo program that does not interpret backslashes. |
| | 16955 | echo=$lt_echo |
| | 16956 | |
| | 16957 | # The archiver. |
| | 16958 | AR=$lt_AR |
| | 16959 | AR_FLAGS=$lt_AR_FLAGS |
| | 16960 | |
| | 16961 | # A C compiler. |
| | 16962 | LTCC=$lt_LTCC |
| | 16963 | |
| | 16964 | # LTCC compiler flags. |
| | 16965 | LTCFLAGS=$lt_LTCFLAGS |
| | 16966 | |
| | 16967 | # A language-specific compiler. |
| | 16968 | CC=$lt_compiler_F77 |
| | 16969 | |
| | 16970 | # Is the compiler the GNU C compiler? |
| | 16971 | with_gcc=$GCC_F77 |
| | 16972 | |
| | 16973 | # An ERE matcher. |
| | 16974 | EGREP=$lt_EGREP |
| | 16975 | |
| | 16976 | # The linker used to build libraries. |
| | 16977 | LD=$lt_LD_F77 |
| | 16978 | |
| | 16979 | # Whether we need hard or soft links. |
| | 16980 | LN_S=$lt_LN_S |
| | 16981 | |
| | 16982 | # A BSD-compatible nm program. |
| | 16983 | NM=$lt_NM |
| | 16984 | |
| | 16985 | # A symbol stripping program |
| | 16986 | STRIP=$lt_STRIP |
| | 16987 | |
| | 16988 | # Used to examine libraries when file_magic_cmd begins "file" |
| | 16989 | MAGIC_CMD=$MAGIC_CMD |
| | 16990 | |
| | 16991 | # Used on cygwin: DLL creation program. |
| | 16992 | DLLTOOL="$DLLTOOL" |
| | 16993 | |
| | 16994 | # Used on cygwin: object dumper. |
| | 16995 | OBJDUMP="$OBJDUMP" |
| | 16996 | |
| | 16997 | # Used on cygwin: assembler. |
| | 16998 | AS="$AS" |
| | 16999 | |
| | 17000 | # The name of the directory that contains temporary libtool files. |
| | 17001 | objdir=$objdir |
| | 17002 | |
| | 17003 | # How to create reloadable object files. |
| | 17004 | reload_flag=$lt_reload_flag |
| | 17005 | reload_cmds=$lt_reload_cmds |
| | 17006 | |
| | 17007 | # How to pass a linker flag through the compiler. |
| | 17008 | wl=$lt_lt_prog_compiler_wl_F77 |
| | 17009 | |
| | 17010 | # Object file suffix (normally "o"). |
| | 17011 | objext="$ac_objext" |
| | 17012 | |
| | 17013 | # Old archive suffix (normally "a"). |
| | 17014 | libext="$libext" |
| | 17015 | |
| | 17016 | # Shared library suffix (normally ".so"). |
| | 17017 | shrext_cmds='$shrext_cmds' |
| | 17018 | |
| | 17019 | # Executable file suffix (normally ""). |
| | 17020 | exeext="$exeext" |
| | 17021 | |
| | 17022 | # Additional compiler flags for building library objects. |
| | 17023 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
| | 17024 | pic_mode=$pic_mode |
| | 17025 | |
| | 17026 | # What is the maximum length of a command? |
| | 17027 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| | 17028 | |
| | 17029 | # Does compiler simultaneously support -c and -o options? |
| | 17030 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
| | 17031 | |
| | 17032 | # Must we lock files when doing compilation? |
| | 17033 | need_locks=$lt_need_locks |
| | 17034 | |
| | 17035 | # Do we need the lib prefix for modules? |
| | 17036 | need_lib_prefix=$need_lib_prefix |
| | 17037 | |
| | 17038 | # Do we need a version for libraries? |
| | 17039 | need_version=$need_version |
| | 17040 | |
| | 17041 | # Whether dlopen is supported. |
| | 17042 | dlopen_support=$enable_dlopen |
| | 17043 | |
| | 17044 | # Whether dlopen of programs is supported. |
| | 17045 | dlopen_self=$enable_dlopen_self |
| | 17046 | |
| | 17047 | # Whether dlopen of statically linked programs is supported. |
| | 17048 | dlopen_self_static=$enable_dlopen_self_static |
| | 17049 | |
| | 17050 | # Compiler flag to prevent dynamic linking. |
| | 17051 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
| | 17052 | |
| | 17053 | # Compiler flag to turn off builtin functions. |
| | 17054 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
| | 17055 | |
| | 17056 | # Compiler flag to allow reflexive dlopens. |
| | 17057 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
| | 17058 | |
| | 17059 | # Compiler flag to generate shared objects directly from archives. |
| | 17060 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
| | 17061 | |
| | 17062 | # Compiler flag to generate thread-safe objects. |
| | 17063 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
| | 17064 | |
| | 17065 | # Library versioning type. |
| | 17066 | version_type=$version_type |
| | 17067 | |
| | 17068 | # Format of library name prefix. |
| | 17069 | libname_spec=$lt_libname_spec |
| | 17070 | |
| | 17071 | # List of archive names. First name is the real one, the rest are links. |
| | 17072 | # The last name is the one that the linker finds with -lNAME. |
| | 17073 | library_names_spec=$lt_library_names_spec |
| | 17074 | |
| | 17075 | # The coded name of the library, if different from the real name. |
| | 17076 | soname_spec=$lt_soname_spec |
| | 17077 | |
| | 17078 | # Commands used to build and install an old-style archive. |
| | 17079 | RANLIB=$lt_RANLIB |
| | 17080 | old_archive_cmds=$lt_old_archive_cmds_F77 |
| | 17081 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| | 17082 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| | 17083 | |
| | 17084 | # Create an old-style archive from a shared archive. |
| | 17085 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
| | 17086 | |
| | 17087 | # Create a temporary old-style archive to link instead of a shared archive. |
| | 17088 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
| | 17089 | |
| | 17090 | # Commands used to build and install a shared archive. |
| | 17091 | archive_cmds=$lt_archive_cmds_F77 |
| | 17092 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
| | 17093 | postinstall_cmds=$lt_postinstall_cmds |
| | 17094 | postuninstall_cmds=$lt_postuninstall_cmds |
| | 17095 | |
| | 17096 | # Commands used to build a loadable module (assumed same as above if empty) |
| | 17097 | module_cmds=$lt_module_cmds_F77 |
| | 17098 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
| | 17099 | |
| | 17100 | # Commands to strip libraries. |
| | 17101 | old_striplib=$lt_old_striplib |
| | 17102 | striplib=$lt_striplib |
| | 17103 | |
| | 17104 | # Dependencies to place before the objects being linked to create a |
| | 17105 | # shared library. |
| | 17106 | predep_objects=$lt_predep_objects_F77 |
| | 17107 | |
| | 17108 | # Dependencies to place after the objects being linked to create a |
| | 17109 | # shared library. |
| | 17110 | postdep_objects=$lt_postdep_objects_F77 |
| | 17111 | |
| | 17112 | # Dependencies to place before the objects being linked to create a |
| | 17113 | # shared library. |
| | 17114 | predeps=$lt_predeps_F77 |
| | 17115 | |
| | 17116 | # Dependencies to place after the objects being linked to create a |
| | 17117 | # shared library. |
| | 17118 | postdeps=$lt_postdeps_F77 |
| | 17119 | |
| | 17120 | # The library search path used internally by the compiler when linking |
| | 17121 | # a shared library. |
| | 17122 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
| | 17123 | |
| | 17124 | # Method to check whether dependent libraries are shared objects. |
| | 17125 | deplibs_check_method=$lt_deplibs_check_method |
| | 17126 | |
| | 17127 | # Command to use when deplibs_check_method == file_magic. |
| | 17128 | file_magic_cmd=$lt_file_magic_cmd |
| | 17129 | |
| | 17130 | # Flag that allows shared libraries with undefined symbols to be built. |
| | 17131 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
| | 17132 | |
| | 17133 | # Flag that forces no undefined symbols. |
| | 17134 | no_undefined_flag=$lt_no_undefined_flag_F77 |
| | 17135 | |
| | 17136 | # Commands used to finish a libtool library installation in a directory. |
| | 17137 | finish_cmds=$lt_finish_cmds |
| | 17138 | |
| | 17139 | # Same as above, but a single script fragment to be evaled but not shown. |
| | 17140 | finish_eval=$lt_finish_eval |
| | 17141 | |
| | 17142 | # Take the output of nm and produce a listing of raw symbols and C names. |
| | 17143 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| | 17144 | |
| | 17145 | # Transform the output of nm in a proper C declaration |
| | 17146 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| | 17147 | |
| | 17148 | # Transform the output of nm in a C name address pair |
| | 17149 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| | 17150 | |
| | 17151 | # This is the shared library runtime path variable. |
| | 17152 | runpath_var=$runpath_var |
| | 17153 | |
| | 17154 | # This is the shared library path variable. |
| | 17155 | shlibpath_var=$shlibpath_var |
| | 17156 | |
| | 17157 | # Is shlibpath searched before the hard-coded library search path? |
| | 17158 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| | 17159 | |
| | 17160 | # How to hardcode a shared library path into an executable. |
| | 17161 | hardcode_action=$hardcode_action_F77 |
| | 17162 | |
| | 17163 | # Whether we should hardcode library paths into libraries. |
| | 17164 | hardcode_into_libs=$hardcode_into_libs |
| | 17165 | |
| | 17166 | # Flag to hardcode \$libdir into a binary during linking. |
| | 17167 | # This must work even if \$libdir does not exist. |
| | 17168 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
| | 17169 | |
| | 17170 | # If ld is used when linking, flag to hardcode \$libdir into |
| | 17171 | # a binary during linking. This must work even if \$libdir does |
| | 17172 | # not exist. |
| | 17173 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
| | 17174 | |
| | 17175 | # Whether we need a single -rpath flag with a separated argument. |
| | 17176 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
| | 17177 | |
| | 17178 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
| | 17179 | # resulting binary. |
| | 17180 | hardcode_direct=$hardcode_direct_F77 |
| | 17181 | |
| | 17182 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
| | 17183 | # resulting binary. |
| | 17184 | hardcode_minus_L=$hardcode_minus_L_F77 |
| | 17185 | |
| | 17186 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
| | 17187 | # the resulting binary. |
| | 17188 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
| | 17189 | |
| | 17190 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
| | 17191 | # and all subsequent libraries and executables linked against it. |
| | 17192 | hardcode_automatic=$hardcode_automatic_F77 |
| | 17193 | |
| | 17194 | # Variables whose values should be saved in libtool wrapper scripts and |
| | 17195 | # restored at relink time. |
| | 17196 | variables_saved_for_relink="$variables_saved_for_relink" |
| | 17197 | |
| | 17198 | # Whether libtool must link a program against all its dependency libraries. |
| | 17199 | link_all_deplibs=$link_all_deplibs_F77 |
| | 17200 | |
| | 17201 | # Compile-time system search path for libraries |
| | 17202 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| | 17203 | |
| | 17204 | # Run-time system search path for libraries |
| | 17205 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| | 17206 | |
| | 17207 | # Fix the shell variable \$srcfile for the compiler. |
| | 17208 | fix_srcfile_path="$fix_srcfile_path_F77" |
| | 17209 | |
| | 17210 | # Set to yes if exported symbols are required. |
| | 17211 | always_export_symbols=$always_export_symbols_F77 |
| | 17212 | |
| | 17213 | # The commands to list exported symbols. |
| | 17214 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
| | 17215 | |
| | 17216 | # The commands to extract the exported symbol list from a shared archive. |
| | 17217 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| | 17218 | |
| | 17219 | # Symbols that should not be listed in the preloaded symbols. |
| | 17220 | exclude_expsyms=$lt_exclude_expsyms_F77 |
| | 17221 | |
| | 17222 | # Symbols that must always be exported. |
| | 17223 | include_expsyms=$lt_include_expsyms_F77 |
| | 17224 | |
| | 17225 | # ### END LIBTOOL TAG CONFIG: $tagname |
| | 17226 | |
| | 17227 | __EOF__ |
| | 17228 | |
| | 17229 | |
| | 17230 | else |
| | 17231 | # If there is no Makefile yet, we rely on a make rule to execute |
| | 17232 | # `config.status --recheck' to rerun these tests and create the |
| | 17233 | # libtool script then. |
| | 17234 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
| | 17235 | if test -f "$ltmain_in"; then |
| | 17236 | test -f Makefile && make "$ltmain" |
| | 17237 | fi |
| | 17238 | fi |
| | 17239 | |
| | 17240 | |
| | 17241 | ac_ext=c |
| | 17242 | ac_cpp='$CPP $CPPFLAGS' |
| | 17243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| | 17244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| | 17245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| | 17246 | |
| | 17247 | CC="$lt_save_CC" |
| | 17248 | |
| | 17249 | else |
| | 17250 | tagname="" |
| | 17251 | fi |
| | 17252 | ;; |
| | 17253 | |
| | 17254 | GCJ) |
| | 17255 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
| | 17256 | |
| | 17257 | |
| | 17258 | |
| | 17259 | # Source file extension for Java test sources. |
| | 17260 | ac_ext=java |
| | 17261 | |
| | 17262 | # Object file extension for compiled Java test sources. |
| | 17263 | objext=o |
| | 17264 | objext_GCJ=$objext |
| | 17265 | |
| | 17266 | # Code to be used in simple compile tests |
| | 17267 | lt_simple_compile_test_code="class foo {}\n" |
| | 17268 | |
| | 17269 | # Code to be used in simple link tests |
| | 17270 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
| | 17271 | |
| | 17272 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| | 17273 | |
| | 17274 | # If no C compiler was specified, use CC. |
| | 17275 | LTCC=${LTCC-"$CC"} |
| | 17276 | |
| | 17277 | # If no C compiler flags were specified, use CFLAGS. |
| | 17278 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| | 17279 | |
| | 17280 | # Allow CC to be a program name with arguments. |
| | 17281 | compiler=$CC |
| | 17282 | |
| | 17283 | |
| | 17284 | # save warnings/boilerplate of simple test code |
| | 17285 | ac_outfile=conftest.$ac_objext |
| | 17286 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| | 17287 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| | 17288 | _lt_compiler_boilerplate=`cat conftest.err` |
| | 17289 | $rm conftest* |
| | 17290 | |
| | 17291 | ac_outfile=conftest.$ac_objext |
| | 17292 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| | 17293 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| | 17294 | _lt_linker_boilerplate=`cat conftest.err` |
| | 17295 | $rm conftest* |
| | 17296 | |
| | 17297 | |
| | 17298 | # Allow CC to be a program name with arguments. |
| | 17299 | lt_save_CC="$CC" |
| | 17300 | CC=${GCJ-"gcj"} |
| | 17301 | compiler=$CC |
| | 17302 | compiler_GCJ=$CC |
| | 17303 | for cc_temp in $compiler""; do |
| | 17304 | case $cc_temp in |
| | 17305 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| | 17306 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| | 17307 | \-*) ;; |
| | 17308 | *) break;; |
| | 17309 | esac |
| | 17310 | done |
| | 17311 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| | 17312 | |
| | 17313 | |
| | 17314 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
| | 17315 | archive_cmds_need_lc_GCJ=no |
| | 17316 | |
| | 17317 | old_archive_cmds_GCJ=$old_archive_cmds |
| | 17318 | |
| | 17319 | |
| | 17320 | lt_prog_compiler_no_builtin_flag_GCJ= |
| | 17321 | |
| | 17322 | if test "$GCC" = yes; then |
| | 17323 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
| | 17324 | |
| | 17325 | |
| | 17326 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| | 17327 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| | 17328 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| | 17329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 17330 | else |
| | 17331 | lt_cv_prog_compiler_rtti_exceptions=no |
| | 17332 | ac_outfile=conftest.$ac_objext |
| | 17333 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 17334 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| | 17335 | # Insert the option either (1) after the last *FLAGS variable, or |
| | 17336 | # (2) before a word containing "conftest.", or (3) at the end. |
| | 17337 | # Note that $ac_compile itself does not contain backslashes and begins |
| | 17338 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | 17339 | # The option is referenced via a variable to avoid confusing sed. |
| | 17340 | lt_compile=`echo "$ac_compile" | $SED \ |
| | 17341 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| | 17342 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | 17343 | -e 's:$: $lt_compiler_flag:'` |
| | 17344 | (eval echo "\"\$as_me:17344: $lt_compile\"" >&5) |
| | 17345 | (eval "$lt_compile" 2>conftest.err) |
| | 17346 | ac_status=$? |
| | 17347 | cat conftest.err >&5 |
| | 17348 | echo "$as_me:17348: \$? = $ac_status" >&5 |
| | 17349 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| | 17350 | # The compiler can only warn and ignore the option if not recognized |
| | 17351 | # So say no if there are warnings other than the usual output. |
| | 17352 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| | 17353 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| | 17354 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| | 17355 | lt_cv_prog_compiler_rtti_exceptions=yes |
| | 17356 | fi |
| | 17357 | fi |
| | 17358 | $rm conftest* |
| | 17359 | |
| | 17360 | fi |
| | 17361 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| | 17362 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| | 17363 | |
| | 17364 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| | 17365 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
| | 17366 | else |
| | 17367 | : |
| | 17368 | fi |
| | 17369 | |
| | 17370 | fi |
| | 17371 | |
| | 17372 | lt_prog_compiler_wl_GCJ= |
| | 17373 | lt_prog_compiler_pic_GCJ= |
| | 17374 | lt_prog_compiler_static_GCJ= |
| | 17375 | |
| | 17376 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| | 17377 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| | 17378 | |
| | 17379 | if test "$GCC" = yes; then |
| | 17380 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17381 | lt_prog_compiler_static_GCJ='-static' |
| | 17382 | |
| | 17383 | case $host_os in |
| | 17384 | aix*) |
| | 17385 | # All AIX code is PIC. |
| | 17386 | if test "$host_cpu" = ia64; then |
| | 17387 | # AIX 5 now supports IA64 processor |
| | 17388 | lt_prog_compiler_static_GCJ='-Bstatic' |
| | 17389 | fi |
| | 17390 | ;; |
| | 17391 | |
| | 17392 | amigaos*) |
| | 17393 | # FIXME: we need at least 68020 code to build shared libraries, but |
| | 17394 | # adding the `-m68020' flag to GCC prevents building anything better, |
| | 17395 | # like `-m68040'. |
| | 17396 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
| | 17397 | ;; |
| | 17398 | |
| | 17399 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| | 17400 | # PIC is the default for these OSes. |
| | 17401 | ;; |
| | 17402 | |
| | 17403 | mingw* | pw32* | os2*) |
| | 17404 | # This hack is so that the source file can tell whether it is being |
| | 17405 | # built for inclusion in a dll (and should export symbols for example). |
| | 17406 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| | 17407 | ;; |
| | 17408 | |
| | 17409 | darwin* | rhapsody*) |
| | 17410 | # PIC is the default on this platform |
| | 17411 | # Common symbols not allowed in MH_DYLIB files |
| | 17412 | lt_prog_compiler_pic_GCJ='-fno-common' |
| | 17413 | ;; |
| | 17414 | |
| | 17415 | interix3*) |
| | 17416 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| | 17417 | # Instead, we relocate shared libraries at runtime. |
| | 17418 | ;; |
| | 17419 | |
| | 17420 | msdosdjgpp*) |
| | 17421 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| | 17422 | # on systems that don't support them. |
| | 17423 | lt_prog_compiler_can_build_shared_GCJ=no |
| | 17424 | enable_shared=no |
| | 17425 | ;; |
| | 17426 | |
| | 17427 | sysv4*MP*) |
| | 17428 | if test -d /usr/nec; then |
| | 17429 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
| | 17430 | fi |
| | 17431 | ;; |
| | 17432 | |
| | 17433 | hpux*) |
| | 17434 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| | 17435 | # not for PA HP-UX. |
| | 17436 | case $host_cpu in |
| | 17437 | hppa*64*|ia64*) |
| | 17438 | # +Z the default |
| | 17439 | ;; |
| | 17440 | *) |
| | 17441 | lt_prog_compiler_pic_GCJ='-fPIC' |
| | 17442 | ;; |
| | 17443 | esac |
| | 17444 | ;; |
| | 17445 | |
| | 17446 | *) |
| | 17447 | lt_prog_compiler_pic_GCJ='-fPIC' |
| | 17448 | ;; |
| | 17449 | esac |
| | 17450 | else |
| | 17451 | # PORTME Check for flag to pass linker flags through the system compiler. |
| | 17452 | case $host_os in |
| | 17453 | aix*) |
| | 17454 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17455 | if test "$host_cpu" = ia64; then |
| | 17456 | # AIX 5 now supports IA64 processor |
| | 17457 | lt_prog_compiler_static_GCJ='-Bstatic' |
| | 17458 | else |
| | 17459 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
| | 17460 | fi |
| | 17461 | ;; |
| | 17462 | darwin*) |
| | 17463 | # PIC is the default on this platform |
| | 17464 | # Common symbols not allowed in MH_DYLIB files |
| | 17465 | case $cc_basename in |
| | 17466 | xlc*) |
| | 17467 | lt_prog_compiler_pic_GCJ='-qnocommon' |
| | 17468 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17469 | ;; |
| | 17470 | esac |
| | 17471 | ;; |
| | 17472 | |
| | 17473 | mingw* | pw32* | os2*) |
| | 17474 | # This hack is so that the source file can tell whether it is being |
| | 17475 | # built for inclusion in a dll (and should export symbols for example). |
| | 17476 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
| | 17477 | ;; |
| | 17478 | |
| | 17479 | hpux9* | hpux10* | hpux11*) |
| | 17480 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17481 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| | 17482 | # not for PA HP-UX. |
| | 17483 | case $host_cpu in |
| | 17484 | hppa*64*|ia64*) |
| | 17485 | # +Z the default |
| | 17486 | ;; |
| | 17487 | *) |
| | 17488 | lt_prog_compiler_pic_GCJ='+Z' |
| | 17489 | ;; |
| | 17490 | esac |
| | 17491 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| | 17492 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
| | 17493 | ;; |
| | 17494 | |
| | 17495 | irix5* | irix6* | nonstopux*) |
| | 17496 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17497 | # PIC (with -KPIC) is the default. |
| | 17498 | lt_prog_compiler_static_GCJ='-non_shared' |
| | 17499 | ;; |
| | 17500 | |
| | 17501 | newsos6) |
| | 17502 | lt_prog_compiler_pic_GCJ='-KPIC' |
| | 17503 | lt_prog_compiler_static_GCJ='-Bstatic' |
| | 17504 | ;; |
| | 17505 | |
| | 17506 | linux*) |
| | 17507 | case $cc_basename in |
| | 17508 | icc* | ecc*) |
| | 17509 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17510 | lt_prog_compiler_pic_GCJ='-KPIC' |
| | 17511 | lt_prog_compiler_static_GCJ='-static' |
| | 17512 | ;; |
| | 17513 | pgcc* | pgf77* | pgf90* | pgf95*) |
| | 17514 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| | 17515 | # which looks to be a dead project) |
| | 17516 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17517 | lt_prog_compiler_pic_GCJ='-fpic' |
| | 17518 | lt_prog_compiler_static_GCJ='-Bstatic' |
| | 17519 | ;; |
| | 17520 | ccc*) |
| | 17521 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17522 | # All Alpha code is PIC. |
| | 17523 | lt_prog_compiler_static_GCJ='-non_shared' |
| | 17524 | ;; |
| | 17525 | esac |
| | 17526 | ;; |
| | 17527 | |
| | 17528 | osf3* | osf4* | osf5*) |
| | 17529 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17530 | # All OSF/1 code is PIC. |
| | 17531 | lt_prog_compiler_static_GCJ='-non_shared' |
| | 17532 | ;; |
| | 17533 | |
| | 17534 | solaris*) |
| | 17535 | lt_prog_compiler_pic_GCJ='-KPIC' |
| | 17536 | lt_prog_compiler_static_GCJ='-Bstatic' |
| | 17537 | case $cc_basename in |
| | 17538 | f77* | f90* | f95*) |
| | 17539 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
| | 17540 | *) |
| | 17541 | lt_prog_compiler_wl_GCJ='-Wl,';; |
| | 17542 | esac |
| | 17543 | ;; |
| | 17544 | |
| | 17545 | sunos4*) |
| | 17546 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
| | 17547 | lt_prog_compiler_pic_GCJ='-PIC' |
| | 17548 | lt_prog_compiler_static_GCJ='-Bstatic' |
| | 17549 | ;; |
| | 17550 | |
| | 17551 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| | 17552 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17553 | lt_prog_compiler_pic_GCJ='-KPIC' |
| | 17554 | lt_prog_compiler_static_GCJ='-Bstatic' |
| | 17555 | ;; |
| | 17556 | |
| | 17557 | sysv4*MP*) |
| | 17558 | if test -d /usr/nec ;then |
| | 17559 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
| | 17560 | lt_prog_compiler_static_GCJ='-Bstatic' |
| | 17561 | fi |
| | 17562 | ;; |
| | 17563 | |
| | 17564 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| | 17565 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17566 | lt_prog_compiler_pic_GCJ='-KPIC' |
| | 17567 | lt_prog_compiler_static_GCJ='-Bstatic' |
| | 17568 | ;; |
| | 17569 | |
| | 17570 | unicos*) |
| | 17571 | lt_prog_compiler_wl_GCJ='-Wl,' |
| | 17572 | lt_prog_compiler_can_build_shared_GCJ=no |
| | 17573 | ;; |
| | 17574 | |
| | 17575 | uts4*) |
| | 17576 | lt_prog_compiler_pic_GCJ='-pic' |
| | 17577 | lt_prog_compiler_static_GCJ='-Bstatic' |
| | 17578 | ;; |
| | 17579 | |
| | 17580 | *) |
| | 17581 | lt_prog_compiler_can_build_shared_GCJ=no |
| | 17582 | ;; |
| | 17583 | esac |
| | 17584 | fi |
| | 17585 | |
| | 17586 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
| | 17587 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
| | 17588 | |
| | 17589 | # |
| | 17590 | # Check to make sure the PIC flag actually works. |
| | 17591 | # |
| | 17592 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
| | 17593 | |
| | 17594 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
| | 17595 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
| | 17596 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
| | 17597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 17598 | else |
| | 17599 | lt_prog_compiler_pic_works_GCJ=no |
| | 17600 | ac_outfile=conftest.$ac_objext |
| | 17601 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 17602 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
| | 17603 | # Insert the option either (1) after the last *FLAGS variable, or |
| | 17604 | # (2) before a word containing "conftest.", or (3) at the end. |
| | 17605 | # Note that $ac_compile itself does not contain backslashes and begins |
| | 17606 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | 17607 | # The option is referenced via a variable to avoid confusing sed. |
| | 17608 | lt_compile=`echo "$ac_compile" | $SED \ |
| | 17609 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| | 17610 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | 17611 | -e 's:$: $lt_compiler_flag:'` |
| | 17612 | (eval echo "\"\$as_me:17612: $lt_compile\"" >&5) |
| | 17613 | (eval "$lt_compile" 2>conftest.err) |
| | 17614 | ac_status=$? |
| | 17615 | cat conftest.err >&5 |
| | 17616 | echo "$as_me:17616: \$? = $ac_status" >&5 |
| | 17617 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| | 17618 | # The compiler can only warn and ignore the option if not recognized |
| | 17619 | # So say no if there are warnings other than the usual output. |
| | 17620 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| | 17621 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| | 17622 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| | 17623 | lt_prog_compiler_pic_works_GCJ=yes |
| | 17624 | fi |
| | 17625 | fi |
| | 17626 | $rm conftest* |
| | 17627 | |
| | 17628 | fi |
| | 17629 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
| | 17630 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
| | 17631 | |
| | 17632 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
| | 17633 | case $lt_prog_compiler_pic_GCJ in |
| | 17634 | "" | " "*) ;; |
| | 17635 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
| | 17636 | esac |
| | 17637 | else |
| | 17638 | lt_prog_compiler_pic_GCJ= |
| | 17639 | lt_prog_compiler_can_build_shared_GCJ=no |
| | 17640 | fi |
| | 17641 | |
| | 17642 | fi |
| | 17643 | case $host_os in |
| | 17644 | # For platforms which do not support PIC, -DPIC is meaningless: |
| | 17645 | *djgpp*) |
| | 17646 | lt_prog_compiler_pic_GCJ= |
| | 17647 | ;; |
| | 17648 | *) |
| | 17649 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
| | 17650 | ;; |
| | 17651 | esac |
| | 17652 | |
| | 17653 | # |
| | 17654 | # Check to make sure the static flag actually works. |
| | 17655 | # |
| | 17656 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
| | 17657 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| | 17658 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| | 17659 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
| | 17660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 17661 | else |
| | 17662 | lt_prog_compiler_static_works_GCJ=no |
| | 17663 | save_LDFLAGS="$LDFLAGS" |
| | 17664 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| | 17665 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| | 17666 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| | 17667 | # The linker can only warn and ignore the option if not recognized |
| | 17668 | # So say no if there are warnings |
| | 17669 | if test -s conftest.err; then |
| | 17670 | # Append any errors to the config.log. |
| | 17671 | cat conftest.err 1>&5 |
| | 17672 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| | 17673 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| | 17674 | if diff conftest.exp conftest.er2 >/dev/null; then |
| | 17675 | lt_prog_compiler_static_works_GCJ=yes |
| | 17676 | fi |
| | 17677 | else |
| | 17678 | lt_prog_compiler_static_works_GCJ=yes |
| | 17679 | fi |
| | 17680 | fi |
| | 17681 | $rm conftest* |
| | 17682 | LDFLAGS="$save_LDFLAGS" |
| | 17683 | |
| | 17684 | fi |
| | 17685 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
| | 17686 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
| | 17687 | |
| | 17688 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
| | 17689 | : |
| | 17690 | else |
| | 17691 | lt_prog_compiler_static_GCJ= |
| | 17692 | fi |
| | 17693 | |
| | 17694 | |
| | 17695 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| | 17696 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| | 17697 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
| | 17698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| | 17699 | else |
| | 17700 | lt_cv_prog_compiler_c_o_GCJ=no |
| | 17701 | $rm -r conftest 2>/dev/null |
| | 17702 | mkdir conftest |
| | 17703 | cd conftest |
| | 17704 | mkdir out |
| | 17705 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| | 17706 | |
| | 17707 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| | 17708 | # Insert the option either (1) after the last *FLAGS variable, or |
| | 17709 | # (2) before a word containing "conftest.", or (3) at the end. |
| | 17710 | # Note that $ac_compile itself does not contain backslashes and begins |
| | 17711 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| | 17712 | lt_compile=`echo "$ac_compile" | $SED \ |
| | 17713 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| | 17714 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| | 17715 | -e 's:$: $lt_compiler_flag:'` |
| | 17716 | (eval echo "\"\$as_me:17716: $lt_compile\"" >&5) |
| | 17717 | (eval "$lt_compile" 2>out/conftest.err) |
| | 17718 | ac_status=$? |
| | 17719 | cat out/conftest.err >&5 |
| | 17720 | echo "$as_me:17720: \$? = $ac_status" >&5 |
| | 17721 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| | 17722 | then |
| | 17723 | # The compiler can only warn and ignore the option if not recognized |
| | 17724 | # So say no if there are warnings |
| | 17725 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| | 17726 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| | 17727 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| | 17728 | lt_cv_prog_compiler_c_o_GCJ=yes |
| | 17729 | fi |
| | 17730 | fi |
| | 17731 | chmod u+w . 2>&5 |
| | 17732 | $rm conftest* |
| | 17733 | # SGI C++ compiler will create directory out/ii_files/ for |
| | 17734 | # template instantiation |
| | 17735 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| | 17736 | $rm out/* && rmdir out |
| | 17737 | cd .. |
| | 17738 | rmdir conftest |
| | 17739 | $rm conftest* |
| | 17740 | |
| | 17741 | fi |
| | 17742 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
| | 17743 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
| | 17744 | |
| | 17745 | |
| | 17746 | hard_links="nottested" |
| | 17747 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
| | 17748 | # do not overwrite the value of need_locks provided by the user |
| | 17749 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| | 17750 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| | 17751 | hard_links=yes |
| | 17752 | $rm conftest* |
| | 17753 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| | 17754 | touch conftest.a |
| | 17755 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| | 17756 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| | 17757 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| | 17758 | echo "${ECHO_T}$hard_links" >&6 |
| | 17759 | if test "$hard_links" = no; then |
| | 17760 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| | 17761 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| | 17762 | need_locks=warn |
| | 17763 | fi |
| | 17764 | else |
| | 17765 | need_locks=no |
| | 17766 | fi |
| | 17767 | |
| | 17768 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| | 17769 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| | 17770 | |
| | 17771 | runpath_var= |
| | 17772 | allow_undefined_flag_GCJ= |
| | 17773 | enable_shared_with_static_runtimes_GCJ=no |
| | 17774 | archive_cmds_GCJ= |
| | 17775 | archive_expsym_cmds_GCJ= |
| | 17776 | old_archive_From_new_cmds_GCJ= |
| | 17777 | old_archive_from_expsyms_cmds_GCJ= |
| | 17778 | export_dynamic_flag_spec_GCJ= |
| | 17779 | whole_archive_flag_spec_GCJ= |
| | 17780 | thread_safe_flag_spec_GCJ= |
| | 17781 | hardcode_libdir_flag_spec_GCJ= |
| | 17782 | hardcode_libdir_flag_spec_ld_GCJ= |
| | 17783 | hardcode_libdir_separator_GCJ= |
| | 17784 | hardcode_direct_GCJ=no |
| | 17785 | hardcode_minus_L_GCJ=no |
| | 17786 | hardcode_shlibpath_var_GCJ=unsupported |
| | 17787 | link_all_deplibs_GCJ=unknown |
| | 17788 | hardcode_automatic_GCJ=no |
| | 17789 | module_cmds_GCJ= |
| | 17790 | module_expsym_cmds_GCJ= |
| | 17791 | always_export_symbols_GCJ=no |
| | 17792 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| | 17793 | # include_expsyms should be a list of space-separated symbols to be *always* |
| | 17794 | # included in the symbol list |
| | 17795 | include_expsyms_GCJ= |
| | 17796 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| | 17797 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| | 17798 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| | 17799 | # as well as any symbol that contains `d'. |
| | 17800 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
| | 17801 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| | 17802 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| | 17803 | # the symbol is explicitly referenced. Since portable code cannot |
| | 17804 | # rely on this symbol name, it's probably fine to never include it in |
| | 17805 | # preloaded symbol tables. |
| | 17806 | extract_expsyms_cmds= |
| | 17807 | # Just being paranoid about ensuring that cc_basename is set. |
| | 17808 | for cc_temp in $compiler""; do |
| | 17809 | case $cc_temp in |
| | 17810 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| | 17811 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| | 17812 | \-*) ;; |
| | 17813 | *) break;; |
| | 17814 | esac |
| | 17815 | done |
| | 17816 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| | 17817 | |
| | 17818 | case $host_os in |
| | 17819 | cygwin* | mingw* | pw32*) |
| | 17820 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| | 17821 | # When not using gcc, we currently assume that we are using |
| | 17822 | # Microsoft Visual C++. |
| | 17823 | if test "$GCC" != yes; then |
| | 17824 | with_gnu_ld=no |
| | 17825 | fi |
| | 17826 | ;; |
| | 17827 | interix*) |
| | 17828 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| | 17829 | with_gnu_ld=yes |
| | 17830 | ;; |
| | 17831 | openbsd*) |
| | 17832 | with_gnu_ld=no |
| | 17833 | ;; |
| | 17834 | esac |
| | 17835 | |
| | 17836 | ld_shlibs_GCJ=yes |
| | 17837 | if test "$with_gnu_ld" = yes; then |
| | 17838 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| | 17839 | wlarc='${wl}' |
| | 17840 | |
| | 17841 | # Set some defaults for GNU ld with shared library support. These |
| | 17842 | # are reset later if shared libraries are not supported. Putting them |
| | 17843 | # here allows them to be overridden if necessary. |
| | 17844 | runpath_var=LD_RUN_PATH |
| | 17845 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
| | 17846 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
| | 17847 | # ancient GNU ld didn't support --whole-archive et. al. |
| | 17848 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| | 17849 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| | 17850 | else |
| | 17851 | whole_archive_flag_spec_GCJ= |
| | 17852 | fi |
| | 17853 | supports_anon_versioning=no |
| | 17854 | case `$LD -v 2>/dev/null` in |
| | 17855 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| | 17856 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| | 17857 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| | 17858 | *\ 2.11.*) ;; # other 2.11 versions |
| | 17859 | *) supports_anon_versioning=yes ;; |
| | 17860 | esac |
| | 17861 | |
| | 17862 | # See if GNU ld supports shared libraries. |
| | 17863 | case $host_os in |
| | 17864 | aix3* | aix4* | aix5*) |
| | 17865 | # On AIX/PPC, the GNU linker is very broken |
| | 17866 | if test "$host_cpu" != ia64; then |
| | 17867 | ld_shlibs_GCJ=no |
| | 17868 | cat <<EOF 1>&2 |
| | 17869 | |
| | 17870 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| | 17871 | *** to be unable to reliably create shared libraries on AIX. |
| | 17872 | *** Therefore, libtool is disabling shared libraries support. If you |
| | 17873 | *** really care for shared libraries, you may want to modify your PATH |
| | 17874 | *** so that a non-GNU linker is found, and then restart. |
| | 17875 | |
| | 17876 | EOF |
| | 17877 | fi |
| | 17878 | ;; |
| | 17879 | |
| | 17880 | amigaos*) |
| | 17881 | 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)' |
| | 17882 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| | 17883 | hardcode_minus_L_GCJ=yes |
| | 17884 | |
| | 17885 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| | 17886 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| | 17887 | # to version 4, is to share data among multiple programs linked |
| | 17888 | # with the same dynamic library. Since this doesn't match the |
| | 17889 | # behavior of shared libraries on other platforms, we can't use |
| | 17890 | # them. |
| | 17891 | ld_shlibs_GCJ=no |
| | 17892 | ;; |
| | 17893 | |
| | 17894 | beos*) |
| | 17895 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 17896 | allow_undefined_flag_GCJ=unsupported |
| | 17897 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| | 17898 | # support --undefined. This deserves some investigation. FIXME |
| | 17899 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 17900 | else |
| | 17901 | ld_shlibs_GCJ=no |
| | 17902 | fi |
| | 17903 | ;; |
| | 17904 | |
| | 17905 | cygwin* | mingw* | pw32*) |
| | 17906 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
| | 17907 | # as there is no search path for DLLs. |
| | 17908 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
| | 17909 | allow_undefined_flag_GCJ=unsupported |
| | 17910 | always_export_symbols_GCJ=no |
| | 17911 | enable_shared_with_static_runtimes_GCJ=yes |
| | 17912 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| | 17913 | |
| | 17914 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| | 17915 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| | 17916 | # If the export-symbols file already is a .def file (1st line |
| | 17917 | # is EXPORTS), use it as is; otherwise, prepend... |
| | 17918 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| | 17919 | cp $export_symbols $output_objdir/$soname.def; |
| | 17920 | else |
| | 17921 | echo EXPORTS > $output_objdir/$soname.def; |
| | 17922 | cat $export_symbols >> $output_objdir/$soname.def; |
| | 17923 | fi~ |
| | 17924 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| | 17925 | else |
| | 17926 | ld_shlibs_GCJ=no |
| | 17927 | fi |
| | 17928 | ;; |
| | 17929 | |
| | 17930 | interix3*) |
| | 17931 | hardcode_direct_GCJ=no |
| | 17932 | hardcode_shlibpath_var_GCJ=no |
| | 17933 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
| | 17934 | export_dynamic_flag_spec_GCJ='${wl}-E' |
| | 17935 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| | 17936 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| | 17937 | # default) and relocated if they conflict, which is a slow very memory |
| | 17938 | # consuming and fragmenting process. To avoid this, we pick a random, |
| | 17939 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| | 17940 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| | 17941 | 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' |
| | 17942 | 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' |
| | 17943 | ;; |
| | 17944 | |
| | 17945 | linux*) |
| | 17946 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | 17947 | tmp_addflag= |
| | 17948 | case $cc_basename,$host_cpu in |
| | 17949 | pgcc*) # Portland Group C compiler |
| | 17950 | 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' |
| | 17951 | tmp_addflag=' $pic_flag' |
| | 17952 | ;; |
| | 17953 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| | 17954 | 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' |
| | 17955 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| | 17956 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| | 17957 | tmp_addflag=' -i_dynamic' ;; |
| | 17958 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| | 17959 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| | 17960 | ifc* | ifort*) # Intel Fortran compiler |
| | 17961 | tmp_addflag=' -nofor_main' ;; |
| | 17962 | esac |
| | 17963 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | 17964 | |
| | 17965 | if test $supports_anon_versioning = yes; then |
| | 17966 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
| | 17967 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| | 17968 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| | 17969 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| | 17970 | fi |
| | 17971 | link_all_deplibs_GCJ=no |
| | 17972 | else |
| | 17973 | ld_shlibs_GCJ=no |
| | <