Mercurial > freewnn
comparison configure @ 23:e1aadb6dcbd4
- fixed the build rule for build_stamp.h. keywords in template for hg tip should surrounded by curly braces instead of hash marks.
- fixed usage of libtool in building jlib.V3. newer libtool does not work without mode specifier.
- replaced some libtool related files. (should remove these?)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 23 Jan 2009 16:36:13 +0900 |
parents | c4b8c1d2b943 |
children |
comparison
equal
deleted
inserted
replaced
22:c966456648ad | 23:e1aadb6dcbd4 |
---|---|
536 | 536 |
537 | 537 |
538 # Check that we are running under the correct shell. | 538 # Check that we are running under the correct shell. |
539 SHELL=${CONFIG_SHELL-/bin/sh} | 539 SHELL=${CONFIG_SHELL-/bin/sh} |
540 | 540 |
541 case X$ECHO in | 541 case X$lt_ECHO in |
542 X*--fallback-echo) | 542 X*--fallback-echo) |
543 # Remove one level of quotation (which was required for Make). | 543 # Remove one level of quotation (which was required for Make). |
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | 544 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
545 ;; | 545 ;; |
546 esac | 546 esac |
547 | 547 |
548 echo=${ECHO-echo} | 548 ECHO=${lt_ECHO-echo} |
549 if test "X$1" = X--no-reexec; then | 549 if test "X$1" = X--no-reexec; then |
550 # Discard the --no-reexec flag, and continue. | 550 # Discard the --no-reexec flag, and continue. |
551 shift | 551 shift |
552 elif test "X$1" = X--fallback-echo; then | 552 elif test "X$1" = X--fallback-echo; then |
553 # Avoid inline document here, it may be left over | 553 # Avoid inline document here, it may be left over |
554 : | 554 : |
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | 555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
556 # Yippee, $echo works! | 556 # Yippee, $ECHO works! |
557 : | 557 : |
558 else | 558 else |
559 # Restart under the correct shell. | 559 # Restart under the correct shell. |
560 exec $SHELL "$0" --no-reexec ${1+"$@"} | 560 exec $SHELL "$0" --no-reexec ${1+"$@"} |
561 fi | 561 fi |
562 | 562 |
563 if test "X$1" = X--fallback-echo; then | 563 if test "X$1" = X--fallback-echo; then |
564 # used as fallback echo | 564 # used as fallback echo |
565 shift | 565 shift |
566 cat <<EOF | 566 cat <<_LT_EOF |
567 $* | 567 $* |
568 EOF | 568 _LT_EOF |
569 exit 0 | 569 exit 0 |
570 fi | 570 fi |
571 | 571 |
572 # The HP-UX ksh and POSIX shell print the target directory to stdout | 572 # The HP-UX ksh and POSIX shell print the target directory to stdout |
573 # if CDPATH is set. | 573 # if CDPATH is set. |
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
575 | 575 |
576 if test -z "$ECHO"; then | 576 if test -z "$lt_ECHO"; then |
577 if test "X${echo_test_string+set}" != Xset; then | 577 if test "X${echo_test_string+set}" != Xset; then |
578 # find a string as large as possible, as long as the shell can cope with it | 578 # find a string as large as possible, as long as the shell can cope with it |
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | 579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | 580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
581 if (echo_test_string=`eval $cmd`) 2>/dev/null && | 581 if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
582 echo_test_string=`eval $cmd` && | 582 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | 583 then |
584 then | 584 break |
585 break | 585 fi |
586 fi | 586 done |
587 done | 587 fi |
588 fi | 588 |
589 | 589 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | 590 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | 591 test "X$echo_testing_string" = "X$echo_test_string"; then |
592 test "X$echo_testing_string" = "X$echo_test_string"; then | 592 : |
593 : | 593 else |
594 else | 594 # The Solaris, AIX, and Digital Unix default echo programs unquote |
595 # The Solaris, AIX, and Digital Unix default echo programs unquote | 595 # backslashes. This makes it impossible to quote backslashes using |
596 # backslashes. This makes it impossible to quote backslashes using | 596 # echo "$something" | sed 's/\\/\\\\/g' |
597 # echo "$something" | sed 's/\\/\\\\/g' | 597 # |
598 # | 598 # So, first we look for a working echo in the user's PATH. |
599 # So, first we look for a working echo in the user's PATH. | 599 |
600 | 600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 601 for dir in $PATH /usr/ucb; do |
602 for dir in $PATH /usr/ucb; do | 602 IFS="$lt_save_ifs" |
603 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
604 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
605 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
606 test "X$echo_testing_string" = "X$echo_test_string"; then | |
607 ECHO="$dir/echo" | |
608 break | |
609 fi | |
610 done | |
603 IFS="$lt_save_ifs" | 611 IFS="$lt_save_ifs" |
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | 612 |
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | 613 if test "X$ECHO" = Xecho; then |
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | 614 # We didn't find a better echo, so look for alternatives. |
607 test "X$echo_testing_string" = "X$echo_test_string"; then | 615 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
608 echo="$dir/echo" | 616 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
609 break | 617 test "X$echo_testing_string" = "X$echo_test_string"; then |
610 fi | 618 # This shell has a builtin print -r that does the trick. |
611 done | 619 ECHO='print -r' |
612 IFS="$lt_save_ifs" | 620 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
613 | 621 test "X$CONFIG_SHELL" != X/bin/ksh; then |
614 if test "X$echo" = Xecho; then | 622 # If we have ksh, try running configure again with it. |
615 # We didn't find a better echo, so look for alternatives. | 623 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | 624 export ORIGINAL_CONFIG_SHELL |
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | 625 CONFIG_SHELL=/bin/ksh |
618 test "X$echo_testing_string" = "X$echo_test_string"; then | 626 export CONFIG_SHELL |
619 # This shell has a builtin print -r that does the trick. | 627 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
620 echo='print -r' | 628 else |
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | 629 # Try using printf. |
622 test "X$CONFIG_SHELL" != X/bin/ksh; then | 630 ECHO='printf %s\n' |
623 # If we have ksh, try running configure again with it. | 631 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | 632 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
625 export ORIGINAL_CONFIG_SHELL | |
626 CONFIG_SHELL=/bin/ksh | |
627 export CONFIG_SHELL | |
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
629 else | |
630 # Try using printf. | |
631 echo='printf %s\n' | |
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
634 test "X$echo_testing_string" = "X$echo_test_string"; then | |
635 # Cool, printf works | |
636 : | |
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
638 test "X$echo_testing_string" = 'X\t' && | |
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
640 test "X$echo_testing_string" = "X$echo_test_string"; then | 633 test "X$echo_testing_string" = "X$echo_test_string"; then |
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | 634 # Cool, printf works |
642 export CONFIG_SHELL | 635 : |
643 SHELL="$CONFIG_SHELL" | 636 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
644 export SHELL | 637 test "X$echo_testing_string" = 'X\t' && |
645 echo="$CONFIG_SHELL $0 --fallback-echo" | 638 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | 639 test "X$echo_testing_string" = "X$echo_test_string"; then |
647 test "X$echo_testing_string" = 'X\t' && | 640 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | 641 export CONFIG_SHELL |
649 test "X$echo_testing_string" = "X$echo_test_string"; then | 642 SHELL="$CONFIG_SHELL" |
650 echo="$CONFIG_SHELL $0 --fallback-echo" | 643 export SHELL |
651 else | 644 ECHO="$CONFIG_SHELL $0 --fallback-echo" |
652 # maybe with a smaller string... | 645 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
653 prev=: | 646 test "X$echo_testing_string" = 'X\t' && |
654 | 647 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | 648 test "X$echo_testing_string" = "X$echo_test_string"; then |
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | 649 ECHO="$CONFIG_SHELL $0 --fallback-echo" |
657 then | 650 else |
658 break | 651 # maybe with a smaller string... |
652 prev=: | |
653 | |
654 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
655 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
656 then | |
657 break | |
658 fi | |
659 prev="$cmd" | |
660 done | |
661 | |
662 if test "$prev" != 'sed 50q "$0"'; then | |
663 echo_test_string=`eval $prev` | |
664 export echo_test_string | |
665 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
666 else | |
667 # Oops. We lost completely, so just stick with echo. | |
668 ECHO=echo | |
659 fi | 669 fi |
660 prev="$cmd" | 670 fi |
661 done | |
662 | |
663 if test "$prev" != 'sed 50q "$0"'; then | |
664 echo_test_string=`eval $prev` | |
665 export echo_test_string | |
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
667 else | |
668 # Oops. We lost completely, so just stick with echo. | |
669 echo=echo | |
670 fi | |
671 fi | 671 fi |
672 fi | 672 fi |
673 fi | 673 fi |
674 fi | 674 fi |
675 fi | |
676 | 675 |
677 # Copy echo and quote the copy suitably for passing to libtool from | 676 # Copy echo and quote the copy suitably for passing to libtool from |
678 # the Makefile, instead of quoting the original, which is used later. | 677 # the Makefile, instead of quoting the original, which is used later. |
679 ECHO=$echo | 678 lt_ECHO=$ECHO |
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | 679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | 680 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
682 fi | 681 fi |
683 | 682 |
684 | 683 |
685 | 684 |
686 | |
687 tagnames=${tagnames+${tagnames},}CXX | |
688 | |
689 tagnames=${tagnames+${tagnames},}F77 | |
690 | 685 |
691 exec 7<&0 </dev/null 6>&1 | 686 exec 7<&0 </dev/null 6>&1 |
692 | 687 |
693 # Name of the host. | 688 # Name of the host. |
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | 689 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
829 INSTALL_PROGRAM | 824 INSTALL_PROGRAM |
830 INSTALL_SCRIPT | 825 INSTALL_SCRIPT |
831 INSTALL_DATA | 826 INSTALL_DATA |
832 LN_S | 827 LN_S |
833 SET_MAKE | 828 SET_MAKE |
829 LIBTOOL | |
830 SED | |
834 GREP | 831 GREP |
835 EGREP | 832 EGREP |
836 ECHO | 833 FGREP |
834 LD | |
835 DUMPBIN | |
836 ac_ct_DUMPBIN | |
837 NM | |
838 OBJDUMP | |
837 AR | 839 AR |
840 STRIP | |
838 RANLIB | 841 RANLIB |
839 STRIP | 842 lt_ECHO |
840 CXX | 843 DSYMUTIL |
841 CXXFLAGS | 844 NMEDIT |
842 ac_ct_CXX | 845 LIPO |
843 CXXCPP | 846 OTOOL |
844 F77 | 847 OTOOL64 |
845 FFLAGS | |
846 ac_ct_F77 | |
847 LIBTOOL | |
848 LIBTOOL_DEPS | 848 LIBTOOL_DEPS |
849 XMKMF | 849 XMKMF |
850 TERMLIB | 850 TERMLIB |
851 CNVFILE_SUBDIR | 851 CNVFILE_SUBDIR |
852 LIBOBJS | 852 LIBOBJS |
860 CC | 860 CC |
861 CFLAGS | 861 CFLAGS |
862 LDFLAGS | 862 LDFLAGS |
863 CPPFLAGS | 863 CPPFLAGS |
864 CPP | 864 CPP |
865 CXX | |
866 CXXFLAGS | |
867 CCC | |
868 CXXCPP | |
869 F77 | |
870 FFLAGS | |
871 XMKMF' | 865 XMKMF' |
872 | 866 |
873 | 867 |
874 # Initialize some variables set by options. | 868 # Initialize some variables set by options. |
875 ac_init_help= | 869 ac_init_help= |
1471 --with-cwnn-includes=DIR CWNN include files are in DIR | 1465 --with-cwnn-includes=DIR CWNN include files are in DIR |
1472 --with-cwnn-libraries=DIR Search for CWNN libraries in DIR [default=/usr/local/lib] | 1466 --with-cwnn-libraries=DIR Search for CWNN libraries in DIR [default=/usr/local/lib] |
1473 --with-libkwnn use installed kWnn library [default=no] | 1467 --with-libkwnn use installed kWnn library [default=no] |
1474 --with-kwnn-includes=DIR KWNN include files are in DIR | 1468 --with-kwnn-includes=DIR KWNN include files are in DIR |
1475 --with-kwnn-libraries=DIR Search for KWNN libraries in DIR [default=/usr/local/lib] | 1469 --with-kwnn-libraries=DIR Search for KWNN libraries in DIR [default=/usr/local/lib] |
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1477 --with-pic try to use only PIC/non-PIC objects [default=use | 1470 --with-pic try to use only PIC/non-PIC objects [default=use |
1478 both] | 1471 both] |
1479 --with-tags[=TAGS] include additional configurations [automatic] | 1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1480 --with-x use the X Window System | 1473 --with-x use the X Window System |
1481 --with-term-libs=-lLIB terminal library to be used | 1474 --with-term-libs=-lLIB terminal library to be used |
1482 --with-libwrap[=DIR] Compile in libwrap (tcp_wrappers) support [default=try to find libwrap] | 1475 --with-libwrap[=DIR] Compile in libwrap (tcp_wrappers) support [default=try to find libwrap] |
1483 | 1476 |
1484 Some influential environment variables: | 1477 Some influential environment variables: |
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | 1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1488 nonstandard directory <lib dir> | 1481 nonstandard directory <lib dir> |
1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | 1482 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1490 you have headers in a nonstandard directory <include dir> | 1483 you have headers in a nonstandard directory <include dir> |
1491 CPP C preprocessor | 1484 CPP C preprocessor |
1492 CXX C++ compiler command | |
1493 CXXFLAGS C++ compiler flags | |
1494 CXXCPP C++ preprocessor | |
1495 F77 Fortran 77 compiler command | |
1496 FFLAGS Fortran 77 compiler flags | |
1497 XMKMF Path to xmkmf, Makefile generator for X Window System | 1485 XMKMF Path to xmkmf, Makefile generator for X Window System |
1498 | 1486 |
1499 Use these variables to override the choices made by `configure' or to help | 1487 Use these variables to override the choices made by `configure' or to help |
1500 it to find libraries and programs with nonstandard names/locations. | 1488 it to find libraries and programs with nonstandard names/locations. |
1501 | 1489 |
3797 { echo "$as_me:$LINENO: result: no" >&5 | 3785 { echo "$as_me:$LINENO: result: no" >&5 |
3798 echo "${ECHO_T}no" >&6; } | 3786 echo "${ECHO_T}no" >&6; } |
3799 SET_MAKE="MAKE=${MAKE-make}" | 3787 SET_MAKE="MAKE=${MAKE-make}" |
3800 fi | 3788 fi |
3801 | 3789 |
3802 # Check whether --enable-shared was given. | 3790 case `pwd` in |
3803 if test "${enable_shared+set}" = set; then | 3791 *\ * | *\ *) |
3804 enableval=$enable_shared; p=${PACKAGE-default} | 3792 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
3805 case $enableval in | 3793 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
3806 yes) enable_shared=yes ;; | 3794 esac |
3807 no) enable_shared=no ;; | 3795 |
3808 *) | 3796 |
3809 enable_shared=no | 3797 |
3810 # Look at the argument we got. We use all the common list separators. | 3798 macro_version='2.2.6' |
3811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 3799 macro_revision='1.3012' |
3812 for pkg in $enableval; do | 3800 |
3813 IFS="$lt_save_ifs" | 3801 |
3814 if test "X$pkg" = "X$p"; then | 3802 |
3815 enable_shared=yes | 3803 |
3816 fi | 3804 |
3817 done | 3805 |
3818 IFS="$lt_save_ifs" | 3806 |
3819 ;; | 3807 |
3820 esac | 3808 |
3821 else | 3809 |
3822 enable_shared=yes | 3810 |
3823 fi | 3811 |
3824 | 3812 |
3825 | 3813 ltmain="$ac_aux_dir/ltmain.sh" |
3826 # Check whether --enable-static was given. | |
3827 if test "${enable_static+set}" = set; then | |
3828 enableval=$enable_static; p=${PACKAGE-default} | |
3829 case $enableval in | |
3830 yes) enable_static=yes ;; | |
3831 no) enable_static=no ;; | |
3832 *) | |
3833 enable_static=no | |
3834 # Look at the argument we got. We use all the common list separators. | |
3835 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3836 for pkg in $enableval; do | |
3837 IFS="$lt_save_ifs" | |
3838 if test "X$pkg" = "X$p"; then | |
3839 enable_static=yes | |
3840 fi | |
3841 done | |
3842 IFS="$lt_save_ifs" | |
3843 ;; | |
3844 esac | |
3845 else | |
3846 enable_static=yes | |
3847 fi | |
3848 | |
3849 | |
3850 # Check whether --enable-fast-install was given. | |
3851 if test "${enable_fast_install+set}" = set; then | |
3852 enableval=$enable_fast_install; p=${PACKAGE-default} | |
3853 case $enableval in | |
3854 yes) enable_fast_install=yes ;; | |
3855 no) enable_fast_install=no ;; | |
3856 *) | |
3857 enable_fast_install=no | |
3858 # Look at the argument we got. We use all the common list separators. | |
3859 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3860 for pkg in $enableval; do | |
3861 IFS="$lt_save_ifs" | |
3862 if test "X$pkg" = "X$p"; then | |
3863 enable_fast_install=yes | |
3864 fi | |
3865 done | |
3866 IFS="$lt_save_ifs" | |
3867 ;; | |
3868 esac | |
3869 else | |
3870 enable_fast_install=yes | |
3871 fi | |
3872 | |
3873 | 3814 |
3874 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | 3815 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3875 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | 3816 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
3876 if test "${lt_cv_path_SED+set}" = set; then | 3817 if test "${ac_cv_path_SED+set}" = set; then |
3877 echo $ECHO_N "(cached) $ECHO_C" >&6 | 3818 echo $ECHO_N "(cached) $ECHO_C" >&6 |
3878 else | 3819 else |
3879 # Loop through the user's path and test for sed and gsed. | 3820 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
3880 # Then use that list of sed's as ones to test for truncation. | 3821 for ac_i in 1 2 3 4 5 6 7; do |
3822 ac_script="$ac_script$as_nl$ac_script" | |
3823 done | |
3824 echo "$ac_script" | sed 99q >conftest.sed | |
3825 $as_unset ac_script || ac_script= | |
3826 # Extract the first word of "sed gsed" to use in msg output | |
3827 if test -z "$SED"; then | |
3828 set dummy sed gsed; ac_prog_name=$2 | |
3829 if test "${ac_cv_path_SED+set}" = set; then | |
3830 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3831 else | |
3832 ac_path_SED_found=false | |
3833 # Loop through the user's path and test for each of PROGNAME-LIST | |
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3882 for as_dir in $PATH | 3835 for as_dir in $PATH |
3883 do | 3836 do |
3884 IFS=$as_save_IFS | 3837 IFS=$as_save_IFS |
3885 test -z "$as_dir" && as_dir=. | 3838 test -z "$as_dir" && as_dir=. |
3886 for lt_ac_prog in sed gsed; do | 3839 for ac_prog in sed gsed; do |
3887 for ac_exec_ext in '' $ac_executable_extensions; do | 3840 for ac_exec_ext in '' $ac_executable_extensions; do |
3888 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | 3841 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
3889 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | 3842 { test -f "$ac_path_SED" && $as_executable_p "$ac_path_SED"; } || continue |
3890 fi | 3843 # Check for GNU ac_path_SED and select it if it is found. |
3891 done | 3844 # Check for GNU $ac_path_SED |
3845 case `"$ac_path_SED" --version 2>&1` in | |
3846 *GNU*) | |
3847 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3848 *) | |
3849 ac_count=0 | |
3850 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
3851 while : | |
3852 do | |
3853 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3854 mv "conftest.tmp" "conftest.in" | |
3855 cp "conftest.in" "conftest.nl" | |
3856 echo '' >> "conftest.nl" | |
3857 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3858 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3859 ac_count=`expr $ac_count + 1` | |
3860 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3861 # Best one so far, save it but keep looking for a better one | |
3862 ac_cv_path_SED="$ac_path_SED" | |
3863 ac_path_SED_max=$ac_count | |
3864 fi | |
3865 # 10*(2^10) chars as input seems more than enough | |
3866 test $ac_count -gt 10 && break | |
3867 done | |
3868 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3869 esac | |
3870 | |
3871 | |
3872 $ac_path_SED_found && break 3 | |
3892 done | 3873 done |
3893 done | 3874 done |
3894 lt_ac_max=0 | 3875 |
3895 lt_ac_count=0 | |
3896 # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
3897 # along with /bin/sed that truncates output. | |
3898 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
3899 test ! -f $lt_ac_sed && continue | |
3900 cat /dev/null > conftest.in | |
3901 lt_ac_count=0 | |
3902 echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
3903 # Check for GNU sed and select it if it is found. | |
3904 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
3905 lt_cv_path_SED=$lt_ac_sed | |
3906 break | |
3907 fi | |
3908 while true; do | |
3909 cat conftest.in conftest.in >conftest.tmp | |
3910 mv conftest.tmp conftest.in | |
3911 cp conftest.in conftest.nl | |
3912 echo >>conftest.nl | |
3913 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
3914 cmp -s conftest.out conftest.nl || break | |
3915 # 10000 chars as input seems more than enough | |
3916 test $lt_ac_count -gt 10 && break | |
3917 lt_ac_count=`expr $lt_ac_count + 1` | |
3918 if test $lt_ac_count -gt $lt_ac_max; then | |
3919 lt_ac_max=$lt_ac_count | |
3920 lt_cv_path_SED=$lt_ac_sed | |
3921 fi | |
3922 done | |
3923 done | 3876 done |
3924 | 3877 IFS=$as_save_IFS |
3925 fi | 3878 |
3926 | 3879 |
3927 SED=$lt_cv_path_SED | 3880 fi |
3928 { echo "$as_me:$LINENO: result: $SED" >&5 | 3881 |
3929 echo "${ECHO_T}$SED" >&6; } | 3882 SED="$ac_cv_path_SED" |
3883 if test -z "$SED"; then | |
3884 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 | |
3885 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} | |
3886 { (exit 1); exit 1; }; } | |
3887 fi | |
3888 | |
3889 else | |
3890 ac_cv_path_SED=$SED | |
3891 fi | |
3892 | |
3893 fi | |
3894 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 | |
3895 echo "${ECHO_T}$ac_cv_path_SED" >&6; } | |
3896 SED="$ac_cv_path_SED" | |
3897 rm -f conftest.sed | |
3898 | |
3899 test -z "$SED" && SED=sed | |
3900 Xsed="$SED -e 1s/^X//" | |
3901 | |
3902 | |
3903 | |
3904 | |
3905 | |
3906 | |
3907 | |
3908 | |
3909 | |
3910 | |
3930 | 3911 |
3931 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | 3912 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3932 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | 3913 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3933 if test "${ac_cv_path_GREP+set}" = set; then | 3914 if test "${ac_cv_path_GREP+set}" = set; then |
3934 echo $ECHO_N "(cached) $ECHO_C" >&6 | 3915 echo $ECHO_N "(cached) $ECHO_C" >&6 |
4088 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | 4069 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4089 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | 4070 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4090 EGREP="$ac_cv_path_EGREP" | 4071 EGREP="$ac_cv_path_EGREP" |
4091 | 4072 |
4092 | 4073 |
4074 { echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4075 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } | |
4076 if test "${ac_cv_path_FGREP+set}" = set; then | |
4077 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4078 else | |
4079 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4080 then ac_cv_path_FGREP="$GREP -F" | |
4081 else | |
4082 # Extract the first word of "fgrep" to use in msg output | |
4083 if test -z "$FGREP"; then | |
4084 set dummy fgrep; ac_prog_name=$2 | |
4085 if test "${ac_cv_path_FGREP+set}" = set; then | |
4086 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4087 else | |
4088 ac_path_FGREP_found=false | |
4089 # Loop through the user's path and test for each of PROGNAME-LIST | |
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4092 do | |
4093 IFS=$as_save_IFS | |
4094 test -z "$as_dir" && as_dir=. | |
4095 for ac_prog in fgrep; do | |
4096 for ac_exec_ext in '' $ac_executable_extensions; do | |
4097 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4098 { test -f "$ac_path_FGREP" && $as_executable_p "$ac_path_FGREP"; } || continue | |
4099 # Check for GNU ac_path_FGREP and select it if it is found. | |
4100 # Check for GNU $ac_path_FGREP | |
4101 case `"$ac_path_FGREP" --version 2>&1` in | |
4102 *GNU*) | |
4103 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4104 *) | |
4105 ac_count=0 | |
4106 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4107 while : | |
4108 do | |
4109 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4110 mv "conftest.tmp" "conftest.in" | |
4111 cp "conftest.in" "conftest.nl" | |
4112 echo 'FGREP' >> "conftest.nl" | |
4113 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4115 ac_count=`expr $ac_count + 1` | |
4116 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4117 # Best one so far, save it but keep looking for a better one | |
4118 ac_cv_path_FGREP="$ac_path_FGREP" | |
4119 ac_path_FGREP_max=$ac_count | |
4120 fi | |
4121 # 10*(2^10) chars as input seems more than enough | |
4122 test $ac_count -gt 10 && break | |
4123 done | |
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4125 esac | |
4126 | |
4127 | |
4128 $ac_path_FGREP_found && break 3 | |
4129 done | |
4130 done | |
4131 | |
4132 done | |
4133 IFS=$as_save_IFS | |
4134 | |
4135 | |
4136 fi | |
4137 | |
4138 FGREP="$ac_cv_path_FGREP" | |
4139 if test -z "$FGREP"; then | |
4140 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4141 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4142 { (exit 1); exit 1; }; } | |
4143 fi | |
4144 | |
4145 else | |
4146 ac_cv_path_FGREP=$FGREP | |
4147 fi | |
4148 | |
4149 | |
4150 fi | |
4151 fi | |
4152 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 | |
4153 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } | |
4154 FGREP="$ac_cv_path_FGREP" | |
4155 | |
4156 | |
4157 test -z "$GREP" && GREP=grep | |
4158 | |
4159 | |
4160 | |
4161 | |
4162 | |
4163 | |
4164 | |
4165 | |
4166 | |
4167 | |
4168 | |
4169 | |
4170 | |
4171 | |
4172 | |
4173 | |
4174 | |
4175 | |
4093 | 4176 |
4094 # Check whether --with-gnu-ld was given. | 4177 # Check whether --with-gnu-ld was given. |
4095 if test "${with_gnu_ld+set}" = set; then | 4178 if test "${with_gnu_ld+set}" = set; then |
4096 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | 4179 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
4097 else | 4180 else |
4113 case $ac_prog in | 4196 case $ac_prog in |
4114 # Accept absolute paths. | 4197 # Accept absolute paths. |
4115 [\\/]* | ?:[\\/]*) | 4198 [\\/]* | ?:[\\/]*) |
4116 re_direlt='/[^/][^/]*/\.\./' | 4199 re_direlt='/[^/][^/]*/\.\./' |
4117 # Canonicalize the pathname of ld | 4200 # Canonicalize the pathname of ld |
4118 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | 4201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4119 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 4202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
4120 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | 4203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
4121 done | 4204 done |
4122 test -z "$LD" && LD="$ac_prog" | 4205 test -z "$LD" && LD="$ac_prog" |
4123 ;; | 4206 ;; |
4124 "") | 4207 "") |
4125 # If it fails, then pretend we aren't using GCC. | 4208 # If it fails, then pretend we aren't using GCC. |
4195 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | 4278 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4196 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | 4279 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
4197 with_gnu_ld=$lt_cv_prog_gnu_ld | 4280 with_gnu_ld=$lt_cv_prog_gnu_ld |
4198 | 4281 |
4199 | 4282 |
4200 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | 4283 |
4201 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | 4284 |
4202 if test "${lt_cv_ld_reload_flag+set}" = set; then | 4285 |
4203 echo $ECHO_N "(cached) $ECHO_C" >&6 | 4286 |
4204 else | 4287 |
4205 lt_cv_ld_reload_flag='-r' | 4288 |
4206 fi | 4289 |
4207 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | 4290 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4208 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | 4291 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } |
4209 reload_flag=$lt_cv_ld_reload_flag | |
4210 case $reload_flag in | |
4211 "" | " "*) ;; | |
4212 *) reload_flag=" $reload_flag" ;; | |
4213 esac | |
4214 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4215 case $host_os in | |
4216 darwin*) | |
4217 if test "$GCC" = yes; then | |
4218 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4219 else | |
4220 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4221 fi | |
4222 ;; | |
4223 esac | |
4224 | |
4225 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
4226 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | |
4227 if test "${lt_cv_path_NM+set}" = set; then | 4292 if test "${lt_cv_path_NM+set}" = set; then |
4228 echo $ECHO_N "(cached) $ECHO_C" >&6 | 4293 echo $ECHO_N "(cached) $ECHO_C" >&6 |
4229 else | 4294 else |
4230 if test -n "$NM"; then | 4295 if test -n "$NM"; then |
4231 # Let the user override the test. | 4296 # Let the user override the test. |
4266 esac | 4331 esac |
4267 fi | 4332 fi |
4268 done | 4333 done |
4269 IFS="$lt_save_ifs" | 4334 IFS="$lt_save_ifs" |
4270 done | 4335 done |
4271 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 4336 : ${lt_cv_path_NM=no} |
4272 fi | 4337 fi |
4273 fi | 4338 fi |
4274 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | 4339 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4275 echo "${ECHO_T}$lt_cv_path_NM" >&6; } | 4340 echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
4276 NM="$lt_cv_path_NM" | 4341 if test "$lt_cv_path_NM" != "no"; then |
4277 | 4342 NM="$lt_cv_path_NM" |
4278 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | 4343 else |
4279 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } | 4344 # Didn't find any BSD compatible name lister, look for dumpbin. |
4345 if test -n "$ac_tool_prefix"; then | |
4346 for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4347 do | |
4348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4350 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4352 if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
4353 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4354 else | |
4355 if test -n "$DUMPBIN"; then | |
4356 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4357 else | |
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4359 for as_dir in $PATH | |
4360 do | |
4361 IFS=$as_save_IFS | |
4362 test -z "$as_dir" && as_dir=. | |
4363 for ac_exec_ext in '' $ac_executable_extensions; do | |
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4365 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4367 break 2 | |
4368 fi | |
4369 done | |
4370 done | |
4371 IFS=$as_save_IFS | |
4372 | |
4373 fi | |
4374 fi | |
4375 DUMPBIN=$ac_cv_prog_DUMPBIN | |
4376 if test -n "$DUMPBIN"; then | |
4377 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4378 echo "${ECHO_T}$DUMPBIN" >&6; } | |
4379 else | |
4380 { echo "$as_me:$LINENO: result: no" >&5 | |
4381 echo "${ECHO_T}no" >&6; } | |
4382 fi | |
4383 | |
4384 | |
4385 test -n "$DUMPBIN" && break | |
4386 done | |
4387 fi | |
4388 if test -z "$DUMPBIN"; then | |
4389 ac_ct_DUMPBIN=$DUMPBIN | |
4390 for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4391 do | |
4392 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4393 set dummy $ac_prog; ac_word=$2 | |
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4396 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4397 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4398 else | |
4399 if test -n "$ac_ct_DUMPBIN"; then | |
4400 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4401 else | |
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4403 for as_dir in $PATH | |
4404 do | |
4405 IFS=$as_save_IFS | |
4406 test -z "$as_dir" && as_dir=. | |
4407 for ac_exec_ext in '' $ac_executable_extensions; do | |
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4409 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4411 break 2 | |
4412 fi | |
4413 done | |
4414 done | |
4415 IFS=$as_save_IFS | |
4416 | |
4417 fi | |
4418 fi | |
4419 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4420 if test -n "$ac_ct_DUMPBIN"; then | |
4421 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4422 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } | |
4423 else | |
4424 { echo "$as_me:$LINENO: result: no" >&5 | |
4425 echo "${ECHO_T}no" >&6; } | |
4426 fi | |
4427 | |
4428 | |
4429 test -n "$ac_ct_DUMPBIN" && break | |
4430 done | |
4431 | |
4432 if test "x$ac_ct_DUMPBIN" = x; then | |
4433 DUMPBIN=":" | |
4434 else | |
4435 case $cross_compiling:$ac_tool_warned in | |
4436 yes:) | |
4437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4438 whose name does not start with the host triplet. If you think this | |
4439 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4441 whose name does not start with the host triplet. If you think this | |
4442 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4443 ac_tool_warned=yes ;; | |
4444 esac | |
4445 DUMPBIN=$ac_ct_DUMPBIN | |
4446 fi | |
4447 fi | |
4448 | |
4449 | |
4450 if test "$DUMPBIN" != ":"; then | |
4451 NM="$DUMPBIN" | |
4452 fi | |
4453 fi | |
4454 test -z "$NM" && NM=nm | |
4455 | |
4456 | |
4457 | |
4458 | |
4459 | |
4460 | |
4461 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 | |
4462 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } | |
4463 if test "${lt_cv_nm_interface+set}" = set; then | |
4464 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4465 else | |
4466 lt_cv_nm_interface="BSD nm" | |
4467 echo "int some_variable = 0;" > conftest.$ac_ext | |
4468 (eval echo "\"\$as_me:4468: $ac_compile\"" >&5) | |
4469 (eval "$ac_compile" 2>conftest.err) | |
4470 cat conftest.err >&5 | |
4471 (eval echo "\"\$as_me:4471: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
4472 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4473 cat conftest.err >&5 | |
4474 (eval echo "\"\$as_me:4474: output\"" >&5) | |
4475 cat conftest.out >&5 | |
4476 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4477 lt_cv_nm_interface="MS dumpbin" | |
4478 fi | |
4479 rm -f conftest* | |
4480 fi | |
4481 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 | |
4482 echo "${ECHO_T}$lt_cv_nm_interface" >&6; } | |
4483 | |
4484 # find the maximum length of command line arguments | |
4485 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4486 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | |
4487 if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4488 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4489 else | |
4490 i=0 | |
4491 teststring="ABCD" | |
4492 | |
4493 case $build_os in | |
4494 msdosdjgpp*) | |
4495 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4496 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4497 # during glob expansion). Even if it were fixed, the result of this | |
4498 # check would be larger than it should be. | |
4499 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4500 ;; | |
4501 | |
4502 gnu*) | |
4503 # Under GNU Hurd, this test is not required because there is | |
4504 # no limit to the length of command line arguments. | |
4505 # Libtool will interpret -1 as no limit whatsoever | |
4506 lt_cv_sys_max_cmd_len=-1; | |
4507 ;; | |
4508 | |
4509 cygwin* | mingw* | cegcc*) | |
4510 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4511 # about 5 minutes as the teststring grows exponentially. | |
4512 # Worse, since 9x/ME are not pre-emptively multitasking, | |
4513 # you end up with a "frozen" computer, even though with patience | |
4514 # the test eventually succeeds (with a max line length of 256k). | |
4515 # Instead, let's just punt: use the minimum linelength reported by | |
4516 # all of the supported platforms: 8192 (on NT/2K/XP). | |
4517 lt_cv_sys_max_cmd_len=8192; | |
4518 ;; | |
4519 | |
4520 amigaos*) | |
4521 # On AmigaOS with pdksh, this test takes hours, literally. | |
4522 # So we just punt and use a minimum line length of 8192. | |
4523 lt_cv_sys_max_cmd_len=8192; | |
4524 ;; | |
4525 | |
4526 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4527 # This has been around since 386BSD, at least. Likely further. | |
4528 if test -x /sbin/sysctl; then | |
4529 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4530 elif test -x /usr/sbin/sysctl; then | |
4531 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4532 else | |
4533 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4534 fi | |
4535 # And add a safety zone | |
4536 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4538 ;; | |
4539 | |
4540 interix*) | |
4541 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4542 lt_cv_sys_max_cmd_len=196608 | |
4543 ;; | |
4544 | |
4545 osf*) | |
4546 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4547 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4548 # nice to cause kernel panics so lets avoid the loop below. | |
4549 # First set a reasonable default. | |
4550 lt_cv_sys_max_cmd_len=16384 | |
4551 # | |
4552 if test -x /sbin/sysconfig; then | |
4553 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4554 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4555 esac | |
4556 fi | |
4557 ;; | |
4558 sco3.2v5*) | |
4559 lt_cv_sys_max_cmd_len=102400 | |
4560 ;; | |
4561 sysv5* | sco5v6* | sysv4.2uw2*) | |
4562 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4563 if test -n "$kargmax"; then | |
4564 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4565 else | |
4566 lt_cv_sys_max_cmd_len=32768 | |
4567 fi | |
4568 ;; | |
4569 *) | |
4570 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4571 if test -n "$lt_cv_sys_max_cmd_len"; then | |
4572 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4574 else | |
4575 # Make teststring a little bigger before we do anything with it. | |
4576 # a 1K string should be a reasonable start. | |
4577 for i in 1 2 3 4 5 6 7 8 ; do | |
4578 teststring=$teststring$teststring | |
4579 done | |
4580 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4581 # If test is not a shell built-in, we'll probably end up computing a | |
4582 # maximum length that is only half of the actual maximum length, but | |
4583 # we can't tell. | |
4584 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4585 = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4586 test $i != 17 # 1/2 MB should be enough | |
4587 do | |
4588 i=`expr $i + 1` | |
4589 teststring=$teststring$teststring | |
4590 done | |
4591 # Only check the string length outside the loop. | |
4592 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4593 teststring= | |
4594 # Add a significant safety factor because C++ compilers can tack on | |
4595 # massive amounts of additional arguments before passing them to the | |
4596 # linker. It appears as though 1/2 is a usable value. | |
4597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4598 fi | |
4599 ;; | |
4600 esac | |
4601 | |
4602 fi | |
4603 | |
4604 if test -n $lt_cv_sys_max_cmd_len ; then | |
4605 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
4606 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | |
4607 else | |
4608 { echo "$as_me:$LINENO: result: none" >&5 | |
4609 echo "${ECHO_T}none" >&6; } | |
4610 fi | |
4611 max_cmd_len=$lt_cv_sys_max_cmd_len | |
4612 | |
4613 | |
4614 | |
4615 | |
4616 | |
4617 | |
4618 : ${CP="cp -f"} | |
4619 : ${MV="mv -f"} | |
4620 : ${RM="rm -f"} | |
4621 | |
4622 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4623 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } | |
4624 # Try some XSI features | |
4625 xsi_shell=no | |
4626 ( _lt_dummy="a/b/c" | |
4627 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4628 = c,a/b,, \ | |
4629 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
4630 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4631 && xsi_shell=yes | |
4632 { echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4633 echo "${ECHO_T}$xsi_shell" >&6; } | |
4634 | |
4635 | |
4636 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4637 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } | |
4638 lt_shell_append=no | |
4639 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4640 >/dev/null 2>&1 \ | |
4641 && lt_shell_append=yes | |
4642 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4643 echo "${ECHO_T}$lt_shell_append" >&6; } | |
4644 | |
4645 | |
4646 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4647 lt_unset=unset | |
4648 else | |
4649 lt_unset=false | |
4650 fi | |
4651 | |
4652 | |
4653 | |
4654 | |
4655 | |
4656 # test EBCDIC or ASCII | |
4657 case `echo X|tr X '\101'` in | |
4658 A) # ASCII based system | |
4659 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4660 lt_SP2NL='tr \040 \012' | |
4661 lt_NL2SP='tr \015\012 \040\040' | |
4662 ;; | |
4663 *) # EBCDIC based system | |
4664 lt_SP2NL='tr \100 \n' | |
4665 lt_NL2SP='tr \r\n \100\100' | |
4666 ;; | |
4667 esac | |
4668 | |
4669 | |
4670 | |
4671 | |
4672 | |
4673 | |
4674 | |
4675 | |
4676 | |
4677 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4678 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | |
4679 if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4680 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4681 else | |
4682 lt_cv_ld_reload_flag='-r' | |
4683 fi | |
4684 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4685 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | |
4686 reload_flag=$lt_cv_ld_reload_flag | |
4687 case $reload_flag in | |
4688 "" | " "*) ;; | |
4689 *) reload_flag=" $reload_flag" ;; | |
4690 esac | |
4691 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4692 case $host_os in | |
4693 darwin*) | |
4694 if test "$GCC" = yes; then | |
4695 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4696 else | |
4697 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4698 fi | |
4699 ;; | |
4700 esac | |
4701 | |
4702 | |
4703 | |
4704 | |
4705 | |
4706 | |
4707 | |
4708 | |
4709 | |
4710 if test -n "$ac_tool_prefix"; then | |
4711 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4712 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4713 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4715 if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
4716 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4717 else | |
4718 if test -n "$OBJDUMP"; then | |
4719 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4720 else | |
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4722 for as_dir in $PATH | |
4723 do | |
4724 IFS=$as_save_IFS | |
4725 test -z "$as_dir" && as_dir=. | |
4726 for ac_exec_ext in '' $ac_executable_extensions; do | |
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4728 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4730 break 2 | |
4731 fi | |
4732 done | |
4733 done | |
4734 IFS=$as_save_IFS | |
4735 | |
4736 fi | |
4737 fi | |
4738 OBJDUMP=$ac_cv_prog_OBJDUMP | |
4739 if test -n "$OBJDUMP"; then | |
4740 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
4741 echo "${ECHO_T}$OBJDUMP" >&6; } | |
4742 else | |
4743 { echo "$as_me:$LINENO: result: no" >&5 | |
4744 echo "${ECHO_T}no" >&6; } | |
4745 fi | |
4746 | |
4747 | |
4748 fi | |
4749 if test -z "$ac_cv_prog_OBJDUMP"; then | |
4750 ac_ct_OBJDUMP=$OBJDUMP | |
4751 # Extract the first word of "objdump", so it can be a program name with args. | |
4752 set dummy objdump; ac_word=$2 | |
4753 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4755 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
4756 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4757 else | |
4758 if test -n "$ac_ct_OBJDUMP"; then | |
4759 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4760 else | |
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4762 for as_dir in $PATH | |
4763 do | |
4764 IFS=$as_save_IFS | |
4765 test -z "$as_dir" && as_dir=. | |
4766 for ac_exec_ext in '' $ac_executable_extensions; do | |
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4768 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4770 break 2 | |
4771 fi | |
4772 done | |
4773 done | |
4774 IFS=$as_save_IFS | |
4775 | |
4776 fi | |
4777 fi | |
4778 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4779 if test -n "$ac_ct_OBJDUMP"; then | |
4780 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
4781 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } | |
4782 else | |
4783 { echo "$as_me:$LINENO: result: no" >&5 | |
4784 echo "${ECHO_T}no" >&6; } | |
4785 fi | |
4786 | |
4787 if test "x$ac_ct_OBJDUMP" = x; then | |
4788 OBJDUMP="false" | |
4789 else | |
4790 case $cross_compiling:$ac_tool_warned in | |
4791 yes:) | |
4792 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4793 whose name does not start with the host triplet. If you think this | |
4794 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4795 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4796 whose name does not start with the host triplet. If you think this | |
4797 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4798 ac_tool_warned=yes ;; | |
4799 esac | |
4800 OBJDUMP=$ac_ct_OBJDUMP | |
4801 fi | |
4802 else | |
4803 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4804 fi | |
4805 | |
4806 test -z "$OBJDUMP" && OBJDUMP=objdump | |
4807 | |
4808 | |
4809 | |
4810 | |
4811 | |
4812 | |
4813 | |
4814 | |
4815 | |
4816 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4817 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } | |
4280 if test "${lt_cv_deplibs_check_method+set}" = set; then | 4818 if test "${lt_cv_deplibs_check_method+set}" = set; then |
4281 echo $ECHO_N "(cached) $ECHO_C" >&6 | 4819 echo $ECHO_N "(cached) $ECHO_C" >&6 |
4282 else | 4820 else |
4283 lt_cv_file_magic_cmd='$MAGIC_CMD' | 4821 lt_cv_file_magic_cmd='$MAGIC_CMD' |
4284 lt_cv_file_magic_test_file= | 4822 lt_cv_file_magic_test_file= |
4293 # which responds to the $file_magic_cmd with a given extended regex. | 4831 # which responds to the $file_magic_cmd with a given extended regex. |
4294 # If you have `file' or equivalent on your system and you're not sure | 4832 # If you have `file' or equivalent on your system and you're not sure |
4295 # whether `pass_all' will *always* work, you probably want this one. | 4833 # whether `pass_all' will *always* work, you probably want this one. |
4296 | 4834 |
4297 case $host_os in | 4835 case $host_os in |
4298 aix4* | aix5*) | 4836 aix[4-9]*) |
4299 lt_cv_deplibs_check_method=pass_all | 4837 lt_cv_deplibs_check_method=pass_all |
4300 ;; | 4838 ;; |
4301 | 4839 |
4302 beos*) | 4840 beos*) |
4303 lt_cv_deplibs_check_method=pass_all | 4841 lt_cv_deplibs_check_method=pass_all |
4315 lt_cv_file_magic_cmd='func_win32_libid' | 4853 lt_cv_file_magic_cmd='func_win32_libid' |
4316 ;; | 4854 ;; |
4317 | 4855 |
4318 mingw* | pw32*) | 4856 mingw* | pw32*) |
4319 # Base MSYS/MinGW do not provide the 'file' command needed by | 4857 # Base MSYS/MinGW do not provide the 'file' command needed by |
4320 # func_win32_libid shell function, so use a weaker test based on 'objdump'. | 4858 # func_win32_libid shell function, so use a weaker test based on 'objdump', |
4321 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | 4859 # unless we find 'file', for example because we are cross-compiling. |
4860 if ( file / ) >/dev/null 2>&1; then | |
4861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4862 lt_cv_file_magic_cmd='func_win32_libid' | |
4863 else | |
4864 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4865 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4866 fi | |
4867 ;; | |
4868 | |
4869 cegcc) | |
4870 # use the weaker test based on 'objdump'. See mingw*. | |
4871 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4322 lt_cv_file_magic_cmd='$OBJDUMP -f' | 4872 lt_cv_file_magic_cmd='$OBJDUMP -f' |
4323 ;; | 4873 ;; |
4324 | 4874 |
4325 darwin* | rhapsody*) | 4875 darwin* | rhapsody*) |
4326 lt_cv_deplibs_check_method=pass_all | 4876 lt_cv_deplibs_check_method=pass_all |
4327 ;; | 4877 ;; |
4328 | 4878 |
4329 freebsd* | kfreebsd*-gnu | dragonfly*) | 4879 freebsd* | dragonfly*) |
4330 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 4880 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
4331 case $host_cpu in | 4881 case $host_cpu in |
4332 i*86 ) | 4882 i*86 ) |
4333 # Not sure whether the presence of OpenBSD here was a mistake. | 4883 # Not sure whether the presence of OpenBSD here was a mistake. |
4334 # Let's accept both of them until this is cleared up. | 4884 # Let's accept both of them until this is cleared up. |
4335 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | 4885 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4362 lt_cv_file_magic_test_file=/usr/lib/libc.sl | 4912 lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4363 ;; | 4913 ;; |
4364 esac | 4914 esac |
4365 ;; | 4915 ;; |
4366 | 4916 |
4367 interix3*) | 4917 interix[3-9]*) |
4368 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | 4918 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | 4919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4370 ;; | 4920 ;; |
4371 | 4921 |
4372 irix5* | irix6* | nonstopux*) | 4922 irix5* | irix6* | nonstopux*) |
4378 esac | 4928 esac |
4379 lt_cv_deplibs_check_method=pass_all | 4929 lt_cv_deplibs_check_method=pass_all |
4380 ;; | 4930 ;; |
4381 | 4931 |
4382 # This must be Linux ELF. | 4932 # This must be Linux ELF. |
4383 linux*) | 4933 linux* | k*bsd*-gnu) |
4384 lt_cv_deplibs_check_method=pass_all | 4934 lt_cv_deplibs_check_method=pass_all |
4385 ;; | 4935 ;; |
4386 | 4936 |
4387 netbsd*) | 4937 netbsd*) |
4388 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | 4938 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
4389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 4939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4390 else | 4940 else |
4391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 4941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4392 fi | 4942 fi |
4393 ;; | 4943 ;; |
4396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 4946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4397 lt_cv_file_magic_cmd=/usr/bin/file | 4947 lt_cv_file_magic_cmd=/usr/bin/file |
4398 lt_cv_file_magic_test_file=/usr/lib/libnls.so | 4948 lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4399 ;; | 4949 ;; |
4400 | 4950 |
4401 nto-qnx*) | 4951 *nto* | *qnx*) |
4402 lt_cv_deplibs_check_method=unknown | 4952 lt_cv_deplibs_check_method=pass_all |
4403 ;; | 4953 ;; |
4404 | 4954 |
4405 openbsd*) | 4955 openbsd*) |
4406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 4956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | 4957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4408 else | 4958 else |
4409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 4959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4410 fi | 4960 fi |
4411 ;; | 4961 ;; |
4412 | 4962 |
4413 osf3* | osf4* | osf5*) | 4963 osf3* | osf4* | osf5*) |
4414 lt_cv_deplibs_check_method=pass_all | 4964 lt_cv_deplibs_check_method=pass_all |
4415 ;; | 4965 ;; |
4416 | 4966 |
4967 rdos*) | |
4968 lt_cv_deplibs_check_method=pass_all | |
4969 ;; | |
4970 | |
4417 solaris*) | 4971 solaris*) |
4972 lt_cv_deplibs_check_method=pass_all | |
4973 ;; | |
4974 | |
4975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4418 lt_cv_deplibs_check_method=pass_all | 4976 lt_cv_deplibs_check_method=pass_all |
4419 ;; | 4977 ;; |
4420 | 4978 |
4421 sysv4 | sysv4.3*) | 4979 sysv4 | sysv4.3*) |
4422 case $host_vendor in | 4980 case $host_vendor in |
4443 lt_cv_deplibs_check_method=pass_all | 5001 lt_cv_deplibs_check_method=pass_all |
4444 ;; | 5002 ;; |
4445 esac | 5003 esac |
4446 ;; | 5004 ;; |
4447 | 5005 |
4448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 5006 tpf*) |
4449 lt_cv_deplibs_check_method=pass_all | 5007 lt_cv_deplibs_check_method=pass_all |
4450 ;; | 5008 ;; |
4451 esac | 5009 esac |
4452 | 5010 |
4453 fi | 5011 fi |
4458 test -z "$deplibs_check_method" && deplibs_check_method=unknown | 5016 test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4459 | 5017 |
4460 | 5018 |
4461 | 5019 |
4462 | 5020 |
4463 # If no C compiler was specified, use CC. | 5021 |
4464 LTCC=${LTCC-"$CC"} | 5022 |
4465 | 5023 |
4466 # If no C compiler flags were specified, use CFLAGS. | 5024 |
4467 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 5025 |
4468 | 5026 |
4469 # Allow CC to be a program name with arguments. | 5027 |
4470 compiler=$CC | 5028 |
4471 | 5029 if test -n "$ac_tool_prefix"; then |
4472 | 5030 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
4473 # Check whether --enable-libtool-lock was given. | 5031 set dummy ${ac_tool_prefix}ar; ac_word=$2 |
4474 if test "${enable_libtool_lock+set}" = set; then | |
4475 enableval=$enable_libtool_lock; | |
4476 fi | |
4477 | |
4478 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
4479 | |
4480 # Some flags need to be propagated to the compiler or linker for good | |
4481 # libtool support. | |
4482 case $host in | |
4483 ia64-*-hpux*) | |
4484 # Find out which ABI we are using. | |
4485 echo 'int i;' > conftest.$ac_ext | |
4486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4487 (eval $ac_compile) 2>&5 | |
4488 ac_status=$? | |
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4490 (exit $ac_status); }; then | |
4491 case `/usr/bin/file conftest.$ac_objext` in | |
4492 *ELF-32*) | |
4493 HPUX_IA64_MODE="32" | |
4494 ;; | |
4495 *ELF-64*) | |
4496 HPUX_IA64_MODE="64" | |
4497 ;; | |
4498 esac | |
4499 fi | |
4500 rm -rf conftest* | |
4501 ;; | |
4502 *-*-irix6*) | |
4503 # Find out which ABI we are using. | |
4504 echo '#line 4504 "configure"' > conftest.$ac_ext | |
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4506 (eval $ac_compile) 2>&5 | |
4507 ac_status=$? | |
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4509 (exit $ac_status); }; then | |
4510 if test "$lt_cv_prog_gnu_ld" = yes; then | |
4511 case `/usr/bin/file conftest.$ac_objext` in | |
4512 *32-bit*) | |
4513 LD="${LD-ld} -melf32bsmip" | |
4514 ;; | |
4515 *N32*) | |
4516 LD="${LD-ld} -melf32bmipn32" | |
4517 ;; | |
4518 *64-bit*) | |
4519 LD="${LD-ld} -melf64bmip" | |
4520 ;; | |
4521 esac | |
4522 else | |
4523 case `/usr/bin/file conftest.$ac_objext` in | |
4524 *32-bit*) | |
4525 LD="${LD-ld} -32" | |
4526 ;; | |
4527 *N32*) | |
4528 LD="${LD-ld} -n32" | |
4529 ;; | |
4530 *64-bit*) | |
4531 LD="${LD-ld} -64" | |
4532 ;; | |
4533 esac | |
4534 fi | |
4535 fi | |
4536 rm -rf conftest* | |
4537 ;; | |
4538 | |
4539 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
4540 # Find out which ABI we are using. | |
4541 echo 'int i;' > conftest.$ac_ext | |
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4543 (eval $ac_compile) 2>&5 | |
4544 ac_status=$? | |
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4546 (exit $ac_status); }; then | |
4547 case `/usr/bin/file conftest.o` in | |
4548 *32-bit*) | |
4549 case $host in | |
4550 x86_64-*linux*) | |
4551 LD="${LD-ld} -m elf_i386" | |
4552 ;; | |
4553 ppc64-*linux*|powerpc64-*linux*) | |
4554 LD="${LD-ld} -m elf32ppclinux" | |
4555 ;; | |
4556 s390x-*linux*) | |
4557 LD="${LD-ld} -m elf_s390" | |
4558 ;; | |
4559 sparc64-*linux*) | |
4560 LD="${LD-ld} -m elf32_sparc" | |
4561 ;; | |
4562 esac | |
4563 ;; | |
4564 *64-bit*) | |
4565 case $host in | |
4566 x86_64-*linux*) | |
4567 LD="${LD-ld} -m elf_x86_64" | |
4568 ;; | |
4569 ppc*-*linux*|powerpc*-*linux*) | |
4570 LD="${LD-ld} -m elf64ppc" | |
4571 ;; | |
4572 s390*-*linux*) | |
4573 LD="${LD-ld} -m elf64_s390" | |
4574 ;; | |
4575 sparc*-*linux*) | |
4576 LD="${LD-ld} -m elf64_sparc" | |
4577 ;; | |
4578 esac | |
4579 ;; | |
4580 esac | |
4581 fi | |
4582 rm -rf conftest* | |
4583 ;; | |
4584 | |
4585 *-*-sco3.2v5*) | |
4586 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4587 SAVE_CFLAGS="$CFLAGS" | |
4588 CFLAGS="$CFLAGS -belf" | |
4589 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4590 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | |
4591 if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4592 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4593 else | |
4594 ac_ext=c | |
4595 ac_cpp='$CPP $CPPFLAGS' | |
4596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4598 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4599 | |
4600 cat >conftest.$ac_ext <<_ACEOF | |
4601 /* confdefs.h. */ | |
4602 _ACEOF | |
4603 cat confdefs.h >>conftest.$ac_ext | |
4604 cat >>conftest.$ac_ext <<_ACEOF | |
4605 /* end confdefs.h. */ | |
4606 | |
4607 int | |
4608 main () | |
4609 { | |
4610 | |
4611 ; | |
4612 return 0; | |
4613 } | |
4614 _ACEOF | |
4615 rm -f conftest.$ac_objext conftest$ac_exeext | |
4616 if { (ac_try="$ac_link" | |
4617 case "(($ac_try" in | |
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4619 *) ac_try_echo=$ac_try;; | |
4620 esac | |
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4622 (eval "$ac_link") 2>conftest.er1 | |
4623 ac_status=$? | |
4624 grep -v '^ *+' conftest.er1 >conftest.err | |
4625 rm -f conftest.er1 | |
4626 cat conftest.err >&5 | |
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4628 (exit $ac_status); } && | |
4629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4630 { (case "(($ac_try" in | |
4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4632 *) ac_try_echo=$ac_try;; | |
4633 esac | |
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4635 (eval "$ac_try") 2>&5 | |
4636 ac_status=$? | |
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4638 (exit $ac_status); }; } && | |
4639 { ac_try='test -s conftest$ac_exeext' | |
4640 { (case "(($ac_try" in | |
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4642 *) ac_try_echo=$ac_try;; | |
4643 esac | |
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4645 (eval "$ac_try") 2>&5 | |
4646 ac_status=$? | |
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4648 (exit $ac_status); }; }; then | |
4649 lt_cv_cc_needs_belf=yes | |
4650 else | |
4651 echo "$as_me: failed program was:" >&5 | |
4652 sed 's/^/| /' conftest.$ac_ext >&5 | |
4653 | |
4654 lt_cv_cc_needs_belf=no | |
4655 fi | |
4656 | |
4657 rm -f core conftest.err conftest.$ac_objext \ | |
4658 conftest$ac_exeext conftest.$ac_ext | |
4659 ac_ext=c | |
4660 ac_cpp='$CPP $CPPFLAGS' | |
4661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4663 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4664 | |
4665 fi | |
4666 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4667 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | |
4668 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4669 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4670 CFLAGS="$SAVE_CFLAGS" | |
4671 fi | |
4672 ;; | |
4673 sparc*-*solaris*) | |
4674 # Find out which ABI we are using. | |
4675 echo 'int i;' > conftest.$ac_ext | |
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4677 (eval $ac_compile) 2>&5 | |
4678 ac_status=$? | |
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4680 (exit $ac_status); }; then | |
4681 case `/usr/bin/file conftest.o` in | |
4682 *64-bit*) | |
4683 case $lt_cv_prog_gnu_ld in | |
4684 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
4685 *) LD="${LD-ld} -64" ;; | |
4686 esac | |
4687 ;; | |
4688 esac | |
4689 fi | |
4690 rm -rf conftest* | |
4691 ;; | |
4692 | |
4693 | |
4694 esac | |
4695 | |
4696 need_locks="$enable_libtool_lock" | |
4697 | |
4698 | |
4699 | |
4700 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4701 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
4702 if test "${ac_cv_header_stdc+set}" = set; then | |
4703 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4704 else | |
4705 cat >conftest.$ac_ext <<_ACEOF | |
4706 /* confdefs.h. */ | |
4707 _ACEOF | |
4708 cat confdefs.h >>conftest.$ac_ext | |
4709 cat >>conftest.$ac_ext <<_ACEOF | |
4710 /* end confdefs.h. */ | |
4711 #include <stdlib.h> | |
4712 #include <stdarg.h> | |
4713 #include <string.h> | |
4714 #include <float.h> | |
4715 | |
4716 int | |
4717 main () | |
4718 { | |
4719 | |
4720 ; | |
4721 return 0; | |
4722 } | |
4723 _ACEOF | |
4724 rm -f conftest.$ac_objext | |
4725 if { (ac_try="$ac_compile" | |
4726 case "(($ac_try" in | |
4727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4728 *) ac_try_echo=$ac_try;; | |
4729 esac | |
4730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4731 (eval "$ac_compile") 2>conftest.er1 | |
4732 ac_status=$? | |
4733 grep -v '^ *+' conftest.er1 >conftest.err | |
4734 rm -f conftest.er1 | |
4735 cat conftest.err >&5 | |
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4737 (exit $ac_status); } && | |
4738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4739 { (case "(($ac_try" in | |
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4741 *) ac_try_echo=$ac_try;; | |
4742 esac | |
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4744 (eval "$ac_try") 2>&5 | |
4745 ac_status=$? | |
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4747 (exit $ac_status); }; } && | |
4748 { ac_try='test -s conftest.$ac_objext' | |
4749 { (case "(($ac_try" in | |
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4751 *) ac_try_echo=$ac_try;; | |
4752 esac | |
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4754 (eval "$ac_try") 2>&5 | |
4755 ac_status=$? | |
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4757 (exit $ac_status); }; }; then | |
4758 ac_cv_header_stdc=yes | |
4759 else | |
4760 echo "$as_me: failed program was:" >&5 | |
4761 sed 's/^/| /' conftest.$ac_ext >&5 | |
4762 | |
4763 ac_cv_header_stdc=no | |
4764 fi | |
4765 | |
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4767 | |
4768 if test $ac_cv_header_stdc = yes; then | |
4769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4770 cat >conftest.$ac_ext <<_ACEOF | |
4771 /* confdefs.h. */ | |
4772 _ACEOF | |
4773 cat confdefs.h >>conftest.$ac_ext | |
4774 cat >>conftest.$ac_ext <<_ACEOF | |
4775 /* end confdefs.h. */ | |
4776 #include <string.h> | |
4777 | |
4778 _ACEOF | |
4779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4780 $EGREP "memchr" >/dev/null 2>&1; then | |
4781 : | |
4782 else | |
4783 ac_cv_header_stdc=no | |
4784 fi | |
4785 rm -f conftest* | |
4786 | |
4787 fi | |
4788 | |
4789 if test $ac_cv_header_stdc = yes; then | |
4790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4791 cat >conftest.$ac_ext <<_ACEOF | |
4792 /* confdefs.h. */ | |
4793 _ACEOF | |
4794 cat confdefs.h >>conftest.$ac_ext | |
4795 cat >>conftest.$ac_ext <<_ACEOF | |
4796 /* end confdefs.h. */ | |
4797 #include <stdlib.h> | |
4798 | |
4799 _ACEOF | |
4800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4801 $EGREP "free" >/dev/null 2>&1; then | |
4802 : | |
4803 else | |
4804 ac_cv_header_stdc=no | |
4805 fi | |
4806 rm -f conftest* | |
4807 | |
4808 fi | |
4809 | |
4810 if test $ac_cv_header_stdc = yes; then | |
4811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4812 if test "$cross_compiling" = yes; then | |
4813 : | |
4814 else | |
4815 cat >conftest.$ac_ext <<_ACEOF | |
4816 /* confdefs.h. */ | |
4817 _ACEOF | |
4818 cat confdefs.h >>conftest.$ac_ext | |
4819 cat >>conftest.$ac_ext <<_ACEOF | |
4820 /* end confdefs.h. */ | |
4821 #include <ctype.h> | |
4822 #include <stdlib.h> | |
4823 #if ((' ' & 0x0FF) == 0x020) | |
4824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4826 #else | |
4827 # define ISLOWER(c) \ | |
4828 (('a' <= (c) && (c) <= 'i') \ | |
4829 || ('j' <= (c) && (c) <= 'r') \ | |
4830 || ('s' <= (c) && (c) <= 'z')) | |
4831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4832 #endif | |
4833 | |
4834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4835 int | |
4836 main () | |
4837 { | |
4838 int i; | |
4839 for (i = 0; i < 256; i++) | |
4840 if (XOR (islower (i), ISLOWER (i)) | |
4841 || toupper (i) != TOUPPER (i)) | |
4842 return 2; | |
4843 return 0; | |
4844 } | |
4845 _ACEOF | |
4846 rm -f conftest$ac_exeext | |
4847 if { (ac_try="$ac_link" | |
4848 case "(($ac_try" in | |
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4850 *) ac_try_echo=$ac_try;; | |
4851 esac | |
4852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4853 (eval "$ac_link") 2>&5 | |
4854 ac_status=$? | |
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4857 { (case "(($ac_try" in | |
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4859 *) ac_try_echo=$ac_try;; | |
4860 esac | |
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4862 (eval "$ac_try") 2>&5 | |
4863 ac_status=$? | |
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4865 (exit $ac_status); }; }; then | |
4866 : | |
4867 else | |
4868 echo "$as_me: program exited with status $ac_status" >&5 | |
4869 echo "$as_me: failed program was:" >&5 | |
4870 sed 's/^/| /' conftest.$ac_ext >&5 | |
4871 | |
4872 ( exit $ac_status ) | |
4873 ac_cv_header_stdc=no | |
4874 fi | |
4875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4876 fi | |
4877 | |
4878 | |
4879 fi | |
4880 fi | |
4881 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4882 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
4883 if test $ac_cv_header_stdc = yes; then | |
4884 | |
4885 cat >>confdefs.h <<\_ACEOF | |
4886 #define STDC_HEADERS 1 | |
4887 _ACEOF | |
4888 | |
4889 fi | |
4890 | |
4891 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4892 | |
4893 | |
4894 | |
4895 | |
4896 | |
4897 | |
4898 | |
4899 | |
4900 | |
4901 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4902 inttypes.h stdint.h unistd.h | |
4903 do | |
4904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4905 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4908 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4909 else | |
4910 cat >conftest.$ac_ext <<_ACEOF | |
4911 /* confdefs.h. */ | |
4912 _ACEOF | |
4913 cat confdefs.h >>conftest.$ac_ext | |
4914 cat >>conftest.$ac_ext <<_ACEOF | |
4915 /* end confdefs.h. */ | |
4916 $ac_includes_default | |
4917 | |
4918 #include <$ac_header> | |
4919 _ACEOF | |
4920 rm -f conftest.$ac_objext | |
4921 if { (ac_try="$ac_compile" | |
4922 case "(($ac_try" in | |
4923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4924 *) ac_try_echo=$ac_try;; | |
4925 esac | |
4926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4927 (eval "$ac_compile") 2>conftest.er1 | |
4928 ac_status=$? | |
4929 grep -v '^ *+' conftest.er1 >conftest.err | |
4930 rm -f conftest.er1 | |
4931 cat conftest.err >&5 | |
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4933 (exit $ac_status); } && | |
4934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4935 { (case "(($ac_try" in | |
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4937 *) ac_try_echo=$ac_try;; | |
4938 esac | |
4939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4940 (eval "$ac_try") 2>&5 | |
4941 ac_status=$? | |
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4943 (exit $ac_status); }; } && | |
4944 { ac_try='test -s conftest.$ac_objext' | |
4945 { (case "(($ac_try" in | |
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4947 *) ac_try_echo=$ac_try;; | |
4948 esac | |
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4950 (eval "$ac_try") 2>&5 | |
4951 ac_status=$? | |
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4953 (exit $ac_status); }; }; then | |
4954 eval "$as_ac_Header=yes" | |
4955 else | |
4956 echo "$as_me: failed program was:" >&5 | |
4957 sed 's/^/| /' conftest.$ac_ext >&5 | |
4958 | |
4959 eval "$as_ac_Header=no" | |
4960 fi | |
4961 | |
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4963 fi | |
4964 ac_res=`eval echo '${'$as_ac_Header'}'` | |
4965 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4966 echo "${ECHO_T}$ac_res" >&6; } | |
4967 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4968 cat >>confdefs.h <<_ACEOF | |
4969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4970 _ACEOF | |
4971 | |
4972 fi | |
4973 | |
4974 done | |
4975 | |
4976 | |
4977 | |
4978 for ac_header in dlfcn.h | |
4979 do | |
4980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4982 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4985 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4986 fi | |
4987 ac_res=`eval echo '${'$as_ac_Header'}'` | |
4988 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4989 echo "${ECHO_T}$ac_res" >&6; } | |
4990 else | |
4991 # Is the header compilable? | |
4992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
4994 cat >conftest.$ac_ext <<_ACEOF | |
4995 /* confdefs.h. */ | |
4996 _ACEOF | |
4997 cat confdefs.h >>conftest.$ac_ext | |
4998 cat >>conftest.$ac_ext <<_ACEOF | |
4999 /* end confdefs.h. */ | |
5000 $ac_includes_default | |
5001 #include <$ac_header> | |
5002 _ACEOF | |
5003 rm -f conftest.$ac_objext | |
5004 if { (ac_try="$ac_compile" | |
5005 case "(($ac_try" in | |
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5007 *) ac_try_echo=$ac_try;; | |
5008 esac | |
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5010 (eval "$ac_compile") 2>conftest.er1 | |
5011 ac_status=$? | |
5012 grep -v '^ *+' conftest.er1 >conftest.err | |
5013 rm -f conftest.er1 | |
5014 cat conftest.err >&5 | |
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5016 (exit $ac_status); } && | |
5017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5018 { (case "(($ac_try" in | |
5019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5020 *) ac_try_echo=$ac_try;; | |
5021 esac | |
5022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5023 (eval "$ac_try") 2>&5 | |
5024 ac_status=$? | |
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5026 (exit $ac_status); }; } && | |
5027 { ac_try='test -s conftest.$ac_objext' | |
5028 { (case "(($ac_try" in | |
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5030 *) ac_try_echo=$ac_try;; | |
5031 esac | |
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5033 (eval "$ac_try") 2>&5 | |
5034 ac_status=$? | |
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5036 (exit $ac_status); }; }; then | |
5037 ac_header_compiler=yes | |
5038 else | |
5039 echo "$as_me: failed program was:" >&5 | |
5040 sed 's/^/| /' conftest.$ac_ext >&5 | |
5041 | |
5042 ac_header_compiler=no | |
5043 fi | |
5044 | |
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5047 echo "${ECHO_T}$ac_header_compiler" >&6; } | |
5048 | |
5049 # Is the header present? | |
5050 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
5052 cat >conftest.$ac_ext <<_ACEOF | |
5053 /* confdefs.h. */ | |
5054 _ACEOF | |
5055 cat confdefs.h >>conftest.$ac_ext | |
5056 cat >>conftest.$ac_ext <<_ACEOF | |
5057 /* end confdefs.h. */ | |
5058 #include <$ac_header> | |
5059 _ACEOF | |
5060 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5061 case "(($ac_try" in | |
5062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5063 *) ac_try_echo=$ac_try;; | |
5064 esac | |
5065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5067 ac_status=$? | |
5068 grep -v '^ *+' conftest.er1 >conftest.err | |
5069 rm -f conftest.er1 | |
5070 cat conftest.err >&5 | |
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5072 (exit $ac_status); } >/dev/null; then | |
5073 if test -s conftest.err; then | |
5074 ac_cpp_err=$ac_c_preproc_warn_flag | |
5075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5076 else | |
5077 ac_cpp_err= | |
5078 fi | |
5079 else | |
5080 ac_cpp_err=yes | |
5081 fi | |
5082 if test -z "$ac_cpp_err"; then | |
5083 ac_header_preproc=yes | |
5084 else | |
5085 echo "$as_me: failed program was:" >&5 | |
5086 sed 's/^/| /' conftest.$ac_ext >&5 | |
5087 | |
5088 ac_header_preproc=no | |
5089 fi | |
5090 | |
5091 rm -f conftest.err conftest.$ac_ext | |
5092 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5093 echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5094 | |
5095 # So? What about this header? | |
5096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5097 yes:no: ) | |
5098 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5102 ac_header_preproc=yes | |
5103 ;; | |
5104 no:yes:* ) | |
5105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5109 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5111 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5112 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5113 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5115 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5117 | |
5118 ;; | |
5119 esac | |
5120 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5123 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5124 else | |
5125 eval "$as_ac_Header=\$ac_header_preproc" | |
5126 fi | |
5127 ac_res=`eval echo '${'$as_ac_Header'}'` | |
5128 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5129 echo "${ECHO_T}$ac_res" >&6; } | |
5130 | |
5131 fi | |
5132 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5133 cat >>confdefs.h <<_ACEOF | |
5134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5135 _ACEOF | |
5136 | |
5137 fi | |
5138 | |
5139 done | |
5140 | |
5141 ac_ext=cpp | |
5142 ac_cpp='$CXXCPP $CPPFLAGS' | |
5143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5146 if test -z "$CXX"; then | |
5147 if test -n "$CCC"; then | |
5148 CXX=$CCC | |
5149 else | |
5150 if test -n "$ac_tool_prefix"; then | |
5151 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5152 do | |
5153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5155 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5157 if test "${ac_cv_prog_CXX+set}" = set; then | 5034 if test "${ac_cv_prog_AR+set}" = set; then |
5158 echo $ECHO_N "(cached) $ECHO_C" >&6 | 5035 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5159 else | 5036 else |
5160 if test -n "$CXX"; then | 5037 if test -n "$AR"; then |
5161 ac_cv_prog_CXX="$CXX" # Let the user override the test. | 5038 ac_cv_prog_AR="$AR" # Let the user override the test. |
5162 else | 5039 else |
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5164 for as_dir in $PATH | 5041 for as_dir in $PATH |
5165 do | 5042 do |
5166 IFS=$as_save_IFS | 5043 IFS=$as_save_IFS |
5167 test -z "$as_dir" && as_dir=. | 5044 test -z "$as_dir" && as_dir=. |
5168 for ac_exec_ext in '' $ac_executable_extensions; do | 5045 for ac_exec_ext in '' $ac_executable_extensions; do |
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
5170 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 5047 ac_cv_prog_AR="${ac_tool_prefix}ar" |
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5172 break 2 | 5049 break 2 |
5173 fi | 5050 fi |
5174 done | 5051 done |
5175 done | 5052 done |
5176 IFS=$as_save_IFS | 5053 IFS=$as_save_IFS |
5177 | 5054 |
5178 fi | 5055 fi |
5179 fi | 5056 fi |
5180 CXX=$ac_cv_prog_CXX | 5057 AR=$ac_cv_prog_AR |
5181 if test -n "$CXX"; then | 5058 if test -n "$AR"; then |
5182 { echo "$as_me:$LINENO: result: $CXX" >&5 | 5059 { echo "$as_me:$LINENO: result: $AR" >&5 |
5183 echo "${ECHO_T}$CXX" >&6; } | 5060 echo "${ECHO_T}$AR" >&6; } |
5184 else | 5061 else |
5185 { echo "$as_me:$LINENO: result: no" >&5 | 5062 { echo "$as_me:$LINENO: result: no" >&5 |
5186 echo "${ECHO_T}no" >&6; } | 5063 echo "${ECHO_T}no" >&6; } |
5187 fi | 5064 fi |
5188 | 5065 |
5189 | 5066 |
5190 test -n "$CXX" && break | 5067 fi |
5191 done | 5068 if test -z "$ac_cv_prog_AR"; then |
5192 fi | 5069 ac_ct_AR=$AR |
5193 if test -z "$CXX"; then | 5070 # Extract the first word of "ar", so it can be a program name with args. |
5194 ac_ct_CXX=$CXX | 5071 set dummy ar; ac_word=$2 |
5195 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
5196 do | |
5197 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5198 set dummy $ac_prog; ac_word=$2 | |
5199 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5072 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 5073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5201 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | 5074 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
5202 echo $ECHO_N "(cached) $ECHO_C" >&6 | 5075 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5203 else | 5076 else |
5204 if test -n "$ac_ct_CXX"; then | 5077 if test -n "$ac_ct_AR"; then |
5205 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 5078 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
5206 else | 5079 else |
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5208 for as_dir in $PATH | 5081 for as_dir in $PATH |
5209 do | 5082 do |
5210 IFS=$as_save_IFS | 5083 IFS=$as_save_IFS |
5211 test -z "$as_dir" && as_dir=. | 5084 test -z "$as_dir" && as_dir=. |
5212 for ac_exec_ext in '' $ac_executable_extensions; do | 5085 for ac_exec_ext in '' $ac_executable_extensions; do |
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
5214 ac_cv_prog_ac_ct_CXX="$ac_prog" | 5087 ac_cv_prog_ac_ct_AR="ar" |
5215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5216 break 2 | 5089 break 2 |
5217 fi | 5090 fi |
5218 done | 5091 done |
5219 done | 5092 done |
5220 IFS=$as_save_IFS | 5093 IFS=$as_save_IFS |
5221 | 5094 |
5222 fi | 5095 fi |
5223 fi | 5096 fi |
5224 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 5097 ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5225 if test -n "$ac_ct_CXX"; then | 5098 if test -n "$ac_ct_AR"; then |
5226 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | 5099 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
5227 echo "${ECHO_T}$ac_ct_CXX" >&6; } | 5100 echo "${ECHO_T}$ac_ct_AR" >&6; } |
5228 else | 5101 else |
5229 { echo "$as_me:$LINENO: result: no" >&5 | 5102 { echo "$as_me:$LINENO: result: no" >&5 |
5230 echo "${ECHO_T}no" >&6; } | 5103 echo "${ECHO_T}no" >&6; } |
5231 fi | 5104 fi |
5232 | 5105 |
5233 | 5106 if test "x$ac_ct_AR" = x; then |
5234 test -n "$ac_ct_CXX" && break | 5107 AR="false" |
5235 done | |
5236 | |
5237 if test "x$ac_ct_CXX" = x; then | |
5238 CXX="g++" | |
5239 else | 5108 else |
5240 case $cross_compiling:$ac_tool_warned in | 5109 case $cross_compiling:$ac_tool_warned in |
5241 yes:) | 5110 yes:) |
5242 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 5111 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5243 whose name does not start with the host triplet. If you think this | 5112 whose name does not start with the host triplet. If you think this |
5245 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 5114 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5246 whose name does not start with the host triplet. If you think this | 5115 whose name does not start with the host triplet. If you think this |
5247 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 5116 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5248 ac_tool_warned=yes ;; | 5117 ac_tool_warned=yes ;; |
5249 esac | 5118 esac |
5250 CXX=$ac_ct_CXX | 5119 AR=$ac_ct_AR |
5251 fi | 5120 fi |
5252 fi | 5121 else |
5253 | 5122 AR="$ac_cv_prog_AR" |
5254 fi | 5123 fi |
5255 fi | 5124 |
5256 # Provide some information about the compiler. | 5125 test -z "$AR" && AR=ar |
5257 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | 5126 test -z "$AR_FLAGS" && AR_FLAGS=cru |
5258 ac_compiler=`set X $ac_compile; echo $2` | 5127 |
5259 { (ac_try="$ac_compiler --version >&5" | 5128 |
5260 case "(($ac_try" in | 5129 |
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 5130 |
5262 *) ac_try_echo=$ac_try;; | 5131 |
5263 esac | 5132 |
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 5133 |
5265 (eval "$ac_compiler --version >&5") 2>&5 | 5134 |
5266 ac_status=$? | 5135 |
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 5136 |
5268 (exit $ac_status); } | 5137 |
5269 { (ac_try="$ac_compiler -v >&5" | |
5270 case "(($ac_try" in | |
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5272 *) ac_try_echo=$ac_try;; | |
5273 esac | |
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5275 (eval "$ac_compiler -v >&5") 2>&5 | |
5276 ac_status=$? | |
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5278 (exit $ac_status); } | |
5279 { (ac_try="$ac_compiler -V >&5" | |
5280 case "(($ac_try" in | |
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5282 *) ac_try_echo=$ac_try;; | |
5283 esac | |
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5285 (eval "$ac_compiler -V >&5") 2>&5 | |
5286 ac_status=$? | |
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5288 (exit $ac_status); } | |
5289 | |
5290 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
5291 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
5292 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
5293 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5294 else | |
5295 cat >conftest.$ac_ext <<_ACEOF | |
5296 /* confdefs.h. */ | |
5297 _ACEOF | |
5298 cat confdefs.h >>conftest.$ac_ext | |
5299 cat >>conftest.$ac_ext <<_ACEOF | |
5300 /* end confdefs.h. */ | |
5301 | |
5302 int | |
5303 main () | |
5304 { | |
5305 #ifndef __GNUC__ | |
5306 choke me | |
5307 #endif | |
5308 | |
5309 ; | |
5310 return 0; | |
5311 } | |
5312 _ACEOF | |
5313 rm -f conftest.$ac_objext | |
5314 if { (ac_try="$ac_compile" | |
5315 case "(($ac_try" in | |
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5317 *) ac_try_echo=$ac_try;; | |
5318 esac | |
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5320 (eval "$ac_compile") 2>conftest.er1 | |
5321 ac_status=$? | |
5322 grep -v '^ *+' conftest.er1 >conftest.err | |
5323 rm -f conftest.er1 | |
5324 cat conftest.err >&5 | |
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5326 (exit $ac_status); } && | |
5327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
5328 { (case "(($ac_try" in | |
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5330 *) ac_try_echo=$ac_try;; | |
5331 esac | |
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5333 (eval "$ac_try") 2>&5 | |
5334 ac_status=$? | |
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5336 (exit $ac_status); }; } && | |
5337 { ac_try='test -s conftest.$ac_objext' | |
5338 { (case "(($ac_try" in | |
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5340 *) ac_try_echo=$ac_try;; | |
5341 esac | |
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5343 (eval "$ac_try") 2>&5 | |
5344 ac_status=$? | |
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5346 (exit $ac_status); }; }; then | |
5347 ac_compiler_gnu=yes | |
5348 else | |
5349 echo "$as_me: failed program was:" >&5 | |
5350 sed 's/^/| /' conftest.$ac_ext >&5 | |
5351 | |
5352 ac_compiler_gnu=no | |
5353 fi | |
5354 | |
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5356 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
5357 | |
5358 fi | |
5359 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
5360 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
5361 GXX=`test $ac_compiler_gnu = yes && echo yes` | |
5362 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
5363 ac_save_CXXFLAGS=$CXXFLAGS | |
5364 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
5365 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
5366 if test "${ac_cv_prog_cxx_g+set}" = set; then | |
5367 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5368 else | |
5369 ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5370 ac_cxx_werror_flag=yes | |
5371 ac_cv_prog_cxx_g=no | |
5372 CXXFLAGS="-g" | |
5373 cat >conftest.$ac_ext <<_ACEOF | |
5374 /* confdefs.h. */ | |
5375 _ACEOF | |
5376 cat confdefs.h >>conftest.$ac_ext | |
5377 cat >>conftest.$ac_ext <<_ACEOF | |
5378 /* end confdefs.h. */ | |
5379 | |
5380 int | |
5381 main () | |
5382 { | |
5383 | |
5384 ; | |
5385 return 0; | |
5386 } | |
5387 _ACEOF | |
5388 rm -f conftest.$ac_objext | |
5389 if { (ac_try="$ac_compile" | |
5390 case "(($ac_try" in | |
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5392 *) ac_try_echo=$ac_try;; | |
5393 esac | |
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5395 (eval "$ac_compile") 2>conftest.er1 | |
5396 ac_status=$? | |
5397 grep -v '^ *+' conftest.er1 >conftest.err | |
5398 rm -f conftest.er1 | |
5399 cat conftest.err >&5 | |
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5401 (exit $ac_status); } && | |
5402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
5403 { (case "(($ac_try" in | |
5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5405 *) ac_try_echo=$ac_try;; | |
5406 esac | |
5407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5408 (eval "$ac_try") 2>&5 | |
5409 ac_status=$? | |
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5411 (exit $ac_status); }; } && | |
5412 { ac_try='test -s conftest.$ac_objext' | |
5413 { (case "(($ac_try" in | |
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5415 *) ac_try_echo=$ac_try;; | |
5416 esac | |
5417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5418 (eval "$ac_try") 2>&5 | |
5419 ac_status=$? | |
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5421 (exit $ac_status); }; }; then | |
5422 ac_cv_prog_cxx_g=yes | |
5423 else | |
5424 echo "$as_me: failed program was:" >&5 | |
5425 sed 's/^/| /' conftest.$ac_ext >&5 | |
5426 | |
5427 CXXFLAGS="" | |
5428 cat >conftest.$ac_ext <<_ACEOF | |
5429 /* confdefs.h. */ | |
5430 _ACEOF | |
5431 cat confdefs.h >>conftest.$ac_ext | |
5432 cat >>conftest.$ac_ext <<_ACEOF | |
5433 /* end confdefs.h. */ | |
5434 | |
5435 int | |
5436 main () | |
5437 { | |
5438 | |
5439 ; | |
5440 return 0; | |
5441 } | |
5442 _ACEOF | |
5443 rm -f conftest.$ac_objext | |
5444 if { (ac_try="$ac_compile" | |
5445 case "(($ac_try" in | |
5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5447 *) ac_try_echo=$ac_try;; | |
5448 esac | |
5449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5450 (eval "$ac_compile") 2>conftest.er1 | |
5451 ac_status=$? | |
5452 grep -v '^ *+' conftest.er1 >conftest.err | |
5453 rm -f conftest.er1 | |
5454 cat conftest.err >&5 | |
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5456 (exit $ac_status); } && | |
5457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
5458 { (case "(($ac_try" in | |
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5460 *) ac_try_echo=$ac_try;; | |
5461 esac | |
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5463 (eval "$ac_try") 2>&5 | |
5464 ac_status=$? | |
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5466 (exit $ac_status); }; } && | |
5467 { ac_try='test -s conftest.$ac_objext' | |
5468 { (case "(($ac_try" in | |
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5470 *) ac_try_echo=$ac_try;; | |
5471 esac | |
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5473 (eval "$ac_try") 2>&5 | |
5474 ac_status=$? | |
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5476 (exit $ac_status); }; }; then | |
5477 : | |
5478 else | |
5479 echo "$as_me: failed program was:" >&5 | |
5480 sed 's/^/| /' conftest.$ac_ext >&5 | |
5481 | |
5482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5483 CXXFLAGS="-g" | |
5484 cat >conftest.$ac_ext <<_ACEOF | |
5485 /* confdefs.h. */ | |
5486 _ACEOF | |
5487 cat confdefs.h >>conftest.$ac_ext | |
5488 cat >>conftest.$ac_ext <<_ACEOF | |
5489 /* end confdefs.h. */ | |
5490 | |
5491 int | |
5492 main () | |
5493 { | |
5494 | |
5495 ; | |
5496 return 0; | |
5497 } | |
5498 _ACEOF | |
5499 rm -f conftest.$ac_objext | |
5500 if { (ac_try="$ac_compile" | |
5501 case "(($ac_try" in | |
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5503 *) ac_try_echo=$ac_try;; | |
5504 esac | |
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5506 (eval "$ac_compile") 2>conftest.er1 | |
5507 ac_status=$? | |
5508 grep -v '^ *+' conftest.er1 >conftest.err | |
5509 rm -f conftest.er1 | |
5510 cat conftest.err >&5 | |
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5512 (exit $ac_status); } && | |
5513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
5514 { (case "(($ac_try" in | |
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5516 *) ac_try_echo=$ac_try;; | |
5517 esac | |
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5519 (eval "$ac_try") 2>&5 | |
5520 ac_status=$? | |
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5522 (exit $ac_status); }; } && | |
5523 { ac_try='test -s conftest.$ac_objext' | |
5524 { (case "(($ac_try" in | |
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5526 *) ac_try_echo=$ac_try;; | |
5527 esac | |
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5529 (eval "$ac_try") 2>&5 | |
5530 ac_status=$? | |
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5532 (exit $ac_status); }; }; then | |
5533 ac_cv_prog_cxx_g=yes | |
5534 else | |
5535 echo "$as_me: failed program was:" >&5 | |
5536 sed 's/^/| /' conftest.$ac_ext >&5 | |
5537 | |
5538 | |
5539 fi | |
5540 | |
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5542 fi | |
5543 | |
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5545 fi | |
5546 | |
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5548 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5549 fi | |
5550 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
5551 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
5552 if test "$ac_test_CXXFLAGS" = set; then | |
5553 CXXFLAGS=$ac_save_CXXFLAGS | |
5554 elif test $ac_cv_prog_cxx_g = yes; then | |
5555 if test "$GXX" = yes; then | |
5556 CXXFLAGS="-g -O2" | |
5557 else | |
5558 CXXFLAGS="-g" | |
5559 fi | |
5560 else | |
5561 if test "$GXX" = yes; then | |
5562 CXXFLAGS="-O2" | |
5563 else | |
5564 CXXFLAGS= | |
5565 fi | |
5566 fi | |
5567 ac_ext=cpp | |
5568 ac_cpp='$CXXCPP $CPPFLAGS' | |
5569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5572 | |
5573 | |
5574 | |
5575 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
5576 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
5577 (test "X$CXX" != "Xg++"))) ; then | |
5578 ac_ext=cpp | |
5579 ac_cpp='$CXXCPP $CPPFLAGS' | |
5580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5583 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
5584 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | |
5585 if test -z "$CXXCPP"; then | |
5586 if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
5587 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5588 else | |
5589 # Double quotes because CXXCPP needs to be expanded | |
5590 for CXXCPP in "$CXX -E" "/lib/cpp" | |
5591 do | |
5592 ac_preproc_ok=false | |
5593 for ac_cxx_preproc_warn_flag in '' yes | |
5594 do | |
5595 # Use a header file that comes with gcc, so configuring glibc | |
5596 # with a fresh cross-compiler works. | |
5597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5598 # <limits.h> exists even on freestanding compilers. | |
5599 # On the NeXT, cc -E runs the code through the compiler's parser, | |
5600 # not just through cpp. "Syntax error" is here to catch this case. | |
5601 cat >conftest.$ac_ext <<_ACEOF | |
5602 /* confdefs.h. */ | |
5603 _ACEOF | |
5604 cat confdefs.h >>conftest.$ac_ext | |
5605 cat >>conftest.$ac_ext <<_ACEOF | |
5606 /* end confdefs.h. */ | |
5607 #ifdef __STDC__ | |
5608 # include <limits.h> | |
5609 #else | |
5610 # include <assert.h> | |
5611 #endif | |
5612 Syntax error | |
5613 _ACEOF | |
5614 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5615 case "(($ac_try" in | |
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5617 *) ac_try_echo=$ac_try;; | |
5618 esac | |
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5621 ac_status=$? | |
5622 grep -v '^ *+' conftest.er1 >conftest.err | |
5623 rm -f conftest.er1 | |
5624 cat conftest.err >&5 | |
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5626 (exit $ac_status); } >/dev/null; then | |
5627 if test -s conftest.err; then | |
5628 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5629 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5630 else | |
5631 ac_cpp_err= | |
5632 fi | |
5633 else | |
5634 ac_cpp_err=yes | |
5635 fi | |
5636 if test -z "$ac_cpp_err"; then | |
5637 : | |
5638 else | |
5639 echo "$as_me: failed program was:" >&5 | |
5640 sed 's/^/| /' conftest.$ac_ext >&5 | |
5641 | |
5642 # Broken: fails on valid input. | |
5643 continue | |
5644 fi | |
5645 | |
5646 rm -f conftest.err conftest.$ac_ext | |
5647 | |
5648 # OK, works on sane cases. Now check whether nonexistent headers | |
5649 # can be detected and how. | |
5650 cat >conftest.$ac_ext <<_ACEOF | |
5651 /* confdefs.h. */ | |
5652 _ACEOF | |
5653 cat confdefs.h >>conftest.$ac_ext | |
5654 cat >>conftest.$ac_ext <<_ACEOF | |
5655 /* end confdefs.h. */ | |
5656 #include <ac_nonexistent.h> | |
5657 _ACEOF | |
5658 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5659 case "(($ac_try" in | |
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5661 *) ac_try_echo=$ac_try;; | |
5662 esac | |
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5665 ac_status=$? | |
5666 grep -v '^ *+' conftest.er1 >conftest.err | |
5667 rm -f conftest.er1 | |
5668 cat conftest.err >&5 | |
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5670 (exit $ac_status); } >/dev/null; then | |
5671 if test -s conftest.err; then | |
5672 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5673 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5674 else | |
5675 ac_cpp_err= | |
5676 fi | |
5677 else | |
5678 ac_cpp_err=yes | |
5679 fi | |
5680 if test -z "$ac_cpp_err"; then | |
5681 # Broken: success on invalid input. | |
5682 continue | |
5683 else | |
5684 echo "$as_me: failed program was:" >&5 | |
5685 sed 's/^/| /' conftest.$ac_ext >&5 | |
5686 | |
5687 # Passes both tests. | |
5688 ac_preproc_ok=: | |
5689 break | |
5690 fi | |
5691 | |
5692 rm -f conftest.err conftest.$ac_ext | |
5693 | |
5694 done | |
5695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5696 rm -f conftest.err conftest.$ac_ext | |
5697 if $ac_preproc_ok; then | |
5698 break | |
5699 fi | |
5700 | |
5701 done | |
5702 ac_cv_prog_CXXCPP=$CXXCPP | |
5703 | |
5704 fi | |
5705 CXXCPP=$ac_cv_prog_CXXCPP | |
5706 else | |
5707 ac_cv_prog_CXXCPP=$CXXCPP | |
5708 fi | |
5709 { echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5710 echo "${ECHO_T}$CXXCPP" >&6; } | |
5711 ac_preproc_ok=false | |
5712 for ac_cxx_preproc_warn_flag in '' yes | |
5713 do | |
5714 # Use a header file that comes with gcc, so configuring glibc | |
5715 # with a fresh cross-compiler works. | |
5716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5717 # <limits.h> exists even on freestanding compilers. | |
5718 # On the NeXT, cc -E runs the code through the compiler's parser, | |
5719 # not just through cpp. "Syntax error" is here to catch this case. | |
5720 cat >conftest.$ac_ext <<_ACEOF | |
5721 /* confdefs.h. */ | |
5722 _ACEOF | |
5723 cat confdefs.h >>conftest.$ac_ext | |
5724 cat >>conftest.$ac_ext <<_ACEOF | |
5725 /* end confdefs.h. */ | |
5726 #ifdef __STDC__ | |
5727 # include <limits.h> | |
5728 #else | |
5729 # include <assert.h> | |
5730 #endif | |
5731 Syntax error | |
5732 _ACEOF | |
5733 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5734 case "(($ac_try" in | |
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5736 *) ac_try_echo=$ac_try;; | |
5737 esac | |
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5740 ac_status=$? | |
5741 grep -v '^ *+' conftest.er1 >conftest.err | |
5742 rm -f conftest.er1 | |
5743 cat conftest.err >&5 | |
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5745 (exit $ac_status); } >/dev/null; then | |
5746 if test -s conftest.err; then | |
5747 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5748 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5749 else | |
5750 ac_cpp_err= | |
5751 fi | |
5752 else | |
5753 ac_cpp_err=yes | |
5754 fi | |
5755 if test -z "$ac_cpp_err"; then | |
5756 : | |
5757 else | |
5758 echo "$as_me: failed program was:" >&5 | |
5759 sed 's/^/| /' conftest.$ac_ext >&5 | |
5760 | |
5761 # Broken: fails on valid input. | |
5762 continue | |
5763 fi | |
5764 | |
5765 rm -f conftest.err conftest.$ac_ext | |
5766 | |
5767 # OK, works on sane cases. Now check whether nonexistent headers | |
5768 # can be detected and how. | |
5769 cat >conftest.$ac_ext <<_ACEOF | |
5770 /* confdefs.h. */ | |
5771 _ACEOF | |
5772 cat confdefs.h >>conftest.$ac_ext | |
5773 cat >>conftest.$ac_ext <<_ACEOF | |
5774 /* end confdefs.h. */ | |
5775 #include <ac_nonexistent.h> | |
5776 _ACEOF | |
5777 if { (ac_try="$ac_cpp conftest.$ac_ext" | |
5778 case "(($ac_try" in | |
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5780 *) ac_try_echo=$ac_try;; | |
5781 esac | |
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5784 ac_status=$? | |
5785 grep -v '^ *+' conftest.er1 >conftest.err | |
5786 rm -f conftest.er1 | |
5787 cat conftest.err >&5 | |
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5789 (exit $ac_status); } >/dev/null; then | |
5790 if test -s conftest.err; then | |
5791 ac_cpp_err=$ac_cxx_preproc_warn_flag | |
5792 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
5793 else | |
5794 ac_cpp_err= | |
5795 fi | |
5796 else | |
5797 ac_cpp_err=yes | |
5798 fi | |
5799 if test -z "$ac_cpp_err"; then | |
5800 # Broken: success on invalid input. | |
5801 continue | |
5802 else | |
5803 echo "$as_me: failed program was:" >&5 | |
5804 sed 's/^/| /' conftest.$ac_ext >&5 | |
5805 | |
5806 # Passes both tests. | |
5807 ac_preproc_ok=: | |
5808 break | |
5809 fi | |
5810 | |
5811 rm -f conftest.err conftest.$ac_ext | |
5812 | |
5813 done | |
5814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5815 rm -f conftest.err conftest.$ac_ext | |
5816 if $ac_preproc_ok; then | |
5817 : | |
5818 else | |
5819 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5820 See \`config.log' for more details." >&5 | |
5821 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5822 See \`config.log' for more details." >&2;} | |
5823 { (exit 1); exit 1; }; } | |
5824 fi | |
5825 | |
5826 ac_ext=cpp | |
5827 ac_cpp='$CXXCPP $CPPFLAGS' | |
5828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5831 | |
5832 fi | |
5833 | |
5834 | |
5835 ac_ext=f | |
5836 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
5837 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5838 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
5839 if test -n "$ac_tool_prefix"; then | 5138 if test -n "$ac_tool_prefix"; then |
5840 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn | 5139 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
5841 do | 5140 set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5844 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5141 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5846 if test "${ac_cv_prog_F77+set}" = set; then | 5143 if test "${ac_cv_prog_STRIP+set}" = set; then |
5847 echo $ECHO_N "(cached) $ECHO_C" >&6 | 5144 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5848 else | 5145 else |
5849 if test -n "$F77"; then | 5146 if test -n "$STRIP"; then |
5850 ac_cv_prog_F77="$F77" # Let the user override the test. | 5147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
5851 else | 5148 else |
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5853 for as_dir in $PATH | 5150 for as_dir in $PATH |
5854 do | 5151 do |
5855 IFS=$as_save_IFS | 5152 IFS=$as_save_IFS |
5856 test -z "$as_dir" && as_dir=. | 5153 test -z "$as_dir" && as_dir=. |
5857 for ac_exec_ext in '' $ac_executable_extensions; do | 5154 for ac_exec_ext in '' $ac_executable_extensions; do |
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 5155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
5859 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | 5156 ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5861 break 2 | 5158 break 2 |
5862 fi | 5159 fi |
5863 done | 5160 done |
5864 done | 5161 done |
5865 IFS=$as_save_IFS | 5162 IFS=$as_save_IFS |
5866 | 5163 |
5867 fi | 5164 fi |
5868 fi | 5165 fi |
5869 F77=$ac_cv_prog_F77 | 5166 STRIP=$ac_cv_prog_STRIP |
5870 if test -n "$F77"; then | 5167 if test -n "$STRIP"; then |
5871 { echo "$as_me:$LINENO: result: $F77" >&5 | 5168 { echo "$as_me:$LINENO: result: $STRIP" >&5 |
5872 echo "${ECHO_T}$F77" >&6; } | 5169 echo "${ECHO_T}$STRIP" >&6; } |
5873 else | 5170 else |
5874 { echo "$as_me:$LINENO: result: no" >&5 | 5171 { echo "$as_me:$LINENO: result: no" >&5 |
5875 echo "${ECHO_T}no" >&6; } | 5172 echo "${ECHO_T}no" >&6; } |
5876 fi | 5173 fi |
5877 | 5174 |
5878 | 5175 |
5879 test -n "$F77" && break | 5176 fi |
5880 done | 5177 if test -z "$ac_cv_prog_STRIP"; then |
5881 fi | 5178 ac_ct_STRIP=$STRIP |
5882 if test -z "$F77"; then | 5179 # Extract the first word of "strip", so it can be a program name with args. |
5883 ac_ct_F77=$F77 | 5180 set dummy strip; ac_word=$2 |
5884 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn | |
5885 do | |
5886 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5887 set dummy $ac_prog; ac_word=$2 | |
5888 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | 5181 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | 5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5890 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | 5183 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
5891 echo $ECHO_N "(cached) $ECHO_C" >&6 | 5184 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5892 else | 5185 else |
5893 if test -n "$ac_ct_F77"; then | 5186 if test -n "$ac_ct_STRIP"; then |
5894 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | 5187 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
5895 else | 5188 else |
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5897 for as_dir in $PATH | 5190 for as_dir in $PATH |
5898 do | 5191 do |
5899 IFS=$as_save_IFS | 5192 IFS=$as_save_IFS |
5900 test -z "$as_dir" && as_dir=. | 5193 test -z "$as_dir" && as_dir=. |
5901 for ac_exec_ext in '' $ac_executable_extensions; do | 5194 for ac_exec_ext in '' $ac_executable_extensions; do |
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | 5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
5903 ac_cv_prog_ac_ct_F77="$ac_prog" | 5196 ac_cv_prog_ac_ct_STRIP="strip" |
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | 5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5905 break 2 | 5198 break 2 |
5906 fi | 5199 fi |
5907 done | 5200 done |
5908 done | 5201 done |
5909 IFS=$as_save_IFS | 5202 IFS=$as_save_IFS |
5910 | 5203 |
5911 fi | 5204 fi |
5912 fi | 5205 fi |
5913 ac_ct_F77=$ac_cv_prog_ac_ct_F77 | 5206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5914 if test -n "$ac_ct_F77"; then | 5207 if test -n "$ac_ct_STRIP"; then |
5915 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | 5208 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
5916 echo "${ECHO_T}$ac_ct_F77" >&6; } | 5209 echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
5917 else | 5210 else |
5918 { echo "$as_me:$LINENO: result: no" >&5 | 5211 { echo "$as_me:$LINENO: result: no" >&5 |
5919 echo "${ECHO_T}no" >&6; } | 5212 echo "${ECHO_T}no" >&6; } |
5920 fi | 5213 fi |
5921 | 5214 |
5922 | 5215 if test "x$ac_ct_STRIP" = x; then |
5923 test -n "$ac_ct_F77" && break | 5216 STRIP=":" |
5924 done | |
5925 | |
5926 if test "x$ac_ct_F77" = x; then | |
5927 F77="" | |
5928 else | 5217 else |
5929 case $cross_compiling:$ac_tool_warned in | 5218 case $cross_compiling:$ac_tool_warned in |
5930 yes:) | 5219 yes:) |
5931 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | 5220 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5932 whose name does not start with the host triplet. If you think this | 5221 whose name does not start with the host triplet. If you think this |
5934 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | 5223 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5935 whose name does not start with the host triplet. If you think this | 5224 whose name does not start with the host triplet. If you think this |
5936 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | 5225 configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5937 ac_tool_warned=yes ;; | 5226 ac_tool_warned=yes ;; |
5938 esac | 5227 esac |
5939 F77=$ac_ct_F77 | 5228 STRIP=$ac_ct_STRIP |
5940 fi | 5229 fi |
5941 fi | 5230 else |
5942 | 5231 STRIP="$ac_cv_prog_STRIP" |
5943 | 5232 fi |
5944 # Provide some information about the compiler. | 5233 |
5945 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 | 5234 test -z "$STRIP" && STRIP=: |
5946 ac_compiler=`set X $ac_compile; echo $2` | 5235 |
5947 { (ac_try="$ac_compiler --version >&5" | 5236 |
5948 case "(($ac_try" in | 5237 |
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 5238 |
5950 *) ac_try_echo=$ac_try;; | 5239 |
5951 esac | 5240 |
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 5241 if test -n "$ac_tool_prefix"; then |
5953 (eval "$ac_compiler --version >&5") 2>&5 | 5242 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
5954 ac_status=$? | 5243 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 5244 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5956 (exit $ac_status); } | 5245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5957 { (ac_try="$ac_compiler -v >&5" | 5246 if test "${ac_cv_prog_RANLIB+set}" = set; then |
5958 case "(($ac_try" in | |
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5960 *) ac_try_echo=$ac_try;; | |
5961 esac | |
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5963 (eval "$ac_compiler -v >&5") 2>&5 | |
5964 ac_status=$? | |
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5966 (exit $ac_status); } | |
5967 { (ac_try="$ac_compiler -V >&5" | |
5968 case "(($ac_try" in | |
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5970 *) ac_try_echo=$ac_try;; | |
5971 esac | |
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5973 (eval "$ac_compiler -V >&5") 2>&5 | |
5974 ac_status=$? | |
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5976 (exit $ac_status); } | |
5977 rm -f a.out | |
5978 | |
5979 # If we don't use `.F' as extension, the preprocessor is not run on the | |
5980 # input file. (Note that this only needs to work for GNU compilers.) | |
5981 ac_save_ext=$ac_ext | |
5982 ac_ext=F | |
5983 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
5984 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } | |
5985 if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
5986 echo $ECHO_N "(cached) $ECHO_C" >&6 | 5247 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5987 else | 5248 else |
5988 cat >conftest.$ac_ext <<_ACEOF | 5249 if test -n "$RANLIB"; then |
5989 program main | 5250 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
5990 #ifndef __GNUC__ | 5251 else |
5991 choke me | 5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5992 #endif | 5253 for as_dir in $PATH |
5993 | 5254 do |
5994 end | 5255 IFS=$as_save_IFS |
5995 _ACEOF | 5256 test -z "$as_dir" && as_dir=. |
5996 rm -f conftest.$ac_objext | 5257 for ac_exec_ext in '' $ac_executable_extensions; do |
5997 if { (ac_try="$ac_compile" | 5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
5998 case "(($ac_try" in | 5259 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6000 *) ac_try_echo=$ac_try;; | 5261 break 2 |
6001 esac | 5262 fi |
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 5263 done |
6003 (eval "$ac_compile") 2>conftest.er1 | 5264 done |
6004 ac_status=$? | 5265 IFS=$as_save_IFS |
6005 grep -v '^ *+' conftest.er1 >conftest.err | 5266 |
6006 rm -f conftest.er1 | 5267 fi |
6007 cat conftest.err >&5 | 5268 fi |
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 5269 RANLIB=$ac_cv_prog_RANLIB |
6009 (exit $ac_status); } && | 5270 if test -n "$RANLIB"; then |
6010 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | 5271 { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6011 { (case "(($ac_try" in | 5272 echo "${ECHO_T}$RANLIB" >&6; } |
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 5273 else |
6013 *) ac_try_echo=$ac_try;; | 5274 { echo "$as_me:$LINENO: result: no" >&5 |
6014 esac | 5275 echo "${ECHO_T}no" >&6; } |
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 5276 fi |
6016 (eval "$ac_try") 2>&5 | 5277 |
6017 ac_status=$? | 5278 |
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 5279 fi |
6019 (exit $ac_status); }; } && | 5280 if test -z "$ac_cv_prog_RANLIB"; then |
6020 { ac_try='test -s conftest.$ac_objext' | 5281 ac_ct_RANLIB=$RANLIB |
6021 { (case "(($ac_try" in | 5282 # Extract the first word of "ranlib", so it can be a program name with args. |
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 5283 set dummy ranlib; ac_word=$2 |
6023 *) ac_try_echo=$ac_try;; | 5284 { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6024 esac | 5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 5286 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6026 (eval "$ac_try") 2>&5 | |
6027 ac_status=$? | |
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6029 (exit $ac_status); }; }; then | |
6030 ac_compiler_gnu=yes | |
6031 else | |
6032 echo "$as_me: failed program was:" >&5 | |
6033 sed 's/^/| /' conftest.$ac_ext >&5 | |
6034 | |
6035 ac_compiler_gnu=no | |
6036 fi | |
6037 | |
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6039 ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
6040 | |
6041 fi | |
6042 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
6043 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } | |
6044 ac_ext=$ac_save_ext | |
6045 ac_test_FFLAGS=${FFLAGS+set} | |
6046 ac_save_FFLAGS=$FFLAGS | |
6047 FFLAGS= | |
6048 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
6049 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } | |
6050 if test "${ac_cv_prog_f77_g+set}" = set; then | |
6051 echo $ECHO_N "(cached) $ECHO_C" >&6 | 5287 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6052 else | 5288 else |
6053 FFLAGS=-g | 5289 if test -n "$ac_ct_RANLIB"; then |
6054 cat >conftest.$ac_ext <<_ACEOF | 5290 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6055 program main | 5291 else |
6056 | 5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6057 end | 5293 for as_dir in $PATH |
6058 _ACEOF | 5294 do |
6059 rm -f conftest.$ac_objext | 5295 IFS=$as_save_IFS |
6060 if { (ac_try="$ac_compile" | 5296 test -z "$as_dir" && as_dir=. |
6061 case "(($ac_try" in | 5297 for ac_exec_ext in '' $ac_executable_extensions; do |
6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
6063 *) ac_try_echo=$ac_try;; | 5299 ac_cv_prog_ac_ct_RANLIB="ranlib" |
6064 esac | 5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 5301 break 2 |
6066 (eval "$ac_compile") 2>conftest.er1 | 5302 fi |
6067 ac_status=$? | 5303 done |
6068 grep -v '^ *+' conftest.er1 >conftest.err | 5304 done |
6069 rm -f conftest.er1 | 5305 IFS=$as_save_IFS |
6070 cat conftest.err >&5 | 5306 |
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 5307 fi |
6072 (exit $ac_status); } && | 5308 fi |
6073 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | 5309 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6074 { (case "(($ac_try" in | 5310 if test -n "$ac_ct_RANLIB"; then |
6075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 5311 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6076 *) ac_try_echo=$ac_try;; | 5312 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
6077 esac | 5313 else |
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | 5314 { echo "$as_me:$LINENO: result: no" >&5 |
6079 (eval "$ac_try") 2>&5 | 5315 echo "${ECHO_T}no" >&6; } |
6080 ac_status=$? | 5316 fi |
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 5317 |
6082 (exit $ac_status); }; } && | 5318 if test "x$ac_ct_RANLIB" = x; then |
6083 { ac_try='test -s conftest.$ac_objext' | 5319 RANLIB=":" |
6084 { (case "(($ac_try" in | |
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6086 *) ac_try_echo=$ac_try;; | |
6087 esac | |
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6089 (eval "$ac_try") 2>&5 | |
6090 ac_status=$? | |
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6092 (exit $ac_status); }; }; then | |
6093 ac_cv_prog_f77_g=yes | |
6094 else | |
6095 echo "$as_me: failed program was:" >&5 | |
6096 sed 's/^/| /' conftest.$ac_ext >&5 | |
6097 | |
6098 ac_cv_prog_f77_g=no | |
6099 fi | |
6100 | |
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6102 | |
6103 fi | |
6104 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
6105 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } | |
6106 if test "$ac_test_FFLAGS" = set; then | |
6107 FFLAGS=$ac_save_FFLAGS | |
6108 elif test $ac_cv_prog_f77_g = yes; then | |
6109 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
6110 FFLAGS="-g -O2" | |
6111 else | 5320 else |
6112 FFLAGS="-g" | 5321 case $cross_compiling:$ac_tool_warned in |
5322 yes:) | |
5323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5324 whose name does not start with the host triplet. If you think this | |
5325 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5327 whose name does not start with the host triplet. If you think this | |
5328 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5329 ac_tool_warned=yes ;; | |
5330 esac | |
5331 RANLIB=$ac_ct_RANLIB | |
6113 fi | 5332 fi |
6114 else | 5333 else |
6115 if test "x$ac_cv_f77_compiler_gnu" = xyes; then | 5334 RANLIB="$ac_cv_prog_RANLIB" |
6116 FFLAGS="-O2" | 5335 fi |
6117 else | 5336 |
6118 FFLAGS= | 5337 test -z "$RANLIB" && RANLIB=: |
6119 fi | 5338 |
6120 fi | 5339 |
6121 | 5340 |
6122 G77=`test $ac_compiler_gnu = yes && echo yes` | 5341 |
6123 ac_ext=c | 5342 |
6124 ac_cpp='$CPP $CPPFLAGS' | 5343 |
6125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 5344 # Determine commands to create old-style static archives. |
6126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 5345 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
6127 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 5346 old_postinstall_cmds='chmod 644 $oldlib' |
6128 | 5347 old_postuninstall_cmds= |
6129 | 5348 |
6130 | 5349 if test -n "$RANLIB"; then |
6131 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | 5350 case $host_os in |
6132 | 5351 openbsd*) |
6133 # find the maximum length of command line arguments | 5352 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6134 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
6135 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | |
6136 if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
6137 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6138 else | |
6139 i=0 | |
6140 teststring="ABCD" | |
6141 | |
6142 case $build_os in | |
6143 msdosdjgpp*) | |
6144 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
6145 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
6146 # during glob expansion). Even if it were fixed, the result of this | |
6147 # check would be larger than it should be. | |
6148 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
6149 ;; | |
6150 | |
6151 gnu*) | |
6152 # Under GNU Hurd, this test is not required because there is | |
6153 # no limit to the length of command line arguments. | |
6154 # Libtool will interpret -1 as no limit whatsoever | |
6155 lt_cv_sys_max_cmd_len=-1; | |
6156 ;; | |
6157 | |
6158 cygwin* | mingw*) | |
6159 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
6160 # about 5 minutes as the teststring grows exponentially. | |
6161 # Worse, since 9x/ME are not pre-emptively multitasking, | |
6162 # you end up with a "frozen" computer, even though with patience | |
6163 # the test eventually succeeds (with a max line length of 256k). | |
6164 # Instead, let's just punt: use the minimum linelength reported by | |
6165 # all of the supported platforms: 8192 (on NT/2K/XP). | |
6166 lt_cv_sys_max_cmd_len=8192; | |
6167 ;; | |
6168 | |
6169 amigaos*) | |
6170 # On AmigaOS with pdksh, this test takes hours, literally. | |
6171 # So we just punt and use a minimum line length of 8192. | |
6172 lt_cv_sys_max_cmd_len=8192; | |
6173 ;; | |
6174 | |
6175 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
6176 # This has been around since 386BSD, at least. Likely further. | |
6177 if test -x /sbin/sysctl; then | |
6178 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
6179 elif test -x /usr/sbin/sysctl; then | |
6180 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
6181 else | |
6182 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
6183 fi | |
6184 # And add a safety zone | |
6185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
6186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
6187 ;; | |
6188 | |
6189 interix*) | |
6190 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
6191 lt_cv_sys_max_cmd_len=196608 | |
6192 ;; | |
6193 | |
6194 osf*) | |
6195 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
6196 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
6197 # nice to cause kernel panics so lets avoid the loop below. | |
6198 # First set a reasonable default. | |
6199 lt_cv_sys_max_cmd_len=16384 | |
6200 # | |
6201 if test -x /sbin/sysconfig; then | |
6202 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
6203 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
6204 esac | |
6205 fi | |
6206 ;; | |
6207 sco3.2v5*) | |
6208 lt_cv_sys_max_cmd_len=102400 | |
6209 ;; | |
6210 sysv5* | sco5v6* | sysv4.2uw2*) | |
6211 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
6212 if test -n "$kargmax"; then | |
6213 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
6214 else | |
6215 lt_cv_sys_max_cmd_len=32768 | |
6216 fi | |
6217 ;; | 5353 ;; |
6218 *) | 5354 *) |
6219 # If test is not a shell built-in, we'll probably end up computing a | 5355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6220 # maximum length that is only half of the actual maximum length, but | |
6221 # we can't tell. | |
6222 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
6223 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
6224 = "XX$teststring") >/dev/null 2>&1 && | |
6225 new_result=`expr "X$teststring" : ".*" 2>&1` && | |
6226 lt_cv_sys_max_cmd_len=$new_result && | |
6227 test $i != 17 # 1/2 MB should be enough | |
6228 do | |
6229 i=`expr $i + 1` | |
6230 teststring=$teststring$teststring | |
6231 done | |
6232 teststring= | |
6233 # Add a significant safety factor because C++ compilers can tack on massive | |
6234 # amounts of additional arguments before passing them to the linker. | |
6235 # It appears as though 1/2 is a usable value. | |
6236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
6237 ;; | 5356 ;; |
6238 esac | 5357 esac |
6239 | 5358 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6240 fi | 5359 fi |
6241 | 5360 |
6242 if test -n $lt_cv_sys_max_cmd_len ; then | 5361 |
6243 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | 5362 |
6244 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | 5363 |
6245 else | 5364 |
6246 { echo "$as_me:$LINENO: result: none" >&5 | 5365 |
6247 echo "${ECHO_T}none" >&6; } | 5366 |
6248 fi | 5367 |
6249 | 5368 |
6250 | 5369 |
5370 | |
5371 | |
5372 | |
5373 | |
5374 | |
5375 | |
5376 | |
5377 | |
5378 | |
5379 | |
5380 | |
5381 | |
5382 | |
5383 | |
5384 | |
5385 | |
5386 | |
5387 | |
5388 | |
5389 | |
5390 | |
5391 | |
5392 | |
5393 | |
5394 # If no C compiler was specified, use CC. | |
5395 LTCC=${LTCC-"$CC"} | |
5396 | |
5397 # If no C compiler flags were specified, use CFLAGS. | |
5398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
5399 | |
5400 # Allow CC to be a program name with arguments. | |
5401 compiler=$CC | |
6251 | 5402 |
6252 | 5403 |
6253 # Check for command to grab the raw symbol name followed by C symbol from nm. | 5404 # Check for command to grab the raw symbol name followed by C symbol from nm. |
6254 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | 5405 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6255 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | 5406 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
6264 symcode='[BCDEGRST]' | 5415 symcode='[BCDEGRST]' |
6265 | 5416 |
6266 # Regexp to match symbols that can be accessed directly from C. | 5417 # Regexp to match symbols that can be accessed directly from C. |
6267 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 5418 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6268 | 5419 |
6269 # Transform an extracted symbol line into a proper C declaration | |
6270 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
6271 | |
6272 # Transform an extracted symbol line into symbol name and symbol address | |
6273 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'" | |
6274 | |
6275 # Define system-specific variables. | 5420 # Define system-specific variables. |
6276 case $host_os in | 5421 case $host_os in |
6277 aix*) | 5422 aix*) |
6278 symcode='[BCDT]' | 5423 symcode='[BCDT]' |
6279 ;; | 5424 ;; |
6280 cygwin* | mingw* | pw32*) | 5425 cygwin* | mingw* | pw32* | cegcc*) |
6281 symcode='[ABCDGISTW]' | 5426 symcode='[ABCDGISTW]' |
6282 ;; | 5427 ;; |
6283 hpux*) # Its linker distinguishes data from code symbols | 5428 hpux*) |
6284 if test "$host_cpu" = ia64; then | 5429 if test "$host_cpu" = ia64; then |
6285 symcode='[ABCDEGRST]' | 5430 symcode='[ABCDEGRST]' |
6286 fi | |
6287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6288 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'" | |
6289 ;; | |
6290 linux*) | |
6291 if test "$host_cpu" = ia64; then | |
6292 symcode='[ABCDGIRSTW]' | |
6293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6294 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'" | |
6295 fi | 5431 fi |
6296 ;; | 5432 ;; |
6297 irix* | nonstopux*) | 5433 irix* | nonstopux*) |
6298 symcode='[BCDEGRST]' | 5434 symcode='[BCDEGRST]' |
6299 ;; | 5435 ;; |
6315 sysv4) | 5451 sysv4) |
6316 symcode='[DFNSTU]' | 5452 symcode='[DFNSTU]' |
6317 ;; | 5453 ;; |
6318 esac | 5454 esac |
6319 | 5455 |
5456 # If we're using GNU nm, then use its standard symbol codes. | |
5457 case `$NM -V 2>&1` in | |
5458 *GNU* | *'with BFD'*) | |
5459 symcode='[ABCDGIRSTW]' ;; | |
5460 esac | |
5461 | |
5462 # Transform an extracted symbol line into a proper C declaration. | |
5463 # Some systems (esp. on ia64) link data and code symbols differently, | |
5464 # so use this general approach. | |
5465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5466 | |
5467 # Transform an extracted symbol line into symbol name and symbol address | |
5468 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5469 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
5470 | |
6320 # Handle CRLF in mingw tool chain | 5471 # Handle CRLF in mingw tool chain |
6321 opt_cr= | 5472 opt_cr= |
6322 case $build_os in | 5473 case $build_os in |
6323 mingw*) | 5474 mingw*) |
6324 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 5475 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6325 ;; | 5476 ;; |
6326 esac | 5477 esac |
6327 | 5478 |
6328 # If we're using GNU nm, then use its standard symbol codes. | 5479 # Try without a prefix underscore, then with it. |
6329 case `$NM -V 2>&1` in | |
6330 *GNU* | *'with BFD'*) | |
6331 symcode='[ABCDGIRSTW]' ;; | |
6332 esac | |
6333 | |
6334 # Try without a prefix undercore, then with it. | |
6335 for ac_symprfx in "" "_"; do | 5480 for ac_symprfx in "" "_"; do |
6336 | 5481 |
6337 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 5482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6338 symxfrm="\\1 $ac_symprfx\\2 \\2" | 5483 symxfrm="\\1 $ac_symprfx\\2 \\2" |
6339 | 5484 |
6340 # Write the raw and C identifiers. | 5485 # Write the raw and C identifiers. |
6341 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 5486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
5487 # Fake it for dumpbin and say T for any non-static function | |
5488 # and D for any global variable. | |
5489 # Also find C++ and __fastcall symbols from MSVC++, | |
5490 # which start with @ or ?. | |
5491 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5492 " {last_section=section; section=\$ 3};"\ | |
5493 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5494 " \$ 0!~/External *\|/{next};"\ | |
5495 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5496 " {if(hide[section]) next};"\ | |
5497 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5498 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5499 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5500 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5501 " ' prfx=^$ac_symprfx" | |
5502 else | |
5503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5504 fi | |
6342 | 5505 |
6343 # Check to see that the pipe works correctly. | 5506 # Check to see that the pipe works correctly. |
6344 pipe_works=no | 5507 pipe_works=no |
6345 | 5508 |
6346 rm -f conftest* | 5509 rm -f conftest* |
6347 cat > conftest.$ac_ext <<EOF | 5510 cat > conftest.$ac_ext <<_LT_EOF |
6348 #ifdef __cplusplus | 5511 #ifdef __cplusplus |
6349 extern "C" { | 5512 extern "C" { |
6350 #endif | 5513 #endif |
6351 char nm_test_var; | 5514 char nm_test_var; |
6352 void nm_test_func(){} | 5515 void nm_test_func(void); |
5516 void nm_test_func(void){} | |
6353 #ifdef __cplusplus | 5517 #ifdef __cplusplus |
6354 } | 5518 } |
6355 #endif | 5519 #endif |
6356 int main(){nm_test_var='a';nm_test_func();return(0);} | 5520 int main(){nm_test_var='a';nm_test_func();return(0);} |
6357 EOF | 5521 _LT_EOF |
6358 | 5522 |
6359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 5523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6360 (eval $ac_compile) 2>&5 | 5524 (eval $ac_compile) 2>&5 |
6361 ac_status=$? | 5525 ac_status=$? |
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6374 else | 5538 else |
6375 rm -f "$nlist"T | 5539 rm -f "$nlist"T |
6376 fi | 5540 fi |
6377 | 5541 |
6378 # Make sure that we snagged all the symbols we need. | 5542 # Make sure that we snagged all the symbols we need. |
6379 if grep ' nm_test_var$' "$nlist" >/dev/null; then | 5543 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6380 if grep ' nm_test_func$' "$nlist" >/dev/null; then | 5544 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
6381 cat <<EOF > conftest.$ac_ext | 5545 cat <<_LT_EOF > conftest.$ac_ext |
6382 #ifdef __cplusplus | 5546 #ifdef __cplusplus |
6383 extern "C" { | 5547 extern "C" { |
6384 #endif | 5548 #endif |
6385 | 5549 |
6386 EOF | 5550 _LT_EOF |
6387 # Now generate the symbol file. | 5551 # Now generate the symbol file. |
6388 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | 5552 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
6389 | 5553 |
6390 cat <<EOF >> conftest.$ac_ext | 5554 cat <<_LT_EOF >> conftest.$ac_ext |
6391 #if defined (__STDC__) && __STDC__ | 5555 |
6392 # define lt_ptr_t void * | 5556 /* The mapping between symbol names and symbols. */ |
6393 #else | |
6394 # define lt_ptr_t char * | |
6395 # define const | |
6396 #endif | |
6397 | |
6398 /* The mapping between symbol names and symbols. */ | |
6399 const struct { | 5557 const struct { |
6400 const char *name; | 5558 const char *name; |
6401 lt_ptr_t address; | 5559 void *address; |
6402 } | 5560 } |
6403 lt_preloaded_symbols[] = | 5561 lt__PROGRAM__LTX_preloaded_symbols[] = |
6404 { | 5562 { |
6405 EOF | 5563 { "@PROGRAM@", (void *) 0 }, |
6406 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | 5564 _LT_EOF |
6407 cat <<\EOF >> conftest.$ac_ext | 5565 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
6408 {0, (lt_ptr_t) 0} | 5566 cat <<\_LT_EOF >> conftest.$ac_ext |
5567 {0, (void *) 0} | |
6409 }; | 5568 }; |
5569 | |
5570 /* This works around a problem in FreeBSD linker */ | |
5571 #ifdef FREEBSD_WORKAROUND | |
5572 static const void *lt_preloaded_setup() { | |
5573 return lt__PROGRAM__LTX_preloaded_symbols; | |
5574 } | |
5575 #endif | |
6410 | 5576 |
6411 #ifdef __cplusplus | 5577 #ifdef __cplusplus |
6412 } | 5578 } |
6413 #endif | 5579 #endif |
6414 EOF | 5580 _LT_EOF |
6415 # Now try linking the two files. | 5581 # Now try linking the two files. |
6416 mv conftest.$ac_objext conftstm.$ac_objext | 5582 mv conftest.$ac_objext conftstm.$ac_objext |
6417 lt_save_LIBS="$LIBS" | 5583 lt_save_LIBS="$LIBS" |
6418 lt_save_CFLAGS="$CFLAGS" | 5584 lt_save_CFLAGS="$CFLAGS" |
6419 LIBS="conftstm.$ac_objext" | 5585 LIBS="conftstm.$ac_objext" |
6438 fi | 5604 fi |
6439 else | 5605 else |
6440 echo "$progname: failed program was:" >&5 | 5606 echo "$progname: failed program was:" >&5 |
6441 cat conftest.$ac_ext >&5 | 5607 cat conftest.$ac_ext >&5 |
6442 fi | 5608 fi |
6443 rm -f conftest* conftst* | 5609 rm -rf conftest* conftst* |
6444 | 5610 |
6445 # Do not use the global_symbol_pipe unless it works. | 5611 # Do not use the global_symbol_pipe unless it works. |
6446 if test "$pipe_works" = yes; then | 5612 if test "$pipe_works" = yes; then |
6447 break | 5613 break |
6448 else | 5614 else |
6461 else | 5627 else |
6462 { echo "$as_me:$LINENO: result: ok" >&5 | 5628 { echo "$as_me:$LINENO: result: ok" >&5 |
6463 echo "${ECHO_T}ok" >&6; } | 5629 echo "${ECHO_T}ok" >&6; } |
6464 fi | 5630 fi |
6465 | 5631 |
5632 | |
5633 | |
5634 | |
5635 | |
5636 | |
5637 | |
5638 | |
5639 | |
5640 | |
5641 | |
5642 | |
5643 | |
5644 | |
5645 | |
5646 | |
5647 | |
5648 | |
5649 | |
5650 | |
5651 | |
5652 | |
5653 | |
5654 # Check whether --enable-libtool-lock was given. | |
5655 if test "${enable_libtool_lock+set}" = set; then | |
5656 enableval=$enable_libtool_lock; | |
5657 fi | |
5658 | |
5659 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
5660 | |
5661 # Some flags need to be propagated to the compiler or linker for good | |
5662 # libtool support. | |
5663 case $host in | |
5664 ia64-*-hpux*) | |
5665 # Find out which ABI we are using. | |
5666 echo 'int i;' > conftest.$ac_ext | |
5667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5668 (eval $ac_compile) 2>&5 | |
5669 ac_status=$? | |
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5671 (exit $ac_status); }; then | |
5672 case `/usr/bin/file conftest.$ac_objext` in | |
5673 *ELF-32*) | |
5674 HPUX_IA64_MODE="32" | |
5675 ;; | |
5676 *ELF-64*) | |
5677 HPUX_IA64_MODE="64" | |
5678 ;; | |
5679 esac | |
5680 fi | |
5681 rm -rf conftest* | |
5682 ;; | |
5683 *-*-irix6*) | |
5684 # Find out which ABI we are using. | |
5685 echo '#line 5685 "configure"' > conftest.$ac_ext | |
5686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5687 (eval $ac_compile) 2>&5 | |
5688 ac_status=$? | |
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5690 (exit $ac_status); }; then | |
5691 if test "$lt_cv_prog_gnu_ld" = yes; then | |
5692 case `/usr/bin/file conftest.$ac_objext` in | |
5693 *32-bit*) | |
5694 LD="${LD-ld} -melf32bsmip" | |
5695 ;; | |
5696 *N32*) | |
5697 LD="${LD-ld} -melf32bmipn32" | |
5698 ;; | |
5699 *64-bit*) | |
5700 LD="${LD-ld} -melf64bmip" | |
5701 ;; | |
5702 esac | |
5703 else | |
5704 case `/usr/bin/file conftest.$ac_objext` in | |
5705 *32-bit*) | |
5706 LD="${LD-ld} -32" | |
5707 ;; | |
5708 *N32*) | |
5709 LD="${LD-ld} -n32" | |
5710 ;; | |
5711 *64-bit*) | |
5712 LD="${LD-ld} -64" | |
5713 ;; | |
5714 esac | |
5715 fi | |
5716 fi | |
5717 rm -rf conftest* | |
5718 ;; | |
5719 | |
5720 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
5721 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5722 # Find out which ABI we are using. | |
5723 echo 'int i;' > conftest.$ac_ext | |
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5725 (eval $ac_compile) 2>&5 | |
5726 ac_status=$? | |
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5728 (exit $ac_status); }; then | |
5729 case `/usr/bin/file conftest.o` in | |
5730 *32-bit*) | |
5731 case $host in | |
5732 x86_64-*kfreebsd*-gnu) | |
5733 LD="${LD-ld} -m elf_i386_fbsd" | |
5734 ;; | |
5735 x86_64-*linux*) | |
5736 LD="${LD-ld} -m elf_i386" | |
5737 ;; | |
5738 ppc64-*linux*|powerpc64-*linux*) | |
5739 LD="${LD-ld} -m elf32ppclinux" | |
5740 ;; | |
5741 s390x-*linux*) | |
5742 LD="${LD-ld} -m elf_s390" | |
5743 ;; | |
5744 sparc64-*linux*) | |
5745 LD="${LD-ld} -m elf32_sparc" | |
5746 ;; | |
5747 esac | |
5748 ;; | |
5749 *64-bit*) | |
5750 case $host in | |
5751 x86_64-*kfreebsd*-gnu) | |
5752 LD="${LD-ld} -m elf_x86_64_fbsd" | |
5753 ;; | |
5754 x86_64-*linux*) | |
5755 LD="${LD-ld} -m elf_x86_64" | |
5756 ;; | |
5757 ppc*-*linux*|powerpc*-*linux*) | |
5758 LD="${LD-ld} -m elf64ppc" | |
5759 ;; | |
5760 s390*-*linux*|s390*-*tpf*) | |
5761 LD="${LD-ld} -m elf64_s390" | |
5762 ;; | |
5763 sparc*-*linux*) | |
5764 LD="${LD-ld} -m elf64_sparc" | |
5765 ;; | |
5766 esac | |
5767 ;; | |
5768 esac | |
5769 fi | |
5770 rm -rf conftest* | |
5771 ;; | |
5772 | |
5773 *-*-sco3.2v5*) | |
5774 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5775 SAVE_CFLAGS="$CFLAGS" | |
5776 CFLAGS="$CFLAGS -belf" | |
5777 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5778 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | |
5779 if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5780 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5781 else | |
5782 ac_ext=c | |
5783 ac_cpp='$CPP $CPPFLAGS' | |
5784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5786 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5787 | |
5788 cat >conftest.$ac_ext <<_ACEOF | |
5789 /* confdefs.h. */ | |
5790 _ACEOF | |
5791 cat confdefs.h >>conftest.$ac_ext | |
5792 cat >>conftest.$ac_ext <<_ACEOF | |
5793 /* end confdefs.h. */ | |
5794 | |
5795 int | |
5796 main () | |
5797 { | |
5798 | |
5799 ; | |
5800 return 0; | |
5801 } | |
5802 _ACEOF | |
5803 rm -f conftest.$ac_objext conftest$ac_exeext | |
5804 if { (ac_try="$ac_link" | |
5805 case "(($ac_try" in | |
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5807 *) ac_try_echo=$ac_try;; | |
5808 esac | |
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5810 (eval "$ac_link") 2>conftest.er1 | |
5811 ac_status=$? | |
5812 grep -v '^ *+' conftest.er1 >conftest.err | |
5813 rm -f conftest.er1 | |
5814 cat conftest.err >&5 | |
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5816 (exit $ac_status); } && | |
5817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5818 { (case "(($ac_try" in | |
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5820 *) ac_try_echo=$ac_try;; | |
5821 esac | |
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5823 (eval "$ac_try") 2>&5 | |
5824 ac_status=$? | |
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5826 (exit $ac_status); }; } && | |
5827 { ac_try='test -s conftest$ac_exeext' | |
5828 { (case "(($ac_try" in | |
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5830 *) ac_try_echo=$ac_try;; | |
5831 esac | |
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5833 (eval "$ac_try") 2>&5 | |
5834 ac_status=$? | |
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5836 (exit $ac_status); }; }; then | |
5837 lt_cv_cc_needs_belf=yes | |
5838 else | |
5839 echo "$as_me: failed program was:" >&5 | |
5840 sed 's/^/| /' conftest.$ac_ext >&5 | |
5841 | |
5842 lt_cv_cc_needs_belf=no | |
5843 fi | |
5844 | |
5845 rm -f core conftest.err conftest.$ac_objext \ | |
5846 conftest$ac_exeext conftest.$ac_ext | |
5847 ac_ext=c | |
5848 ac_cpp='$CPP $CPPFLAGS' | |
5849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5851 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5852 | |
5853 fi | |
5854 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5855 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | |
5856 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5857 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5858 CFLAGS="$SAVE_CFLAGS" | |
5859 fi | |
5860 ;; | |
5861 sparc*-*solaris*) | |
5862 # Find out which ABI we are using. | |
5863 echo 'int i;' > conftest.$ac_ext | |
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5865 (eval $ac_compile) 2>&5 | |
5866 ac_status=$? | |
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5868 (exit $ac_status); }; then | |
5869 case `/usr/bin/file conftest.o` in | |
5870 *64-bit*) | |
5871 case $lt_cv_prog_gnu_ld in | |
5872 yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5873 *) | |
5874 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
5875 LD="${LD-ld} -64" | |
5876 fi | |
5877 ;; | |
5878 esac | |
5879 ;; | |
5880 esac | |
5881 fi | |
5882 rm -rf conftest* | |
5883 ;; | |
5884 esac | |
5885 | |
5886 need_locks="$enable_libtool_lock" | |
5887 | |
5888 | |
5889 case $host_os in | |
5890 rhapsody* | darwin*) | |
5891 if test -n "$ac_tool_prefix"; then | |
5892 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
5893 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
5894 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5896 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
5897 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5898 else | |
5899 if test -n "$DSYMUTIL"; then | |
5900 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
5901 else | |
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5903 for as_dir in $PATH | |
5904 do | |
5905 IFS=$as_save_IFS | |
5906 test -z "$as_dir" && as_dir=. | |
5907 for ac_exec_ext in '' $ac_executable_extensions; do | |
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5909 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
5910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5911 break 2 | |
5912 fi | |
5913 done | |
5914 done | |
5915 IFS=$as_save_IFS | |
5916 | |
5917 fi | |
5918 fi | |
5919 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
5920 if test -n "$DSYMUTIL"; then | |
5921 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
5922 echo "${ECHO_T}$DSYMUTIL" >&6; } | |
5923 else | |
5924 { echo "$as_me:$LINENO: result: no" >&5 | |
5925 echo "${ECHO_T}no" >&6; } | |
5926 fi | |
5927 | |
5928 | |
5929 fi | |
5930 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
5931 ac_ct_DSYMUTIL=$DSYMUTIL | |
5932 # Extract the first word of "dsymutil", so it can be a program name with args. | |
5933 set dummy dsymutil; ac_word=$2 | |
5934 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5936 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
5937 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5938 else | |
5939 if test -n "$ac_ct_DSYMUTIL"; then | |
5940 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
5941 else | |
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5943 for as_dir in $PATH | |
5944 do | |
5945 IFS=$as_save_IFS | |
5946 test -z "$as_dir" && as_dir=. | |
5947 for ac_exec_ext in '' $ac_executable_extensions; do | |
5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5949 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5951 break 2 | |
5952 fi | |
5953 done | |
5954 done | |
5955 IFS=$as_save_IFS | |
5956 | |
5957 fi | |
5958 fi | |
5959 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
5960 if test -n "$ac_ct_DSYMUTIL"; then | |
5961 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
5962 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } | |
5963 else | |
5964 { echo "$as_me:$LINENO: result: no" >&5 | |
5965 echo "${ECHO_T}no" >&6; } | |
5966 fi | |
5967 | |
5968 if test "x$ac_ct_DSYMUTIL" = x; then | |
5969 DSYMUTIL=":" | |
5970 else | |
5971 case $cross_compiling:$ac_tool_warned in | |
5972 yes:) | |
5973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5974 whose name does not start with the host triplet. If you think this | |
5975 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5977 whose name does not start with the host triplet. If you think this | |
5978 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5979 ac_tool_warned=yes ;; | |
5980 esac | |
5981 DSYMUTIL=$ac_ct_DSYMUTIL | |
5982 fi | |
5983 else | |
5984 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
5985 fi | |
5986 | |
5987 if test -n "$ac_tool_prefix"; then | |
5988 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
5989 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
5990 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5992 if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
5993 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5994 else | |
5995 if test -n "$NMEDIT"; then | |
5996 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
5997 else | |
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5999 for as_dir in $PATH | |
6000 do | |
6001 IFS=$as_save_IFS | |
6002 test -z "$as_dir" && as_dir=. | |
6003 for ac_exec_ext in '' $ac_executable_extensions; do | |
6004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6005 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6007 break 2 | |
6008 fi | |
6009 done | |
6010 done | |
6011 IFS=$as_save_IFS | |
6012 | |
6013 fi | |
6014 fi | |
6015 NMEDIT=$ac_cv_prog_NMEDIT | |
6016 if test -n "$NMEDIT"; then | |
6017 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
6018 echo "${ECHO_T}$NMEDIT" >&6; } | |
6019 else | |
6020 { echo "$as_me:$LINENO: result: no" >&5 | |
6021 echo "${ECHO_T}no" >&6; } | |
6022 fi | |
6023 | |
6024 | |
6025 fi | |
6026 if test -z "$ac_cv_prog_NMEDIT"; then | |
6027 ac_ct_NMEDIT=$NMEDIT | |
6028 # Extract the first word of "nmedit", so it can be a program name with args. | |
6029 set dummy nmedit; ac_word=$2 | |
6030 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6032 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
6033 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6034 else | |
6035 if test -n "$ac_ct_NMEDIT"; then | |
6036 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6037 else | |
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6039 for as_dir in $PATH | |
6040 do | |
6041 IFS=$as_save_IFS | |
6042 test -z "$as_dir" && as_dir=. | |
6043 for ac_exec_ext in '' $ac_executable_extensions; do | |
6044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6045 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6047 break 2 | |
6048 fi | |
6049 done | |
6050 done | |
6051 IFS=$as_save_IFS | |
6052 | |
6053 fi | |
6054 fi | |
6055 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6056 if test -n "$ac_ct_NMEDIT"; then | |
6057 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
6058 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } | |
6059 else | |
6060 { echo "$as_me:$LINENO: result: no" >&5 | |
6061 echo "${ECHO_T}no" >&6; } | |
6062 fi | |
6063 | |
6064 if test "x$ac_ct_NMEDIT" = x; then | |
6065 NMEDIT=":" | |
6066 else | |
6067 case $cross_compiling:$ac_tool_warned in | |
6068 yes:) | |
6069 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6070 whose name does not start with the host triplet. If you think this | |
6071 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6072 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6073 whose name does not start with the host triplet. If you think this | |
6074 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6075 ac_tool_warned=yes ;; | |
6076 esac | |
6077 NMEDIT=$ac_ct_NMEDIT | |
6078 fi | |
6079 else | |
6080 NMEDIT="$ac_cv_prog_NMEDIT" | |
6081 fi | |
6082 | |
6083 if test -n "$ac_tool_prefix"; then | |
6084 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6085 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6088 if test "${ac_cv_prog_LIPO+set}" = set; then | |
6089 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6090 else | |
6091 if test -n "$LIPO"; then | |
6092 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
6093 else | |
6094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6095 for as_dir in $PATH | |
6096 do | |
6097 IFS=$as_save_IFS | |
6098 test -z "$as_dir" && as_dir=. | |
6099 for ac_exec_ext in '' $ac_executable_extensions; do | |
6100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6101 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
6102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6103 break 2 | |
6104 fi | |
6105 done | |
6106 done | |
6107 IFS=$as_save_IFS | |
6108 | |
6109 fi | |
6110 fi | |
6111 LIPO=$ac_cv_prog_LIPO | |
6112 if test -n "$LIPO"; then | |
6113 { echo "$as_me:$LINENO: result: $LIPO" >&5 | |
6114 echo "${ECHO_T}$LIPO" >&6; } | |
6115 else | |
6116 { echo "$as_me:$LINENO: result: no" >&5 | |
6117 echo "${ECHO_T}no" >&6; } | |
6118 fi | |
6119 | |
6120 | |
6121 fi | |
6122 if test -z "$ac_cv_prog_LIPO"; then | |
6123 ac_ct_LIPO=$LIPO | |
6124 # Extract the first word of "lipo", so it can be a program name with args. | |
6125 set dummy lipo; ac_word=$2 | |
6126 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6128 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
6129 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6130 else | |
6131 if test -n "$ac_ct_LIPO"; then | |
6132 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
6133 else | |
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6135 for as_dir in $PATH | |
6136 do | |
6137 IFS=$as_save_IFS | |
6138 test -z "$as_dir" && as_dir=. | |
6139 for ac_exec_ext in '' $ac_executable_extensions; do | |
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6141 ac_cv_prog_ac_ct_LIPO="lipo" | |
6142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6143 break 2 | |
6144 fi | |
6145 done | |
6146 done | |
6147 IFS=$as_save_IFS | |
6148 | |
6149 fi | |
6150 fi | |
6151 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
6152 if test -n "$ac_ct_LIPO"; then | |
6153 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
6154 echo "${ECHO_T}$ac_ct_LIPO" >&6; } | |
6155 else | |
6156 { echo "$as_me:$LINENO: result: no" >&5 | |
6157 echo "${ECHO_T}no" >&6; } | |
6158 fi | |
6159 | |
6160 if test "x$ac_ct_LIPO" = x; then | |
6161 LIPO=":" | |
6162 else | |
6163 case $cross_compiling:$ac_tool_warned in | |
6164 yes:) | |
6165 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6166 whose name does not start with the host triplet. If you think this | |
6167 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6168 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6169 whose name does not start with the host triplet. If you think this | |
6170 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6171 ac_tool_warned=yes ;; | |
6172 esac | |
6173 LIPO=$ac_ct_LIPO | |
6174 fi | |
6175 else | |
6176 LIPO="$ac_cv_prog_LIPO" | |
6177 fi | |
6178 | |
6179 if test -n "$ac_tool_prefix"; then | |
6180 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6181 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
6182 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6184 if test "${ac_cv_prog_OTOOL+set}" = set; then | |
6185 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6186 else | |
6187 if test -n "$OTOOL"; then | |
6188 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
6189 else | |
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6191 for as_dir in $PATH | |
6192 do | |
6193 IFS=$as_save_IFS | |
6194 test -z "$as_dir" && as_dir=. | |
6195 for ac_exec_ext in '' $ac_executable_extensions; do | |
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6197 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6199 break 2 | |
6200 fi | |
6201 done | |
6202 done | |
6203 IFS=$as_save_IFS | |
6204 | |
6205 fi | |
6206 fi | |
6207 OTOOL=$ac_cv_prog_OTOOL | |
6208 if test -n "$OTOOL"; then | |
6209 { echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
6210 echo "${ECHO_T}$OTOOL" >&6; } | |
6211 else | |
6212 { echo "$as_me:$LINENO: result: no" >&5 | |
6213 echo "${ECHO_T}no" >&6; } | |
6214 fi | |
6215 | |
6216 | |
6217 fi | |
6218 if test -z "$ac_cv_prog_OTOOL"; then | |
6219 ac_ct_OTOOL=$OTOOL | |
6220 # Extract the first word of "otool", so it can be a program name with args. | |
6221 set dummy otool; ac_word=$2 | |
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6224 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
6225 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6226 else | |
6227 if test -n "$ac_ct_OTOOL"; then | |
6228 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
6229 else | |
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6231 for as_dir in $PATH | |
6232 do | |
6233 IFS=$as_save_IFS | |
6234 test -z "$as_dir" && as_dir=. | |
6235 for ac_exec_ext in '' $ac_executable_extensions; do | |
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6237 ac_cv_prog_ac_ct_OTOOL="otool" | |
6238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6239 break 2 | |
6240 fi | |
6241 done | |
6242 done | |
6243 IFS=$as_save_IFS | |
6244 | |
6245 fi | |
6246 fi | |
6247 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
6248 if test -n "$ac_ct_OTOOL"; then | |
6249 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
6250 echo "${ECHO_T}$ac_ct_OTOOL" >&6; } | |
6251 else | |
6252 { echo "$as_me:$LINENO: result: no" >&5 | |
6253 echo "${ECHO_T}no" >&6; } | |
6254 fi | |
6255 | |
6256 if test "x$ac_ct_OTOOL" = x; then | |
6257 OTOOL=":" | |
6258 else | |
6259 case $cross_compiling:$ac_tool_warned in | |
6260 yes:) | |
6261 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6262 whose name does not start with the host triplet. If you think this | |
6263 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6264 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6265 whose name does not start with the host triplet. If you think this | |
6266 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6267 ac_tool_warned=yes ;; | |
6268 esac | |
6269 OTOOL=$ac_ct_OTOOL | |
6270 fi | |
6271 else | |
6272 OTOOL="$ac_cv_prog_OTOOL" | |
6273 fi | |
6274 | |
6275 if test -n "$ac_tool_prefix"; then | |
6276 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
6277 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
6278 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6280 if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
6281 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6282 else | |
6283 if test -n "$OTOOL64"; then | |
6284 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
6285 else | |
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6287 for as_dir in $PATH | |
6288 do | |
6289 IFS=$as_save_IFS | |
6290 test -z "$as_dir" && as_dir=. | |
6291 for ac_exec_ext in '' $ac_executable_extensions; do | |
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6293 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
6294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6295 break 2 | |
6296 fi | |
6297 done | |
6298 done | |
6299 IFS=$as_save_IFS | |
6300 | |
6301 fi | |
6302 fi | |
6303 OTOOL64=$ac_cv_prog_OTOOL64 | |
6304 if test -n "$OTOOL64"; then | |
6305 { echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
6306 echo "${ECHO_T}$OTOOL64" >&6; } | |
6307 else | |
6308 { echo "$as_me:$LINENO: result: no" >&5 | |
6309 echo "${ECHO_T}no" >&6; } | |
6310 fi | |
6311 | |
6312 | |
6313 fi | |
6314 if test -z "$ac_cv_prog_OTOOL64"; then | |
6315 ac_ct_OTOOL64=$OTOOL64 | |
6316 # Extract the first word of "otool64", so it can be a program name with args. | |
6317 set dummy otool64; ac_word=$2 | |
6318 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6320 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
6321 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6322 else | |
6323 if test -n "$ac_ct_OTOOL64"; then | |
6324 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
6325 else | |
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6327 for as_dir in $PATH | |
6328 do | |
6329 IFS=$as_save_IFS | |
6330 test -z "$as_dir" && as_dir=. | |
6331 for ac_exec_ext in '' $ac_executable_extensions; do | |
6332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6333 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
6334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6335 break 2 | |
6336 fi | |
6337 done | |
6338 done | |
6339 IFS=$as_save_IFS | |
6340 | |
6341 fi | |
6342 fi | |
6343 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
6344 if test -n "$ac_ct_OTOOL64"; then | |
6345 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
6346 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } | |
6347 else | |
6348 { echo "$as_me:$LINENO: result: no" >&5 | |
6349 echo "${ECHO_T}no" >&6; } | |
6350 fi | |
6351 | |
6352 if test "x$ac_ct_OTOOL64" = x; then | |
6353 OTOOL64=":" | |
6354 else | |
6355 case $cross_compiling:$ac_tool_warned in | |
6356 yes:) | |
6357 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6358 whose name does not start with the host triplet. If you think this | |
6359 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6360 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6361 whose name does not start with the host triplet. If you think this | |
6362 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6363 ac_tool_warned=yes ;; | |
6364 esac | |
6365 OTOOL64=$ac_ct_OTOOL64 | |
6366 fi | |
6367 else | |
6368 OTOOL64="$ac_cv_prog_OTOOL64" | |
6369 fi | |
6370 | |
6371 | |
6372 | |
6373 | |
6374 | |
6375 | |
6376 | |
6377 | |
6378 | |
6379 | |
6380 | |
6381 | |
6382 | |
6383 | |
6384 | |
6385 | |
6386 | |
6387 | |
6388 | |
6389 | |
6390 | |
6391 | |
6392 | |
6393 | |
6394 | |
6395 | |
6396 | |
6397 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
6398 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } | |
6399 if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
6400 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6401 else | |
6402 lt_cv_apple_cc_single_mod=no | |
6403 if test -z "${LT_MULTI_MODULE}"; then | |
6404 # By default we will add the -single_module flag. You can override | |
6405 # by either setting the environment variable LT_MULTI_MODULE | |
6406 # non-empty at configure time, or by adding -multi_module to the | |
6407 # link flags. | |
6408 rm -rf libconftest.dylib* | |
6409 echo "int foo(void){return 1;}" > conftest.c | |
6410 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6411 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
6412 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
6413 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
6414 _lt_result=$? | |
6415 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
6416 lt_cv_apple_cc_single_mod=yes | |
6417 else | |
6418 cat conftest.err >&5 | |
6419 fi | |
6420 rm -rf libconftest.dylib* | |
6421 rm -f conftest.* | |
6422 fi | |
6423 fi | |
6424 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
6425 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } | |
6426 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
6427 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } | |
6428 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
6429 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6430 else | |
6431 lt_cv_ld_exported_symbols_list=no | |
6432 save_LDFLAGS=$LDFLAGS | |
6433 echo "_main" > conftest.sym | |
6434 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
6435 cat >conftest.$ac_ext <<_ACEOF | |
6436 /* confdefs.h. */ | |
6437 _ACEOF | |
6438 cat confdefs.h >>conftest.$ac_ext | |
6439 cat >>conftest.$ac_ext <<_ACEOF | |
6440 /* end confdefs.h. */ | |
6441 | |
6442 int | |
6443 main () | |
6444 { | |
6445 | |
6446 ; | |
6447 return 0; | |
6448 } | |
6449 _ACEOF | |
6450 rm -f conftest.$ac_objext conftest$ac_exeext | |
6451 if { (ac_try="$ac_link" | |
6452 case "(($ac_try" in | |
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6454 *) ac_try_echo=$ac_try;; | |
6455 esac | |
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6457 (eval "$ac_link") 2>conftest.er1 | |
6458 ac_status=$? | |
6459 grep -v '^ *+' conftest.er1 >conftest.err | |
6460 rm -f conftest.er1 | |
6461 cat conftest.err >&5 | |
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6463 (exit $ac_status); } && | |
6464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6465 { (case "(($ac_try" in | |
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6467 *) ac_try_echo=$ac_try;; | |
6468 esac | |
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6470 (eval "$ac_try") 2>&5 | |
6471 ac_status=$? | |
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6473 (exit $ac_status); }; } && | |
6474 { ac_try='test -s conftest$ac_exeext' | |
6475 { (case "(($ac_try" in | |
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6477 *) ac_try_echo=$ac_try;; | |
6478 esac | |
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6480 (eval "$ac_try") 2>&5 | |
6481 ac_status=$? | |
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6483 (exit $ac_status); }; }; then | |
6484 lt_cv_ld_exported_symbols_list=yes | |
6485 else | |
6486 echo "$as_me: failed program was:" >&5 | |
6487 sed 's/^/| /' conftest.$ac_ext >&5 | |
6488 | |
6489 lt_cv_ld_exported_symbols_list=no | |
6490 fi | |
6491 | |
6492 rm -f core conftest.err conftest.$ac_objext \ | |
6493 conftest$ac_exeext conftest.$ac_ext | |
6494 LDFLAGS="$save_LDFLAGS" | |
6495 | |
6496 fi | |
6497 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
6498 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } | |
6499 case $host_os in | |
6500 rhapsody* | darwin1.[012]) | |
6501 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
6502 darwin1.*) | |
6503 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6504 darwin*) # darwin 5.x on | |
6505 # if running on 10.5 or later, the deployment target defaults | |
6506 # to the OS version, if on x86, and 10.4, the deployment | |
6507 # target defaults to 10.4. Don't you love it? | |
6508 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
6509 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
6510 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6511 10.[012]*) | |
6512 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
6513 10.*) | |
6514 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6515 esac | |
6516 ;; | |
6517 esac | |
6518 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
6519 _lt_dar_single_mod='$single_module' | |
6520 fi | |
6521 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
6522 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
6523 else | |
6524 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
6525 fi | |
6526 if test "$DSYMUTIL" != ":"; then | |
6527 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
6528 else | |
6529 _lt_dsymutil= | |
6530 fi | |
6531 ;; | |
6532 esac | |
6533 | |
6534 | |
6535 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6536 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
6537 if test "${ac_cv_header_stdc+set}" = set; then | |
6538 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6539 else | |
6540 cat >conftest.$ac_ext <<_ACEOF | |
6541 /* confdefs.h. */ | |
6542 _ACEOF | |
6543 cat confdefs.h >>conftest.$ac_ext | |
6544 cat >>conftest.$ac_ext <<_ACEOF | |
6545 /* end confdefs.h. */ | |
6546 #include <stdlib.h> | |
6547 #include <stdarg.h> | |
6548 #include <string.h> | |
6549 #include <float.h> | |
6550 | |
6551 int | |
6552 main () | |
6553 { | |
6554 | |
6555 ; | |
6556 return 0; | |
6557 } | |
6558 _ACEOF | |
6559 rm -f conftest.$ac_objext | |
6560 if { (ac_try="$ac_compile" | |
6561 case "(($ac_try" in | |
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6563 *) ac_try_echo=$ac_try;; | |
6564 esac | |
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6566 (eval "$ac_compile") 2>conftest.er1 | |
6567 ac_status=$? | |
6568 grep -v '^ *+' conftest.er1 >conftest.err | |
6569 rm -f conftest.er1 | |
6570 cat conftest.err >&5 | |
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6572 (exit $ac_status); } && | |
6573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6574 { (case "(($ac_try" in | |
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6576 *) ac_try_echo=$ac_try;; | |
6577 esac | |
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6579 (eval "$ac_try") 2>&5 | |
6580 ac_status=$? | |
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6582 (exit $ac_status); }; } && | |
6583 { ac_try='test -s conftest.$ac_objext' | |
6584 { (case "(($ac_try" in | |
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6586 *) ac_try_echo=$ac_try;; | |
6587 esac | |
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6589 (eval "$ac_try") 2>&5 | |
6590 ac_status=$? | |
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6592 (exit $ac_status); }; }; then | |
6593 ac_cv_header_stdc=yes | |
6594 else | |
6595 echo "$as_me: failed program was:" >&5 | |
6596 sed 's/^/| /' conftest.$ac_ext >&5 | |
6597 | |
6598 ac_cv_header_stdc=no | |
6599 fi | |
6600 | |
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6602 | |
6603 if test $ac_cv_header_stdc = yes; then | |
6604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6605 cat >conftest.$ac_ext <<_ACEOF | |
6606 /* confdefs.h. */ | |
6607 _ACEOF | |
6608 cat confdefs.h >>conftest.$ac_ext | |
6609 cat >>conftest.$ac_ext <<_ACEOF | |
6610 /* end confdefs.h. */ | |
6611 #include <string.h> | |
6612 | |
6613 _ACEOF | |
6614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6615 $EGREP "memchr" >/dev/null 2>&1; then | |
6616 : | |
6617 else | |
6618 ac_cv_header_stdc=no | |
6619 fi | |
6620 rm -f conftest* | |
6621 | |
6622 fi | |
6623 | |
6624 if test $ac_cv_header_stdc = yes; then | |
6625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6626 cat >conftest.$ac_ext <<_ACEOF | |
6627 /* confdefs.h. */ | |
6628 _ACEOF | |
6629 cat confdefs.h >>conftest.$ac_ext | |
6630 cat >>conftest.$ac_ext <<_ACEOF | |
6631 /* end confdefs.h. */ | |
6632 #include <stdlib.h> | |
6633 | |
6634 _ACEOF | |
6635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6636 $EGREP "free" >/dev/null 2>&1; then | |
6637 : | |
6638 else | |
6639 ac_cv_header_stdc=no | |
6640 fi | |
6641 rm -f conftest* | |
6642 | |
6643 fi | |
6644 | |
6645 if test $ac_cv_header_stdc = yes; then | |
6646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6647 if test "$cross_compiling" = yes; then | |
6648 : | |
6649 else | |
6650 cat >conftest.$ac_ext <<_ACEOF | |
6651 /* confdefs.h. */ | |
6652 _ACEOF | |
6653 cat confdefs.h >>conftest.$ac_ext | |
6654 cat >>conftest.$ac_ext <<_ACEOF | |
6655 /* end confdefs.h. */ | |
6656 #include <ctype.h> | |
6657 #include <stdlib.h> | |
6658 #if ((' ' & 0x0FF) == 0x020) | |
6659 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6660 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6661 #else | |
6662 # define ISLOWER(c) \ | |
6663 (('a' <= (c) && (c) <= 'i') \ | |
6664 || ('j' <= (c) && (c) <= 'r') \ | |
6665 || ('s' <= (c) && (c) <= 'z')) | |
6666 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6667 #endif | |
6668 | |
6669 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6670 int | |
6671 main () | |
6672 { | |
6673 int i; | |
6674 for (i = 0; i < 256; i++) | |
6675 if (XOR (islower (i), ISLOWER (i)) | |
6676 || toupper (i) != TOUPPER (i)) | |
6677 return 2; | |
6678 return 0; | |
6679 } | |
6680 _ACEOF | |
6681 rm -f conftest$ac_exeext | |
6682 if { (ac_try="$ac_link" | |
6683 case "(($ac_try" in | |
6684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6685 *) ac_try_echo=$ac_try;; | |
6686 esac | |
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6688 (eval "$ac_link") 2>&5 | |
6689 ac_status=$? | |
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6692 { (case "(($ac_try" in | |
6693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6694 *) ac_try_echo=$ac_try;; | |
6695 esac | |
6696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6697 (eval "$ac_try") 2>&5 | |
6698 ac_status=$? | |
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6700 (exit $ac_status); }; }; then | |
6701 : | |
6702 else | |
6703 echo "$as_me: program exited with status $ac_status" >&5 | |
6704 echo "$as_me: failed program was:" >&5 | |
6705 sed 's/^/| /' conftest.$ac_ext >&5 | |
6706 | |
6707 ( exit $ac_status ) | |
6708 ac_cv_header_stdc=no | |
6709 fi | |
6710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6711 fi | |
6712 | |
6713 | |
6714 fi | |
6715 fi | |
6716 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6717 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
6718 if test $ac_cv_header_stdc = yes; then | |
6719 | |
6720 cat >>confdefs.h <<\_ACEOF | |
6721 #define STDC_HEADERS 1 | |
6722 _ACEOF | |
6723 | |
6724 fi | |
6725 | |
6726 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6727 | |
6728 | |
6729 | |
6730 | |
6731 | |
6732 | |
6733 | |
6734 | |
6735 | |
6736 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6737 inttypes.h stdint.h unistd.h | |
6738 do | |
6739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6740 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6743 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6744 else | |
6745 cat >conftest.$ac_ext <<_ACEOF | |
6746 /* confdefs.h. */ | |
6747 _ACEOF | |
6748 cat confdefs.h >>conftest.$ac_ext | |
6749 cat >>conftest.$ac_ext <<_ACEOF | |
6750 /* end confdefs.h. */ | |
6751 $ac_includes_default | |
6752 | |
6753 #include <$ac_header> | |
6754 _ACEOF | |
6755 rm -f conftest.$ac_objext | |
6756 if { (ac_try="$ac_compile" | |
6757 case "(($ac_try" in | |
6758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6759 *) ac_try_echo=$ac_try;; | |
6760 esac | |
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6762 (eval "$ac_compile") 2>conftest.er1 | |
6763 ac_status=$? | |
6764 grep -v '^ *+' conftest.er1 >conftest.err | |
6765 rm -f conftest.er1 | |
6766 cat conftest.err >&5 | |
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6768 (exit $ac_status); } && | |
6769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6770 { (case "(($ac_try" in | |
6771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6772 *) ac_try_echo=$ac_try;; | |
6773 esac | |
6774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6775 (eval "$ac_try") 2>&5 | |
6776 ac_status=$? | |
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6778 (exit $ac_status); }; } && | |
6779 { ac_try='test -s conftest.$ac_objext' | |
6780 { (case "(($ac_try" in | |
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6782 *) ac_try_echo=$ac_try;; | |
6783 esac | |
6784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6785 (eval "$ac_try") 2>&5 | |
6786 ac_status=$? | |
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6788 (exit $ac_status); }; }; then | |
6789 eval "$as_ac_Header=yes" | |
6790 else | |
6791 echo "$as_me: failed program was:" >&5 | |
6792 sed 's/^/| /' conftest.$ac_ext >&5 | |
6793 | |
6794 eval "$as_ac_Header=no" | |
6795 fi | |
6796 | |
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6798 fi | |
6799 ac_res=`eval echo '${'$as_ac_Header'}'` | |
6800 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6801 echo "${ECHO_T}$ac_res" >&6; } | |
6802 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6803 cat >>confdefs.h <<_ACEOF | |
6804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6805 _ACEOF | |
6806 | |
6807 fi | |
6808 | |
6809 done | |
6810 | |
6811 | |
6812 | |
6813 for ac_header in dlfcn.h | |
6814 do | |
6815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6816 { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6819 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6820 else | |
6821 cat >conftest.$ac_ext <<_ACEOF | |
6822 /* confdefs.h. */ | |
6823 _ACEOF | |
6824 cat confdefs.h >>conftest.$ac_ext | |
6825 cat >>conftest.$ac_ext <<_ACEOF | |
6826 /* end confdefs.h. */ | |
6827 $ac_includes_default | |
6828 | |
6829 #include <$ac_header> | |
6830 _ACEOF | |
6831 rm -f conftest.$ac_objext | |
6832 if { (ac_try="$ac_compile" | |
6833 case "(($ac_try" in | |
6834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6835 *) ac_try_echo=$ac_try;; | |
6836 esac | |
6837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6838 (eval "$ac_compile") 2>conftest.er1 | |
6839 ac_status=$? | |
6840 grep -v '^ *+' conftest.er1 >conftest.err | |
6841 rm -f conftest.er1 | |
6842 cat conftest.err >&5 | |
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6844 (exit $ac_status); } && | |
6845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6846 { (case "(($ac_try" in | |
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6848 *) ac_try_echo=$ac_try;; | |
6849 esac | |
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6851 (eval "$ac_try") 2>&5 | |
6852 ac_status=$? | |
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6854 (exit $ac_status); }; } && | |
6855 { ac_try='test -s conftest.$ac_objext' | |
6856 { (case "(($ac_try" in | |
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6858 *) ac_try_echo=$ac_try;; | |
6859 esac | |
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6861 (eval "$ac_try") 2>&5 | |
6862 ac_status=$? | |
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6864 (exit $ac_status); }; }; then | |
6865 eval "$as_ac_Header=yes" | |
6866 else | |
6867 echo "$as_me: failed program was:" >&5 | |
6868 sed 's/^/| /' conftest.$ac_ext >&5 | |
6869 | |
6870 eval "$as_ac_Header=no" | |
6871 fi | |
6872 | |
6873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6874 fi | |
6875 ac_res=`eval echo '${'$as_ac_Header'}'` | |
6876 { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6877 echo "${ECHO_T}$ac_res" >&6; } | |
6878 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6879 cat >>confdefs.h <<_ACEOF | |
6880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6881 _ACEOF | |
6882 | |
6883 fi | |
6884 | |
6885 done | |
6886 | |
6887 | |
6888 | |
6889 # Set options | |
6890 | |
6891 | |
6892 | |
6893 enable_dlopen=no | |
6894 | |
6895 | |
6896 enable_win32_dll=no | |
6897 | |
6898 | |
6899 # Check whether --enable-shared was given. | |
6900 if test "${enable_shared+set}" = set; then | |
6901 enableval=$enable_shared; p=${PACKAGE-default} | |
6902 case $enableval in | |
6903 yes) enable_shared=yes ;; | |
6904 no) enable_shared=no ;; | |
6905 *) | |
6906 enable_shared=no | |
6907 # Look at the argument we got. We use all the common list separators. | |
6908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6909 for pkg in $enableval; do | |
6910 IFS="$lt_save_ifs" | |
6911 if test "X$pkg" = "X$p"; then | |
6912 enable_shared=yes | |
6913 fi | |
6914 done | |
6915 IFS="$lt_save_ifs" | |
6916 ;; | |
6917 esac | |
6918 else | |
6919 enable_shared=yes | |
6920 fi | |
6921 | |
6922 | |
6923 | |
6924 | |
6925 | |
6926 | |
6927 | |
6928 | |
6929 | |
6930 # Check whether --enable-static was given. | |
6931 if test "${enable_static+set}" = set; then | |
6932 enableval=$enable_static; p=${PACKAGE-default} | |
6933 case $enableval in | |
6934 yes) enable_static=yes ;; | |
6935 no) enable_static=no ;; | |
6936 *) | |
6937 enable_static=no | |
6938 # Look at the argument we got. We use all the common list separators. | |
6939 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6940 for pkg in $enableval; do | |
6941 IFS="$lt_save_ifs" | |
6942 if test "X$pkg" = "X$p"; then | |
6943 enable_static=yes | |
6944 fi | |
6945 done | |
6946 IFS="$lt_save_ifs" | |
6947 ;; | |
6948 esac | |
6949 else | |
6950 enable_static=yes | |
6951 fi | |
6952 | |
6953 | |
6954 | |
6955 | |
6956 | |
6957 | |
6958 | |
6959 | |
6960 | |
6961 | |
6962 # Check whether --with-pic was given. | |
6963 if test "${with_pic+set}" = set; then | |
6964 withval=$with_pic; pic_mode="$withval" | |
6965 else | |
6966 pic_mode=default | |
6967 fi | |
6968 | |
6969 | |
6970 test -z "$pic_mode" && pic_mode=default | |
6971 | |
6972 | |
6973 | |
6974 | |
6975 | |
6976 | |
6977 | |
6978 # Check whether --enable-fast-install was given. | |
6979 if test "${enable_fast_install+set}" = set; then | |
6980 enableval=$enable_fast_install; p=${PACKAGE-default} | |
6981 case $enableval in | |
6982 yes) enable_fast_install=yes ;; | |
6983 no) enable_fast_install=no ;; | |
6984 *) | |
6985 enable_fast_install=no | |
6986 # Look at the argument we got. We use all the common list separators. | |
6987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6988 for pkg in $enableval; do | |
6989 IFS="$lt_save_ifs" | |
6990 if test "X$pkg" = "X$p"; then | |
6991 enable_fast_install=yes | |
6992 fi | |
6993 done | |
6994 IFS="$lt_save_ifs" | |
6995 ;; | |
6996 esac | |
6997 else | |
6998 enable_fast_install=yes | |
6999 fi | |
7000 | |
7001 | |
7002 | |
7003 | |
7004 | |
7005 | |
7006 | |
7007 | |
7008 | |
7009 | |
7010 | |
7011 # This can be used to rebuild libtool when needed | |
7012 LIBTOOL_DEPS="$ltmain" | |
7013 | |
7014 # Always use our own libtool. | |
7015 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7016 | |
7017 | |
7018 | |
7019 | |
7020 | |
7021 | |
7022 | |
7023 | |
7024 | |
7025 | |
7026 | |
7027 | |
7028 | |
7029 | |
7030 | |
7031 | |
7032 | |
7033 | |
7034 | |
7035 | |
7036 | |
7037 | |
7038 | |
7039 | |
7040 | |
7041 test -z "$LN_S" && LN_S="ln -s" | |
7042 | |
7043 | |
7044 | |
7045 | |
7046 | |
7047 | |
7048 | |
7049 | |
7050 | |
7051 | |
7052 | |
7053 | |
7054 | |
7055 | |
7056 if test -n "${ZSH_VERSION+set}" ; then | |
7057 setopt NO_GLOB_SUBST | |
7058 fi | |
7059 | |
6466 { echo "$as_me:$LINENO: checking for objdir" >&5 | 7060 { echo "$as_me:$LINENO: checking for objdir" >&5 |
6467 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | 7061 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
6468 if test "${lt_cv_objdir+set}" = set; then | 7062 if test "${lt_cv_objdir+set}" = set; then |
6469 echo $ECHO_N "(cached) $ECHO_C" >&6 | 7063 echo $ECHO_N "(cached) $ECHO_C" >&6 |
6470 else | 7064 else |
6479 rmdir .libs 2>/dev/null | 7073 rmdir .libs 2>/dev/null |
6480 fi | 7074 fi |
6481 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | 7075 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6482 echo "${ECHO_T}$lt_cv_objdir" >&6; } | 7076 echo "${ECHO_T}$lt_cv_objdir" >&6; } |
6483 objdir=$lt_cv_objdir | 7077 objdir=$lt_cv_objdir |
7078 | |
7079 | |
7080 | |
7081 | |
7082 | |
7083 cat >>confdefs.h <<_ACEOF | |
7084 #define LT_OBJDIR "$lt_cv_objdir/" | |
7085 _ACEOF | |
7086 | |
7087 | |
7088 | |
7089 | |
7090 | |
7091 | |
7092 | |
7093 | |
7094 | |
7095 | |
7096 | |
7097 | |
6484 | 7098 |
6485 | 7099 |
6486 | 7100 |
6487 | 7101 |
6488 | 7102 |
6498 ;; | 7112 ;; |
6499 esac | 7113 esac |
6500 | 7114 |
6501 # Sed substitution that helps us do robust quoting. It backslashifies | 7115 # Sed substitution that helps us do robust quoting. It backslashifies |
6502 # metacharacters that are still active within double-quoted strings. | 7116 # metacharacters that are still active within double-quoted strings. |
6503 Xsed='sed -e 1s/^X//' | 7117 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
6504 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
6505 | 7118 |
6506 # Same as above, but do not quote variable references. | 7119 # Same as above, but do not quote variable references. |
6507 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | 7120 double_quote_subst='s/\(["`\\]\)/\\\1/g' |
6508 | 7121 |
6509 # Sed substitution to delay expansion of an escaped shell variable in a | 7122 # Sed substitution to delay expansion of an escaped shell variable in a |
6510 # double_quote_subst'ed string. | 7123 # double_quote_subst'ed string. |
6511 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 7124 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6512 | 7125 |
7126 # Sed substitution to delay expansion of an escaped single quote. | |
7127 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7128 | |
6513 # Sed substitution to avoid accidental globbing in evaled expressions | 7129 # Sed substitution to avoid accidental globbing in evaled expressions |
6514 no_glob_subst='s/\*/\\\*/g' | 7130 no_glob_subst='s/\*/\\\*/g' |
6515 | 7131 |
6516 # Constants: | |
6517 rm="rm -f" | |
6518 | |
6519 # Global variables: | 7132 # Global variables: |
6520 default_ofile=libtool | 7133 ofile=libtool |
6521 can_build_shared=yes | 7134 can_build_shared=yes |
6522 | 7135 |
6523 # All known linkers require a `.a' archive for static linking (except MSVC, | 7136 # All known linkers require a `.a' archive for static linking (except MSVC, |
6524 # which needs '.lib'). | 7137 # which needs '.lib'). |
6525 libext=a | 7138 libext=a |
6526 ltmain="$ac_aux_dir/ltmain.sh" | 7139 |
6527 ofile="$default_ofile" | |
6528 with_gnu_ld="$lt_cv_prog_gnu_ld" | 7140 with_gnu_ld="$lt_cv_prog_gnu_ld" |
6529 | |
6530 if test -n "$ac_tool_prefix"; then | |
6531 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6532 set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6533 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6535 if test "${ac_cv_prog_AR+set}" = set; then | |
6536 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6537 else | |
6538 if test -n "$AR"; then | |
6539 ac_cv_prog_AR="$AR" # Let the user override the test. | |
6540 else | |
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6542 for as_dir in $PATH | |
6543 do | |
6544 IFS=$as_save_IFS | |
6545 test -z "$as_dir" && as_dir=. | |
6546 for ac_exec_ext in '' $ac_executable_extensions; do | |
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6548 ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6550 break 2 | |
6551 fi | |
6552 done | |
6553 done | |
6554 IFS=$as_save_IFS | |
6555 | |
6556 fi | |
6557 fi | |
6558 AR=$ac_cv_prog_AR | |
6559 if test -n "$AR"; then | |
6560 { echo "$as_me:$LINENO: result: $AR" >&5 | |
6561 echo "${ECHO_T}$AR" >&6; } | |
6562 else | |
6563 { echo "$as_me:$LINENO: result: no" >&5 | |
6564 echo "${ECHO_T}no" >&6; } | |
6565 fi | |
6566 | |
6567 | |
6568 fi | |
6569 if test -z "$ac_cv_prog_AR"; then | |
6570 ac_ct_AR=$AR | |
6571 # Extract the first word of "ar", so it can be a program name with args. | |
6572 set dummy ar; ac_word=$2 | |
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6575 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
6576 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6577 else | |
6578 if test -n "$ac_ct_AR"; then | |
6579 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6580 else | |
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6582 for as_dir in $PATH | |
6583 do | |
6584 IFS=$as_save_IFS | |
6585 test -z "$as_dir" && as_dir=. | |
6586 for ac_exec_ext in '' $ac_executable_extensions; do | |
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6588 ac_cv_prog_ac_ct_AR="ar" | |
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6590 break 2 | |
6591 fi | |
6592 done | |
6593 done | |
6594 IFS=$as_save_IFS | |
6595 | |
6596 fi | |
6597 fi | |
6598 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6599 if test -n "$ac_ct_AR"; then | |
6600 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6601 echo "${ECHO_T}$ac_ct_AR" >&6; } | |
6602 else | |
6603 { echo "$as_me:$LINENO: result: no" >&5 | |
6604 echo "${ECHO_T}no" >&6; } | |
6605 fi | |
6606 | |
6607 if test "x$ac_ct_AR" = x; then | |
6608 AR="false" | |
6609 else | |
6610 case $cross_compiling:$ac_tool_warned in | |
6611 yes:) | |
6612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6613 whose name does not start with the host triplet. If you think this | |
6614 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6616 whose name does not start with the host triplet. If you think this | |
6617 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6618 ac_tool_warned=yes ;; | |
6619 esac | |
6620 AR=$ac_ct_AR | |
6621 fi | |
6622 else | |
6623 AR="$ac_cv_prog_AR" | |
6624 fi | |
6625 | |
6626 if test -n "$ac_tool_prefix"; then | |
6627 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6628 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6631 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6632 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6633 else | |
6634 if test -n "$RANLIB"; then | |
6635 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6636 else | |
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6638 for as_dir in $PATH | |
6639 do | |
6640 IFS=$as_save_IFS | |
6641 test -z "$as_dir" && as_dir=. | |
6642 for ac_exec_ext in '' $ac_executable_extensions; do | |
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6644 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6646 break 2 | |
6647 fi | |
6648 done | |
6649 done | |
6650 IFS=$as_save_IFS | |
6651 | |
6652 fi | |
6653 fi | |
6654 RANLIB=$ac_cv_prog_RANLIB | |
6655 if test -n "$RANLIB"; then | |
6656 { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6657 echo "${ECHO_T}$RANLIB" >&6; } | |
6658 else | |
6659 { echo "$as_me:$LINENO: result: no" >&5 | |
6660 echo "${ECHO_T}no" >&6; } | |
6661 fi | |
6662 | |
6663 | |
6664 fi | |
6665 if test -z "$ac_cv_prog_RANLIB"; then | |
6666 ac_ct_RANLIB=$RANLIB | |
6667 # Extract the first word of "ranlib", so it can be a program name with args. | |
6668 set dummy ranlib; ac_word=$2 | |
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6671 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6672 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6673 else | |
6674 if test -n "$ac_ct_RANLIB"; then | |
6675 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6676 else | |
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6678 for as_dir in $PATH | |
6679 do | |
6680 IFS=$as_save_IFS | |
6681 test -z "$as_dir" && as_dir=. | |
6682 for ac_exec_ext in '' $ac_executable_extensions; do | |
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6684 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6686 break 2 | |
6687 fi | |
6688 done | |
6689 done | |
6690 IFS=$as_save_IFS | |
6691 | |
6692 fi | |
6693 fi | |
6694 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6695 if test -n "$ac_ct_RANLIB"; then | |
6696 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6697 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
6698 else | |
6699 { echo "$as_me:$LINENO: result: no" >&5 | |
6700 echo "${ECHO_T}no" >&6; } | |
6701 fi | |
6702 | |
6703 if test "x$ac_ct_RANLIB" = x; then | |
6704 RANLIB=":" | |
6705 else | |
6706 case $cross_compiling:$ac_tool_warned in | |
6707 yes:) | |
6708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6709 whose name does not start with the host triplet. If you think this | |
6710 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6712 whose name does not start with the host triplet. If you think this | |
6713 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6714 ac_tool_warned=yes ;; | |
6715 esac | |
6716 RANLIB=$ac_ct_RANLIB | |
6717 fi | |
6718 else | |
6719 RANLIB="$ac_cv_prog_RANLIB" | |
6720 fi | |
6721 | |
6722 if test -n "$ac_tool_prefix"; then | |
6723 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6724 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6725 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6727 if test "${ac_cv_prog_STRIP+set}" = set; then | |
6728 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6729 else | |
6730 if test -n "$STRIP"; then | |
6731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6732 else | |
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6734 for as_dir in $PATH | |
6735 do | |
6736 IFS=$as_save_IFS | |
6737 test -z "$as_dir" && as_dir=. | |
6738 for ac_exec_ext in '' $ac_executable_extensions; do | |
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6740 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6742 break 2 | |
6743 fi | |
6744 done | |
6745 done | |
6746 IFS=$as_save_IFS | |
6747 | |
6748 fi | |
6749 fi | |
6750 STRIP=$ac_cv_prog_STRIP | |
6751 if test -n "$STRIP"; then | |
6752 { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6753 echo "${ECHO_T}$STRIP" >&6; } | |
6754 else | |
6755 { echo "$as_me:$LINENO: result: no" >&5 | |
6756 echo "${ECHO_T}no" >&6; } | |
6757 fi | |
6758 | |
6759 | |
6760 fi | |
6761 if test -z "$ac_cv_prog_STRIP"; then | |
6762 ac_ct_STRIP=$STRIP | |
6763 # Extract the first word of "strip", so it can be a program name with args. | |
6764 set dummy strip; ac_word=$2 | |
6765 { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
6767 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6768 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6769 else | |
6770 if test -n "$ac_ct_STRIP"; then | |
6771 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6772 else | |
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6774 for as_dir in $PATH | |
6775 do | |
6776 IFS=$as_save_IFS | |
6777 test -z "$as_dir" && as_dir=. | |
6778 for ac_exec_ext in '' $ac_executable_extensions; do | |
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6780 ac_cv_prog_ac_ct_STRIP="strip" | |
6781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6782 break 2 | |
6783 fi | |
6784 done | |
6785 done | |
6786 IFS=$as_save_IFS | |
6787 | |
6788 fi | |
6789 fi | |
6790 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6791 if test -n "$ac_ct_STRIP"; then | |
6792 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6793 echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
6794 else | |
6795 { echo "$as_me:$LINENO: result: no" >&5 | |
6796 echo "${ECHO_T}no" >&6; } | |
6797 fi | |
6798 | |
6799 if test "x$ac_ct_STRIP" = x; then | |
6800 STRIP=":" | |
6801 else | |
6802 case $cross_compiling:$ac_tool_warned in | |
6803 yes:) | |
6804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6805 whose name does not start with the host triplet. If you think this | |
6806 configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6808 whose name does not start with the host triplet. If you think this | |
6809 configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6810 ac_tool_warned=yes ;; | |
6811 esac | |
6812 STRIP=$ac_ct_STRIP | |
6813 fi | |
6814 else | |
6815 STRIP="$ac_cv_prog_STRIP" | |
6816 fi | |
6817 | |
6818 | 7141 |
6819 old_CC="$CC" | 7142 old_CC="$CC" |
6820 old_CFLAGS="$CFLAGS" | 7143 old_CFLAGS="$CFLAGS" |
6821 | 7144 |
6822 # Set sane defaults for various variables | 7145 # Set sane defaults for various variables |
6823 test -z "$AR" && AR=ar | |
6824 test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6825 test -z "$AS" && AS=as | |
6826 test -z "$CC" && CC=cc | 7146 test -z "$CC" && CC=cc |
6827 test -z "$LTCC" && LTCC=$CC | 7147 test -z "$LTCC" && LTCC=$CC |
6828 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | 7148 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6829 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6830 test -z "$LD" && LD=ld | 7149 test -z "$LD" && LD=ld |
6831 test -z "$LN_S" && LN_S="ln -s" | |
6832 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6833 test -z "$NM" && NM=nm | |
6834 test -z "$SED" && SED=sed | |
6835 test -z "$OBJDUMP" && OBJDUMP=objdump | |
6836 test -z "$RANLIB" && RANLIB=: | |
6837 test -z "$STRIP" && STRIP=: | |
6838 test -z "$ac_objext" && ac_objext=o | 7150 test -z "$ac_objext" && ac_objext=o |
6839 | |
6840 # Determine commands to create old-style static archives. | |
6841 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
6842 old_postinstall_cmds='chmod 644 $oldlib' | |
6843 old_postuninstall_cmds= | |
6844 | |
6845 if test -n "$RANLIB"; then | |
6846 case $host_os in | |
6847 openbsd*) | |
6848 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6849 ;; | |
6850 *) | |
6851 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6852 ;; | |
6853 esac | |
6854 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6855 fi | |
6856 | 7151 |
6857 for cc_temp in $compiler""; do | 7152 for cc_temp in $compiler""; do |
6858 case $cc_temp in | 7153 case $cc_temp in |
6859 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 7154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6860 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 7155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6861 \-*) ;; | 7156 \-*) ;; |
6862 *) break;; | 7157 *) break;; |
6863 esac | 7158 esac |
6864 done | 7159 done |
6865 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | 7160 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6866 | 7161 |
6867 | 7162 |
6868 # Only perform the check for file, if the check method requires it | 7163 # Only perform the check for file, if the check method requires it |
7164 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6869 case $deplibs_check_method in | 7165 case $deplibs_check_method in |
6870 file_magic*) | 7166 file_magic*) |
6871 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 7167 if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6872 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | 7168 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6873 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | 7169 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
6894 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 7190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6895 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 7191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6896 $EGREP "$file_magic_regex" > /dev/null; then | 7192 $EGREP "$file_magic_regex" > /dev/null; then |
6897 : | 7193 : |
6898 else | 7194 else |
6899 cat <<EOF 1>&2 | 7195 cat <<_LT_EOF 1>&2 |
6900 | 7196 |
6901 *** Warning: the command libtool uses to detect shared libraries, | 7197 *** Warning: the command libtool uses to detect shared libraries, |
6902 *** $file_magic_cmd, produces output that libtool cannot recognize. | 7198 *** $file_magic_cmd, produces output that libtool cannot recognize. |
6903 *** The result is that libtool may fail to recognize shared libraries | 7199 *** The result is that libtool may fail to recognize shared libraries |
6904 *** as such. This will affect the creation of libtool libraries that | 7200 *** as such. This will affect the creation of libtool libraries that |
6905 *** depend on shared libraries, but programs linked with such libtool | 7201 *** depend on shared libraries, but programs linked with such libtool |
6906 *** libraries will work regardless of this problem. Nevertheless, you | 7202 *** libraries will work regardless of this problem. Nevertheless, you |
6907 *** may want to report the problem to your system manager and/or to | 7203 *** may want to report the problem to your system manager and/or to |
6908 *** bug-libtool@gnu.org | 7204 *** bug-libtool@gnu.org |
6909 | 7205 |
6910 EOF | 7206 _LT_EOF |
6911 fi ;; | 7207 fi ;; |
6912 esac | 7208 esac |
6913 fi | 7209 fi |
6914 break | 7210 break |
6915 fi | 7211 fi |
6926 echo "${ECHO_T}$MAGIC_CMD" >&6; } | 7222 echo "${ECHO_T}$MAGIC_CMD" >&6; } |
6927 else | 7223 else |
6928 { echo "$as_me:$LINENO: result: no" >&5 | 7224 { echo "$as_me:$LINENO: result: no" >&5 |
6929 echo "${ECHO_T}no" >&6; } | 7225 echo "${ECHO_T}no" >&6; } |
6930 fi | 7226 fi |
7227 | |
7228 | |
7229 | |
7230 | |
6931 | 7231 |
6932 if test -z "$lt_cv_path_MAGIC_CMD"; then | 7232 if test -z "$lt_cv_path_MAGIC_CMD"; then |
6933 if test -n "$ac_tool_prefix"; then | 7233 if test -n "$ac_tool_prefix"; then |
6934 { echo "$as_me:$LINENO: checking for file" >&5 | 7234 { echo "$as_me:$LINENO: checking for file" >&5 |
6935 echo $ECHO_N "checking for file... $ECHO_C" >&6; } | 7235 echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
6956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 7256 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 7257 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6958 $EGREP "$file_magic_regex" > /dev/null; then | 7258 $EGREP "$file_magic_regex" > /dev/null; then |
6959 : | 7259 : |
6960 else | 7260 else |
6961 cat <<EOF 1>&2 | 7261 cat <<_LT_EOF 1>&2 |
6962 | 7262 |
6963 *** Warning: the command libtool uses to detect shared libraries, | 7263 *** Warning: the command libtool uses to detect shared libraries, |
6964 *** $file_magic_cmd, produces output that libtool cannot recognize. | 7264 *** $file_magic_cmd, produces output that libtool cannot recognize. |
6965 *** The result is that libtool may fail to recognize shared libraries | 7265 *** The result is that libtool may fail to recognize shared libraries |
6966 *** as such. This will affect the creation of libtool libraries that | 7266 *** as such. This will affect the creation of libtool libraries that |
6967 *** depend on shared libraries, but programs linked with such libtool | 7267 *** depend on shared libraries, but programs linked with such libtool |
6968 *** libraries will work regardless of this problem. Nevertheless, you | 7268 *** libraries will work regardless of this problem. Nevertheless, you |
6969 *** may want to report the problem to your system manager and/or to | 7269 *** may want to report the problem to your system manager and/or to |
6970 *** bug-libtool@gnu.org | 7270 *** bug-libtool@gnu.org |
6971 | 7271 |
6972 EOF | 7272 _LT_EOF |
6973 fi ;; | 7273 fi ;; |
6974 esac | 7274 esac |
6975 fi | 7275 fi |
6976 break | 7276 break |
6977 fi | 7277 fi |
6989 else | 7289 else |
6990 { echo "$as_me:$LINENO: result: no" >&5 | 7290 { echo "$as_me:$LINENO: result: no" >&5 |
6991 echo "${ECHO_T}no" >&6; } | 7291 echo "${ECHO_T}no" >&6; } |
6992 fi | 7292 fi |
6993 | 7293 |
7294 | |
6994 else | 7295 else |
6995 MAGIC_CMD=: | 7296 MAGIC_CMD=: |
6996 fi | 7297 fi |
6997 fi | 7298 fi |
6998 | 7299 |
6999 fi | 7300 fi |
7000 ;; | 7301 ;; |
7001 esac | 7302 esac |
7002 | 7303 |
7003 enable_dlopen=no | |
7004 enable_win32_dll=no | |
7005 | |
7006 # Check whether --enable-libtool-lock was given. | |
7007 if test "${enable_libtool_lock+set}" = set; then | |
7008 enableval=$enable_libtool_lock; | |
7009 fi | |
7010 | |
7011 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
7012 | |
7013 | |
7014 # Check whether --with-pic was given. | |
7015 if test "${with_pic+set}" = set; then | |
7016 withval=$with_pic; pic_mode="$withval" | |
7017 else | |
7018 pic_mode=default | |
7019 fi | |
7020 | |
7021 test -z "$pic_mode" && pic_mode=default | |
7022 | |
7023 # Use C for the default configuration in the libtool script | 7304 # Use C for the default configuration in the libtool script |
7024 tagname= | 7305 |
7025 lt_save_CC="$CC" | 7306 lt_save_CC="$CC" |
7026 ac_ext=c | 7307 ac_ext=c |
7027 ac_cpp='$CPP $CPPFLAGS' | 7308 ac_cpp='$CPP $CPPFLAGS' |
7028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 7309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 7310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7036 # Object file extension for compiled C test sources. | 7317 # Object file extension for compiled C test sources. |
7037 objext=o | 7318 objext=o |
7038 objext=$objext | 7319 objext=$objext |
7039 | 7320 |
7040 # Code to be used in simple compile tests | 7321 # Code to be used in simple compile tests |
7041 lt_simple_compile_test_code="int some_variable = 0;\n" | 7322 lt_simple_compile_test_code="int some_variable = 0;" |
7042 | 7323 |
7043 # Code to be used in simple link tests | 7324 # Code to be used in simple link tests |
7044 lt_simple_link_test_code='int main(){return(0);}\n' | 7325 lt_simple_link_test_code='int main(){return(0);}' |
7326 | |
7327 | |
7328 | |
7329 | |
7330 | |
7045 | 7331 |
7046 | 7332 |
7047 # If no C compiler was specified, use CC. | 7333 # If no C compiler was specified, use CC. |
7048 LTCC=${LTCC-"$CC"} | 7334 LTCC=${LTCC-"$CC"} |
7049 | 7335 |
7051 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 7337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7052 | 7338 |
7053 # Allow CC to be a program name with arguments. | 7339 # Allow CC to be a program name with arguments. |
7054 compiler=$CC | 7340 compiler=$CC |
7055 | 7341 |
7342 # Save the default compiler, since it gets overwritten when the other | |
7343 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7344 compiler_DEFAULT=$CC | |
7056 | 7345 |
7057 # save warnings/boilerplate of simple test code | 7346 # save warnings/boilerplate of simple test code |
7058 ac_outfile=conftest.$ac_objext | 7347 ac_outfile=conftest.$ac_objext |
7059 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 7348 echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
7060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 7349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7061 _lt_compiler_boilerplate=`cat conftest.err` | 7350 _lt_compiler_boilerplate=`cat conftest.err` |
7062 $rm conftest* | 7351 $RM conftest* |
7063 | 7352 |
7064 ac_outfile=conftest.$ac_objext | 7353 ac_outfile=conftest.$ac_objext |
7065 printf "$lt_simple_link_test_code" >conftest.$ac_ext | 7354 echo "$lt_simple_link_test_code" >conftest.$ac_ext |
7066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 7355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7067 _lt_linker_boilerplate=`cat conftest.err` | 7356 _lt_linker_boilerplate=`cat conftest.err` |
7068 $rm conftest* | 7357 $RM -r conftest* |
7069 | 7358 |
7070 | 7359 |
7360 if test -n "$compiler"; then | |
7071 | 7361 |
7072 lt_prog_compiler_no_builtin_flag= | 7362 lt_prog_compiler_no_builtin_flag= |
7073 | 7363 |
7074 if test "$GCC" = yes; then | 7364 if test "$GCC" = yes; then |
7075 lt_prog_compiler_no_builtin_flag=' -fno-builtin' | 7365 lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7076 | 7366 |
7077 | 7367 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7078 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
7079 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | 7368 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
7080 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | 7369 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7081 echo $ECHO_N "(cached) $ECHO_C" >&6 | 7370 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7082 else | 7371 else |
7083 lt_cv_prog_compiler_rtti_exceptions=no | 7372 lt_cv_prog_compiler_rtti_exceptions=no |
7084 ac_outfile=conftest.$ac_objext | 7373 ac_outfile=conftest.$ac_objext |
7085 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 7374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
7086 lt_compiler_flag="-fno-rtti -fno-exceptions" | 7375 lt_compiler_flag="-fno-rtti -fno-exceptions" |
7087 # Insert the option either (1) after the last *FLAGS variable, or | 7376 # Insert the option either (1) after the last *FLAGS variable, or |
7088 # (2) before a word containing "conftest.", or (3) at the end. | 7377 # (2) before a word containing "conftest.", or (3) at the end. |
7089 # Note that $ac_compile itself does not contain backslashes and begins | 7378 # Note that $ac_compile itself does not contain backslashes and begins |
7090 # with a dollar sign (not a hyphen), so the echo should work correctly. | 7379 # with a dollar sign (not a hyphen), so the echo should work correctly. |
7091 # The option is referenced via a variable to avoid confusing sed. | 7380 # The option is referenced via a variable to avoid confusing sed. |
7092 lt_compile=`echo "$ac_compile" | $SED \ | 7381 lt_compile=`echo "$ac_compile" | $SED \ |
7093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 7382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 7383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7095 -e 's:$: $lt_compiler_flag:'` | 7384 -e 's:$: $lt_compiler_flag:'` |
7096 (eval echo "\"\$as_me:7096: $lt_compile\"" >&5) | 7385 (eval echo "\"\$as_me:7385: $lt_compile\"" >&5) |
7097 (eval "$lt_compile" 2>conftest.err) | 7386 (eval "$lt_compile" 2>conftest.err) |
7098 ac_status=$? | 7387 ac_status=$? |
7099 cat conftest.err >&5 | 7388 cat conftest.err >&5 |
7100 echo "$as_me:7100: \$? = $ac_status" >&5 | 7389 echo "$as_me:7389: \$? = $ac_status" >&5 |
7101 if (exit $ac_status) && test -s "$ac_outfile"; then | 7390 if (exit $ac_status) && test -s "$ac_outfile"; then |
7102 # The compiler can only warn and ignore the option if not recognized | 7391 # The compiler can only warn and ignore the option if not recognized |
7103 # So say no if there are warnings other than the usual output. | 7392 # So say no if there are warnings other than the usual output. |
7104 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 7393 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 7394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 7395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7107 lt_cv_prog_compiler_rtti_exceptions=yes | 7396 lt_cv_prog_compiler_rtti_exceptions=yes |
7108 fi | 7397 fi |
7109 fi | 7398 fi |
7110 $rm conftest* | 7399 $RM conftest* |
7111 | 7400 |
7112 fi | 7401 fi |
7113 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 7402 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7114 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | 7403 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
7115 | 7404 |
7119 : | 7408 : |
7120 fi | 7409 fi |
7121 | 7410 |
7122 fi | 7411 fi |
7123 | 7412 |
7124 lt_prog_compiler_wl= | 7413 |
7414 | |
7415 | |
7416 | |
7417 | |
7418 lt_prog_compiler_wl= | |
7125 lt_prog_compiler_pic= | 7419 lt_prog_compiler_pic= |
7126 lt_prog_compiler_static= | 7420 lt_prog_compiler_static= |
7127 | 7421 |
7128 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | 7422 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7129 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | 7423 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
7140 lt_prog_compiler_static='-Bstatic' | 7434 lt_prog_compiler_static='-Bstatic' |
7141 fi | 7435 fi |
7142 ;; | 7436 ;; |
7143 | 7437 |
7144 amigaos*) | 7438 amigaos*) |
7145 # FIXME: we need at least 68020 code to build shared libraries, but | 7439 case $host_cpu in |
7146 # adding the `-m68020' flag to GCC prevents building anything better, | 7440 powerpc) |
7147 # like `-m68040'. | 7441 # see comment about AmigaOS4 .so support |
7148 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 7442 lt_prog_compiler_pic='-fPIC' |
7443 ;; | |
7444 m68k) | |
7445 # FIXME: we need at least 68020 code to build shared libraries, but | |
7446 # adding the `-m68020' flag to GCC prevents building anything better, | |
7447 # like `-m68040'. | |
7448 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
7449 ;; | |
7450 esac | |
7149 ;; | 7451 ;; |
7150 | 7452 |
7151 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 7453 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7152 # PIC is the default for these OSes. | 7454 # PIC is the default for these OSes. |
7153 ;; | 7455 ;; |
7154 | 7456 |
7155 mingw* | pw32* | os2*) | 7457 mingw* | cygwin* | pw32* | os2* | cegcc*) |
7156 # This hack is so that the source file can tell whether it is being | 7458 # This hack is so that the source file can tell whether it is being |
7157 # built for inclusion in a dll (and should export symbols for example). | 7459 # built for inclusion in a dll (and should export symbols for example). |
7460 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
7461 # (--disable-auto-import) libraries | |
7158 lt_prog_compiler_pic='-DDLL_EXPORT' | 7462 lt_prog_compiler_pic='-DDLL_EXPORT' |
7159 ;; | 7463 ;; |
7160 | 7464 |
7161 darwin* | rhapsody*) | 7465 darwin* | rhapsody*) |
7162 # PIC is the default on this platform | 7466 # PIC is the default on this platform |
7163 # Common symbols not allowed in MH_DYLIB files | 7467 # Common symbols not allowed in MH_DYLIB files |
7164 lt_prog_compiler_pic='-fno-common' | 7468 lt_prog_compiler_pic='-fno-common' |
7165 ;; | 7469 ;; |
7166 | 7470 |
7167 interix3*) | 7471 hpux*) |
7472 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
7473 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
7474 # sets the default TLS model and affects inlining. | |
7475 case $host_cpu in | |
7476 hppa*64*) | |
7477 # +Z the default | |
7478 ;; | |
7479 *) | |
7480 lt_prog_compiler_pic='-fPIC' | |
7481 ;; | |
7482 esac | |
7483 ;; | |
7484 | |
7485 interix[3-9]*) | |
7168 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 7486 # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7169 # Instead, we relocate shared libraries at runtime. | 7487 # Instead, we relocate shared libraries at runtime. |
7170 ;; | 7488 ;; |
7171 | 7489 |
7172 msdosdjgpp*) | 7490 msdosdjgpp*) |
7174 # on systems that don't support them. | 7492 # on systems that don't support them. |
7175 lt_prog_compiler_can_build_shared=no | 7493 lt_prog_compiler_can_build_shared=no |
7176 enable_shared=no | 7494 enable_shared=no |
7177 ;; | 7495 ;; |
7178 | 7496 |
7497 *nto* | *qnx*) | |
7498 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7499 # it will coredump. | |
7500 lt_prog_compiler_pic='-fPIC -shared' | |
7501 ;; | |
7502 | |
7179 sysv4*MP*) | 7503 sysv4*MP*) |
7180 if test -d /usr/nec; then | 7504 if test -d /usr/nec; then |
7181 lt_prog_compiler_pic=-Kconform_pic | 7505 lt_prog_compiler_pic=-Kconform_pic |
7182 fi | 7506 fi |
7183 ;; | |
7184 | |
7185 hpux*) | |
7186 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7187 # not for PA HP-UX. | |
7188 case $host_cpu in | |
7189 hppa*64*|ia64*) | |
7190 # +Z the default | |
7191 ;; | |
7192 *) | |
7193 lt_prog_compiler_pic='-fPIC' | |
7194 ;; | |
7195 esac | |
7196 ;; | 7507 ;; |
7197 | 7508 |
7198 *) | 7509 *) |
7199 lt_prog_compiler_pic='-fPIC' | 7510 lt_prog_compiler_pic='-fPIC' |
7200 ;; | 7511 ;; |
7209 lt_prog_compiler_static='-Bstatic' | 7520 lt_prog_compiler_static='-Bstatic' |
7210 else | 7521 else |
7211 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 7522 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7212 fi | 7523 fi |
7213 ;; | 7524 ;; |
7214 darwin*) | 7525 |
7215 # PIC is the default on this platform | 7526 mingw* | cygwin* | pw32* | os2* | cegcc*) |
7216 # Common symbols not allowed in MH_DYLIB files | |
7217 case $cc_basename in | |
7218 xlc*) | |
7219 lt_prog_compiler_pic='-qnocommon' | |
7220 lt_prog_compiler_wl='-Wl,' | |
7221 ;; | |
7222 esac | |
7223 ;; | |
7224 | |
7225 mingw* | pw32* | os2*) | |
7226 # This hack is so that the source file can tell whether it is being | 7527 # This hack is so that the source file can tell whether it is being |
7227 # built for inclusion in a dll (and should export symbols for example). | 7528 # built for inclusion in a dll (and should export symbols for example). |
7228 lt_prog_compiler_pic='-DDLL_EXPORT' | 7529 lt_prog_compiler_pic='-DDLL_EXPORT' |
7229 ;; | 7530 ;; |
7230 | 7531 |
7248 lt_prog_compiler_wl='-Wl,' | 7549 lt_prog_compiler_wl='-Wl,' |
7249 # PIC (with -KPIC) is the default. | 7550 # PIC (with -KPIC) is the default. |
7250 lt_prog_compiler_static='-non_shared' | 7551 lt_prog_compiler_static='-non_shared' |
7251 ;; | 7552 ;; |
7252 | 7553 |
7253 newsos6) | 7554 linux* | k*bsd*-gnu) |
7254 lt_prog_compiler_pic='-KPIC' | |
7255 lt_prog_compiler_static='-Bstatic' | |
7256 ;; | |
7257 | |
7258 linux*) | |
7259 case $cc_basename in | 7555 case $cc_basename in |
7260 icc* | ecc*) | 7556 # old Intel for x86_64 which still supported -KPIC. |
7557 ecc*) | |
7261 lt_prog_compiler_wl='-Wl,' | 7558 lt_prog_compiler_wl='-Wl,' |
7262 lt_prog_compiler_pic='-KPIC' | 7559 lt_prog_compiler_pic='-KPIC' |
7263 lt_prog_compiler_static='-static' | 7560 lt_prog_compiler_static='-static' |
7264 ;; | 7561 ;; |
7562 # icc used to be incompatible with GCC. | |
7563 # ICC 10 doesn't accept -KPIC any more. | |
7564 icc* | ifort*) | |
7565 lt_prog_compiler_wl='-Wl,' | |
7566 lt_prog_compiler_pic='-fPIC' | |
7567 lt_prog_compiler_static='-static' | |
7568 ;; | |
7569 # Lahey Fortran 8.1. | |
7570 lf95*) | |
7571 lt_prog_compiler_wl='-Wl,' | |
7572 lt_prog_compiler_pic='--shared' | |
7573 lt_prog_compiler_static='--static' | |
7574 ;; | |
7265 pgcc* | pgf77* | pgf90* | pgf95*) | 7575 pgcc* | pgf77* | pgf90* | pgf95*) |
7266 # Portland Group compilers (*not* the Pentium gcc compiler, | 7576 # Portland Group compilers (*not* the Pentium gcc compiler, |
7267 # which looks to be a dead project) | 7577 # which looks to be a dead project) |
7268 lt_prog_compiler_wl='-Wl,' | 7578 lt_prog_compiler_wl='-Wl,' |
7269 lt_prog_compiler_pic='-fpic' | 7579 lt_prog_compiler_pic='-fpic' |
7272 ccc*) | 7582 ccc*) |
7273 lt_prog_compiler_wl='-Wl,' | 7583 lt_prog_compiler_wl='-Wl,' |
7274 # All Alpha code is PIC. | 7584 # All Alpha code is PIC. |
7275 lt_prog_compiler_static='-non_shared' | 7585 lt_prog_compiler_static='-non_shared' |
7276 ;; | 7586 ;; |
7587 xl*) | |
7588 # IBM XL C 8.0/Fortran 10.1 on PPC | |
7589 lt_prog_compiler_wl='-Wl,' | |
7590 lt_prog_compiler_pic='-qpic' | |
7591 lt_prog_compiler_static='-qstaticlink' | |
7592 ;; | |
7593 *) | |
7594 case `$CC -V 2>&1 | sed 5q` in | |
7595 *Sun\ C*) | |
7596 # Sun C 5.9 | |
7597 lt_prog_compiler_pic='-KPIC' | |
7598 lt_prog_compiler_static='-Bstatic' | |
7599 lt_prog_compiler_wl='-Wl,' | |
7600 ;; | |
7601 *Sun\ F*) | |
7602 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7603 lt_prog_compiler_pic='-KPIC' | |
7604 lt_prog_compiler_static='-Bstatic' | |
7605 lt_prog_compiler_wl='' | |
7606 ;; | |
7607 esac | |
7608 ;; | |
7277 esac | 7609 esac |
7610 ;; | |
7611 | |
7612 newsos6) | |
7613 lt_prog_compiler_pic='-KPIC' | |
7614 lt_prog_compiler_static='-Bstatic' | |
7615 ;; | |
7616 | |
7617 *nto* | *qnx*) | |
7618 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7619 # it will coredump. | |
7620 lt_prog_compiler_pic='-fPIC -shared' | |
7278 ;; | 7621 ;; |
7279 | 7622 |
7280 osf3* | osf4* | osf5*) | 7623 osf3* | osf4* | osf5*) |
7281 lt_prog_compiler_wl='-Wl,' | 7624 lt_prog_compiler_wl='-Wl,' |
7282 # All OSF/1 code is PIC. | 7625 # All OSF/1 code is PIC. |
7626 lt_prog_compiler_static='-non_shared' | |
7627 ;; | |
7628 | |
7629 rdos*) | |
7283 lt_prog_compiler_static='-non_shared' | 7630 lt_prog_compiler_static='-non_shared' |
7284 ;; | 7631 ;; |
7285 | 7632 |
7286 solaris*) | 7633 solaris*) |
7287 lt_prog_compiler_pic='-KPIC' | 7634 lt_prog_compiler_pic='-KPIC' |
7333 lt_prog_compiler_can_build_shared=no | 7680 lt_prog_compiler_can_build_shared=no |
7334 ;; | 7681 ;; |
7335 esac | 7682 esac |
7336 fi | 7683 fi |
7337 | 7684 |
7685 case $host_os in | |
7686 # For platforms which do not support PIC, -DPIC is meaningless: | |
7687 *djgpp*) | |
7688 lt_prog_compiler_pic= | |
7689 ;; | |
7690 *) | |
7691 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7692 ;; | |
7693 esac | |
7338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | 7694 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7339 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | 7695 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
7696 | |
7697 | |
7698 | |
7699 | |
7700 | |
7340 | 7701 |
7341 # | 7702 # |
7342 # Check to make sure the PIC flag actually works. | 7703 # Check to make sure the PIC flag actually works. |
7343 # | 7704 # |
7344 if test -n "$lt_prog_compiler_pic"; then | 7705 if test -n "$lt_prog_compiler_pic"; then |
7345 | 7706 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7346 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7347 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | 7707 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
7348 if test "${lt_prog_compiler_pic_works+set}" = set; then | 7708 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
7349 echo $ECHO_N "(cached) $ECHO_C" >&6 | 7709 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7350 else | 7710 else |
7351 lt_prog_compiler_pic_works=no | 7711 lt_cv_prog_compiler_pic_works=no |
7352 ac_outfile=conftest.$ac_objext | 7712 ac_outfile=conftest.$ac_objext |
7353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 7713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
7354 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 7714 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7355 # Insert the option either (1) after the last *FLAGS variable, or | 7715 # Insert the option either (1) after the last *FLAGS variable, or |
7356 # (2) before a word containing "conftest.", or (3) at the end. | 7716 # (2) before a word containing "conftest.", or (3) at the end. |
7357 # Note that $ac_compile itself does not contain backslashes and begins | 7717 # Note that $ac_compile itself does not contain backslashes and begins |
7358 # with a dollar sign (not a hyphen), so the echo should work correctly. | 7718 # with a dollar sign (not a hyphen), so the echo should work correctly. |
7359 # The option is referenced via a variable to avoid confusing sed. | 7719 # The option is referenced via a variable to avoid confusing sed. |
7360 lt_compile=`echo "$ac_compile" | $SED \ | 7720 lt_compile=`echo "$ac_compile" | $SED \ |
7361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 7721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 7722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7363 -e 's:$: $lt_compiler_flag:'` | 7723 -e 's:$: $lt_compiler_flag:'` |
7364 (eval echo "\"\$as_me:7364: $lt_compile\"" >&5) | 7724 (eval echo "\"\$as_me:7724: $lt_compile\"" >&5) |
7365 (eval "$lt_compile" 2>conftest.err) | 7725 (eval "$lt_compile" 2>conftest.err) |
7366 ac_status=$? | 7726 ac_status=$? |
7367 cat conftest.err >&5 | 7727 cat conftest.err >&5 |
7368 echo "$as_me:7368: \$? = $ac_status" >&5 | 7728 echo "$as_me:7728: \$? = $ac_status" >&5 |
7369 if (exit $ac_status) && test -s "$ac_outfile"; then | 7729 if (exit $ac_status) && test -s "$ac_outfile"; then |
7370 # The compiler can only warn and ignore the option if not recognized | 7730 # The compiler can only warn and ignore the option if not recognized |
7371 # So say no if there are warnings other than the usual output. | 7731 # So say no if there are warnings other than the usual output. |
7372 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | 7732 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7373 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 7733 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7374 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 7734 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7375 lt_prog_compiler_pic_works=yes | 7735 lt_cv_prog_compiler_pic_works=yes |
7376 fi | 7736 fi |
7377 fi | 7737 fi |
7378 $rm conftest* | 7738 $RM conftest* |
7379 | 7739 |
7380 fi | 7740 fi |
7381 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | 7741 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
7382 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } | 7742 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } |
7383 | 7743 |
7384 if test x"$lt_prog_compiler_pic_works" = xyes; then | 7744 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
7385 case $lt_prog_compiler_pic in | 7745 case $lt_prog_compiler_pic in |
7386 "" | " "*) ;; | 7746 "" | " "*) ;; |
7387 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 7747 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7388 esac | 7748 esac |
7389 else | 7749 else |
7390 lt_prog_compiler_pic= | 7750 lt_prog_compiler_pic= |
7391 lt_prog_compiler_can_build_shared=no | 7751 lt_prog_compiler_can_build_shared=no |
7392 fi | 7752 fi |
7393 | 7753 |
7394 fi | 7754 fi |
7395 case $host_os in | 7755 |
7396 # For platforms which do not support PIC, -DPIC is meaningless: | 7756 |
7397 *djgpp*) | 7757 |
7398 lt_prog_compiler_pic= | 7758 |
7399 ;; | 7759 |
7400 *) | |
7401 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7402 ;; | |
7403 esac | |
7404 | 7760 |
7405 # | 7761 # |
7406 # Check to make sure the static flag actually works. | 7762 # Check to make sure the static flag actually works. |
7407 # | 7763 # |
7408 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | 7764 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
7409 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 7765 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7410 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | 7766 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
7411 if test "${lt_prog_compiler_static_works+set}" = set; then | 7767 if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
7412 echo $ECHO_N "(cached) $ECHO_C" >&6 | 7768 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7413 else | 7769 else |
7414 lt_prog_compiler_static_works=no | 7770 lt_cv_prog_compiler_static_works=no |
7415 save_LDFLAGS="$LDFLAGS" | 7771 save_LDFLAGS="$LDFLAGS" |
7416 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 7772 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
7417 printf "$lt_simple_link_test_code" > conftest.$ac_ext | 7773 echo "$lt_simple_link_test_code" > conftest.$ac_ext |
7418 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 7774 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7419 # The linker can only warn and ignore the option if not recognized | 7775 # The linker can only warn and ignore the option if not recognized |
7420 # So say no if there are warnings | 7776 # So say no if there are warnings |
7421 if test -s conftest.err; then | 7777 if test -s conftest.err; then |
7422 # Append any errors to the config.log. | 7778 # Append any errors to the config.log. |
7423 cat conftest.err 1>&5 | 7779 cat conftest.err 1>&5 |
7424 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | 7780 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 7781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7426 if diff conftest.exp conftest.er2 >/dev/null; then | 7782 if diff conftest.exp conftest.er2 >/dev/null; then |
7427 lt_prog_compiler_static_works=yes | 7783 lt_cv_prog_compiler_static_works=yes |
7428 fi | 7784 fi |
7429 else | 7785 else |
7430 lt_prog_compiler_static_works=yes | 7786 lt_cv_prog_compiler_static_works=yes |
7431 fi | 7787 fi |
7432 fi | 7788 fi |
7433 $rm conftest* | 7789 $RM -r conftest* |
7434 LDFLAGS="$save_LDFLAGS" | 7790 LDFLAGS="$save_LDFLAGS" |
7435 | 7791 |
7436 fi | 7792 fi |
7437 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | 7793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
7438 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } | 7794 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } |
7439 | 7795 |
7440 if test x"$lt_prog_compiler_static_works" = xyes; then | 7796 if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
7441 : | 7797 : |
7442 else | 7798 else |
7443 lt_prog_compiler_static= | 7799 lt_prog_compiler_static= |
7444 fi | 7800 fi |
7445 | 7801 |
7446 | 7802 |
7447 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 7803 |
7804 | |
7805 | |
7806 | |
7807 | |
7808 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7448 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | 7809 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
7449 if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 7810 if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7450 echo $ECHO_N "(cached) $ECHO_C" >&6 | 7811 echo $ECHO_N "(cached) $ECHO_C" >&6 |
7451 else | 7812 else |
7452 lt_cv_prog_compiler_c_o=no | 7813 lt_cv_prog_compiler_c_o=no |
7453 $rm -r conftest 2>/dev/null | 7814 $RM -r conftest 2>/dev/null |
7454 mkdir conftest | 7815 mkdir conftest |
7455 cd conftest | 7816 cd conftest |
7456 mkdir out | 7817 mkdir out |
7457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 7818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
7458 | 7819 |
7459 lt_compiler_flag="-o out/conftest2.$ac_objext" | 7820 lt_compiler_flag="-o out/conftest2.$ac_objext" |
7460 # Insert the option either (1) after the last *FLAGS variable, or | 7821 # Insert the option either (1) after the last *FLAGS variable, or |
7461 # (2) before a word containing "conftest.", or (3) at the end. | 7822 # (2) before a word containing "conftest.", or (3) at the end. |
7462 # Note that $ac_compile itself does not contain backslashes and begins | 7823 # Note that $ac_compile itself does not contain backslashes and begins |
7463 # with a dollar sign (not a hyphen), so the echo should work correctly. | 7824 # with a dollar sign (not a hyphen), so the echo should work correctly. |
7464 lt_compile=`echo "$ac_compile" | $SED \ | 7825 lt_compile=`echo "$ac_compile" | $SED \ |
7465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 7826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 7827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7467 -e 's:$: $lt_compiler_flag:'` | 7828 -e 's:$: $lt_compiler_flag:'` |
7468 (eval echo "\"\$as_me:7468: $lt_compile\"" >&5) | 7829 (eval echo "\"\$as_me:7829: $lt_compile\"" >&5) |
7469 (eval "$lt_compile" 2>out/conftest.err) | 7830 (eval "$lt_compile" 2>out/conftest.err) |
7470 ac_status=$? | 7831 ac_status=$? |
7471 cat out/conftest.err >&5 | 7832 cat out/conftest.err >&5 |
7472 echo "$as_me:7472: \$? = $ac_status" >&5 | 7833 echo "$as_me:7833: \$? = $ac_status" >&5 |
7473 if (exit $ac_status) && test -s out/conftest2.$ac_objext | 7834 if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7474 then | 7835 then |
7475 # The compiler can only warn and ignore the option if not recognized | 7836 # The compiler can only warn and ignore the option if not recognized |
7476 # So say no if there are warnings | 7837 # So say no if there are warnings |
7477 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | 7838 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 7839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 7840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7480 lt_cv_prog_compiler_c_o=yes | 7841 lt_cv_prog_compiler_c_o=yes |
7481 fi | 7842 fi |
7482 fi | 7843 fi |
7483 chmod u+w . 2>&5 | 7844 chmod u+w . 2>&5 |
7484 $rm conftest* | 7845 $RM conftest* |
7485 # SGI C++ compiler will create directory out/ii_files/ for | 7846 # SGI C++ compiler will create directory out/ii_files/ for |
7486 # template instantiation | 7847 # template instantiation |
7487 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | 7848 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
7488 $rm out/* && rmdir out | 7849 $RM out/* && rmdir out |
7489 cd .. | 7850 cd .. |
7490 rmdir conftest | 7851 $RM -r conftest |
7491 $rm conftest* | 7852 $RM conftest* |
7492 | 7853 |
7493 fi | 7854 fi |
7494 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | 7855 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7495 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | 7856 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
7857 | |
7858 | |
7859 | |
7860 | |
7861 | |
7862 | |
7863 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
7865 if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7866 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7867 else | |
7868 lt_cv_prog_compiler_c_o=no | |
7869 $RM -r conftest 2>/dev/null | |
7870 mkdir conftest | |
7871 cd conftest | |
7872 mkdir out | |
7873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7874 | |
7875 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7876 # Insert the option either (1) after the last *FLAGS variable, or | |
7877 # (2) before a word containing "conftest.", or (3) at the end. | |
7878 # Note that $ac_compile itself does not contain backslashes and begins | |
7879 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7880 lt_compile=`echo "$ac_compile" | $SED \ | |
7881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7883 -e 's:$: $lt_compiler_flag:'` | |
7884 (eval echo "\"\$as_me:7884: $lt_compile\"" >&5) | |
7885 (eval "$lt_compile" 2>out/conftest.err) | |
7886 ac_status=$? | |
7887 cat out/conftest.err >&5 | |
7888 echo "$as_me:7888: \$? = $ac_status" >&5 | |
7889 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
7890 then | |
7891 # The compiler can only warn and ignore the option if not recognized | |
7892 # So say no if there are warnings | |
7893 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7896 lt_cv_prog_compiler_c_o=yes | |
7897 fi | |
7898 fi | |
7899 chmod u+w . 2>&5 | |
7900 $RM conftest* | |
7901 # SGI C++ compiler will create directory out/ii_files/ for | |
7902 # template instantiation | |
7903 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7904 $RM out/* && rmdir out | |
7905 cd .. | |
7906 $RM -r conftest | |
7907 $RM conftest* | |
7908 | |
7909 fi | |
7910 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
7912 | |
7913 | |
7496 | 7914 |
7497 | 7915 |
7498 hard_links="nottested" | 7916 hard_links="nottested" |
7499 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | 7917 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7500 # do not overwrite the value of need_locks provided by the user | 7918 # do not overwrite the value of need_locks provided by the user |
7501 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | 7919 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7502 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | 7920 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
7503 hard_links=yes | 7921 hard_links=yes |
7504 $rm conftest* | 7922 $RM conftest* |
7505 ln conftest.a conftest.b 2>/dev/null && hard_links=no | 7923 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7506 touch conftest.a | 7924 touch conftest.a |
7507 ln conftest.a conftest.b 2>&5 || hard_links=no | 7925 ln conftest.a conftest.b 2>&5 || hard_links=no |
7508 ln conftest.a conftest.b 2>/dev/null && hard_links=no | 7926 ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7509 { echo "$as_me:$LINENO: result: $hard_links" >&5 | 7927 { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7515 fi | 7933 fi |
7516 else | 7934 else |
7517 need_locks=no | 7935 need_locks=no |
7518 fi | 7936 fi |
7519 | 7937 |
7520 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 7938 |
7939 | |
7940 | |
7941 | |
7942 | |
7943 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7521 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | 7944 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
7522 | 7945 |
7523 runpath_var= | 7946 runpath_var= |
7524 allow_undefined_flag= | 7947 allow_undefined_flag= |
7525 enable_shared_with_static_runtimes=no | 7948 always_export_symbols=no |
7526 archive_cmds= | 7949 archive_cmds= |
7527 archive_expsym_cmds= | 7950 archive_expsym_cmds= |
7528 old_archive_From_new_cmds= | 7951 compiler_needs_object=no |
7529 old_archive_from_expsyms_cmds= | 7952 enable_shared_with_static_runtimes=no |
7530 export_dynamic_flag_spec= | 7953 export_dynamic_flag_spec= |
7531 whole_archive_flag_spec= | 7954 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7532 thread_safe_flag_spec= | 7955 hardcode_automatic=no |
7956 hardcode_direct=no | |
7957 hardcode_direct_absolute=no | |
7533 hardcode_libdir_flag_spec= | 7958 hardcode_libdir_flag_spec= |
7534 hardcode_libdir_flag_spec_ld= | 7959 hardcode_libdir_flag_spec_ld= |
7535 hardcode_libdir_separator= | 7960 hardcode_libdir_separator= |
7536 hardcode_direct=no | |
7537 hardcode_minus_L=no | 7961 hardcode_minus_L=no |
7538 hardcode_shlibpath_var=unsupported | 7962 hardcode_shlibpath_var=unsupported |
7963 inherit_rpath=no | |
7539 link_all_deplibs=unknown | 7964 link_all_deplibs=unknown |
7540 hardcode_automatic=no | |
7541 module_cmds= | 7965 module_cmds= |
7542 module_expsym_cmds= | 7966 module_expsym_cmds= |
7543 always_export_symbols=no | 7967 old_archive_from_new_cmds= |
7544 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 7968 old_archive_from_expsyms_cmds= |
7969 thread_safe_flag_spec= | |
7970 whole_archive_flag_spec= | |
7545 # include_expsyms should be a list of space-separated symbols to be *always* | 7971 # include_expsyms should be a list of space-separated symbols to be *always* |
7546 # included in the symbol list | 7972 # included in the symbol list |
7547 include_expsyms= | 7973 include_expsyms= |
7548 # exclude_expsyms can be an extended regexp of symbols to exclude | 7974 # exclude_expsyms can be an extended regexp of symbols to exclude |
7549 # it will be wrapped by ` (' and `)$', so one must not match beginning or | 7975 # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7550 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 7976 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7551 # as well as any symbol that contains `d'. | 7977 # as well as any symbol that contains `d'. |
7552 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | 7978 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
7553 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 7979 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7554 # platforms (ab)use it in PIC code, but their linkers get confused if | 7980 # platforms (ab)use it in PIC code, but their linkers get confused if |
7555 # the symbol is explicitly referenced. Since portable code cannot | 7981 # the symbol is explicitly referenced. Since portable code cannot |
7556 # rely on this symbol name, it's probably fine to never include it in | 7982 # rely on this symbol name, it's probably fine to never include it in |
7557 # preloaded symbol tables. | 7983 # preloaded symbol tables. |
7984 # Exclude shared library initialization/finalization symbols. | |
7558 extract_expsyms_cmds= | 7985 extract_expsyms_cmds= |
7559 # Just being paranoid about ensuring that cc_basename is set. | |
7560 for cc_temp in $compiler""; do | |
7561 case $cc_temp in | |
7562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7564 \-*) ;; | |
7565 *) break;; | |
7566 esac | |
7567 done | |
7568 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7569 | 7986 |
7570 case $host_os in | 7987 case $host_os in |
7571 cygwin* | mingw* | pw32*) | 7988 cygwin* | mingw* | pw32* | cegcc*) |
7572 # FIXME: the MSVC++ port hasn't been tested in a loooong time | 7989 # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7573 # When not using gcc, we currently assume that we are using | 7990 # When not using gcc, we currently assume that we are using |
7574 # Microsoft Visual C++. | 7991 # Microsoft Visual C++. |
7575 if test "$GCC" != yes; then | 7992 if test "$GCC" != yes; then |
7576 with_gnu_ld=no | 7993 with_gnu_ld=no |
7592 | 8009 |
7593 # Set some defaults for GNU ld with shared library support. These | 8010 # Set some defaults for GNU ld with shared library support. These |
7594 # are reset later if shared libraries are not supported. Putting them | 8011 # are reset later if shared libraries are not supported. Putting them |
7595 # here allows them to be overridden if necessary. | 8012 # here allows them to be overridden if necessary. |
7596 runpath_var=LD_RUN_PATH | 8013 runpath_var=LD_RUN_PATH |
7597 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | 8014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7598 export_dynamic_flag_spec='${wl}--export-dynamic' | 8015 export_dynamic_flag_spec='${wl}--export-dynamic' |
7599 # ancient GNU ld didn't support --whole-archive et. al. | 8016 # ancient GNU ld didn't support --whole-archive et. al. |
7600 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | 8017 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
7601 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 8018 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7602 else | 8019 else |
7603 whole_archive_flag_spec= | 8020 whole_archive_flag_spec= |
7604 fi | 8021 fi |
7605 supports_anon_versioning=no | 8022 supports_anon_versioning=no |
7606 case `$LD -v 2>/dev/null` in | 8023 case `$LD -v 2>&1` in |
7607 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 8024 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 8025 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 8026 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7610 *\ 2.11.*) ;; # other 2.11 versions | 8027 *\ 2.11.*) ;; # other 2.11 versions |
7611 *) supports_anon_versioning=yes ;; | 8028 *) supports_anon_versioning=yes ;; |
7612 esac | 8029 esac |
7613 | 8030 |
7614 # See if GNU ld supports shared libraries. | 8031 # See if GNU ld supports shared libraries. |
7615 case $host_os in | 8032 case $host_os in |
7616 aix3* | aix4* | aix5*) | 8033 aix[3-9]*) |
7617 # On AIX/PPC, the GNU linker is very broken | 8034 # On AIX/PPC, the GNU linker is very broken |
7618 if test "$host_cpu" != ia64; then | 8035 if test "$host_cpu" != ia64; then |
7619 ld_shlibs=no | 8036 ld_shlibs=no |
7620 cat <<EOF 1>&2 | 8037 cat <<_LT_EOF 1>&2 |
7621 | 8038 |
7622 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | 8039 *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7623 *** to be unable to reliably create shared libraries on AIX. | 8040 *** to be unable to reliably create shared libraries on AIX. |
7624 *** Therefore, libtool is disabling shared libraries support. If you | 8041 *** Therefore, libtool is disabling shared libraries support. If you |
7625 *** really care for shared libraries, you may want to modify your PATH | 8042 *** really care for shared libraries, you may want to modify your PATH |
7626 *** so that a non-GNU linker is found, and then restart. | 8043 *** so that a non-GNU linker is found, and then restart. |
7627 | 8044 |
7628 EOF | 8045 _LT_EOF |
7629 fi | 8046 fi |
7630 ;; | 8047 ;; |
7631 | 8048 |
7632 amigaos*) | 8049 amigaos*) |
7633 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)' | 8050 case $host_cpu in |
7634 hardcode_libdir_flag_spec='-L$libdir' | 8051 powerpc) |
7635 hardcode_minus_L=yes | 8052 # see comment about AmigaOS4 .so support |
7636 | 8053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7637 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | 8054 archive_expsym_cmds='' |
7638 # that the semantics of dynamic libraries on AmigaOS, at least up | 8055 ;; |
7639 # to version 4, is to share data among multiple programs linked | 8056 m68k) |
7640 # with the same dynamic library. Since this doesn't match the | 8057 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)' |
7641 # behavior of shared libraries on other platforms, we can't use | 8058 hardcode_libdir_flag_spec='-L$libdir' |
7642 # them. | 8059 hardcode_minus_L=yes |
7643 ld_shlibs=no | 8060 ;; |
8061 esac | |
7644 ;; | 8062 ;; |
7645 | 8063 |
7646 beos*) | 8064 beos*) |
7647 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 8065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
7648 allow_undefined_flag=unsupported | 8066 allow_undefined_flag=unsupported |
7649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 8067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7650 # support --undefined. This deserves some investigation. FIXME | 8068 # support --undefined. This deserves some investigation. FIXME |
7651 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 8069 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7652 else | 8070 else |
7653 ld_shlibs=no | 8071 ld_shlibs=no |
7654 fi | 8072 fi |
7655 ;; | 8073 ;; |
7656 | 8074 |
7657 cygwin* | mingw* | pw32*) | 8075 cygwin* | mingw* | pw32* | cegcc*) |
7658 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 8076 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7659 # as there is no search path for DLLs. | 8077 # as there is no search path for DLLs. |
7660 hardcode_libdir_flag_spec='-L$libdir' | 8078 hardcode_libdir_flag_spec='-L$libdir' |
7661 allow_undefined_flag=unsupported | 8079 allow_undefined_flag=unsupported |
7662 always_export_symbols=no | 8080 always_export_symbols=no |
7663 enable_shared_with_static_runtimes=yes | 8081 enable_shared_with_static_runtimes=yes |
7664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 8082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
7665 | 8083 |
7666 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 8084 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
7667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 8085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7668 # If the export-symbols file already is a .def file (1st line | 8086 # If the export-symbols file already is a .def file (1st line |
7669 # is EXPORTS), use it as is; otherwise, prepend... | 8087 # is EXPORTS), use it as is; otherwise, prepend... |
7670 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 8088 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7671 cp $export_symbols $output_objdir/$soname.def; | 8089 cp $export_symbols $output_objdir/$soname.def; |
7677 else | 8095 else |
7678 ld_shlibs=no | 8096 ld_shlibs=no |
7679 fi | 8097 fi |
7680 ;; | 8098 ;; |
7681 | 8099 |
7682 interix3*) | 8100 interix[3-9]*) |
7683 hardcode_direct=no | 8101 hardcode_direct=no |
7684 hardcode_shlibpath_var=no | 8102 hardcode_shlibpath_var=no |
7685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 8103 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7686 export_dynamic_flag_spec='${wl}-E' | 8104 export_dynamic_flag_spec='${wl}-E' |
7687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 8105 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7692 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | 8110 # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 8111 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7694 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' | 8112 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' |
7695 ;; | 8113 ;; |
7696 | 8114 |
7697 linux*) | 8115 gnu* | linux* | tpf* | k*bsd*-gnu) |
7698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 8116 tmp_diet=no |
8117 if test "$host_os" = linux-dietlibc; then | |
8118 case $cc_basename in | |
8119 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8120 esac | |
8121 fi | |
8122 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8123 && test "$tmp_diet" = no | |
8124 then | |
7699 tmp_addflag= | 8125 tmp_addflag= |
8126 tmp_sharedflag='-shared' | |
7700 case $cc_basename,$host_cpu in | 8127 case $cc_basename,$host_cpu in |
7701 pgcc*) # Portland Group C compiler | 8128 pgcc*) # Portland Group C compiler |
7702 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' | 8129 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' |
7703 tmp_addflag=' $pic_flag' | 8130 tmp_addflag=' $pic_flag' |
7704 ;; | 8131 ;; |
7705 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | 8132 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7706 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' | 8133 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' |
7707 tmp_addflag=' $pic_flag -Mnomain' ;; | 8134 tmp_addflag=' $pic_flag -Mnomain' ;; |
7708 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | 8135 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7709 tmp_addflag=' -i_dynamic' ;; | 8136 tmp_addflag=' -i_dynamic' ;; |
7710 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | 8137 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7711 tmp_addflag=' -i_dynamic -nofor_main' ;; | 8138 tmp_addflag=' -i_dynamic -nofor_main' ;; |
7712 ifc* | ifort*) # Intel Fortran compiler | 8139 ifc* | ifort*) # Intel Fortran compiler |
7713 tmp_addflag=' -nofor_main' ;; | 8140 tmp_addflag=' -nofor_main' ;; |
8141 lf95*) # Lahey Fortran 8.1 | |
8142 whole_archive_flag_spec= | |
8143 tmp_sharedflag='--shared' ;; | |
8144 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8145 tmp_sharedflag='-qmkshrobj' | |
8146 tmp_addflag= ;; | |
7714 esac | 8147 esac |
7715 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 8148 case `$CC -V 2>&1 | sed 5q` in |
7716 | 8149 *Sun\ C*) # Sun C 5.9 |
7717 if test $supports_anon_versioning = yes; then | 8150 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
7718 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | 8151 compiler_needs_object=yes |
7719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 8152 tmp_sharedflag='-G' ;; |
7720 $echo "local: *; };" >> $output_objdir/$libname.ver~ | 8153 *Sun\ F*) # Sun Fortran 8.3 |
7721 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 8154 tmp_sharedflag='-G' ;; |
7722 fi | 8155 esac |
8156 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8157 | |
8158 if test "x$supports_anon_versioning" = xyes; then | |
8159 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8160 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8161 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8162 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8163 fi | |
8164 | |
8165 case $cc_basename in | |
8166 xlf*) | |
8167 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8168 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8169 hardcode_libdir_flag_spec= | |
8170 hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8171 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8172 if test "x$supports_anon_versioning" = xyes; then | |
8173 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8175 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8176 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8177 fi | |
8178 ;; | |
8179 esac | |
7723 else | 8180 else |
7724 ld_shlibs=no | 8181 ld_shlibs=no |
7725 fi | 8182 fi |
7726 ;; | 8183 ;; |
7727 | 8184 |
7728 netbsd*) | 8185 netbsd*) |
7729 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 8186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
7730 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 8187 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7731 wlarc= | 8188 wlarc= |
7732 else | 8189 else |
7733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 8190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7734 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 8191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7735 fi | 8192 fi |
7736 ;; | 8193 ;; |
7737 | 8194 |
7738 solaris*) | 8195 solaris*) |
7739 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 8196 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
7740 ld_shlibs=no | 8197 ld_shlibs=no |
7741 cat <<EOF 1>&2 | 8198 cat <<_LT_EOF 1>&2 |
7742 | 8199 |
7743 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 8200 *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7744 *** create shared libraries on Solaris systems. Therefore, libtool | 8201 *** create shared libraries on Solaris systems. Therefore, libtool |
7745 *** is disabling shared libraries support. We urge you to upgrade GNU | 8202 *** is disabling shared libraries support. We urge you to upgrade GNU |
7746 *** binutils to release 2.9.1 or newer. Another option is to modify | 8203 *** binutils to release 2.9.1 or newer. Another option is to modify |
7747 *** your PATH or compiler configuration so that the native linker is | 8204 *** your PATH or compiler configuration so that the native linker is |
7748 *** used, and then restart. | 8205 *** used, and then restart. |
7749 | 8206 |
7750 EOF | 8207 _LT_EOF |
7751 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 8208 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
7752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 8209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 8210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7754 else | 8211 else |
7755 ld_shlibs=no | 8212 ld_shlibs=no |
7756 fi | 8213 fi |
7770 *** used, and then restart. | 8227 *** used, and then restart. |
7771 | 8228 |
7772 _LT_EOF | 8229 _LT_EOF |
7773 ;; | 8230 ;; |
7774 *) | 8231 *) |
7775 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 8232 # For security reasons, it is highly recommended that you always |
7776 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | 8233 # use absolute paths for naming shared libraries, and exclude the |
7777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | 8234 # DT_RUNPATH tag from executables and libraries. But doing so |
7778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | 8235 # requires that you compile everything twice, which is a pain. |
8236 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7779 else | 8240 else |
7780 ld_shlibs=no | 8241 ld_shlibs=no |
7781 fi | 8242 fi |
7782 ;; | 8243 ;; |
7783 esac | 8244 esac |
7789 hardcode_direct=yes | 8250 hardcode_direct=yes |
7790 hardcode_shlibpath_var=no | 8251 hardcode_shlibpath_var=no |
7791 ;; | 8252 ;; |
7792 | 8253 |
7793 *) | 8254 *) |
7794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 8255 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
7795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 8256 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7796 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 8257 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7797 else | 8258 else |
7798 ld_shlibs=no | 8259 ld_shlibs=no |
7799 fi | 8260 fi |
7821 # broken collect2. | 8282 # broken collect2. |
7822 hardcode_direct=unsupported | 8283 hardcode_direct=unsupported |
7823 fi | 8284 fi |
7824 ;; | 8285 ;; |
7825 | 8286 |
7826 aix4* | aix5*) | 8287 aix[4-9]*) |
7827 if test "$host_cpu" = ia64; then | 8288 if test "$host_cpu" = ia64; then |
7828 # On IA64, the linker does run time linking by default, so we don't | 8289 # On IA64, the linker does run time linking by default, so we don't |
7829 # have to do anything special. | 8290 # have to do anything special. |
7830 aix_use_runtimelinking=no | 8291 aix_use_runtimelinking=no |
7831 exp_sym_flag='-Bexport' | 8292 exp_sym_flag='-Bexport' |
7832 no_entry_flag="" | 8293 no_entry_flag="" |
7833 else | 8294 else |
7834 # If we're using GNU nm, then we don't want the "-C" option. | 8295 # If we're using GNU nm, then we don't want the "-C" option. |
7835 # -C means demangle to AIX nm, but means don't demangle with GNU nm | 8296 # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7836 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | 8297 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
7837 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' | 8298 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' |
7838 else | 8299 else |
7839 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' | 8300 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' |
7840 fi | 8301 fi |
7841 aix_use_runtimelinking=no | 8302 aix_use_runtimelinking=no |
7842 | 8303 |
7843 # Test if we are trying to use run time linking or normal | 8304 # Test if we are trying to use run time linking or normal |
7844 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 8305 # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7845 # need to do runtime linking. | 8306 # need to do runtime linking. |
7846 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | 8307 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
7847 for ld_flag in $LDFLAGS; do | 8308 for ld_flag in $LDFLAGS; do |
7848 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 8309 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7849 aix_use_runtimelinking=yes | 8310 aix_use_runtimelinking=yes |
7850 break | 8311 break |
7851 fi | 8312 fi |
7852 done | 8313 done |
7853 ;; | 8314 ;; |
7854 esac | 8315 esac |
7855 | 8316 |
7856 exp_sym_flag='-bexport' | 8317 exp_sym_flag='-bexport' |
7863 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | 8324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7864 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 8325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7865 | 8326 |
7866 archive_cmds='' | 8327 archive_cmds='' |
7867 hardcode_direct=yes | 8328 hardcode_direct=yes |
8329 hardcode_direct_absolute=yes | |
7868 hardcode_libdir_separator=':' | 8330 hardcode_libdir_separator=':' |
7869 link_all_deplibs=yes | 8331 link_all_deplibs=yes |
8332 file_list_spec='${wl}-f,' | |
7870 | 8333 |
7871 if test "$GCC" = yes; then | 8334 if test "$GCC" = yes; then |
7872 case $host_os in aix4.[012]|aix4.[012].*) | 8335 case $host_os in aix4.[012]|aix4.[012].*) |
7873 # We only want to do this on AIX 4.2 and lower, the check | 8336 # We only want to do this on AIX 4.2 and lower, the check |
7874 # below for broken collect2 doesn't work under 4.3+ | 8337 # below for broken collect2 doesn't work under 4.3+ |
7875 collect2name=`${CC} -print-prog-name=collect2` | 8338 collect2name=`${CC} -print-prog-name=collect2` |
7876 if test -f "$collect2name" && \ | 8339 if test -f "$collect2name" && |
7877 strings "$collect2name" | grep resolve_lib_name >/dev/null | 8340 strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
7878 then | 8341 then |
7879 # We have reworked collect2 | 8342 # We have reworked collect2 |
7880 hardcode_direct=yes | 8343 : |
7881 else | 8344 else |
7882 # We have old collect2 | 8345 # We have old collect2 |
7883 hardcode_direct=unsupported | 8346 hardcode_direct=unsupported |
7884 # It fails to find uninstalled libraries when the uninstalled | 8347 # It fails to find uninstalled libraries when the uninstalled |
7885 # path is not listed in the libpath. Setting hardcode_minus_L | 8348 # path is not listed in the libpath. Setting hardcode_minus_L |
7886 # to unsupported forces relinking | 8349 # to unsupported forces relinking |
7887 hardcode_minus_L=yes | 8350 hardcode_minus_L=yes |
7888 hardcode_libdir_flag_spec='-L$libdir' | 8351 hardcode_libdir_flag_spec='-L$libdir' |
7889 hardcode_libdir_separator= | 8352 hardcode_libdir_separator= |
7890 fi | 8353 fi |
7891 ;; | 8354 ;; |
7892 esac | 8355 esac |
7893 shared_flag='-shared' | 8356 shared_flag='-shared' |
7894 if test "$aix_use_runtimelinking" = yes; then | 8357 if test "$aix_use_runtimelinking" = yes; then |
7895 shared_flag="$shared_flag "'${wl}-G' | 8358 shared_flag="$shared_flag "'${wl}-G' |
7896 fi | 8359 fi |
7897 else | 8360 else |
7898 # not using gcc | 8361 # not using gcc |
7899 if test "$host_cpu" = ia64; then | 8362 if test "$host_cpu" = ia64; then |
7900 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 8363 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7901 # chokes on -Wl,-G. The following line is correct: | 8364 # chokes on -Wl,-G. The following line is correct: |
7902 shared_flag='-G' | 8365 shared_flag='-G' |
7903 else | 8366 else |
7904 if test "$aix_use_runtimelinking" = yes; then | 8367 if test "$aix_use_runtimelinking" = yes; then |
7905 shared_flag='${wl}-G' | 8368 shared_flag='${wl}-G' |
7906 else | 8369 else |
7907 shared_flag='${wl}-bM:SRE' | 8370 shared_flag='${wl}-bM:SRE' |
7908 fi | 8371 fi |
7909 fi | 8372 fi |
7910 fi | 8373 fi |
7911 | 8374 |
8375 export_dynamic_flag_spec='${wl}-bexpall' | |
7912 # It seems that -bexpall does not export symbols beginning with | 8376 # It seems that -bexpall does not export symbols beginning with |
7913 # underscore (_), so it is better to generate a list of symbols to export. | 8377 # underscore (_), so it is better to generate a list of symbols to export. |
7914 always_export_symbols=yes | 8378 always_export_symbols=yes |
7915 if test "$aix_use_runtimelinking" = yes; then | 8379 if test "$aix_use_runtimelinking" = yes; then |
7916 # Warning - without using the other runtime loading flags (-brtl), | 8380 # Warning - without using the other runtime loading flags (-brtl), |
7917 # -berok will link without error, but may produce a broken library. | 8381 # -berok will link without error, but may produce a broken library. |
7918 allow_undefined_flag='-berok' | 8382 allow_undefined_flag='-berok' |
7919 # Determine the default libpath from the value encoded in an empty executable. | 8383 # Determine the default libpath from the value encoded in an |
7920 cat >conftest.$ac_ext <<_ACEOF | 8384 # empty executable. |
8385 cat >conftest.$ac_ext <<_ACEOF | |
7921 /* confdefs.h. */ | 8386 /* confdefs.h. */ |
7922 _ACEOF | 8387 _ACEOF |
7923 cat confdefs.h >>conftest.$ac_ext | 8388 cat confdefs.h >>conftest.$ac_ext |
7924 cat >>conftest.$ac_ext <<_ACEOF | 8389 cat >>conftest.$ac_ext <<_ACEOF |
7925 /* end confdefs.h. */ | 8390 /* end confdefs.h. */ |
7965 (eval "$ac_try") 2>&5 | 8430 (eval "$ac_try") 2>&5 |
7966 ac_status=$? | 8431 ac_status=$? |
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7968 (exit $ac_status); }; }; then | 8433 (exit $ac_status); }; }; then |
7969 | 8434 |
7970 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | 8435 lt_aix_libpath_sed=' |
7971 }'` | 8436 /Import File Strings/,/^$/ { |
8437 /^0/ { | |
8438 s/^0 *\(.*\)$/\1/ | |
8439 p | |
8440 } | |
8441 }' | |
8442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7972 # Check for a 64-bit object if we didn't find anything. | 8443 # Check for a 64-bit object if we didn't find anything. |
7973 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; } | 8444 if test -z "$aix_libpath"; then |
7974 }'`; fi | 8445 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8446 fi | |
7975 else | 8447 else |
7976 echo "$as_me: failed program was:" >&5 | 8448 echo "$as_me: failed program was:" >&5 |
7977 sed 's/^/| /' conftest.$ac_ext >&5 | 8449 sed 's/^/| /' conftest.$ac_ext >&5 |
7978 | 8450 |
7979 | 8451 |
7981 | 8453 |
7982 rm -f core conftest.err conftest.$ac_objext \ | 8454 rm -f core conftest.err conftest.$ac_objext \ |
7983 conftest$ac_exeext conftest.$ac_ext | 8455 conftest$ac_exeext conftest.$ac_ext |
7984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 8456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7985 | 8457 |
7986 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 8458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7987 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" | 8459 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
7988 else | 8460 else |
7989 if test "$host_cpu" = ia64; then | 8461 if test "$host_cpu" = ia64; then |
7990 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 8462 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7991 allow_undefined_flag="-z nodefs" | 8463 allow_undefined_flag="-z nodefs" |
7992 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" | 8464 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" |
7993 else | 8465 else |
7994 # Determine the default libpath from the value encoded in an empty executable. | 8466 # Determine the default libpath from the value encoded in an |
8467 # empty executable. | |
7995 cat >conftest.$ac_ext <<_ACEOF | 8468 cat >conftest.$ac_ext <<_ACEOF |
7996 /* confdefs.h. */ | 8469 /* confdefs.h. */ |
7997 _ACEOF | 8470 _ACEOF |
7998 cat confdefs.h >>conftest.$ac_ext | 8471 cat confdefs.h >>conftest.$ac_ext |
7999 cat >>conftest.$ac_ext <<_ACEOF | 8472 cat >>conftest.$ac_ext <<_ACEOF |
8040 (eval "$ac_try") 2>&5 | 8513 (eval "$ac_try") 2>&5 |
8041 ac_status=$? | 8514 ac_status=$? |
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8043 (exit $ac_status); }; }; then | 8516 (exit $ac_status); }; }; then |
8044 | 8517 |
8045 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | 8518 lt_aix_libpath_sed=' |
8046 }'` | 8519 /Import File Strings/,/^$/ { |
8520 /^0/ { | |
8521 s/^0 *\(.*\)$/\1/ | |
8522 p | |
8523 } | |
8524 }' | |
8525 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8047 # Check for a 64-bit object if we didn't find anything. | 8526 # Check for a 64-bit object if we didn't find anything. |
8048 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; } | 8527 if test -z "$aix_libpath"; then |
8049 }'`; fi | 8528 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8529 fi | |
8050 else | 8530 else |
8051 echo "$as_me: failed program was:" >&5 | 8531 echo "$as_me: failed program was:" >&5 |
8052 sed 's/^/| /' conftest.$ac_ext >&5 | 8532 sed 's/^/| /' conftest.$ac_ext >&5 |
8053 | 8533 |
8054 | 8534 |
8071 fi | 8551 fi |
8072 fi | 8552 fi |
8073 ;; | 8553 ;; |
8074 | 8554 |
8075 amigaos*) | 8555 amigaos*) |
8076 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)' | 8556 case $host_cpu in |
8077 hardcode_libdir_flag_spec='-L$libdir' | 8557 powerpc) |
8078 hardcode_minus_L=yes | 8558 # see comment about AmigaOS4 .so support |
8079 # see comment about different semantics on the GNU ld section | 8559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8080 ld_shlibs=no | 8560 archive_expsym_cmds='' |
8561 ;; | |
8562 m68k) | |
8563 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)' | |
8564 hardcode_libdir_flag_spec='-L$libdir' | |
8565 hardcode_minus_L=yes | |
8566 ;; | |
8567 esac | |
8081 ;; | 8568 ;; |
8082 | 8569 |
8083 bsdi[45]*) | 8570 bsdi[45]*) |
8084 export_dynamic_flag_spec=-rdynamic | 8571 export_dynamic_flag_spec=-rdynamic |
8085 ;; | 8572 ;; |
8086 | 8573 |
8087 cygwin* | mingw* | pw32*) | 8574 cygwin* | mingw* | pw32* | cegcc*) |
8088 # When not using gcc, we currently assume that we are using | 8575 # When not using gcc, we currently assume that we are using |
8089 # Microsoft Visual C++. | 8576 # Microsoft Visual C++. |
8090 # hardcode_libdir_flag_spec is actually meaningless, as there is | 8577 # hardcode_libdir_flag_spec is actually meaningless, as there is |
8091 # no search path for DLLs. | 8578 # no search path for DLLs. |
8092 hardcode_libdir_flag_spec=' ' | 8579 hardcode_libdir_flag_spec=' ' |
8094 # Tell ltmain to make .lib files, not .a files. | 8581 # Tell ltmain to make .lib files, not .a files. |
8095 libext=lib | 8582 libext=lib |
8096 # Tell ltmain to make .dll files, not .so files. | 8583 # Tell ltmain to make .dll files, not .so files. |
8097 shrext_cmds=".dll" | 8584 shrext_cmds=".dll" |
8098 # FIXME: Setting linknames here is a bad hack. | 8585 # FIXME: Setting linknames here is a bad hack. |
8099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | 8586 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8100 # The linker will automatically build a .lib file if we build a DLL. | 8587 # The linker will automatically build a .lib file if we build a DLL. |
8101 old_archive_From_new_cmds='true' | 8588 old_archive_from_new_cmds='true' |
8102 # FIXME: Should let the user specify the lib program. | 8589 # FIXME: Should let the user specify the lib program. |
8103 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | 8590 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
8104 fix_srcfile_path='`cygpath -w "$srcfile"`' | 8591 fix_srcfile_path='`cygpath -w "$srcfile"`' |
8105 enable_shared_with_static_runtimes=yes | 8592 enable_shared_with_static_runtimes=yes |
8106 ;; | 8593 ;; |
8107 | 8594 |
8108 darwin* | rhapsody*) | 8595 darwin* | rhapsody*) |
8109 case $host_os in | 8596 |
8110 rhapsody* | darwin1.[012]) | 8597 |
8111 allow_undefined_flag='${wl}-undefined ${wl}suppress' | 8598 archive_cmds_need_lc=no |
8112 ;; | 8599 hardcode_direct=no |
8113 *) # Darwin 1.3 on | 8600 hardcode_automatic=yes |
8114 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | 8601 hardcode_shlibpath_var=unsupported |
8115 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 8602 whole_archive_flag_spec='' |
8116 else | 8603 link_all_deplibs=yes |
8117 case ${MACOSX_DEPLOYMENT_TARGET} in | 8604 allow_undefined_flag="$_lt_dar_allow_undefined" |
8118 10.[012]) | 8605 case $cc_basename in |
8119 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | 8606 ifort*) _lt_dar_can_shared=yes ;; |
8120 ;; | 8607 *) _lt_dar_can_shared=$GCC ;; |
8121 10.*) | 8608 esac |
8122 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | 8609 if test "$_lt_dar_can_shared" = "yes"; then |
8123 ;; | 8610 output_verbose_link_cmd=echo |
8124 esac | 8611 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
8125 fi | 8612 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
8126 ;; | 8613 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
8127 esac | 8614 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
8128 archive_cmds_need_lc=no | 8615 |
8129 hardcode_direct=no | 8616 else |
8130 hardcode_automatic=yes | 8617 ld_shlibs=no |
8131 hardcode_shlibpath_var=unsupported | 8618 fi |
8132 whole_archive_flag_spec='' | 8619 |
8133 link_all_deplibs=yes | |
8134 if test "$GCC" = yes ; then | |
8135 output_verbose_link_cmd='echo' | |
8136 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8137 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8139 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}' | |
8140 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}' | |
8141 else | |
8142 case $cc_basename in | |
8143 xlc*) | |
8144 output_verbose_link_cmd='echo' | |
8145 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
8146 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8147 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8148 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}' | |
8149 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}' | |
8150 ;; | |
8151 *) | |
8152 ld_shlibs=no | |
8153 ;; | |
8154 esac | |
8155 fi | |
8156 ;; | 8620 ;; |
8157 | 8621 |
8158 dgux*) | 8622 dgux*) |
8159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 8623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8160 hardcode_libdir_flag_spec='-L$libdir' | 8624 hardcode_libdir_flag_spec='-L$libdir' |
8183 hardcode_minus_L=yes | 8647 hardcode_minus_L=yes |
8184 hardcode_shlibpath_var=no | 8648 hardcode_shlibpath_var=no |
8185 ;; | 8649 ;; |
8186 | 8650 |
8187 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 8651 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8188 freebsd* | kfreebsd*-gnu | dragonfly*) | 8652 freebsd* | dragonfly*) |
8189 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 8653 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8190 hardcode_libdir_flag_spec='-R$libdir' | 8654 hardcode_libdir_flag_spec='-R$libdir' |
8191 hardcode_direct=yes | 8655 hardcode_direct=yes |
8192 hardcode_shlibpath_var=no | 8656 hardcode_shlibpath_var=no |
8193 ;; | 8657 ;; |
8194 | 8658 |
8195 hpux9*) | 8659 hpux9*) |
8196 if test "$GCC" = yes; then | 8660 if test "$GCC" = yes; then |
8197 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' | 8661 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' |
8198 else | 8662 else |
8199 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' | 8663 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' |
8200 fi | 8664 fi |
8201 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 8665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8202 hardcode_libdir_separator=: | 8666 hardcode_libdir_separator=: |
8203 hardcode_direct=yes | 8667 hardcode_direct=yes |
8204 | 8668 |
8214 else | 8678 else |
8215 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 8679 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8216 fi | 8680 fi |
8217 if test "$with_gnu_ld" = no; then | 8681 if test "$with_gnu_ld" = no; then |
8218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 8682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8683 hardcode_libdir_flag_spec_ld='+b $libdir' | |
8219 hardcode_libdir_separator=: | 8684 hardcode_libdir_separator=: |
8220 | |
8221 hardcode_direct=yes | 8685 hardcode_direct=yes |
8686 hardcode_direct_absolute=yes | |
8222 export_dynamic_flag_spec='${wl}-E' | 8687 export_dynamic_flag_spec='${wl}-E' |
8223 | |
8224 # hardcode_minus_L: Not really in the search PATH, | 8688 # hardcode_minus_L: Not really in the search PATH, |
8225 # but as the default location of the library. | 8689 # but as the default location of the library. |
8226 hardcode_minus_L=yes | 8690 hardcode_minus_L=yes |
8227 fi | 8691 fi |
8228 ;; | 8692 ;; |
8232 case $host_cpu in | 8696 case $host_cpu in |
8233 hppa*64*) | 8697 hppa*64*) |
8234 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 8698 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8235 ;; | 8699 ;; |
8236 ia64*) | 8700 ia64*) |
8237 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 8701 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8238 ;; | 8702 ;; |
8239 *) | 8703 *) |
8240 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 8704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8241 ;; | 8705 ;; |
8242 esac | 8706 esac |
8257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 8721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8258 hardcode_libdir_separator=: | 8722 hardcode_libdir_separator=: |
8259 | 8723 |
8260 case $host_cpu in | 8724 case $host_cpu in |
8261 hppa*64*|ia64*) | 8725 hppa*64*|ia64*) |
8262 hardcode_libdir_flag_spec_ld='+b $libdir' | |
8263 hardcode_direct=no | 8726 hardcode_direct=no |
8264 hardcode_shlibpath_var=no | 8727 hardcode_shlibpath_var=no |
8265 ;; | 8728 ;; |
8266 *) | 8729 *) |
8267 hardcode_direct=yes | 8730 hardcode_direct=yes |
8731 hardcode_direct_absolute=yes | |
8268 export_dynamic_flag_spec='${wl}-E' | 8732 export_dynamic_flag_spec='${wl}-E' |
8269 | 8733 |
8270 # hardcode_minus_L: Not really in the search PATH, | 8734 # hardcode_minus_L: Not really in the search PATH, |
8271 # but as the default location of the library. | 8735 # but as the default location of the library. |
8272 hardcode_minus_L=yes | 8736 hardcode_minus_L=yes |
8275 fi | 8739 fi |
8276 ;; | 8740 ;; |
8277 | 8741 |
8278 irix5* | irix6* | nonstopux*) | 8742 irix5* | irix6* | nonstopux*) |
8279 if test "$GCC" = yes; then | 8743 if test "$GCC" = yes; then |
8280 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' | 8744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
8745 # Try to use the -exported_symbol ld option, if it does not | |
8746 # work, assume that -exports_file does not work either and | |
8747 # implicitly export all symbols. | |
8748 save_LDFLAGS="$LDFLAGS" | |
8749 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8750 cat >conftest.$ac_ext <<_ACEOF | |
8751 int foo(void) {} | |
8752 _ACEOF | |
8753 rm -f conftest.$ac_objext conftest$ac_exeext | |
8754 if { (ac_try="$ac_link" | |
8755 case "(($ac_try" in | |
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8757 *) ac_try_echo=$ac_try;; | |
8758 esac | |
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8760 (eval "$ac_link") 2>conftest.er1 | |
8761 ac_status=$? | |
8762 grep -v '^ *+' conftest.er1 >conftest.err | |
8763 rm -f conftest.er1 | |
8764 cat conftest.err >&5 | |
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8766 (exit $ac_status); } && | |
8767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8768 { (case "(($ac_try" in | |
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8770 *) ac_try_echo=$ac_try;; | |
8771 esac | |
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8773 (eval "$ac_try") 2>&5 | |
8774 ac_status=$? | |
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8776 (exit $ac_status); }; } && | |
8777 { ac_try='test -s conftest$ac_exeext' | |
8778 { (case "(($ac_try" in | |
8779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8780 *) ac_try_echo=$ac_try;; | |
8781 esac | |
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8783 (eval "$ac_try") 2>&5 | |
8784 ac_status=$? | |
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8786 (exit $ac_status); }; }; then | |
8787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
8788 | |
8789 else | |
8790 echo "$as_me: failed program was:" >&5 | |
8791 sed 's/^/| /' conftest.$ac_ext >&5 | |
8792 | |
8793 | |
8794 fi | |
8795 | |
8796 rm -f core conftest.err conftest.$ac_objext \ | |
8797 conftest$ac_exeext conftest.$ac_ext | |
8798 LDFLAGS="$save_LDFLAGS" | |
8281 else | 8799 else |
8282 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' | 8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
8283 hardcode_libdir_flag_spec_ld='-rpath $libdir' | 8801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
8284 fi | 8802 fi |
8803 archive_cmds_need_lc='no' | |
8285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 8804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8286 hardcode_libdir_separator=: | 8805 hardcode_libdir_separator=: |
8806 inherit_rpath=yes | |
8287 link_all_deplibs=yes | 8807 link_all_deplibs=yes |
8288 ;; | 8808 ;; |
8289 | 8809 |
8290 netbsd*) | 8810 netbsd*) |
8291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 8811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8292 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | 8812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8293 else | 8813 else |
8294 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | 8814 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8295 fi | 8815 fi |
8296 hardcode_libdir_flag_spec='-R$libdir' | 8816 hardcode_libdir_flag_spec='-R$libdir' |
8304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 8824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8305 hardcode_libdir_separator=: | 8825 hardcode_libdir_separator=: |
8306 hardcode_shlibpath_var=no | 8826 hardcode_shlibpath_var=no |
8307 ;; | 8827 ;; |
8308 | 8828 |
8829 *nto* | *qnx*) | |
8830 ;; | |
8831 | |
8309 openbsd*) | 8832 openbsd*) |
8310 hardcode_direct=yes | 8833 if test -f /usr/libexec/ld.so; then |
8311 hardcode_shlibpath_var=no | 8834 hardcode_direct=yes |
8312 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 8835 hardcode_shlibpath_var=no |
8313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 8836 hardcode_direct_absolute=yes |
8314 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 8837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 8838 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8316 export_dynamic_flag_spec='${wl}-E' | 8839 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8840 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8841 export_dynamic_flag_spec='${wl}-E' | |
8842 else | |
8843 case $host_os in | |
8844 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8846 hardcode_libdir_flag_spec='-R$libdir' | |
8847 ;; | |
8848 *) | |
8849 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8850 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8851 ;; | |
8852 esac | |
8853 fi | |
8317 else | 8854 else |
8318 case $host_os in | 8855 ld_shlibs=no |
8319 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8321 hardcode_libdir_flag_spec='-R$libdir' | |
8322 ;; | |
8323 *) | |
8324 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8326 ;; | |
8327 esac | |
8328 fi | 8856 fi |
8329 ;; | 8857 ;; |
8330 | 8858 |
8331 os2*) | 8859 os2*) |
8332 hardcode_libdir_flag_spec='-L$libdir' | 8860 hardcode_libdir_flag_spec='-L$libdir' |
8333 hardcode_minus_L=yes | 8861 hardcode_minus_L=yes |
8334 allow_undefined_flag=unsupported | 8862 allow_undefined_flag=unsupported |
8335 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' | 8863 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' |
8336 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 8864 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8337 ;; | 8865 ;; |
8338 | 8866 |
8339 osf3*) | 8867 osf3*) |
8340 if test "$GCC" = yes; then | 8868 if test "$GCC" = yes; then |
8341 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 8869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8342 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' | 8870 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
8343 else | 8871 else |
8344 allow_undefined_flag=' -expect_unresolved \*' | 8872 allow_undefined_flag=' -expect_unresolved \*' |
8345 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' | 8873 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
8346 fi | 8874 fi |
8875 archive_cmds_need_lc='no' | |
8347 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 8876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8348 hardcode_libdir_separator=: | 8877 hardcode_libdir_separator=: |
8349 ;; | 8878 ;; |
8350 | 8879 |
8351 osf4* | osf5*) # as osf3* with the addition of -msym flag | 8880 osf4* | osf5*) # as osf3* with the addition of -msym flag |
8352 if test "$GCC" = yes; then | 8881 if test "$GCC" = yes; then |
8353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 8882 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8354 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' | 8883 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
8355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 8884 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8356 else | 8885 else |
8357 allow_undefined_flag=' -expect_unresolved \*' | 8886 allow_undefined_flag=' -expect_unresolved \*' |
8358 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' | 8887 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
8359 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | 8888 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
8360 $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' | 8889 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
8361 | 8890 |
8362 # Both c and cxx compiler support -rpath directly | 8891 # Both c and cxx compiler support -rpath directly |
8363 hardcode_libdir_flag_spec='-rpath $libdir' | 8892 hardcode_libdir_flag_spec='-rpath $libdir' |
8364 fi | 8893 fi |
8894 archive_cmds_need_lc='no' | |
8365 hardcode_libdir_separator=: | 8895 hardcode_libdir_separator=: |
8366 ;; | 8896 ;; |
8367 | 8897 |
8368 solaris*) | 8898 solaris*) |
8369 no_undefined_flag=' -z text' | 8899 no_undefined_flag=' -z defs' |
8370 if test "$GCC" = yes; then | 8900 if test "$GCC" = yes; then |
8371 wlarc='${wl}' | 8901 wlarc='${wl}' |
8372 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 8902 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8373 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 8903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
8374 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | 8904 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
8375 else | 8905 else |
8376 wlarc='' | 8906 case `$CC -V 2>&1` in |
8377 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 8907 *"Compilers 5.0"*) |
8378 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 8908 wlarc='' |
8379 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 8909 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8911 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8912 ;; | |
8913 *) | |
8914 wlarc='${wl}' | |
8915 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8916 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8917 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8918 ;; | |
8919 esac | |
8380 fi | 8920 fi |
8381 hardcode_libdir_flag_spec='-R$libdir' | 8921 hardcode_libdir_flag_spec='-R$libdir' |
8382 hardcode_shlibpath_var=no | 8922 hardcode_shlibpath_var=no |
8383 case $host_os in | 8923 case $host_os in |
8384 solaris2.[0-5] | solaris2.[0-5].*) ;; | 8924 solaris2.[0-5] | solaris2.[0-5].*) ;; |
8385 *) | 8925 *) |
8386 # The compiler driver will combine linker options so we | 8926 # The compiler driver will combine and reorder linker options, |
8387 # cannot just pass the convience library names through | 8927 # but understands `-z linker_flag'. GCC discards it without `$wl', |
8388 # without $wl, iff we do not link with $LD. | 8928 # but is careful enough not to reorder. |
8389 # Luckily, gcc supports the same syntax we need for Sun Studio. | 8929 # Supported since Solaris 2.6 (maybe 2.5.1?) |
8390 # Supported since Solaris 2.6 (maybe 2.5.1?) | 8930 if test "$GCC" = yes; then |
8391 case $wlarc in | 8931 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
8392 '') | 8932 else |
8393 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | 8933 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
8394 *) | 8934 fi |
8395 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' ;; | 8935 ;; |
8396 esac ;; | |
8397 esac | 8936 esac |
8398 link_all_deplibs=yes | 8937 link_all_deplibs=yes |
8399 ;; | 8938 ;; |
8400 | 8939 |
8401 sunos4*) | 8940 sunos4*) |
8448 hardcode_runpath_var=yes | 8987 hardcode_runpath_var=yes |
8449 ld_shlibs=yes | 8988 ld_shlibs=yes |
8450 fi | 8989 fi |
8451 ;; | 8990 ;; |
8452 | 8991 |
8453 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | 8992 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
8454 no_undefined_flag='${wl}-z,text' | 8993 no_undefined_flag='${wl}-z,text' |
8455 archive_cmds_need_lc=no | 8994 archive_cmds_need_lc=no |
8456 hardcode_shlibpath_var=no | 8995 hardcode_shlibpath_var=no |
8457 runpath_var='LD_RUN_PATH' | 8996 runpath_var='LD_RUN_PATH' |
8458 | 8997 |
8474 # as -z defs. | 9013 # as -z defs. |
8475 no_undefined_flag='${wl}-z,text' | 9014 no_undefined_flag='${wl}-z,text' |
8476 allow_undefined_flag='${wl}-z,nodefs' | 9015 allow_undefined_flag='${wl}-z,nodefs' |
8477 archive_cmds_need_lc=no | 9016 archive_cmds_need_lc=no |
8478 hardcode_shlibpath_var=no | 9017 hardcode_shlibpath_var=no |
8479 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | 9018 hardcode_libdir_flag_spec='${wl}-R,$libdir' |
8480 hardcode_libdir_separator=':' | 9019 hardcode_libdir_separator=':' |
8481 link_all_deplibs=yes | 9020 link_all_deplibs=yes |
8482 export_dynamic_flag_spec='${wl}-Bexport' | 9021 export_dynamic_flag_spec='${wl}-Bexport' |
8483 runpath_var='LD_RUN_PATH' | 9022 runpath_var='LD_RUN_PATH' |
8484 | 9023 |
8485 if test "$GCC" = yes; then | 9024 if test "$GCC" = yes; then |
8486 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 9025 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8487 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 9026 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8488 else | 9027 else |
8489 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 9028 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8490 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | 9029 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8491 fi | 9030 fi |
8492 ;; | 9031 ;; |
8493 | 9032 |
8494 uts4*) | 9033 uts4*) |
8495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 9034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8499 | 9038 |
8500 *) | 9039 *) |
8501 ld_shlibs=no | 9040 ld_shlibs=no |
8502 ;; | 9041 ;; |
8503 esac | 9042 esac |
9043 | |
9044 if test x$host_vendor = xsni; then | |
9045 case $host in | |
9046 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9047 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9048 ;; | |
9049 esac | |
9050 fi | |
8504 fi | 9051 fi |
8505 | 9052 |
8506 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | 9053 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8507 echo "${ECHO_T}$ld_shlibs" >&6; } | 9054 echo "${ECHO_T}$ld_shlibs" >&6; } |
8508 test "$ld_shlibs" = no && can_build_shared=no | 9055 test "$ld_shlibs" = no && can_build_shared=no |
9056 | |
9057 with_gnu_ld=$with_gnu_ld | |
9058 | |
9059 | |
9060 | |
9061 | |
9062 | |
9063 | |
9064 | |
9065 | |
9066 | |
9067 | |
9068 | |
9069 | |
9070 | |
9071 | |
8509 | 9072 |
8510 # | 9073 # |
8511 # Do we need to explicitly link libc? | 9074 # Do we need to explicitly link libc? |
8512 # | 9075 # |
8513 case "x$archive_cmds_need_lc" in | 9076 case "x$archive_cmds_need_lc" in |
8524 # Test whether the compiler implicitly links with -lc since on some | 9087 # Test whether the compiler implicitly links with -lc since on some |
8525 # systems, -lgcc has to come before -lc. If gcc already passes -lc | 9088 # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8526 # to ld, don't add -lc before -lgcc. | 9089 # to ld, don't add -lc before -lgcc. |
8527 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | 9090 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8528 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | 9091 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
8529 $rm conftest* | 9092 $RM conftest* |
8530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | 9093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
8531 | 9094 |
8532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 9095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8533 (eval $ac_compile) 2>&5 | 9096 (eval $ac_compile) 2>&5 |
8534 ac_status=$? | 9097 ac_status=$? |
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8545 verstring= | 9108 verstring= |
8546 output_objdir=. | 9109 output_objdir=. |
8547 libname=conftest | 9110 libname=conftest |
8548 lt_save_allow_undefined_flag=$allow_undefined_flag | 9111 lt_save_allow_undefined_flag=$allow_undefined_flag |
8549 allow_undefined_flag= | 9112 allow_undefined_flag= |
8550 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | 9113 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8551 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 9114 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8552 ac_status=$? | 9115 ac_status=$? |
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8554 (exit $ac_status); } | 9117 (exit $ac_status); } |
8555 then | 9118 then |
8556 archive_cmds_need_lc=no | 9119 archive_cmds_need_lc=no |
8559 fi | 9122 fi |
8560 allow_undefined_flag=$lt_save_allow_undefined_flag | 9123 allow_undefined_flag=$lt_save_allow_undefined_flag |
8561 else | 9124 else |
8562 cat conftest.err 1>&5 | 9125 cat conftest.err 1>&5 |
8563 fi | 9126 fi |
8564 $rm conftest* | 9127 $RM conftest* |
8565 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | 9128 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8566 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | 9129 echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
8567 ;; | 9130 ;; |
8568 esac | 9131 esac |
8569 fi | 9132 fi |
8570 ;; | 9133 ;; |
8571 esac | 9134 esac |
8572 | 9135 |
8573 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | 9136 |
9137 | |
9138 | |
9139 | |
9140 | |
9141 | |
9142 | |
9143 | |
9144 | |
9145 | |
9146 | |
9147 | |
9148 | |
9149 | |
9150 | |
9151 | |
9152 | |
9153 | |
9154 | |
9155 | |
9156 | |
9157 | |
9158 | |
9159 | |
9160 | |
9161 | |
9162 | |
9163 | |
9164 | |
9165 | |
9166 | |
9167 | |
9168 | |
9169 | |
9170 | |
9171 | |
9172 | |
9173 | |
9174 | |
9175 | |
9176 | |
9177 | |
9178 | |
9179 | |
9180 | |
9181 | |
9182 | |
9183 | |
9184 | |
9185 | |
9186 | |
9187 | |
9188 | |
9189 | |
9190 | |
9191 | |
9192 | |
9193 | |
9194 | |
9195 | |
9196 | |
9197 | |
9198 | |
9199 | |
9200 | |
9201 | |
9202 | |
9203 | |
9204 | |
9205 | |
9206 | |
9207 | |
9208 | |
9209 | |
9210 | |
9211 | |
9212 | |
9213 | |
9214 | |
9215 | |
9216 | |
9217 | |
9218 | |
9219 | |
9220 | |
9221 | |
9222 | |
9223 | |
9224 | |
9225 | |
9226 | |
9227 | |
9228 | |
9229 | |
9230 | |
9231 | |
9232 | |
9233 | |
9234 | |
9235 | |
9236 | |
9237 | |
9238 | |
9239 | |
9240 | |
9241 | |
9242 | |
9243 | |
9244 | |
9245 | |
9246 | |
9247 | |
9248 | |
9249 | |
9250 | |
9251 | |
9252 | |
9253 | |
9254 | |
9255 | |
9256 | |
9257 | |
9258 | |
9259 | |
9260 | |
9261 | |
9262 | |
9263 | |
9264 | |
9265 | |
9266 | |
9267 | |
9268 | |
9269 | |
9270 | |
9271 | |
9272 | |
9273 | |
9274 | |
9275 | |
9276 | |
9277 | |
9278 | |
9279 | |
9280 | |
9281 | |
9282 | |
9283 | |
9284 | |
9285 | |
9286 | |
9287 | |
9288 | |
9289 | |
9290 | |
9291 | |
9292 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8574 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | 9293 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
9294 | |
9295 if test "$GCC" = yes; then | |
9296 case $host_os in | |
9297 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9298 *) lt_awk_arg="/^libraries:/" ;; | |
9299 esac | |
9300 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
9301 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
9302 # if the path contains ";" then we assume it to be the separator | |
9303 # otherwise default to the standard path separator (i.e. ":") - it is | |
9304 # assumed that no part of a normal pathname contains ";" but that should | |
9305 # okay in the real world where ";" in dirpaths is itself problematic. | |
9306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
9307 else | |
9308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
9309 fi | |
9310 # Ok, now we have the path, separated by spaces, we can step through it | |
9311 # and add multilib dir if necessary. | |
9312 lt_tmp_lt_search_path_spec= | |
9313 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9314 for lt_sys_path in $lt_search_path_spec; do | |
9315 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9316 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9317 else | |
9318 test -d "$lt_sys_path" && \ | |
9319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9320 fi | |
9321 done | |
9322 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
9323 BEGIN {RS=" "; FS="/|\n";} { | |
9324 lt_foo=""; | |
9325 lt_count=0; | |
9326 for (lt_i = NF; lt_i > 0; lt_i--) { | |
9327 if ($lt_i != "" && $lt_i != ".") { | |
9328 if ($lt_i == "..") { | |
9329 lt_count++; | |
9330 } else { | |
9331 if (lt_count == 0) { | |
9332 lt_foo="/" $lt_i lt_foo; | |
9333 } else { | |
9334 lt_count--; | |
9335 } | |
9336 } | |
9337 } | |
9338 } | |
9339 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9340 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9341 }'` | |
9342 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
9343 else | |
9344 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9345 fi | |
8575 library_names_spec= | 9346 library_names_spec= |
8576 libname_spec='lib$name' | 9347 libname_spec='lib$name' |
8577 soname_spec= | 9348 soname_spec= |
8578 shrext_cmds=".so" | 9349 shrext_cmds=".so" |
8579 postinstall_cmds= | 9350 postinstall_cmds= |
8583 shlibpath_var= | 9354 shlibpath_var= |
8584 shlibpath_overrides_runpath=unknown | 9355 shlibpath_overrides_runpath=unknown |
8585 version_type=none | 9356 version_type=none |
8586 dynamic_linker="$host_os ld.so" | 9357 dynamic_linker="$host_os ld.so" |
8587 sys_lib_dlsearch_path_spec="/lib /usr/lib" | 9358 sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8588 if test "$GCC" = yes; then | |
8589 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8590 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
8591 # if the path contains ";" then we assume it to be the separator | |
8592 # otherwise default to the standard path separator (i.e. ":") - it is | |
8593 # assumed that no part of a normal pathname contains ";" but that should | |
8594 # okay in the real world where ";" in dirpaths is itself problematic. | |
8595 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8596 else | |
8597 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8598 fi | |
8599 else | |
8600 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8601 fi | |
8602 need_lib_prefix=unknown | 9359 need_lib_prefix=unknown |
8603 hardcode_into_libs=no | 9360 hardcode_into_libs=no |
8604 | 9361 |
8605 # when you set need_version to no, make sure it does not cause -set_version | 9362 # when you set need_version to no, make sure it does not cause -set_version |
8606 # flags to be left without arguments | 9363 # flags to be left without arguments |
8614 | 9371 |
8615 # AIX 3 has no versioning support, so we append a major version to the name. | 9372 # AIX 3 has no versioning support, so we append a major version to the name. |
8616 soname_spec='${libname}${release}${shared_ext}$major' | 9373 soname_spec='${libname}${release}${shared_ext}$major' |
8617 ;; | 9374 ;; |
8618 | 9375 |
8619 aix4* | aix5*) | 9376 aix[4-9]*) |
8620 version_type=linux | 9377 version_type=linux |
8621 need_lib_prefix=no | 9378 need_lib_prefix=no |
8622 need_version=no | 9379 need_version=no |
8623 hardcode_into_libs=yes | 9380 hardcode_into_libs=yes |
8624 if test "$host_cpu" = ia64; then | 9381 if test "$host_cpu" = ia64; then |
8633 # development snapshots of GCC prior to 3.0. | 9390 # development snapshots of GCC prior to 3.0. |
8634 case $host_os in | 9391 case $host_os in |
8635 aix4 | aix4.[01] | aix4.[01].*) | 9392 aix4 | aix4.[01] | aix4.[01].*) |
8636 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 9393 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8637 echo ' yes ' | 9394 echo ' yes ' |
8638 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | 9395 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
8639 : | 9396 : |
8640 else | 9397 else |
8641 can_build_shared=no | 9398 can_build_shared=no |
8642 fi | 9399 fi |
8643 ;; | 9400 ;; |
8659 shlibpath_var=LIBPATH | 9416 shlibpath_var=LIBPATH |
8660 fi | 9417 fi |
8661 ;; | 9418 ;; |
8662 | 9419 |
8663 amigaos*) | 9420 amigaos*) |
8664 library_names_spec='$libname.ixlibrary $libname.a' | 9421 case $host_cpu in |
8665 # Create ${libname}_ixlibrary.a entries in /sys/libs. | 9422 powerpc) |
8666 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' | 9423 # Since July 2007 AmigaOS4 officially supports .so libraries. |
9424 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9426 ;; | |
9427 m68k) | |
9428 library_names_spec='$libname.ixlibrary $libname.a' | |
9429 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
9430 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' | |
9431 ;; | |
9432 esac | |
8667 ;; | 9433 ;; |
8668 | 9434 |
8669 beos*) | 9435 beos*) |
8670 library_names_spec='${libname}${shared_ext}' | 9436 library_names_spec='${libname}${shared_ext}' |
8671 dynamic_linker="$host_os ld.so" | 9437 dynamic_linker="$host_os ld.so" |
8684 # the default ld.so.conf also contains /usr/contrib/lib and | 9450 # the default ld.so.conf also contains /usr/contrib/lib and |
8685 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 9451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8686 # libtool to hard-code these into programs | 9452 # libtool to hard-code these into programs |
8687 ;; | 9453 ;; |
8688 | 9454 |
8689 cygwin* | mingw* | pw32*) | 9455 cygwin* | mingw* | pw32* | cegcc*) |
8690 version_type=windows | 9456 version_type=windows |
8691 shrext_cmds=".dll" | 9457 shrext_cmds=".dll" |
8692 need_version=no | 9458 need_version=no |
8693 need_lib_prefix=no | 9459 need_lib_prefix=no |
8694 | 9460 |
8695 case $GCC,$host_os in | 9461 case $GCC,$host_os in |
8696 yes,cygwin* | yes,mingw* | yes,pw32*) | 9462 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
8697 library_names_spec='$libname.dll.a' | 9463 library_names_spec='$libname.dll.a' |
8698 # DLL is installed to $(libdir)/../bin by postinstall_cmds | 9464 # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8699 postinstall_cmds='base_file=`basename \${file}`~ | 9465 postinstall_cmds='base_file=`basename \${file}`~ |
8700 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | 9466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
8701 dldir=$destdir/`dirname \$dlpath`~ | 9467 dldir=$destdir/`dirname \$dlpath`~ |
8702 test -d \$dldir || mkdir -p \$dldir~ | 9468 test -d \$dldir || mkdir -p \$dldir~ |
8703 $install_prog $dir/$dlname \$dldir/$dlname~ | 9469 $install_prog $dir/$dlname \$dldir/$dlname~ |
8704 chmod a+x \$dldir/$dlname' | 9470 chmod a+x \$dldir/$dlname~ |
9471 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
9472 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
9473 fi' | |
8705 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 9474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8706 dlpath=$dir/\$dldll~ | 9475 dlpath=$dir/\$dldll~ |
8707 $rm \$dlpath' | 9476 $RM \$dlpath' |
8708 shlibpath_overrides_runpath=yes | 9477 shlibpath_overrides_runpath=yes |
8709 | 9478 |
8710 case $host_os in | 9479 case $host_os in |
8711 cygwin*) | 9480 cygwin*) |
8712 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 9481 # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8713 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 9482 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8714 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | 9483 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8715 ;; | 9484 ;; |
8716 mingw*) | 9485 mingw* | cegcc*) |
8717 # MinGW DLLs use traditional 'lib' prefix | 9486 # MinGW DLLs use traditional 'lib' prefix |
8718 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 9487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | 9488 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8720 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | 9489 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
8721 # It is most probably a Windows format PATH printed by | 9490 # It is most probably a Windows format PATH printed by |
8722 # mingw gcc, but we are running on Cygwin. Gcc prints its search | 9491 # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8723 # path with ; separators, and with drive letters. We can handle the | 9492 # path with ; separators, and with drive letters. We can handle the |
8724 # drive letters (cygwin fileutils understands them), so leave them, | 9493 # drive letters (cygwin fileutils understands them), so leave them, |
8725 # especially as we might pass files found there to a mingw objdump, | 9494 # especially as we might pass files found there to a mingw objdump, |
8726 # which wouldn't understand a cygwinified path. Ahh. | 9495 # which wouldn't understand a cygwinified path. Ahh. |
8727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 9496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8728 else | 9497 else |
8729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 9498 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8730 fi | 9499 fi |
8731 ;; | 9500 ;; |
8732 pw32*) | 9501 pw32*) |
8733 # pw32 DLLs use 'pw' prefix rather than 'lib' | 9502 # pw32 DLLs use 'pw' prefix rather than 'lib' |
8734 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 9503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8748 darwin* | rhapsody*) | 9517 darwin* | rhapsody*) |
8749 dynamic_linker="$host_os dyld" | 9518 dynamic_linker="$host_os dyld" |
8750 version_type=darwin | 9519 version_type=darwin |
8751 need_lib_prefix=no | 9520 need_lib_prefix=no |
8752 need_version=no | 9521 need_version=no |
8753 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 9522 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8754 soname_spec='${libname}${release}${major}$shared_ext' | 9523 soname_spec='${libname}${release}${major}$shared_ext' |
8755 shlibpath_overrides_runpath=yes | 9524 shlibpath_overrides_runpath=yes |
8756 shlibpath_var=DYLD_LIBRARY_PATH | 9525 shlibpath_var=DYLD_LIBRARY_PATH |
8757 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 9526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8758 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | 9527 |
8759 if test "$GCC" = yes; then | 9528 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
8760 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"` | |
8761 else | |
8762 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
8763 fi | |
8764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 9529 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8765 ;; | 9530 ;; |
8766 | 9531 |
8767 dgux*) | 9532 dgux*) |
8768 version_type=linux | 9533 version_type=linux |
8773 shlibpath_var=LD_LIBRARY_PATH | 9538 shlibpath_var=LD_LIBRARY_PATH |
8774 ;; | 9539 ;; |
8775 | 9540 |
8776 freebsd1*) | 9541 freebsd1*) |
8777 dynamic_linker=no | 9542 dynamic_linker=no |
8778 ;; | |
8779 | |
8780 kfreebsd*-gnu) | |
8781 version_type=linux | |
8782 need_lib_prefix=no | |
8783 need_version=no | |
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8785 soname_spec='${libname}${release}${shared_ext}$major' | |
8786 shlibpath_var=LD_LIBRARY_PATH | |
8787 shlibpath_overrides_runpath=no | |
8788 hardcode_into_libs=yes | |
8789 dynamic_linker='GNU ld.so' | |
8790 ;; | 9543 ;; |
8791 | 9544 |
8792 freebsd* | dragonfly*) | 9545 freebsd* | dragonfly*) |
8793 # DragonFly does not have aout. When/if they implement a new | 9546 # DragonFly does not have aout. When/if they implement a new |
8794 # versioning mechanism, adjust this. | 9547 # versioning mechanism, adjust this. |
8824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 9577 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 9578 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8826 shlibpath_overrides_runpath=no | 9579 shlibpath_overrides_runpath=no |
8827 hardcode_into_libs=yes | 9580 hardcode_into_libs=yes |
8828 ;; | 9581 ;; |
8829 freebsd*) # from 4.6 on | 9582 *) # from 4.6 on, and DragonFly |
8830 shlibpath_overrides_runpath=yes | 9583 shlibpath_overrides_runpath=yes |
8831 hardcode_into_libs=yes | 9584 hardcode_into_libs=yes |
8832 ;; | 9585 ;; |
8833 esac | 9586 esac |
8834 ;; | 9587 ;; |
8863 else | 9616 else |
8864 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 9617 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8865 fi | 9618 fi |
8866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 9619 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8867 ;; | 9620 ;; |
8868 hppa*64*) | 9621 hppa*64*) |
8869 shrext_cmds='.sl' | 9622 shrext_cmds='.sl' |
8870 hardcode_into_libs=yes | 9623 hardcode_into_libs=yes |
8871 dynamic_linker="$host_os dld.sl" | 9624 dynamic_linker="$host_os dld.sl" |
8872 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 9625 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 9626 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 9627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8875 soname_spec='${libname}${release}${shared_ext}$major' | 9628 soname_spec='${libname}${release}${shared_ext}$major' |
8876 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 9629 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 9630 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8878 ;; | 9631 ;; |
8879 *) | 9632 *) |
8880 shrext_cmds='.sl' | 9633 shrext_cmds='.sl' |
8881 dynamic_linker="$host_os dld.sl" | 9634 dynamic_linker="$host_os dld.sl" |
8882 shlibpath_var=SHLIB_PATH | 9635 shlibpath_var=SHLIB_PATH |
8883 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 9636 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8887 esac | 9640 esac |
8888 # HP-UX runs *really* slowly unless shared libraries are mode 555. | 9641 # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8889 postinstall_cmds='chmod 555 $lib' | 9642 postinstall_cmds='chmod 555 $lib' |
8890 ;; | 9643 ;; |
8891 | 9644 |
8892 interix3*) | 9645 interix[3-9]*) |
8893 version_type=linux | 9646 version_type=linux |
8894 need_lib_prefix=no | 9647 need_lib_prefix=no |
8895 need_version=no | 9648 need_version=no |
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8897 soname_spec='${libname}${release}${shared_ext}$major' | 9650 soname_spec='${libname}${release}${shared_ext}$major' |
8942 linux*oldld* | linux*aout* | linux*coff*) | 9695 linux*oldld* | linux*aout* | linux*coff*) |
8943 dynamic_linker=no | 9696 dynamic_linker=no |
8944 ;; | 9697 ;; |
8945 | 9698 |
8946 # This must be Linux ELF. | 9699 # This must be Linux ELF. |
8947 linux*) | 9700 linux* | k*bsd*-gnu) |
8948 version_type=linux | 9701 version_type=linux |
8949 need_lib_prefix=no | 9702 need_lib_prefix=no |
8950 need_version=no | 9703 need_version=no |
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8952 soname_spec='${libname}${release}${shared_ext}$major' | 9705 soname_spec='${libname}${release}${shared_ext}$major' |
8953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 9706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8954 shlibpath_var=LD_LIBRARY_PATH | 9707 shlibpath_var=LD_LIBRARY_PATH |
8955 shlibpath_overrides_runpath=no | 9708 shlibpath_overrides_runpath=no |
9709 # Some binutils ld are patched to set DT_RUNPATH | |
9710 save_LDFLAGS=$LDFLAGS | |
9711 save_libdir=$libdir | |
9712 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9713 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9714 cat >conftest.$ac_ext <<_ACEOF | |
9715 /* confdefs.h. */ | |
9716 _ACEOF | |
9717 cat confdefs.h >>conftest.$ac_ext | |
9718 cat >>conftest.$ac_ext <<_ACEOF | |
9719 /* end confdefs.h. */ | |
9720 | |
9721 int | |
9722 main () | |
9723 { | |
9724 | |
9725 ; | |
9726 return 0; | |
9727 } | |
9728 _ACEOF | |
9729 rm -f conftest.$ac_objext conftest$ac_exeext | |
9730 if { (ac_try="$ac_link" | |
9731 case "(($ac_try" in | |
9732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9733 *) ac_try_echo=$ac_try;; | |
9734 esac | |
9735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9736 (eval "$ac_link") 2>conftest.er1 | |
9737 ac_status=$? | |
9738 grep -v '^ *+' conftest.er1 >conftest.err | |
9739 rm -f conftest.er1 | |
9740 cat conftest.err >&5 | |
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9742 (exit $ac_status); } && | |
9743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9744 { (case "(($ac_try" in | |
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9746 *) ac_try_echo=$ac_try;; | |
9747 esac | |
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9749 (eval "$ac_try") 2>&5 | |
9750 ac_status=$? | |
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9752 (exit $ac_status); }; } && | |
9753 { ac_try='test -s conftest$ac_exeext' | |
9754 { (case "(($ac_try" in | |
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9756 *) ac_try_echo=$ac_try;; | |
9757 esac | |
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9759 (eval "$ac_try") 2>&5 | |
9760 ac_status=$? | |
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9762 (exit $ac_status); }; }; then | |
9763 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then | |
9764 shlibpath_overrides_runpath=yes | |
9765 fi | |
9766 | |
9767 else | |
9768 echo "$as_me: failed program was:" >&5 | |
9769 sed 's/^/| /' conftest.$ac_ext >&5 | |
9770 | |
9771 | |
9772 fi | |
9773 | |
9774 rm -f core conftest.err conftest.$ac_objext \ | |
9775 conftest$ac_exeext conftest.$ac_ext | |
9776 LDFLAGS=$save_LDFLAGS | |
9777 libdir=$save_libdir | |
9778 | |
8956 # This implies no fast_install, which is unacceptable. | 9779 # This implies no fast_install, which is unacceptable. |
8957 # Some rework will be needed to allow for fast_install | 9780 # Some rework will be needed to allow for fast_install |
8958 # before this can be enabled. | 9781 # before this can be enabled. |
8959 hardcode_into_libs=yes | 9782 hardcode_into_libs=yes |
8960 | 9783 |
8961 # Append ld.so.conf contents to the search path | 9784 # Append ld.so.conf contents to the search path |
8962 if test -f /etc/ld.so.conf; then | 9785 if test -f /etc/ld.so.conf; then |
8963 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' ' '` | 9786 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
8964 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | 9787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
8965 fi | 9788 fi |
8966 | 9789 |
8967 # We used to test for /lib/ld.so.1 and disable shared libraries on | 9790 # We used to test for /lib/ld.so.1 and disable shared libraries on |
8968 # powerpc, because MkLinux only supported shared libraries with the | 9791 # powerpc, because MkLinux only supported shared libraries with the |
8971 # people can always --disable-shared, the test was removed, and we | 9794 # people can always --disable-shared, the test was removed, and we |
8972 # assume the GNU/Linux dynamic linker is in use. | 9795 # assume the GNU/Linux dynamic linker is in use. |
8973 dynamic_linker='GNU/Linux ld.so' | 9796 dynamic_linker='GNU/Linux ld.so' |
8974 ;; | 9797 ;; |
8975 | 9798 |
8976 knetbsd*-gnu) | |
8977 version_type=linux | |
8978 need_lib_prefix=no | |
8979 need_version=no | |
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8981 soname_spec='${libname}${release}${shared_ext}$major' | |
8982 shlibpath_var=LD_LIBRARY_PATH | |
8983 shlibpath_overrides_runpath=no | |
8984 hardcode_into_libs=yes | |
8985 dynamic_linker='GNU ld.so' | |
8986 ;; | |
8987 | |
8988 netbsd*) | 9799 netbsd*) |
8989 version_type=sunos | 9800 version_type=sunos |
8990 need_lib_prefix=no | 9801 need_lib_prefix=no |
8991 need_version=no | 9802 need_version=no |
8992 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | 9803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 9804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 9805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8995 dynamic_linker='NetBSD (a.out) ld.so' | 9806 dynamic_linker='NetBSD (a.out) ld.so' |
8996 else | 9807 else |
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 9819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9009 shlibpath_var=LD_LIBRARY_PATH | 9820 shlibpath_var=LD_LIBRARY_PATH |
9010 shlibpath_overrides_runpath=yes | 9821 shlibpath_overrides_runpath=yes |
9011 ;; | 9822 ;; |
9012 | 9823 |
9013 nto-qnx*) | 9824 *nto* | *qnx*) |
9014 version_type=linux | 9825 version_type=qnx |
9015 need_lib_prefix=no | 9826 need_lib_prefix=no |
9016 need_version=no | 9827 need_version=no |
9017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9018 soname_spec='${libname}${release}${shared_ext}$major' | 9829 soname_spec='${libname}${release}${shared_ext}$major' |
9019 shlibpath_var=LD_LIBRARY_PATH | 9830 shlibpath_var=LD_LIBRARY_PATH |
9020 shlibpath_overrides_runpath=yes | 9831 shlibpath_overrides_runpath=no |
9832 hardcode_into_libs=yes | |
9833 dynamic_linker='ldqnx.so' | |
9021 ;; | 9834 ;; |
9022 | 9835 |
9023 openbsd*) | 9836 openbsd*) |
9024 version_type=sunos | 9837 version_type=sunos |
9025 sys_lib_dlsearch_path_spec="/usr/lib" | 9838 sys_lib_dlsearch_path_spec="/usr/lib" |
9026 need_lib_prefix=no | 9839 need_lib_prefix=no |
9027 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 9840 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9028 case $host_os in | 9841 case $host_os in |
9029 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | 9842 openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9030 *) need_version=no ;; | 9843 *) need_version=no ;; |
9031 esac | 9844 esac |
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 9846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9034 shlibpath_var=LD_LIBRARY_PATH | 9847 shlibpath_var=LD_LIBRARY_PATH |
9035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 9848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9036 case $host_os in | 9849 case $host_os in |
9037 openbsd2.[89] | openbsd2.[89].*) | 9850 openbsd2.[89] | openbsd2.[89].*) |
9038 shlibpath_overrides_runpath=no | 9851 shlibpath_overrides_runpath=no |
9039 ;; | 9852 ;; |
9040 *) | 9853 *) |
9064 shlibpath_var=LD_LIBRARY_PATH | 9877 shlibpath_var=LD_LIBRARY_PATH |
9065 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 9878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9066 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 9879 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9067 ;; | 9880 ;; |
9068 | 9881 |
9882 rdos*) | |
9883 dynamic_linker=no | |
9884 ;; | |
9885 | |
9069 solaris*) | 9886 solaris*) |
9070 version_type=linux | 9887 version_type=linux |
9071 need_lib_prefix=no | 9888 need_lib_prefix=no |
9072 need_version=no | 9889 need_version=no |
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9098 shlibpath_var=LD_LIBRARY_PATH | 9915 shlibpath_var=LD_LIBRARY_PATH |
9099 case $host_vendor in | 9916 case $host_vendor in |
9100 sni) | 9917 sni) |
9101 shlibpath_overrides_runpath=no | 9918 shlibpath_overrides_runpath=no |
9102 need_lib_prefix=no | 9919 need_lib_prefix=no |
9103 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9104 runpath_var=LD_RUN_PATH | 9920 runpath_var=LD_RUN_PATH |
9105 ;; | 9921 ;; |
9106 siemens) | 9922 siemens) |
9107 need_lib_prefix=no | 9923 need_lib_prefix=no |
9108 ;; | 9924 ;; |
9129 need_lib_prefix=no | 9945 need_lib_prefix=no |
9130 need_version=no | 9946 need_version=no |
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9132 soname_spec='${libname}${release}${shared_ext}$major' | 9948 soname_spec='${libname}${release}${shared_ext}$major' |
9133 shlibpath_var=LD_LIBRARY_PATH | 9949 shlibpath_var=LD_LIBRARY_PATH |
9950 shlibpath_overrides_runpath=yes | |
9134 hardcode_into_libs=yes | 9951 hardcode_into_libs=yes |
9135 if test "$with_gnu_ld" = yes; then | 9952 if test "$with_gnu_ld" = yes; then |
9136 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 9953 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9137 shlibpath_overrides_runpath=no | |
9138 else | 9954 else |
9139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 9955 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9140 shlibpath_overrides_runpath=yes | |
9141 case $host_os in | 9956 case $host_os in |
9142 sco3.2v5*) | 9957 sco3.2v5*) |
9143 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 9958 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9144 ;; | 9959 ;; |
9145 esac | 9960 esac |
9146 fi | 9961 fi |
9147 sys_lib_dlsearch_path_spec='/usr/lib' | 9962 sys_lib_dlsearch_path_spec='/usr/lib' |
9148 ;; | 9963 ;; |
9149 | 9964 |
9965 tpf*) | |
9966 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9967 version_type=linux | |
9968 need_lib_prefix=no | |
9969 need_version=no | |
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9971 shlibpath_var=LD_LIBRARY_PATH | |
9972 shlibpath_overrides_runpath=no | |
9973 hardcode_into_libs=yes | |
9974 ;; | |
9975 | |
9150 uts4*) | 9976 uts4*) |
9151 version_type=linux | 9977 version_type=linux |
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 9978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9153 soname_spec='${libname}${release}${shared_ext}$major' | 9979 soname_spec='${libname}${release}${shared_ext}$major' |
9154 shlibpath_var=LD_LIBRARY_PATH | 9980 shlibpath_var=LD_LIBRARY_PATH |
9165 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 9991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9166 if test "$GCC" = yes; then | 9992 if test "$GCC" = yes; then |
9167 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 9993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9168 fi | 9994 fi |
9169 | 9995 |
9170 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 9996 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
9997 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
9998 fi | |
9999 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10000 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10001 fi | |
10002 | |
10003 | |
10004 | |
10005 | |
10006 | |
10007 | |
10008 | |
10009 | |
10010 | |
10011 | |
10012 | |
10013 | |
10014 | |
10015 | |
10016 | |
10017 | |
10018 | |
10019 | |
10020 | |
10021 | |
10022 | |
10023 | |
10024 | |
10025 | |
10026 | |
10027 | |
10028 | |
10029 | |
10030 | |
10031 | |
10032 | |
10033 | |
10034 | |
10035 | |
10036 | |
10037 | |
10038 | |
10039 | |
10040 | |
10041 | |
10042 | |
10043 | |
10044 | |
10045 | |
10046 | |
10047 | |
10048 | |
10049 | |
10050 | |
10051 | |
10052 | |
10053 | |
10054 | |
10055 | |
10056 | |
10057 | |
10058 | |
10059 | |
10060 | |
10061 | |
10062 | |
10063 | |
10064 | |
10065 | |
10066 | |
10067 | |
10068 | |
10069 | |
10070 | |
10071 | |
10072 | |
10073 | |
10074 | |
10075 | |
10076 | |
10077 | |
10078 | |
10079 | |
10080 | |
10081 | |
10082 | |
10083 | |
10084 | |
10085 | |
10086 | |
10087 | |
10088 | |
10089 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9171 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | 10090 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
9172 hardcode_action= | 10091 hardcode_action= |
9173 if test -n "$hardcode_libdir_flag_spec" || \ | 10092 if test -n "$hardcode_libdir_flag_spec" || |
9174 test -n "$runpath_var" || \ | 10093 test -n "$runpath_var" || |
9175 test "X$hardcode_automatic" = "Xyes" ; then | 10094 test "X$hardcode_automatic" = "Xyes" ; then |
9176 | 10095 |
9177 # We can hardcode non-existant directories. | 10096 # We can hardcode non-existent directories. |
9178 if test "$hardcode_direct" != no && | 10097 if test "$hardcode_direct" != no && |
9179 # If the only mechanism to avoid hardcoding is shlibpath_var, we | 10098 # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9180 # have to relink, otherwise we might link with an installed library | 10099 # have to relink, otherwise we might link with an installed library |
9181 # when we should be linking with a yet-to-be-installed one | 10100 # when we should be linking with a yet-to-be-installed one |
9182 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | 10101 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
9183 test "$hardcode_minus_L" != no; then | 10102 test "$hardcode_minus_L" != no; then |
9184 # Linking always hardcodes the temporary library directory. | 10103 # Linking always hardcodes the temporary library directory. |
9185 hardcode_action=relink | 10104 hardcode_action=relink |
9186 else | 10105 else |
9187 # We can link without hardcoding, and we can hardcode nonexisting dirs. | 10106 # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9193 hardcode_action=unsupported | 10112 hardcode_action=unsupported |
9194 fi | 10113 fi |
9195 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 | 10114 { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9196 echo "${ECHO_T}$hardcode_action" >&6; } | 10115 echo "${ECHO_T}$hardcode_action" >&6; } |
9197 | 10116 |
9198 if test "$hardcode_action" = relink; then | 10117 if test "$hardcode_action" = relink || |
10118 test "$inherit_rpath" = yes; then | |
9199 # Fast installation is not supported | 10119 # Fast installation is not supported |
9200 enable_fast_install=no | 10120 enable_fast_install=no |
9201 elif test "$shlibpath_overrides_runpath" = yes || | 10121 elif test "$shlibpath_overrides_runpath" = yes || |
9202 test "$enable_shared" = no; then | 10122 test "$enable_shared" = no; then |
9203 # Fast installation is not necessary | 10123 # Fast installation is not necessary |
9204 enable_fast_install=needless | 10124 enable_fast_install=needless |
9205 fi | 10125 fi |
9206 | 10126 |
9207 striplib= | 10127 |
9208 old_striplib= | 10128 |
9209 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | 10129 |
9210 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | 10130 |
9211 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | 10131 |
9212 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 10132 if test "x$enable_dlopen" != xyes; then |
9213 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
9214 { echo "$as_me:$LINENO: result: yes" >&5 | |
9215 echo "${ECHO_T}yes" >&6; } | |
9216 else | |
9217 # FIXME - insert some real tests, host_os isn't really good enough | |
9218 case $host_os in | |
9219 darwin*) | |
9220 if test -n "$STRIP" ; then | |
9221 striplib="$STRIP -x" | |
9222 { echo "$as_me:$LINENO: result: yes" >&5 | |
9223 echo "${ECHO_T}yes" >&6; } | |
9224 else | |
9225 { echo "$as_me:$LINENO: result: no" >&5 | |
9226 echo "${ECHO_T}no" >&6; } | |
9227 fi | |
9228 ;; | |
9229 *) | |
9230 { echo "$as_me:$LINENO: result: no" >&5 | |
9231 echo "${ECHO_T}no" >&6; } | |
9232 ;; | |
9233 esac | |
9234 fi | |
9235 | |
9236 if test "x$enable_dlopen" != xyes; then | |
9237 enable_dlopen=unknown | 10133 enable_dlopen=unknown |
9238 enable_dlopen_self=unknown | 10134 enable_dlopen_self=unknown |
9239 enable_dlopen_self_static=unknown | 10135 enable_dlopen_self_static=unknown |
9240 else | 10136 else |
9241 lt_cv_dlopen=no | 10137 lt_cv_dlopen=no |
9246 lt_cv_dlopen="load_add_on" | 10142 lt_cv_dlopen="load_add_on" |
9247 lt_cv_dlopen_libs= | 10143 lt_cv_dlopen_libs= |
9248 lt_cv_dlopen_self=yes | 10144 lt_cv_dlopen_self=yes |
9249 ;; | 10145 ;; |
9250 | 10146 |
9251 mingw* | pw32*) | 10147 mingw* | pw32* | cegcc*) |
9252 lt_cv_dlopen="LoadLibrary" | 10148 lt_cv_dlopen="LoadLibrary" |
9253 lt_cv_dlopen_libs= | 10149 lt_cv_dlopen_libs= |
9254 ;; | 10150 ;; |
9255 | 10151 |
9256 cygwin*) | 10152 cygwin*) |
9257 lt_cv_dlopen="dlopen" | 10153 lt_cv_dlopen="dlopen" |
9258 lt_cv_dlopen_libs= | 10154 lt_cv_dlopen_libs= |
9259 ;; | 10155 ;; |
9260 | 10156 |
9261 darwin*) | 10157 darwin*) |
9262 # if libdl is installed we need to link against it | 10158 # if libdl is installed we need to link against it |
9263 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | 10159 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9264 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | 10160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
9345 lt_cv_dlopen_libs= | 10241 lt_cv_dlopen_libs= |
9346 lt_cv_dlopen_self=yes | 10242 lt_cv_dlopen_self=yes |
9347 | 10243 |
9348 fi | 10244 fi |
9349 | 10245 |
9350 ;; | 10246 ;; |
9351 | 10247 |
9352 *) | 10248 *) |
9353 { echo "$as_me:$LINENO: checking for shl_load" >&5 | 10249 { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9354 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | 10250 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
9355 if test "${ac_cv_func_shl_load+set}" = set; then | 10251 if test "${ac_cv_func_shl_load+set}" = set; then |
9526 LIBS=$ac_check_lib_save_LIBS | 10422 LIBS=$ac_check_lib_save_LIBS |
9527 fi | 10423 fi |
9528 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | 10424 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9529 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | 10425 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
9530 if test $ac_cv_lib_dld_shl_load = yes; then | 10426 if test $ac_cv_lib_dld_shl_load = yes; then |
9531 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | 10427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
9532 else | 10428 else |
9533 { echo "$as_me:$LINENO: checking for dlopen" >&5 | 10429 { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9534 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | 10430 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
9535 if test "${ac_cv_func_dlopen+set}" = set; then | 10431 if test "${ac_cv_func_dlopen+set}" = set; then |
9536 echo $ECHO_N "(cached) $ECHO_C" >&6 | 10432 echo $ECHO_N "(cached) $ECHO_C" >&6 |
9866 LIBS=$ac_check_lib_save_LIBS | 10762 LIBS=$ac_check_lib_save_LIBS |
9867 fi | 10763 fi |
9868 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | 10764 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9869 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | 10765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
9870 if test $ac_cv_lib_dld_dld_link = yes; then | 10766 if test $ac_cv_lib_dld_dld_link = yes; then |
9871 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | 10767 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
9872 fi | 10768 fi |
9873 | 10769 |
9874 | 10770 |
9875 fi | 10771 fi |
9876 | 10772 |
9914 if test "$cross_compiling" = yes; then : | 10810 if test "$cross_compiling" = yes; then : |
9915 lt_cv_dlopen_self=cross | 10811 lt_cv_dlopen_self=cross |
9916 else | 10812 else |
9917 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 10813 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9918 lt_status=$lt_dlunknown | 10814 lt_status=$lt_dlunknown |
9919 cat > conftest.$ac_ext <<EOF | 10815 cat > conftest.$ac_ext <<_LT_EOF |
9920 #line 9920 "configure" | 10816 #line 10816 "configure" |
9921 #include "confdefs.h" | 10817 #include "confdefs.h" |
9922 | 10818 |
9923 #if HAVE_DLFCN_H | 10819 #if HAVE_DLFCN_H |
9924 #include <dlfcn.h> | 10820 #include <dlfcn.h> |
9925 #endif | 10821 #endif |
9956 # endif | 10852 # endif |
9957 # endif | 10853 # endif |
9958 # endif | 10854 # endif |
9959 #endif | 10855 #endif |
9960 | 10856 |
9961 #ifdef __cplusplus | |
9962 extern "C" void exit (int); | |
9963 #endif | |
9964 | |
9965 void fnord() { int i=42;} | 10857 void fnord() { int i=42;} |
9966 int main () | 10858 int main () |
9967 { | 10859 { |
9968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 10860 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9969 int status = $lt_dlunknown; | 10861 int status = $lt_dlunknown; |
9975 /* dlclose (self); */ | 10867 /* dlclose (self); */ |
9976 } | 10868 } |
9977 else | 10869 else |
9978 puts (dlerror ()); | 10870 puts (dlerror ()); |
9979 | 10871 |
9980 exit (status); | 10872 return status; |
9981 } | 10873 } |
9982 EOF | 10874 _LT_EOF |
9983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 10875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9984 (eval $ac_link) 2>&5 | 10876 (eval $ac_link) 2>&5 |
9985 ac_status=$? | 10877 ac_status=$? |
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9987 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 10879 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10014 if test "$cross_compiling" = yes; then : | 10906 if test "$cross_compiling" = yes; then : |
10015 lt_cv_dlopen_self_static=cross | 10907 lt_cv_dlopen_self_static=cross |
10016 else | 10908 else |
10017 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 10909 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10018 lt_status=$lt_dlunknown | 10910 lt_status=$lt_dlunknown |
10019 cat > conftest.$ac_ext <<EOF | 10911 cat > conftest.$ac_ext <<_LT_EOF |
10020 #line 10020 "configure" | 10912 #line 10912 "configure" |
10021 #include "confdefs.h" | 10913 #include "confdefs.h" |
10022 | 10914 |
10023 #if HAVE_DLFCN_H | 10915 #if HAVE_DLFCN_H |
10024 #include <dlfcn.h> | 10916 #include <dlfcn.h> |
10025 #endif | 10917 #endif |
10056 # endif | 10948 # endif |
10057 # endif | 10949 # endif |
10058 # endif | 10950 # endif |
10059 #endif | 10951 #endif |
10060 | 10952 |
10061 #ifdef __cplusplus | |
10062 extern "C" void exit (int); | |
10063 #endif | |
10064 | |
10065 void fnord() { int i=42;} | 10953 void fnord() { int i=42;} |
10066 int main () | 10954 int main () |
10067 { | 10955 { |
10068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 10956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10069 int status = $lt_dlunknown; | 10957 int status = $lt_dlunknown; |
10075 /* dlclose (self); */ | 10963 /* dlclose (self); */ |
10076 } | 10964 } |
10077 else | 10965 else |
10078 puts (dlerror ()); | 10966 puts (dlerror ()); |
10079 | 10967 |
10080 exit (status); | 10968 return status; |
10081 } | 10969 } |
10082 EOF | 10970 _LT_EOF |
10083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10084 (eval $ac_link) 2>&5 | 10972 (eval $ac_link) 2>&5 |
10085 ac_status=$? | 10973 ac_status=$? |
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10087 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | 10975 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10121 *) enable_dlopen_self_static=unknown ;; | 11009 *) enable_dlopen_self_static=unknown ;; |
10122 esac | 11010 esac |
10123 fi | 11011 fi |
10124 | 11012 |
10125 | 11013 |
10126 # Report which library types will actually be built | 11014 |
10127 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 11015 |
10128 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | 11016 |
10129 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 11017 |
10130 echo "${ECHO_T}$can_build_shared" >&6; } | 11018 |
10131 | 11019 |
10132 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | 11020 |
10133 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | 11021 |
10134 test "$can_build_shared" = "no" && enable_shared=no | 11022 |
10135 | 11023 |
10136 # On AIX, shared libraries and static libraries use the same namespace, and | 11024 |
10137 # are all built from PIC. | 11025 |
10138 case $host_os in | 11026 |
10139 aix3*) | 11027 |
10140 test "$enable_shared" = yes && enable_static=no | 11028 |
10141 if test -n "$RANLIB"; then | 11029 striplib= |
10142 archive_cmds="$archive_cmds~\$RANLIB \$lib" | 11030 old_striplib= |
10143 postinstall_cmds='$RANLIB $lib' | 11031 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
10144 fi | 11032 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
10145 ;; | 11033 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
10146 | 11034 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
10147 aix4* | aix5*) | 11035 test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
10148 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 11036 { echo "$as_me:$LINENO: result: yes" >&5 |
10149 test "$enable_shared" = yes && enable_static=no | 11037 echo "${ECHO_T}yes" >&6; } |
10150 fi | 11038 else |
11039 # FIXME - insert some real tests, host_os isn't really good enough | |
11040 case $host_os in | |
11041 darwin*) | |
11042 if test -n "$STRIP" ; then | |
11043 striplib="$STRIP -x" | |
11044 old_striplib="$STRIP -S" | |
11045 { echo "$as_me:$LINENO: result: yes" >&5 | |
11046 echo "${ECHO_T}yes" >&6; } | |
11047 else | |
11048 { echo "$as_me:$LINENO: result: no" >&5 | |
11049 echo "${ECHO_T}no" >&6; } | |
11050 fi | |
10151 ;; | 11051 ;; |
10152 esac | 11052 *) |
10153 { echo "$as_me:$LINENO: result: $enable_shared" >&5 | 11053 { echo "$as_me:$LINENO: result: no" >&5 |
10154 echo "${ECHO_T}$enable_shared" >&6; } | 11054 echo "${ECHO_T}no" >&6; } |
10155 | |
10156 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10157 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
10158 # Make sure either enable_shared or enable_static is yes. | |
10159 test "$enable_shared" = yes || enable_static=yes | |
10160 { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10161 echo "${ECHO_T}$enable_static" >&6; } | |
10162 | |
10163 # The else clause should only fire when bootstrapping the | |
10164 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
10165 # with your package, and you will get complaints that there are | |
10166 # no rules to generate ltmain.sh. | |
10167 if test -f "$ltmain"; then | |
10168 # See if we are running on zsh, and set the options which allow our commands through | |
10169 # without removal of \ escapes. | |
10170 if test -n "${ZSH_VERSION+set}" ; then | |
10171 setopt NO_GLOB_SUBST | |
10172 fi | |
10173 # Now quote all the things that may contain metacharacters while being | |
10174 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
10175 # variables and quote the copies for generation of the libtool script. | |
10176 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
10177 SED SHELL STRIP \ | |
10178 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
10179 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
10180 deplibs_check_method reload_flag reload_cmds need_locks \ | |
10181 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
10182 lt_cv_sys_global_symbol_to_c_name_address \ | |
10183 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
10184 old_postinstall_cmds old_postuninstall_cmds \ | |
10185 compiler \ | |
10186 CC \ | |
10187 LD \ | |
10188 lt_prog_compiler_wl \ | |
10189 lt_prog_compiler_pic \ | |
10190 lt_prog_compiler_static \ | |
10191 lt_prog_compiler_no_builtin_flag \ | |
10192 export_dynamic_flag_spec \ | |
10193 thread_safe_flag_spec \ | |
10194 whole_archive_flag_spec \ | |
10195 enable_shared_with_static_runtimes \ | |
10196 old_archive_cmds \ | |
10197 old_archive_from_new_cmds \ | |
10198 predep_objects \ | |
10199 postdep_objects \ | |
10200 predeps \ | |
10201 postdeps \ | |
10202 compiler_lib_search_path \ | |
10203 archive_cmds \ | |
10204 archive_expsym_cmds \ | |
10205 postinstall_cmds \ | |
10206 postuninstall_cmds \ | |
10207 old_archive_from_expsyms_cmds \ | |
10208 allow_undefined_flag \ | |
10209 no_undefined_flag \ | |
10210 export_symbols_cmds \ | |
10211 hardcode_libdir_flag_spec \ | |
10212 hardcode_libdir_flag_spec_ld \ | |
10213 hardcode_libdir_separator \ | |
10214 hardcode_automatic \ | |
10215 module_cmds \ | |
10216 module_expsym_cmds \ | |
10217 lt_cv_prog_compiler_c_o \ | |
10218 exclude_expsyms \ | |
10219 include_expsyms; do | |
10220 | |
10221 case $var in | |
10222 old_archive_cmds | \ | |
10223 old_archive_from_new_cmds | \ | |
10224 archive_cmds | \ | |
10225 archive_expsym_cmds | \ | |
10226 module_cmds | \ | |
10227 module_expsym_cmds | \ | |
10228 old_archive_from_expsyms_cmds | \ | |
10229 export_symbols_cmds | \ | |
10230 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
10231 postinstall_cmds | postuninstall_cmds | \ | |
10232 old_postinstall_cmds | old_postuninstall_cmds | \ | |
10233 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
10234 # Double-quote double-evaled strings. | |
10235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
10236 ;; | |
10237 *) | |
10238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
10239 ;; | |
10240 esac | |
10241 done | |
10242 | |
10243 case $lt_echo in | |
10244 *'\$0 --fallback-echo"') | |
10245 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
10246 ;; | 11055 ;; |
10247 esac | 11056 esac |
10248 | 11057 fi |
10249 cfgfile="${ofile}T" | 11058 |
10250 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | 11059 |
10251 $rm -f "$cfgfile" | 11060 |
10252 { echo "$as_me:$LINENO: creating $ofile" >&5 | 11061 |
10253 echo "$as_me: creating $ofile" >&6;} | 11062 |
10254 | 11063 |
10255 cat <<__EOF__ >> "$cfgfile" | 11064 |
10256 #! $SHELL | 11065 |
10257 | 11066 |
10258 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 11067 |
10259 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | 11068 |
10260 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 11069 |
10261 # | 11070 # Report which library types will actually be built |
10262 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | 11071 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10263 # Free Software Foundation, Inc. | 11072 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10264 # | 11073 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10265 # This file is part of GNU Libtool: | 11074 echo "${ECHO_T}$can_build_shared" >&6; } |
10266 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | 11075 |
10267 # | 11076 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10268 # This program is free software; you can redistribute it and/or modify | 11077 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
10269 # it under the terms of the GNU General Public License as published by | 11078 test "$can_build_shared" = "no" && enable_shared=no |
10270 # the Free Software Foundation; either version 2 of the License, or | 11079 |
10271 # (at your option) any later version. | 11080 # On AIX, shared libraries and static libraries use the same namespace, and |
10272 # | 11081 # are all built from PIC. |
10273 # This program is distributed in the hope that it will be useful, but | |
10274 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
10275 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
10276 # General Public License for more details. | |
10277 # | |
10278 # You should have received a copy of the GNU General Public License | |
10279 # along with this program; if not, write to the Free Software | |
10280 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
10281 # | |
10282 # As a special exception to the GNU General Public License, if you | |
10283 # distribute this file as part of a program that contains a | |
10284 # configuration script generated by Autoconf, you may include it under | |
10285 # the same distribution terms that you use for the rest of that program. | |
10286 | |
10287 # A sed program that does not truncate output. | |
10288 SED=$lt_SED | |
10289 | |
10290 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
10291 Xsed="$SED -e 1s/^X//" | |
10292 | |
10293 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
10294 # if CDPATH is set. | |
10295 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10296 | |
10297 # The names of the tagged configurations supported by this script. | |
10298 available_tags= | |
10299 | |
10300 # ### BEGIN LIBTOOL CONFIG | |
10301 | |
10302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
10303 | |
10304 # Shell to use when invoking shell scripts. | |
10305 SHELL=$lt_SHELL | |
10306 | |
10307 # Whether or not to build shared libraries. | |
10308 build_libtool_libs=$enable_shared | |
10309 | |
10310 # Whether or not to build static libraries. | |
10311 build_old_libs=$enable_static | |
10312 | |
10313 # Whether or not to add -lc for building shared libraries. | |
10314 build_libtool_need_lc=$archive_cmds_need_lc | |
10315 | |
10316 # Whether or not to disallow shared libs when runtime libs are static | |
10317 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
10318 | |
10319 # Whether or not to optimize for fast installation. | |
10320 fast_install=$enable_fast_install | |
10321 | |
10322 # The host system. | |
10323 host_alias=$host_alias | |
10324 host=$host | |
10325 host_os=$host_os | |
10326 | |
10327 # The build system. | |
10328 build_alias=$build_alias | |
10329 build=$build | |
10330 build_os=$build_os | |
10331 | |
10332 # An echo program that does not interpret backslashes. | |
10333 echo=$lt_echo | |
10334 | |
10335 # The archiver. | |
10336 AR=$lt_AR | |
10337 AR_FLAGS=$lt_AR_FLAGS | |
10338 | |
10339 # A C compiler. | |
10340 LTCC=$lt_LTCC | |
10341 | |
10342 # LTCC compiler flags. | |
10343 LTCFLAGS=$lt_LTCFLAGS | |
10344 | |
10345 # A language-specific compiler. | |
10346 CC=$lt_compiler | |
10347 | |
10348 # Is the compiler the GNU C compiler? | |
10349 with_gcc=$GCC | |
10350 | |
10351 # An ERE matcher. | |
10352 EGREP=$lt_EGREP | |
10353 | |
10354 # The linker used to build libraries. | |
10355 LD=$lt_LD | |
10356 | |
10357 # Whether we need hard or soft links. | |
10358 LN_S=$lt_LN_S | |
10359 | |
10360 # A BSD-compatible nm program. | |
10361 NM=$lt_NM | |
10362 | |
10363 # A symbol stripping program | |
10364 STRIP=$lt_STRIP | |
10365 | |
10366 # Used to examine libraries when file_magic_cmd begins "file" | |
10367 MAGIC_CMD=$MAGIC_CMD | |
10368 | |
10369 # Used on cygwin: DLL creation program. | |
10370 DLLTOOL="$DLLTOOL" | |
10371 | |
10372 # Used on cygwin: object dumper. | |
10373 OBJDUMP="$OBJDUMP" | |
10374 | |
10375 # Used on cygwin: assembler. | |
10376 AS="$AS" | |
10377 | |
10378 # The name of the directory that contains temporary libtool files. | |
10379 objdir=$objdir | |
10380 | |
10381 # How to create reloadable object files. | |
10382 reload_flag=$lt_reload_flag | |
10383 reload_cmds=$lt_reload_cmds | |
10384 | |
10385 # How to pass a linker flag through the compiler. | |
10386 wl=$lt_lt_prog_compiler_wl | |
10387 | |
10388 # Object file suffix (normally "o"). | |
10389 objext="$ac_objext" | |
10390 | |
10391 # Old archive suffix (normally "a"). | |
10392 libext="$libext" | |
10393 | |
10394 # Shared library suffix (normally ".so"). | |
10395 shrext_cmds='$shrext_cmds' | |
10396 | |
10397 # Executable file suffix (normally ""). | |
10398 exeext="$exeext" | |
10399 | |
10400 # Additional compiler flags for building library objects. | |
10401 pic_flag=$lt_lt_prog_compiler_pic | |
10402 pic_mode=$pic_mode | |
10403 | |
10404 # What is the maximum length of a command? | |
10405 max_cmd_len=$lt_cv_sys_max_cmd_len | |
10406 | |
10407 # Does compiler simultaneously support -c and -o options? | |
10408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
10409 | |
10410 # Must we lock files when doing compilation? | |
10411 need_locks=$lt_need_locks | |
10412 | |
10413 # Do we need the lib prefix for modules? | |
10414 need_lib_prefix=$need_lib_prefix | |
10415 | |
10416 # Do we need a version for libraries? | |
10417 need_version=$need_version | |
10418 | |
10419 # Whether dlopen is supported. | |
10420 dlopen_support=$enable_dlopen | |
10421 | |
10422 # Whether dlopen of programs is supported. | |
10423 dlopen_self=$enable_dlopen_self | |
10424 | |
10425 # Whether dlopen of statically linked programs is supported. | |
10426 dlopen_self_static=$enable_dlopen_self_static | |
10427 | |
10428 # Compiler flag to prevent dynamic linking. | |
10429 link_static_flag=$lt_lt_prog_compiler_static | |
10430 | |
10431 # Compiler flag to turn off builtin functions. | |
10432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
10433 | |
10434 # Compiler flag to allow reflexive dlopens. | |
10435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
10436 | |
10437 # Compiler flag to generate shared objects directly from archives. | |
10438 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
10439 | |
10440 # Compiler flag to generate thread-safe objects. | |
10441 thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
10442 | |
10443 # Library versioning type. | |
10444 version_type=$version_type | |
10445 | |
10446 # Format of library name prefix. | |
10447 libname_spec=$lt_libname_spec | |
10448 | |
10449 # List of archive names. First name is the real one, the rest are links. | |
10450 # The last name is the one that the linker finds with -lNAME. | |
10451 library_names_spec=$lt_library_names_spec | |
10452 | |
10453 # The coded name of the library, if different from the real name. | |
10454 soname_spec=$lt_soname_spec | |
10455 | |
10456 # Commands used to build and install an old-style archive. | |
10457 RANLIB=$lt_RANLIB | |
10458 old_archive_cmds=$lt_old_archive_cmds | |
10459 old_postinstall_cmds=$lt_old_postinstall_cmds | |
10460 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
10461 | |
10462 # Create an old-style archive from a shared archive. | |
10463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
10464 | |
10465 # Create a temporary old-style archive to link instead of a shared archive. | |
10466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
10467 | |
10468 # Commands used to build and install a shared archive. | |
10469 archive_cmds=$lt_archive_cmds | |
10470 archive_expsym_cmds=$lt_archive_expsym_cmds | |
10471 postinstall_cmds=$lt_postinstall_cmds | |
10472 postuninstall_cmds=$lt_postuninstall_cmds | |
10473 | |
10474 # Commands used to build a loadable module (assumed same as above if empty) | |
10475 module_cmds=$lt_module_cmds | |
10476 module_expsym_cmds=$lt_module_expsym_cmds | |
10477 | |
10478 # Commands to strip libraries. | |
10479 old_striplib=$lt_old_striplib | |
10480 striplib=$lt_striplib | |
10481 | |
10482 # Dependencies to place before the objects being linked to create a | |
10483 # shared library. | |
10484 predep_objects=$lt_predep_objects | |
10485 | |
10486 # Dependencies to place after the objects being linked to create a | |
10487 # shared library. | |
10488 postdep_objects=$lt_postdep_objects | |
10489 | |
10490 # Dependencies to place before the objects being linked to create a | |
10491 # shared library. | |
10492 predeps=$lt_predeps | |
10493 | |
10494 # Dependencies to place after the objects being linked to create a | |
10495 # shared library. | |
10496 postdeps=$lt_postdeps | |
10497 | |
10498 # The library search path used internally by the compiler when linking | |
10499 # a shared library. | |
10500 compiler_lib_search_path=$lt_compiler_lib_search_path | |
10501 | |
10502 # Method to check whether dependent libraries are shared objects. | |
10503 deplibs_check_method=$lt_deplibs_check_method | |
10504 | |
10505 # Command to use when deplibs_check_method == file_magic. | |
10506 file_magic_cmd=$lt_file_magic_cmd | |
10507 | |
10508 # Flag that allows shared libraries with undefined symbols to be built. | |
10509 allow_undefined_flag=$lt_allow_undefined_flag | |
10510 | |
10511 # Flag that forces no undefined symbols. | |
10512 no_undefined_flag=$lt_no_undefined_flag | |
10513 | |
10514 # Commands used to finish a libtool library installation in a directory. | |
10515 finish_cmds=$lt_finish_cmds | |
10516 | |
10517 # Same as above, but a single script fragment to be evaled but not shown. | |
10518 finish_eval=$lt_finish_eval | |
10519 | |
10520 # Take the output of nm and produce a listing of raw symbols and C names. | |
10521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
10522 | |
10523 # Transform the output of nm in a proper C declaration | |
10524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
10525 | |
10526 # Transform the output of nm in a C name address pair | |
10527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
10528 | |
10529 # This is the shared library runtime path variable. | |
10530 runpath_var=$runpath_var | |
10531 | |
10532 # This is the shared library path variable. | |
10533 shlibpath_var=$shlibpath_var | |
10534 | |
10535 # Is shlibpath searched before the hard-coded library search path? | |
10536 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
10537 | |
10538 # How to hardcode a shared library path into an executable. | |
10539 hardcode_action=$hardcode_action | |
10540 | |
10541 # Whether we should hardcode library paths into libraries. | |
10542 hardcode_into_libs=$hardcode_into_libs | |
10543 | |
10544 # Flag to hardcode \$libdir into a binary during linking. | |
10545 # This must work even if \$libdir does not exist. | |
10546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
10547 | |
10548 # If ld is used when linking, flag to hardcode \$libdir into | |
10549 # a binary during linking. This must work even if \$libdir does | |
10550 # not exist. | |
10551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
10552 | |
10553 # Whether we need a single -rpath flag with a separated argument. | |
10554 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
10555 | |
10556 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
10557 # resulting binary. | |
10558 hardcode_direct=$hardcode_direct | |
10559 | |
10560 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
10561 # resulting binary. | |
10562 hardcode_minus_L=$hardcode_minus_L | |
10563 | |
10564 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
10565 # the resulting binary. | |
10566 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
10567 | |
10568 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
10569 # and all subsequent libraries and executables linked against it. | |
10570 hardcode_automatic=$hardcode_automatic | |
10571 | |
10572 # Variables whose values should be saved in libtool wrapper scripts and | |
10573 # restored at relink time. | |
10574 variables_saved_for_relink="$variables_saved_for_relink" | |
10575 | |
10576 # Whether libtool must link a program against all its dependency libraries. | |
10577 link_all_deplibs=$link_all_deplibs | |
10578 | |
10579 # Compile-time system search path for libraries | |
10580 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
10581 | |
10582 # Run-time system search path for libraries | |
10583 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
10584 | |
10585 # Fix the shell variable \$srcfile for the compiler. | |
10586 fix_srcfile_path="$fix_srcfile_path" | |
10587 | |
10588 # Set to yes if exported symbols are required. | |
10589 always_export_symbols=$always_export_symbols | |
10590 | |
10591 # The commands to list exported symbols. | |
10592 export_symbols_cmds=$lt_export_symbols_cmds | |
10593 | |
10594 # The commands to extract the exported symbol list from a shared archive. | |
10595 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
10596 | |
10597 # Symbols that should not be listed in the preloaded symbols. | |
10598 exclude_expsyms=$lt_exclude_expsyms | |
10599 | |
10600 # Symbols that must always be exported. | |
10601 include_expsyms=$lt_include_expsyms | |
10602 | |
10603 # ### END LIBTOOL CONFIG | |
10604 | |
10605 __EOF__ | |
10606 | |
10607 | |
10608 case $host_os in | 11082 case $host_os in |
10609 aix3*) | 11083 aix3*) |
10610 cat <<\EOF >> "$cfgfile" | 11084 test "$enable_shared" = yes && enable_static=no |
10611 | 11085 if test -n "$RANLIB"; then |
10612 # AIX sometimes has problems with the GCC collect2 program. For some | 11086 archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10613 # reason, if we set the COLLECT_NAMES environment variable, the problems | 11087 postinstall_cmds='$RANLIB $lib' |
10614 # vanish in a puff of smoke. | 11088 fi |
10615 if test "X${COLLECT_NAMES+set}" != Xset; then | 11089 ;; |
10616 COLLECT_NAMES= | 11090 |
10617 export COLLECT_NAMES | 11091 aix[4-9]*) |
10618 fi | 11092 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10619 EOF | 11093 test "$enable_shared" = yes && enable_static=no |
11094 fi | |
10620 ;; | 11095 ;; |
10621 esac | 11096 esac |
10622 | 11097 { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10623 # We use sed instead of cat because bash on DJGPP gets confused if | 11098 echo "${ECHO_T}$enable_shared" >&6; } |
10624 # if finds mixed CR/LF and LF-only lines. Since sed operates in | 11099 |
10625 # text mode, it properly converts lines to CR/LF. This bash problem | 11100 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10626 # is reportedly fixed, but why not run on old versions too? | 11101 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
10627 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | 11102 # Make sure either enable_shared or enable_static is yes. |
10628 | 11103 test "$enable_shared" = yes || enable_static=yes |
10629 mv -f "$cfgfile" "$ofile" || \ | 11104 { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10630 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 11105 echo "${ECHO_T}$enable_static" >&6; } |
10631 chmod +x "$ofile" | 11106 |
10632 | 11107 |
10633 else | 11108 |
10634 # If there is no Makefile yet, we rely on a make rule to execute | 11109 |
10635 # `config.status --recheck' to rerun these tests and create the | 11110 fi |
10636 # libtool script then. | |
10637 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
10638 if test -f "$ltmain_in"; then | |
10639 test -f Makefile && make "$ltmain" | |
10640 fi | |
10641 fi | |
10642 | |
10643 | |
10644 ac_ext=c | 11111 ac_ext=c |
10645 ac_cpp='$CPP $CPPFLAGS' | 11112 ac_cpp='$CPP $CPPFLAGS' |
10646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 11113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 11114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10648 ac_compiler_gnu=$ac_cv_c_compiler_gnu | 11115 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10649 | 11116 |
10650 CC="$lt_save_CC" | 11117 CC="$lt_save_CC" |
10651 | 11118 |
10652 | 11119 |
10653 # Check whether --with-tags was given. | 11120 |
10654 if test "${with_tags+set}" = set; then | 11121 |
10655 withval=$with_tags; tagnames="$withval" | 11122 |
10656 fi | 11123 |
10657 | 11124 |
10658 | 11125 |
10659 if test -f "$ltmain" && test -n "$tagnames"; then | 11126 |
10660 if test ! -f "${ofile}"; then | 11127 |
10661 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | 11128 |
10662 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | 11129 |
10663 fi | 11130 |
10664 | 11131 ac_config_commands="$ac_config_commands libtool" |
10665 if test -z "$LTCC"; then | 11132 |
10666 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | 11133 |
10667 if test -z "$LTCC"; then | 11134 |
10668 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | 11135 |
10669 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | 11136 # Only expand once: |
10670 else | |
10671 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
10672 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
10673 fi | |
10674 fi | |
10675 if test -z "$LTCFLAGS"; then | |
10676 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
10677 fi | |
10678 | |
10679 # Extract list of available tagged configurations in $ofile. | |
10680 # Note that this assumes the entire list is on one line. | |
10681 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
10682 | |
10683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
10684 for tagname in $tagnames; do | |
10685 IFS="$lt_save_ifs" | |
10686 # Check whether tagname contains only valid characters | |
10687 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
10688 "") ;; | |
10689 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
10690 echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
10691 { (exit 1); exit 1; }; } | |
10692 ;; | |
10693 esac | |
10694 | |
10695 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
10696 then | |
10697 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
10698 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
10699 { (exit 1); exit 1; }; } | |
10700 fi | |
10701 | |
10702 # Update the list of available tags. | |
10703 if test -n "$tagname"; then | |
10704 echo appending configuration tag \"$tagname\" to $ofile | |
10705 | |
10706 case $tagname in | |
10707 CXX) | |
10708 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
10709 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
10710 (test "X$CXX" != "Xg++"))) ; then | |
10711 ac_ext=cpp | |
10712 ac_cpp='$CXXCPP $CPPFLAGS' | |
10713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10716 | |
10717 | |
10718 | |
10719 | |
10720 archive_cmds_need_lc_CXX=no | |
10721 allow_undefined_flag_CXX= | |
10722 always_export_symbols_CXX=no | |
10723 archive_expsym_cmds_CXX= | |
10724 export_dynamic_flag_spec_CXX= | |
10725 hardcode_direct_CXX=no | |
10726 hardcode_libdir_flag_spec_CXX= | |
10727 hardcode_libdir_flag_spec_ld_CXX= | |
10728 hardcode_libdir_separator_CXX= | |
10729 hardcode_minus_L_CXX=no | |
10730 hardcode_shlibpath_var_CXX=unsupported | |
10731 hardcode_automatic_CXX=no | |
10732 module_cmds_CXX= | |
10733 module_expsym_cmds_CXX= | |
10734 link_all_deplibs_CXX=unknown | |
10735 old_archive_cmds_CXX=$old_archive_cmds | |
10736 no_undefined_flag_CXX= | |
10737 whole_archive_flag_spec_CXX= | |
10738 enable_shared_with_static_runtimes_CXX=no | |
10739 | |
10740 # Dependencies to place before and after the object being linked: | |
10741 predep_objects_CXX= | |
10742 postdep_objects_CXX= | |
10743 predeps_CXX= | |
10744 postdeps_CXX= | |
10745 compiler_lib_search_path_CXX= | |
10746 | |
10747 # Source file extension for C++ test sources. | |
10748 ac_ext=cpp | |
10749 | |
10750 # Object file extension for compiled C++ test sources. | |
10751 objext=o | |
10752 objext_CXX=$objext | |
10753 | |
10754 # Code to be used in simple compile tests | |
10755 lt_simple_compile_test_code="int some_variable = 0;\n" | |
10756 | |
10757 # Code to be used in simple link tests | |
10758 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | |
10759 | |
10760 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
10761 | |
10762 # If no C compiler was specified, use CC. | |
10763 LTCC=${LTCC-"$CC"} | |
10764 | |
10765 # If no C compiler flags were specified, use CFLAGS. | |
10766 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
10767 | |
10768 # Allow CC to be a program name with arguments. | |
10769 compiler=$CC | |
10770 | |
10771 | |
10772 # save warnings/boilerplate of simple test code | |
10773 ac_outfile=conftest.$ac_objext | |
10774 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
10775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10776 _lt_compiler_boilerplate=`cat conftest.err` | |
10777 $rm conftest* | |
10778 | |
10779 ac_outfile=conftest.$ac_objext | |
10780 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
10781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
10782 _lt_linker_boilerplate=`cat conftest.err` | |
10783 $rm conftest* | |
10784 | |
10785 | |
10786 # Allow CC to be a program name with arguments. | |
10787 lt_save_CC=$CC | |
10788 lt_save_LD=$LD | |
10789 lt_save_GCC=$GCC | |
10790 GCC=$GXX | |
10791 lt_save_with_gnu_ld=$with_gnu_ld | |
10792 lt_save_path_LD=$lt_cv_path_LD | |
10793 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
10794 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
10795 else | |
10796 $as_unset lt_cv_prog_gnu_ld | |
10797 fi | |
10798 if test -n "${lt_cv_path_LDCXX+set}"; then | |
10799 lt_cv_path_LD=$lt_cv_path_LDCXX | |
10800 else | |
10801 $as_unset lt_cv_path_LD | |
10802 fi | |
10803 test -z "${LDCXX+set}" || LD=$LDCXX | |
10804 CC=${CXX-"c++"} | |
10805 compiler=$CC | |
10806 compiler_CXX=$CC | |
10807 for cc_temp in $compiler""; do | |
10808 case $cc_temp in | |
10809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10811 \-*) ;; | |
10812 *) break;; | |
10813 esac | |
10814 done | |
10815 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
10816 | |
10817 | |
10818 # We don't want -fno-exception wen compiling C++ code, so set the | |
10819 # no_builtin_flag separately | |
10820 if test "$GXX" = yes; then | |
10821 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
10822 else | |
10823 lt_prog_compiler_no_builtin_flag_CXX= | |
10824 fi | |
10825 | |
10826 if test "$GXX" = yes; then | |
10827 # Set up default GNU C++ configuration | |
10828 | |
10829 | |
10830 # Check whether --with-gnu-ld was given. | |
10831 if test "${with_gnu_ld+set}" = set; then | |
10832 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
10833 else | |
10834 with_gnu_ld=no | |
10835 fi | |
10836 | |
10837 ac_prog=ld | |
10838 if test "$GCC" = yes; then | |
10839 # Check if gcc -print-prog-name=ld gives a path. | |
10840 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
10841 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
10842 case $host in | |
10843 *-*-mingw*) | |
10844 # gcc leaves a trailing carriage return which upsets mingw | |
10845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10846 *) | |
10847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10848 esac | |
10849 case $ac_prog in | |
10850 # Accept absolute paths. | |
10851 [\\/]* | ?:[\\/]*) | |
10852 re_direlt='/[^/][^/]*/\.\./' | |
10853 # Canonicalize the pathname of ld | |
10854 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
10855 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10856 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
10857 done | |
10858 test -z "$LD" && LD="$ac_prog" | |
10859 ;; | |
10860 "") | |
10861 # If it fails, then pretend we aren't using GCC. | |
10862 ac_prog=ld | |
10863 ;; | |
10864 *) | |
10865 # If it is relative, then search for the first ld in PATH. | |
10866 with_gnu_ld=unknown | |
10867 ;; | |
10868 esac | |
10869 elif test "$with_gnu_ld" = yes; then | |
10870 { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
10871 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
10872 else | |
10873 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
10874 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
10875 fi | |
10876 if test "${lt_cv_path_LD+set}" = set; then | |
10877 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10878 else | |
10879 if test -z "$LD"; then | |
10880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10881 for ac_dir in $PATH; do | |
10882 IFS="$lt_save_ifs" | |
10883 test -z "$ac_dir" && ac_dir=. | |
10884 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10885 lt_cv_path_LD="$ac_dir/$ac_prog" | |
10886 # Check to see if the program is GNU ld. I'd rather use --version, | |
10887 # but apparently some variants of GNU ld only accept -v. | |
10888 # Break only if it was the GNU/non-GNU ld that we prefer. | |
10889 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
10890 *GNU* | *'with BFD'*) | |
10891 test "$with_gnu_ld" != no && break | |
10892 ;; | |
10893 *) | |
10894 test "$with_gnu_ld" != yes && break | |
10895 ;; | |
10896 esac | |
10897 fi | |
10898 done | |
10899 IFS="$lt_save_ifs" | |
10900 else | |
10901 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
10902 fi | |
10903 fi | |
10904 | |
10905 LD="$lt_cv_path_LD" | |
10906 if test -n "$LD"; then | |
10907 { echo "$as_me:$LINENO: result: $LD" >&5 | |
10908 echo "${ECHO_T}$LD" >&6; } | |
10909 else | |
10910 { echo "$as_me:$LINENO: result: no" >&5 | |
10911 echo "${ECHO_T}no" >&6; } | |
10912 fi | |
10913 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
10914 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
10915 { (exit 1); exit 1; }; } | |
10916 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
10917 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
10918 if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
10919 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10920 else | |
10921 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
10922 case `$LD -v 2>&1 </dev/null` in | |
10923 *GNU* | *'with BFD'*) | |
10924 lt_cv_prog_gnu_ld=yes | |
10925 ;; | |
10926 *) | |
10927 lt_cv_prog_gnu_ld=no | |
10928 ;; | |
10929 esac | |
10930 fi | |
10931 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
10932 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
10933 with_gnu_ld=$lt_cv_prog_gnu_ld | |
10934 | |
10935 | |
10936 | |
10937 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
10938 # archiving commands below assume that GNU ld is being used. | |
10939 if test "$with_gnu_ld" = yes; then | |
10940 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10941 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' | |
10942 | |
10943 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
10944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10945 | |
10946 # If archive_cmds runs LD, not CC, wlarc should be empty | |
10947 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
10948 # investigate it a little bit more. (MM) | |
10949 wlarc='${wl}' | |
10950 | |
10951 # ancient GNU ld didn't support --whole-archive et. al. | |
10952 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
10953 grep 'no-whole-archive' > /dev/null; then | |
10954 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10955 else | |
10956 whole_archive_flag_spec_CXX= | |
10957 fi | |
10958 else | |
10959 with_gnu_ld=no | |
10960 wlarc= | |
10961 | |
10962 # A generic and very simple default shared library creation | |
10963 # command for GNU C++ for the case where it uses the native | |
10964 # linker, instead of GNU ld. If possible, this setting should | |
10965 # overridden to take advantage of the native linker features on | |
10966 # the platform it is being used on. | |
10967 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
10968 fi | |
10969 | |
10970 # Commands to make compiler produce verbose output that lists | |
10971 # what "hidden" libraries, object files and flags are used when | |
10972 # linking a shared library. | |
10973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10974 | |
10975 else | |
10976 GXX=no | |
10977 with_gnu_ld=no | |
10978 wlarc= | |
10979 fi | |
10980 | |
10981 # PORTME: fill in a description of your system's C++ link characteristics | |
10982 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10983 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
10984 ld_shlibs_CXX=yes | |
10985 case $host_os in | |
10986 aix3*) | |
10987 # FIXME: insert proper C++ library support | |
10988 ld_shlibs_CXX=no | |
10989 ;; | |
10990 aix4* | aix5*) | |
10991 if test "$host_cpu" = ia64; then | |
10992 # On IA64, the linker does run time linking by default, so we don't | |
10993 # have to do anything special. | |
10994 aix_use_runtimelinking=no | |
10995 exp_sym_flag='-Bexport' | |
10996 no_entry_flag="" | |
10997 else | |
10998 aix_use_runtimelinking=no | |
10999 | |
11000 # Test if we are trying to use run time linking or normal | |
11001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
11002 # need to do runtime linking. | |
11003 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
11004 for ld_flag in $LDFLAGS; do | |
11005 case $ld_flag in | |
11006 *-brtl*) | |
11007 aix_use_runtimelinking=yes | |
11008 break | |
11009 ;; | |
11010 esac | |
11011 done | |
11012 ;; | |
11013 esac | |
11014 | |
11015 exp_sym_flag='-bexport' | |
11016 no_entry_flag='-bnoentry' | |
11017 fi | |
11018 | |
11019 # When large executables or shared objects are built, AIX ld can | |
11020 # have problems creating the table of contents. If linking a library | |
11021 # or program results in "error TOC overflow" add -mminimal-toc to | |
11022 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
11023 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
11024 | |
11025 archive_cmds_CXX='' | |
11026 hardcode_direct_CXX=yes | |
11027 hardcode_libdir_separator_CXX=':' | |
11028 link_all_deplibs_CXX=yes | |
11029 | |
11030 if test "$GXX" = yes; then | |
11031 case $host_os in aix4.[012]|aix4.[012].*) | |
11032 # We only want to do this on AIX 4.2 and lower, the check | |
11033 # below for broken collect2 doesn't work under 4.3+ | |
11034 collect2name=`${CC} -print-prog-name=collect2` | |
11035 if test -f "$collect2name" && \ | |
11036 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
11037 then | |
11038 # We have reworked collect2 | |
11039 hardcode_direct_CXX=yes | |
11040 else | |
11041 # We have old collect2 | |
11042 hardcode_direct_CXX=unsupported | |
11043 # It fails to find uninstalled libraries when the uninstalled | |
11044 # path is not listed in the libpath. Setting hardcode_minus_L | |
11045 # to unsupported forces relinking | |
11046 hardcode_minus_L_CXX=yes | |
11047 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11048 hardcode_libdir_separator_CXX= | |
11049 fi | |
11050 ;; | |
11051 esac | |
11052 shared_flag='-shared' | |
11053 if test "$aix_use_runtimelinking" = yes; then | |
11054 shared_flag="$shared_flag "'${wl}-G' | |
11055 fi | |
11056 else | |
11057 # not using gcc | |
11058 if test "$host_cpu" = ia64; then | |
11059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
11060 # chokes on -Wl,-G. The following line is correct: | |
11061 shared_flag='-G' | |
11062 else | |
11063 if test "$aix_use_runtimelinking" = yes; then | |
11064 shared_flag='${wl}-G' | |
11065 else | |
11066 shared_flag='${wl}-bM:SRE' | |
11067 fi | |
11068 fi | |
11069 fi | |
11070 | |
11071 # It seems that -bexpall does not export symbols beginning with | |
11072 # underscore (_), so it is better to generate a list of symbols to export. | |
11073 always_export_symbols_CXX=yes | |
11074 if test "$aix_use_runtimelinking" = yes; then | |
11075 # Warning - without using the other runtime loading flags (-brtl), | |
11076 # -berok will link without error, but may produce a broken library. | |
11077 allow_undefined_flag_CXX='-berok' | |
11078 # Determine the default libpath from the value encoded in an empty executable. | |
11079 cat >conftest.$ac_ext <<_ACEOF | |
11080 /* confdefs.h. */ | |
11081 _ACEOF | |
11082 cat confdefs.h >>conftest.$ac_ext | |
11083 cat >>conftest.$ac_ext <<_ACEOF | |
11084 /* end confdefs.h. */ | |
11085 | |
11086 int | |
11087 main () | |
11088 { | |
11089 | |
11090 ; | |
11091 return 0; | |
11092 } | |
11093 _ACEOF | |
11094 rm -f conftest.$ac_objext conftest$ac_exeext | |
11095 if { (ac_try="$ac_link" | |
11096 case "(($ac_try" in | |
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11098 *) ac_try_echo=$ac_try;; | |
11099 esac | |
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11101 (eval "$ac_link") 2>conftest.er1 | |
11102 ac_status=$? | |
11103 grep -v '^ *+' conftest.er1 >conftest.err | |
11104 rm -f conftest.er1 | |
11105 cat conftest.err >&5 | |
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11107 (exit $ac_status); } && | |
11108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
11109 { (case "(($ac_try" in | |
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11111 *) ac_try_echo=$ac_try;; | |
11112 esac | |
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11114 (eval "$ac_try") 2>&5 | |
11115 ac_status=$? | |
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11117 (exit $ac_status); }; } && | |
11118 { ac_try='test -s conftest$ac_exeext' | |
11119 { (case "(($ac_try" in | |
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11121 *) ac_try_echo=$ac_try;; | |
11122 esac | |
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11124 (eval "$ac_try") 2>&5 | |
11125 ac_status=$? | |
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11127 (exit $ac_status); }; }; then | |
11128 | |
11129 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11130 }'` | |
11131 # Check for a 64-bit object if we didn't find anything. | |
11132 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; } | |
11133 }'`; fi | |
11134 else | |
11135 echo "$as_me: failed program was:" >&5 | |
11136 sed 's/^/| /' conftest.$ac_ext >&5 | |
11137 | |
11138 | |
11139 fi | |
11140 | |
11141 rm -f core conftest.err conftest.$ac_objext \ | |
11142 conftest$ac_exeext conftest.$ac_ext | |
11143 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11144 | |
11145 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11146 | |
11147 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" | |
11148 else | |
11149 if test "$host_cpu" = ia64; then | |
11150 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
11151 allow_undefined_flag_CXX="-z nodefs" | |
11152 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" | |
11153 else | |
11154 # Determine the default libpath from the value encoded in an empty executable. | |
11155 cat >conftest.$ac_ext <<_ACEOF | |
11156 /* confdefs.h. */ | |
11157 _ACEOF | |
11158 cat confdefs.h >>conftest.$ac_ext | |
11159 cat >>conftest.$ac_ext <<_ACEOF | |
11160 /* end confdefs.h. */ | |
11161 | |
11162 int | |
11163 main () | |
11164 { | |
11165 | |
11166 ; | |
11167 return 0; | |
11168 } | |
11169 _ACEOF | |
11170 rm -f conftest.$ac_objext conftest$ac_exeext | |
11171 if { (ac_try="$ac_link" | |
11172 case "(($ac_try" in | |
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11174 *) ac_try_echo=$ac_try;; | |
11175 esac | |
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11177 (eval "$ac_link") 2>conftest.er1 | |
11178 ac_status=$? | |
11179 grep -v '^ *+' conftest.er1 >conftest.err | |
11180 rm -f conftest.er1 | |
11181 cat conftest.err >&5 | |
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11183 (exit $ac_status); } && | |
11184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
11185 { (case "(($ac_try" in | |
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11187 *) ac_try_echo=$ac_try;; | |
11188 esac | |
11189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11190 (eval "$ac_try") 2>&5 | |
11191 ac_status=$? | |
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11193 (exit $ac_status); }; } && | |
11194 { ac_try='test -s conftest$ac_exeext' | |
11195 { (case "(($ac_try" in | |
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11197 *) ac_try_echo=$ac_try;; | |
11198 esac | |
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11200 (eval "$ac_try") 2>&5 | |
11201 ac_status=$? | |
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11203 (exit $ac_status); }; }; then | |
11204 | |
11205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
11206 }'` | |
11207 # Check for a 64-bit object if we didn't find anything. | |
11208 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; } | |
11209 }'`; fi | |
11210 else | |
11211 echo "$as_me: failed program was:" >&5 | |
11212 sed 's/^/| /' conftest.$ac_ext >&5 | |
11213 | |
11214 | |
11215 fi | |
11216 | |
11217 rm -f core conftest.err conftest.$ac_objext \ | |
11218 conftest$ac_exeext conftest.$ac_ext | |
11219 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
11220 | |
11221 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
11222 # Warning - without using the other run time loading flags, | |
11223 # -berok will link without error, but may produce a broken library. | |
11224 no_undefined_flag_CXX=' ${wl}-bernotok' | |
11225 allow_undefined_flag_CXX=' ${wl}-berok' | |
11226 # Exported symbols can be pulled into shared objects from archives | |
11227 whole_archive_flag_spec_CXX='$convenience' | |
11228 archive_cmds_need_lc_CXX=yes | |
11229 # This is similar to how AIX traditionally builds its shared libraries. | |
11230 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' | |
11231 fi | |
11232 fi | |
11233 ;; | |
11234 | |
11235 beos*) | |
11236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
11237 allow_undefined_flag_CXX=unsupported | |
11238 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
11239 # support --undefined. This deserves some investigation. FIXME | |
11240 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11241 else | |
11242 ld_shlibs_CXX=no | |
11243 fi | |
11244 ;; | |
11245 | |
11246 chorus*) | |
11247 case $cc_basename in | |
11248 *) | |
11249 # FIXME: insert proper C++ library support | |
11250 ld_shlibs_CXX=no | |
11251 ;; | |
11252 esac | |
11253 ;; | |
11254 | |
11255 cygwin* | mingw* | pw32*) | |
11256 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
11257 # as there is no search path for DLLs. | |
11258 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
11259 allow_undefined_flag_CXX=unsupported | |
11260 always_export_symbols_CXX=no | |
11261 enable_shared_with_static_runtimes_CXX=yes | |
11262 | |
11263 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
11264 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' | |
11265 # If the export-symbols file already is a .def file (1st line | |
11266 # is EXPORTS), use it as is; otherwise, prepend... | |
11267 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
11268 cp $export_symbols $output_objdir/$soname.def; | |
11269 else | |
11270 echo EXPORTS > $output_objdir/$soname.def; | |
11271 cat $export_symbols >> $output_objdir/$soname.def; | |
11272 fi~ | |
11273 $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' | |
11274 else | |
11275 ld_shlibs_CXX=no | |
11276 fi | |
11277 ;; | |
11278 darwin* | rhapsody*) | |
11279 case $host_os in | |
11280 rhapsody* | darwin1.[012]) | |
11281 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
11282 ;; | |
11283 *) # Darwin 1.3 on | |
11284 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
11285 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
11286 else | |
11287 case ${MACOSX_DEPLOYMENT_TARGET} in | |
11288 10.[012]) | |
11289 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
11290 ;; | |
11291 10.*) | |
11292 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
11293 ;; | |
11294 esac | |
11295 fi | |
11296 ;; | |
11297 esac | |
11298 archive_cmds_need_lc_CXX=no | |
11299 hardcode_direct_CXX=no | |
11300 hardcode_automatic_CXX=yes | |
11301 hardcode_shlibpath_var_CXX=unsupported | |
11302 whole_archive_flag_spec_CXX='' | |
11303 link_all_deplibs_CXX=yes | |
11304 | |
11305 if test "$GXX" = yes ; then | |
11306 lt_int_apple_cc_single_mod=no | |
11307 output_verbose_link_cmd='echo' | |
11308 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
11309 lt_int_apple_cc_single_mod=yes | |
11310 fi | |
11311 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
11312 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
11313 else | |
11314 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' | |
11315 fi | |
11316 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
11317 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
11318 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
11319 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}' | |
11320 else | |
11321 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}' | |
11322 fi | |
11323 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}' | |
11324 else | |
11325 case $cc_basename in | |
11326 xlc*) | |
11327 output_verbose_link_cmd='echo' | |
11328 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' | |
11329 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
11330 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
11331 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}' | |
11332 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}' | |
11333 ;; | |
11334 *) | |
11335 ld_shlibs_CXX=no | |
11336 ;; | |
11337 esac | |
11338 fi | |
11339 ;; | |
11340 | |
11341 dgux*) | |
11342 case $cc_basename in | |
11343 ec++*) | |
11344 # FIXME: insert proper C++ library support | |
11345 ld_shlibs_CXX=no | |
11346 ;; | |
11347 ghcx*) | |
11348 # Green Hills C++ Compiler | |
11349 # FIXME: insert proper C++ library support | |
11350 ld_shlibs_CXX=no | |
11351 ;; | |
11352 *) | |
11353 # FIXME: insert proper C++ library support | |
11354 ld_shlibs_CXX=no | |
11355 ;; | |
11356 esac | |
11357 ;; | |
11358 freebsd[12]*) | |
11359 # C++ shared libraries reported to be fairly broken before switch to ELF | |
11360 ld_shlibs_CXX=no | |
11361 ;; | |
11362 freebsd-elf*) | |
11363 archive_cmds_need_lc_CXX=no | |
11364 ;; | |
11365 freebsd* | kfreebsd*-gnu | dragonfly*) | |
11366 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
11367 # conventions | |
11368 ld_shlibs_CXX=yes | |
11369 ;; | |
11370 gnu*) | |
11371 ;; | |
11372 hpux9*) | |
11373 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11374 hardcode_libdir_separator_CXX=: | |
11375 export_dynamic_flag_spec_CXX='${wl}-E' | |
11376 hardcode_direct_CXX=yes | |
11377 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11378 # but as the default | |
11379 # location of the library. | |
11380 | |
11381 case $cc_basename in | |
11382 CC*) | |
11383 # FIXME: insert proper C++ library support | |
11384 ld_shlibs_CXX=no | |
11385 ;; | |
11386 aCC*) | |
11387 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' | |
11388 # Commands to make compiler produce verbose output that lists | |
11389 # what "hidden" libraries, object files and flags are used when | |
11390 # linking a shared library. | |
11391 # | |
11392 # There doesn't appear to be a way to prevent this compiler from | |
11393 # explicitly linking system object files so we need to strip them | |
11394 # from the output so that they don't get included in the library | |
11395 # dependencies. | |
11396 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' | |
11397 ;; | |
11398 *) | |
11399 if test "$GXX" = yes; then | |
11400 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' | |
11401 else | |
11402 # FIXME: insert proper C++ library support | |
11403 ld_shlibs_CXX=no | |
11404 fi | |
11405 ;; | |
11406 esac | |
11407 ;; | |
11408 hpux10*|hpux11*) | |
11409 if test $with_gnu_ld = no; then | |
11410 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
11411 hardcode_libdir_separator_CXX=: | |
11412 | |
11413 case $host_cpu in | |
11414 hppa*64*|ia64*) | |
11415 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | |
11416 ;; | |
11417 *) | |
11418 export_dynamic_flag_spec_CXX='${wl}-E' | |
11419 ;; | |
11420 esac | |
11421 fi | |
11422 case $host_cpu in | |
11423 hppa*64*|ia64*) | |
11424 hardcode_direct_CXX=no | |
11425 hardcode_shlibpath_var_CXX=no | |
11426 ;; | |
11427 *) | |
11428 hardcode_direct_CXX=yes | |
11429 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
11430 # but as the default | |
11431 # location of the library. | |
11432 ;; | |
11433 esac | |
11434 | |
11435 case $cc_basename in | |
11436 CC*) | |
11437 # FIXME: insert proper C++ library support | |
11438 ld_shlibs_CXX=no | |
11439 ;; | |
11440 aCC*) | |
11441 case $host_cpu in | |
11442 hppa*64*) | |
11443 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11444 ;; | |
11445 ia64*) | |
11446 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11447 ;; | |
11448 *) | |
11449 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11450 ;; | |
11451 esac | |
11452 # Commands to make compiler produce verbose output that lists | |
11453 # what "hidden" libraries, object files and flags are used when | |
11454 # linking a shared library. | |
11455 # | |
11456 # There doesn't appear to be a way to prevent this compiler from | |
11457 # explicitly linking system object files so we need to strip them | |
11458 # from the output so that they don't get included in the library | |
11459 # dependencies. | |
11460 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' | |
11461 ;; | |
11462 *) | |
11463 if test "$GXX" = yes; then | |
11464 if test $with_gnu_ld = no; then | |
11465 case $host_cpu in | |
11466 hppa*64*) | |
11467 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11468 ;; | |
11469 ia64*) | |
11470 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11471 ;; | |
11472 *) | |
11473 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' | |
11474 ;; | |
11475 esac | |
11476 fi | |
11477 else | |
11478 # FIXME: insert proper C++ library support | |
11479 ld_shlibs_CXX=no | |
11480 fi | |
11481 ;; | |
11482 esac | |
11483 ;; | |
11484 interix3*) | |
11485 hardcode_direct_CXX=no | |
11486 hardcode_shlibpath_var_CXX=no | |
11487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11488 export_dynamic_flag_spec_CXX='${wl}-E' | |
11489 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11490 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11491 # default) and relocated if they conflict, which is a slow very memory | |
11492 # consuming and fragmenting process. To avoid this, we pick a random, | |
11493 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11494 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11495 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' | |
11496 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' | |
11497 ;; | |
11498 irix5* | irix6*) | |
11499 case $cc_basename in | |
11500 CC*) | |
11501 # SGI C++ | |
11502 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' | |
11503 | |
11504 # Archives containing C++ object files must be created using | |
11505 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
11506 # necessary to make sure instantiated templates are included | |
11507 # in the archive. | |
11508 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
11509 ;; | |
11510 *) | |
11511 if test "$GXX" = yes; then | |
11512 if test "$with_gnu_ld" = no; then | |
11513 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' | |
11514 else | |
11515 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' | |
11516 fi | |
11517 fi | |
11518 link_all_deplibs_CXX=yes | |
11519 ;; | |
11520 esac | |
11521 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11522 hardcode_libdir_separator_CXX=: | |
11523 ;; | |
11524 linux*) | |
11525 case $cc_basename in | |
11526 KCC*) | |
11527 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11528 | |
11529 # KCC will only create a shared library if the output file | |
11530 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11531 # to its proper name (with version) after linking. | |
11532 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' | |
11533 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' | |
11534 # Commands to make compiler produce verbose output that lists | |
11535 # what "hidden" libraries, object files and flags are used when | |
11536 # linking a shared library. | |
11537 # | |
11538 # There doesn't appear to be a way to prevent this compiler from | |
11539 # explicitly linking system object files so we need to strip them | |
11540 # from the output so that they don't get included in the library | |
11541 # dependencies. | |
11542 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' | |
11543 | |
11544 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
11545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11546 | |
11547 # Archives containing C++ object files must be created using | |
11548 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11549 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11550 ;; | |
11551 icpc*) | |
11552 # Intel C++ | |
11553 with_gnu_ld=yes | |
11554 # version 8.0 and above of icpc choke on multiply defined symbols | |
11555 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11556 # earlier do not add the objects themselves. | |
11557 case `$CC -V 2>&1` in | |
11558 *"Version 7."*) | |
11559 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11560 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' | |
11561 ;; | |
11562 *) # Version 8.0 or newer | |
11563 tmp_idyn= | |
11564 case $host_cpu in | |
11565 ia64*) tmp_idyn=' -i_dynamic';; | |
11566 esac | |
11567 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11568 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' | |
11569 ;; | |
11570 esac | |
11571 archive_cmds_need_lc_CXX=no | |
11572 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11574 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11575 ;; | |
11576 pgCC*) | |
11577 # Portland Group C++ compiler | |
11578 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11579 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' | |
11580 | |
11581 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
11582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11583 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' | |
11584 ;; | |
11585 cxx*) | |
11586 # Compaq C++ | |
11587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11588 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' | |
11589 | |
11590 runpath_var=LD_RUN_PATH | |
11591 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11592 hardcode_libdir_separator_CXX=: | |
11593 | |
11594 # Commands to make compiler produce verbose output that lists | |
11595 # what "hidden" libraries, object files and flags are used when | |
11596 # linking a shared library. | |
11597 # | |
11598 # There doesn't appear to be a way to prevent this compiler from | |
11599 # explicitly linking system object files so we need to strip them | |
11600 # from the output so that they don't get included in the library | |
11601 # dependencies. | |
11602 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' | |
11603 ;; | |
11604 esac | |
11605 ;; | |
11606 lynxos*) | |
11607 # FIXME: insert proper C++ library support | |
11608 ld_shlibs_CXX=no | |
11609 ;; | |
11610 m88k*) | |
11611 # FIXME: insert proper C++ library support | |
11612 ld_shlibs_CXX=no | |
11613 ;; | |
11614 mvs*) | |
11615 case $cc_basename in | |
11616 cxx*) | |
11617 # FIXME: insert proper C++ library support | |
11618 ld_shlibs_CXX=no | |
11619 ;; | |
11620 *) | |
11621 # FIXME: insert proper C++ library support | |
11622 ld_shlibs_CXX=no | |
11623 ;; | |
11624 esac | |
11625 ;; | |
11626 netbsd*) | |
11627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
11628 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11629 wlarc= | |
11630 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11631 hardcode_direct_CXX=yes | |
11632 hardcode_shlibpath_var_CXX=no | |
11633 fi | |
11634 # Workaround some broken pre-1.5 toolchains | |
11635 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
11636 ;; | |
11637 openbsd2*) | |
11638 # C++ shared libraries are fairly broken | |
11639 ld_shlibs_CXX=no | |
11640 ;; | |
11641 openbsd*) | |
11642 hardcode_direct_CXX=yes | |
11643 hardcode_shlibpath_var_CXX=no | |
11644 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11645 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11647 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11648 export_dynamic_flag_spec_CXX='${wl}-E' | |
11649 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11650 fi | |
11651 output_verbose_link_cmd='echo' | |
11652 ;; | |
11653 osf3*) | |
11654 case $cc_basename in | |
11655 KCC*) | |
11656 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11657 | |
11658 # KCC will only create a shared library if the output file | |
11659 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11660 # to its proper name (with version) after linking. | |
11661 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' | |
11662 | |
11663 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11664 hardcode_libdir_separator_CXX=: | |
11665 | |
11666 # Archives containing C++ object files must be created using | |
11667 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11668 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11669 | |
11670 ;; | |
11671 RCC*) | |
11672 # Rational C++ 2.4.1 | |
11673 # FIXME: insert proper C++ library support | |
11674 ld_shlibs_CXX=no | |
11675 ;; | |
11676 cxx*) | |
11677 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11678 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' | |
11679 | |
11680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11681 hardcode_libdir_separator_CXX=: | |
11682 | |
11683 # Commands to make compiler produce verbose output that lists | |
11684 # what "hidden" libraries, object files and flags are used when | |
11685 # linking a shared library. | |
11686 # | |
11687 # There doesn't appear to be a way to prevent this compiler from | |
11688 # explicitly linking system object files so we need to strip them | |
11689 # from the output so that they don't get included in the library | |
11690 # dependencies. | |
11691 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' | |
11692 ;; | |
11693 *) | |
11694 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11695 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11696 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' | |
11697 | |
11698 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11699 hardcode_libdir_separator_CXX=: | |
11700 | |
11701 # Commands to make compiler produce verbose output that lists | |
11702 # what "hidden" libraries, object files and flags are used when | |
11703 # linking a shared library. | |
11704 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11705 | |
11706 else | |
11707 # FIXME: insert proper C++ library support | |
11708 ld_shlibs_CXX=no | |
11709 fi | |
11710 ;; | |
11711 esac | |
11712 ;; | |
11713 osf4* | osf5*) | |
11714 case $cc_basename in | |
11715 KCC*) | |
11716 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
11717 | |
11718 # KCC will only create a shared library if the output file | |
11719 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11720 # to its proper name (with version) after linking. | |
11721 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' | |
11722 | |
11723 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11724 hardcode_libdir_separator_CXX=: | |
11725 | |
11726 # Archives containing C++ object files must be created using | |
11727 # the KAI C++ compiler. | |
11728 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
11729 ;; | |
11730 RCC*) | |
11731 # Rational C++ 2.4.1 | |
11732 # FIXME: insert proper C++ library support | |
11733 ld_shlibs_CXX=no | |
11734 ;; | |
11735 cxx*) | |
11736 allow_undefined_flag_CXX=' -expect_unresolved \*' | |
11737 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' | |
11738 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
11739 echo "-hidden">> $lib.exp~ | |
11740 $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~ | |
11741 $rm $lib.exp' | |
11742 | |
11743 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11744 hardcode_libdir_separator_CXX=: | |
11745 | |
11746 # Commands to make compiler produce verbose output that lists | |
11747 # what "hidden" libraries, object files and flags are used when | |
11748 # linking a shared library. | |
11749 # | |
11750 # There doesn't appear to be a way to prevent this compiler from | |
11751 # explicitly linking system object files so we need to strip them | |
11752 # from the output so that they don't get included in the library | |
11753 # dependencies. | |
11754 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' | |
11755 ;; | |
11756 *) | |
11757 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11758 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
11759 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' | |
11760 | |
11761 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11762 hardcode_libdir_separator_CXX=: | |
11763 | |
11764 # Commands to make compiler produce verbose output that lists | |
11765 # what "hidden" libraries, object files and flags are used when | |
11766 # linking a shared library. | |
11767 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11768 | |
11769 else | |
11770 # FIXME: insert proper C++ library support | |
11771 ld_shlibs_CXX=no | |
11772 fi | |
11773 ;; | |
11774 esac | |
11775 ;; | |
11776 psos*) | |
11777 # FIXME: insert proper C++ library support | |
11778 ld_shlibs_CXX=no | |
11779 ;; | |
11780 sunos4*) | |
11781 case $cc_basename in | |
11782 CC*) | |
11783 # Sun C++ 4.x | |
11784 # FIXME: insert proper C++ library support | |
11785 ld_shlibs_CXX=no | |
11786 ;; | |
11787 lcc*) | |
11788 # Lucid | |
11789 # FIXME: insert proper C++ library support | |
11790 ld_shlibs_CXX=no | |
11791 ;; | |
11792 *) | |
11793 # FIXME: insert proper C++ library support | |
11794 ld_shlibs_CXX=no | |
11795 ;; | |
11796 esac | |
11797 ;; | |
11798 solaris*) | |
11799 case $cc_basename in | |
11800 CC*) | |
11801 # Sun C++ 4.2, 5.x and Centerline C++ | |
11802 archive_cmds_need_lc_CXX=yes | |
11803 no_undefined_flag_CXX=' -zdefs' | |
11804 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11805 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11806 $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' | |
11807 | |
11808 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11809 hardcode_shlibpath_var_CXX=no | |
11810 case $host_os in | |
11811 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
11812 *) | |
11813 # The C++ compiler is used as linker so we must use $wl | |
11814 # flag to pass the commands to the underlying system | |
11815 # linker. We must also pass each convience library through | |
11816 # to the system linker between allextract/defaultextract. | |
11817 # The C++ compiler will combine linker options so we | |
11818 # cannot just pass the convience library names through | |
11819 # without $wl. | |
11820 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
11821 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' | |
11822 ;; | |
11823 esac | |
11824 link_all_deplibs_CXX=yes | |
11825 | |
11826 output_verbose_link_cmd='echo' | |
11827 | |
11828 # Archives containing C++ object files must be created using | |
11829 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11830 # necessary to make sure instantiated templates are included | |
11831 # in the archive. | |
11832 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11833 ;; | |
11834 gcx*) | |
11835 # Green Hills C++ Compiler | |
11836 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11837 | |
11838 # The C++ compiler must be used to create the archive. | |
11839 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
11840 ;; | |
11841 *) | |
11842 # GNU C++ compiler with Solaris linker | |
11843 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11844 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
11845 if $CC --version | grep -v '^2\.7' > /dev/null; then | |
11846 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11847 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11848 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11849 | |
11850 # Commands to make compiler produce verbose output that lists | |
11851 # what "hidden" libraries, object files and flags are used when | |
11852 # linking a shared library. | |
11853 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
11854 else | |
11855 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
11856 # platform. | |
11857 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11858 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11859 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11860 | |
11861 # Commands to make compiler produce verbose output that lists | |
11862 # what "hidden" libraries, object files and flags are used when | |
11863 # linking a shared library. | |
11864 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
11865 fi | |
11866 | |
11867 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
11868 fi | |
11869 ;; | |
11870 esac | |
11871 ;; | |
11872 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
11873 no_undefined_flag_CXX='${wl}-z,text' | |
11874 archive_cmds_need_lc_CXX=no | |
11875 hardcode_shlibpath_var_CXX=no | |
11876 runpath_var='LD_RUN_PATH' | |
11877 | |
11878 case $cc_basename in | |
11879 CC*) | |
11880 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11881 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11882 ;; | |
11883 *) | |
11884 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11885 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11886 ;; | |
11887 esac | |
11888 ;; | |
11889 sysv5* | sco3.2v5* | sco5v6*) | |
11890 # Note: We can NOT use -z defs as we might desire, because we do not | |
11891 # link with -lc, and that would cause any symbols used from libc to | |
11892 # always be unresolved, which means just about no library would | |
11893 # ever link correctly. If we're not using GNU ld we use -z text | |
11894 # though, which does catch some bad symbols but isn't as heavy-handed | |
11895 # as -z defs. | |
11896 # For security reasons, it is highly recommended that you always | |
11897 # use absolute paths for naming shared libraries, and exclude the | |
11898 # DT_RUNPATH tag from executables and libraries. But doing so | |
11899 # requires that you compile everything twice, which is a pain. | |
11900 # So that behaviour is only enabled if SCOABSPATH is set to a | |
11901 # non-empty value in the environment. Most likely only useful for | |
11902 # creating official distributions of packages. | |
11903 # This is a hack until libtool officially supports absolute path | |
11904 # names for shared libraries. | |
11905 no_undefined_flag_CXX='${wl}-z,text' | |
11906 allow_undefined_flag_CXX='${wl}-z,nodefs' | |
11907 archive_cmds_need_lc_CXX=no | |
11908 hardcode_shlibpath_var_CXX=no | |
11909 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
11910 hardcode_libdir_separator_CXX=':' | |
11911 link_all_deplibs_CXX=yes | |
11912 export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
11913 runpath_var='LD_RUN_PATH' | |
11914 | |
11915 case $cc_basename in | |
11916 CC*) | |
11917 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11918 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11919 ;; | |
11920 *) | |
11921 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11922 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11923 ;; | |
11924 esac | |
11925 ;; | |
11926 tandem*) | |
11927 case $cc_basename in | |
11928 NCC*) | |
11929 # NonStop-UX NCC 3.20 | |
11930 # FIXME: insert proper C++ library support | |
11931 ld_shlibs_CXX=no | |
11932 ;; | |
11933 *) | |
11934 # FIXME: insert proper C++ library support | |
11935 ld_shlibs_CXX=no | |
11936 ;; | |
11937 esac | |
11938 ;; | |
11939 vxworks*) | |
11940 # FIXME: insert proper C++ library support | |
11941 ld_shlibs_CXX=no | |
11942 ;; | |
11943 *) | |
11944 # FIXME: insert proper C++ library support | |
11945 ld_shlibs_CXX=no | |
11946 ;; | |
11947 esac | |
11948 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
11949 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
11950 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11951 | |
11952 GCC_CXX="$GXX" | |
11953 LD_CXX="$LD" | |
11954 | |
11955 | |
11956 cat > conftest.$ac_ext <<EOF | |
11957 class Foo | |
11958 { | |
11959 public: | |
11960 Foo (void) { a = 0; } | |
11961 private: | |
11962 int a; | |
11963 }; | |
11964 EOF | |
11965 | |
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11967 (eval $ac_compile) 2>&5 | |
11968 ac_status=$? | |
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11970 (exit $ac_status); }; then | |
11971 # Parse the compiler output and extract the necessary | |
11972 # objects, libraries and library flags. | |
11973 | |
11974 # Sentinel used to keep track of whether or not we are before | |
11975 # the conftest object file. | |
11976 pre_test_object_deps_done=no | |
11977 | |
11978 # The `*' in the case matches for architectures that use `case' in | |
11979 # $output_verbose_cmd can trigger glob expansion during the loop | |
11980 # eval without this substitution. | |
11981 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
11982 | |
11983 for p in `eval $output_verbose_link_cmd`; do | |
11984 case $p in | |
11985 | |
11986 -L* | -R* | -l*) | |
11987 # Some compilers place space between "-{L,R}" and the path. | |
11988 # Remove the space. | |
11989 if test $p = "-L" \ | |
11990 || test $p = "-R"; then | |
11991 prev=$p | |
11992 continue | |
11993 else | |
11994 prev= | |
11995 fi | |
11996 | |
11997 if test "$pre_test_object_deps_done" = no; then | |
11998 case $p in | |
11999 -L* | -R*) | |
12000 # Internal compiler library paths should come after those | |
12001 # provided the user. The postdeps already come after the | |
12002 # user supplied libs so there is no need to process them. | |
12003 if test -z "$compiler_lib_search_path_CXX"; then | |
12004 compiler_lib_search_path_CXX="${prev}${p}" | |
12005 else | |
12006 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
12007 fi | |
12008 ;; | |
12009 # The "-l" case would never come before the object being | |
12010 # linked, so don't bother handling this case. | |
12011 esac | |
12012 else | |
12013 if test -z "$postdeps_CXX"; then | |
12014 postdeps_CXX="${prev}${p}" | |
12015 else | |
12016 postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
12017 fi | |
12018 fi | |
12019 ;; | |
12020 | |
12021 *.$objext) | |
12022 # This assumes that the test object file only shows up | |
12023 # once in the compiler output. | |
12024 if test "$p" = "conftest.$objext"; then | |
12025 pre_test_object_deps_done=yes | |
12026 continue | |
12027 fi | |
12028 | |
12029 if test "$pre_test_object_deps_done" = no; then | |
12030 if test -z "$predep_objects_CXX"; then | |
12031 predep_objects_CXX="$p" | |
12032 else | |
12033 predep_objects_CXX="$predep_objects_CXX $p" | |
12034 fi | |
12035 else | |
12036 if test -z "$postdep_objects_CXX"; then | |
12037 postdep_objects_CXX="$p" | |
12038 else | |
12039 postdep_objects_CXX="$postdep_objects_CXX $p" | |
12040 fi | |
12041 fi | |
12042 ;; | |
12043 | |
12044 *) ;; # Ignore the rest. | |
12045 | |
12046 esac | |
12047 done | |
12048 | |
12049 # Clean up. | |
12050 rm -f a.out a.exe | |
12051 else | |
12052 echo "libtool.m4: error: problem compiling CXX test program" | |
12053 fi | |
12054 | |
12055 $rm -f confest.$objext | |
12056 | |
12057 # PORTME: override above test on systems where it is broken | |
12058 case $host_os in | |
12059 interix3*) | |
12060 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
12061 # hack all around it, let's just trust "g++" to DTRT. | |
12062 predep_objects_CXX= | |
12063 postdep_objects_CXX= | |
12064 postdeps_CXX= | |
12065 ;; | |
12066 | |
12067 solaris*) | |
12068 case $cc_basename in | |
12069 CC*) | |
12070 # Adding this requires a known-good setup of shared libraries for | |
12071 # Sun compiler versions before 5.6, else PIC objects from an old | |
12072 # archive will be linked into the output, leading to subtle bugs. | |
12073 postdeps_CXX='-lCstd -lCrun' | |
12074 ;; | |
12075 esac | |
12076 ;; | |
12077 esac | |
12078 | |
12079 | |
12080 case " $postdeps_CXX " in | |
12081 *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
12082 esac | |
12083 | |
12084 lt_prog_compiler_wl_CXX= | |
12085 lt_prog_compiler_pic_CXX= | |
12086 lt_prog_compiler_static_CXX= | |
12087 | |
12088 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
12089 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
12090 | |
12091 # C++ specific cases for pic, static, wl, etc. | |
12092 if test "$GXX" = yes; then | |
12093 lt_prog_compiler_wl_CXX='-Wl,' | |
12094 lt_prog_compiler_static_CXX='-static' | |
12095 | |
12096 case $host_os in | |
12097 aix*) | |
12098 # All AIX code is PIC. | |
12099 if test "$host_cpu" = ia64; then | |
12100 # AIX 5 now supports IA64 processor | |
12101 lt_prog_compiler_static_CXX='-Bstatic' | |
12102 fi | |
12103 ;; | |
12104 amigaos*) | |
12105 # FIXME: we need at least 68020 code to build shared libraries, but | |
12106 # adding the `-m68020' flag to GCC prevents building anything better, | |
12107 # like `-m68040'. | |
12108 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
12109 ;; | |
12110 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
12111 # PIC is the default for these OSes. | |
12112 ;; | |
12113 mingw* | os2* | pw32*) | |
12114 # This hack is so that the source file can tell whether it is being | |
12115 # built for inclusion in a dll (and should export symbols for example). | |
12116 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
12117 ;; | |
12118 darwin* | rhapsody*) | |
12119 # PIC is the default on this platform | |
12120 # Common symbols not allowed in MH_DYLIB files | |
12121 lt_prog_compiler_pic_CXX='-fno-common' | |
12122 ;; | |
12123 *djgpp*) | |
12124 # DJGPP does not support shared libraries at all | |
12125 lt_prog_compiler_pic_CXX= | |
12126 ;; | |
12127 interix3*) | |
12128 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
12129 # Instead, we relocate shared libraries at runtime. | |
12130 ;; | |
12131 sysv4*MP*) | |
12132 if test -d /usr/nec; then | |
12133 lt_prog_compiler_pic_CXX=-Kconform_pic | |
12134 fi | |
12135 ;; | |
12136 hpux*) | |
12137 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
12138 # not for PA HP-UX. | |
12139 case $host_cpu in | |
12140 hppa*64*|ia64*) | |
12141 ;; | |
12142 *) | |
12143 lt_prog_compiler_pic_CXX='-fPIC' | |
12144 ;; | |
12145 esac | |
12146 ;; | |
12147 *) | |
12148 lt_prog_compiler_pic_CXX='-fPIC' | |
12149 ;; | |
12150 esac | |
12151 else | |
12152 case $host_os in | |
12153 aix4* | aix5*) | |
12154 # All AIX code is PIC. | |
12155 if test "$host_cpu" = ia64; then | |
12156 # AIX 5 now supports IA64 processor | |
12157 lt_prog_compiler_static_CXX='-Bstatic' | |
12158 else | |
12159 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
12160 fi | |
12161 ;; | |
12162 chorus*) | |
12163 case $cc_basename in | |
12164 cxch68*) | |
12165 # Green Hills C++ Compiler | |
12166 # _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" | |
12167 ;; | |
12168 esac | |
12169 ;; | |
12170 darwin*) | |
12171 # PIC is the default on this platform | |
12172 # Common symbols not allowed in MH_DYLIB files | |
12173 case $cc_basename in | |
12174 xlc*) | |
12175 lt_prog_compiler_pic_CXX='-qnocommon' | |
12176 lt_prog_compiler_wl_CXX='-Wl,' | |
12177 ;; | |
12178 esac | |
12179 ;; | |
12180 dgux*) | |
12181 case $cc_basename in | |
12182 ec++*) | |
12183 lt_prog_compiler_pic_CXX='-KPIC' | |
12184 ;; | |
12185 ghcx*) | |
12186 # Green Hills C++ Compiler | |
12187 lt_prog_compiler_pic_CXX='-pic' | |
12188 ;; | |
12189 *) | |
12190 ;; | |
12191 esac | |
12192 ;; | |
12193 freebsd* | kfreebsd*-gnu | dragonfly*) | |
12194 # FreeBSD uses GNU C++ | |
12195 ;; | |
12196 hpux9* | hpux10* | hpux11*) | |
12197 case $cc_basename in | |
12198 CC*) | |
12199 lt_prog_compiler_wl_CXX='-Wl,' | |
12200 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12201 if test "$host_cpu" != ia64; then | |
12202 lt_prog_compiler_pic_CXX='+Z' | |
12203 fi | |
12204 ;; | |
12205 aCC*) | |
12206 lt_prog_compiler_wl_CXX='-Wl,' | |
12207 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
12208 case $host_cpu in | |
12209 hppa*64*|ia64*) | |
12210 # +Z the default | |
12211 ;; | |
12212 *) | |
12213 lt_prog_compiler_pic_CXX='+Z' | |
12214 ;; | |
12215 esac | |
12216 ;; | |
12217 *) | |
12218 ;; | |
12219 esac | |
12220 ;; | |
12221 interix*) | |
12222 # This is c89, which is MS Visual C++ (no shared libs) | |
12223 # Anyone wants to do a port? | |
12224 ;; | |
12225 irix5* | irix6* | nonstopux*) | |
12226 case $cc_basename in | |
12227 CC*) | |
12228 lt_prog_compiler_wl_CXX='-Wl,' | |
12229 lt_prog_compiler_static_CXX='-non_shared' | |
12230 # CC pic flag -KPIC is the default. | |
12231 ;; | |
12232 *) | |
12233 ;; | |
12234 esac | |
12235 ;; | |
12236 linux*) | |
12237 case $cc_basename in | |
12238 KCC*) | |
12239 # KAI C++ Compiler | |
12240 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12241 lt_prog_compiler_pic_CXX='-fPIC' | |
12242 ;; | |
12243 icpc* | ecpc*) | |
12244 # Intel C++ | |
12245 lt_prog_compiler_wl_CXX='-Wl,' | |
12246 lt_prog_compiler_pic_CXX='-KPIC' | |
12247 lt_prog_compiler_static_CXX='-static' | |
12248 ;; | |
12249 pgCC*) | |
12250 # Portland Group C++ compiler. | |
12251 lt_prog_compiler_wl_CXX='-Wl,' | |
12252 lt_prog_compiler_pic_CXX='-fpic' | |
12253 lt_prog_compiler_static_CXX='-Bstatic' | |
12254 ;; | |
12255 cxx*) | |
12256 # Compaq C++ | |
12257 # Make sure the PIC flag is empty. It appears that all Alpha | |
12258 # Linux and Compaq Tru64 Unix objects are PIC. | |
12259 lt_prog_compiler_pic_CXX= | |
12260 lt_prog_compiler_static_CXX='-non_shared' | |
12261 ;; | |
12262 *) | |
12263 ;; | |
12264 esac | |
12265 ;; | |
12266 lynxos*) | |
12267 ;; | |
12268 m88k*) | |
12269 ;; | |
12270 mvs*) | |
12271 case $cc_basename in | |
12272 cxx*) | |
12273 lt_prog_compiler_pic_CXX='-W c,exportall' | |
12274 ;; | |
12275 *) | |
12276 ;; | |
12277 esac | |
12278 ;; | |
12279 netbsd*) | |
12280 ;; | |
12281 osf3* | osf4* | osf5*) | |
12282 case $cc_basename in | |
12283 KCC*) | |
12284 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
12285 ;; | |
12286 RCC*) | |
12287 # Rational C++ 2.4.1 | |
12288 lt_prog_compiler_pic_CXX='-pic' | |
12289 ;; | |
12290 cxx*) | |
12291 # Digital/Compaq C++ | |
12292 lt_prog_compiler_wl_CXX='-Wl,' | |
12293 # Make sure the PIC flag is empty. It appears that all Alpha | |
12294 # Linux and Compaq Tru64 Unix objects are PIC. | |
12295 lt_prog_compiler_pic_CXX= | |
12296 lt_prog_compiler_static_CXX='-non_shared' | |
12297 ;; | |
12298 *) | |
12299 ;; | |
12300 esac | |
12301 ;; | |
12302 psos*) | |
12303 ;; | |
12304 solaris*) | |
12305 case $cc_basename in | |
12306 CC*) | |
12307 # Sun C++ 4.2, 5.x and Centerline C++ | |
12308 lt_prog_compiler_pic_CXX='-KPIC' | |
12309 lt_prog_compiler_static_CXX='-Bstatic' | |
12310 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
12311 ;; | |
12312 gcx*) | |
12313 # Green Hills C++ Compiler | |
12314 lt_prog_compiler_pic_CXX='-PIC' | |
12315 ;; | |
12316 *) | |
12317 ;; | |
12318 esac | |
12319 ;; | |
12320 sunos4*) | |
12321 case $cc_basename in | |
12322 CC*) | |
12323 # Sun C++ 4.x | |
12324 lt_prog_compiler_pic_CXX='-pic' | |
12325 lt_prog_compiler_static_CXX='-Bstatic' | |
12326 ;; | |
12327 lcc*) | |
12328 # Lucid | |
12329 lt_prog_compiler_pic_CXX='-pic' | |
12330 ;; | |
12331 *) | |
12332 ;; | |
12333 esac | |
12334 ;; | |
12335 tandem*) | |
12336 case $cc_basename in | |
12337 NCC*) | |
12338 # NonStop-UX NCC 3.20 | |
12339 lt_prog_compiler_pic_CXX='-KPIC' | |
12340 ;; | |
12341 *) | |
12342 ;; | |
12343 esac | |
12344 ;; | |
12345 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
12346 case $cc_basename in | |
12347 CC*) | |
12348 lt_prog_compiler_wl_CXX='-Wl,' | |
12349 lt_prog_compiler_pic_CXX='-KPIC' | |
12350 lt_prog_compiler_static_CXX='-Bstatic' | |
12351 ;; | |
12352 esac | |
12353 ;; | |
12354 vxworks*) | |
12355 ;; | |
12356 *) | |
12357 lt_prog_compiler_can_build_shared_CXX=no | |
12358 ;; | |
12359 esac | |
12360 fi | |
12361 | |
12362 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
12363 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } | |
12364 | |
12365 # | |
12366 # Check to make sure the PIC flag actually works. | |
12367 # | |
12368 if test -n "$lt_prog_compiler_pic_CXX"; then | |
12369 | |
12370 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
12371 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } | |
12372 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
12373 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12374 else | |
12375 lt_prog_compiler_pic_works_CXX=no | |
12376 ac_outfile=conftest.$ac_objext | |
12377 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12378 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
12379 # Insert the option either (1) after the last *FLAGS variable, or | |
12380 # (2) before a word containing "conftest.", or (3) at the end. | |
12381 # Note that $ac_compile itself does not contain backslashes and begins | |
12382 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12383 # The option is referenced via a variable to avoid confusing sed. | |
12384 lt_compile=`echo "$ac_compile" | $SED \ | |
12385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12387 -e 's:$: $lt_compiler_flag:'` | |
12388 (eval echo "\"\$as_me:12388: $lt_compile\"" >&5) | |
12389 (eval "$lt_compile" 2>conftest.err) | |
12390 ac_status=$? | |
12391 cat conftest.err >&5 | |
12392 echo "$as_me:12392: \$? = $ac_status" >&5 | |
12393 if (exit $ac_status) && test -s "$ac_outfile"; then | |
12394 # The compiler can only warn and ignore the option if not recognized | |
12395 # So say no if there are warnings other than the usual output. | |
12396 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
12397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
12399 lt_prog_compiler_pic_works_CXX=yes | |
12400 fi | |
12401 fi | |
12402 $rm conftest* | |
12403 | |
12404 fi | |
12405 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
12406 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } | |
12407 | |
12408 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
12409 case $lt_prog_compiler_pic_CXX in | |
12410 "" | " "*) ;; | |
12411 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
12412 esac | |
12413 else | |
12414 lt_prog_compiler_pic_CXX= | |
12415 lt_prog_compiler_can_build_shared_CXX=no | |
12416 fi | |
12417 | |
12418 fi | |
12419 case $host_os in | |
12420 # For platforms which do not support PIC, -DPIC is meaningless: | |
12421 *djgpp*) | |
12422 lt_prog_compiler_pic_CXX= | |
12423 ;; | |
12424 *) | |
12425 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
12426 ;; | |
12427 esac | |
12428 | |
12429 # | |
12430 # Check to make sure the static flag actually works. | |
12431 # | |
12432 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
12433 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
12434 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
12435 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
12436 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12437 else | |
12438 lt_prog_compiler_static_works_CXX=no | |
12439 save_LDFLAGS="$LDFLAGS" | |
12440 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12441 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
12442 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12443 # The linker can only warn and ignore the option if not recognized | |
12444 # So say no if there are warnings | |
12445 if test -s conftest.err; then | |
12446 # Append any errors to the config.log. | |
12447 cat conftest.err 1>&5 | |
12448 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
12449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12450 if diff conftest.exp conftest.er2 >/dev/null; then | |
12451 lt_prog_compiler_static_works_CXX=yes | |
12452 fi | |
12453 else | |
12454 lt_prog_compiler_static_works_CXX=yes | |
12455 fi | |
12456 fi | |
12457 $rm conftest* | |
12458 LDFLAGS="$save_LDFLAGS" | |
12459 | |
12460 fi | |
12461 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
12462 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } | |
12463 | |
12464 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
12465 : | |
12466 else | |
12467 lt_prog_compiler_static_CXX= | |
12468 fi | |
12469 | |
12470 | |
12471 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
12472 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
12473 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
12474 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12475 else | |
12476 lt_cv_prog_compiler_c_o_CXX=no | |
12477 $rm -r conftest 2>/dev/null | |
12478 mkdir conftest | |
12479 cd conftest | |
12480 mkdir out | |
12481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12482 | |
12483 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12484 # Insert the option either (1) after the last *FLAGS variable, or | |
12485 # (2) before a word containing "conftest.", or (3) at the end. | |
12486 # Note that $ac_compile itself does not contain backslashes and begins | |
12487 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12488 lt_compile=`echo "$ac_compile" | $SED \ | |
12489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
12490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
12491 -e 's:$: $lt_compiler_flag:'` | |
12492 (eval echo "\"\$as_me:12492: $lt_compile\"" >&5) | |
12493 (eval "$lt_compile" 2>out/conftest.err) | |
12494 ac_status=$? | |
12495 cat out/conftest.err >&5 | |
12496 echo "$as_me:12496: \$? = $ac_status" >&5 | |
12497 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
12498 then | |
12499 # The compiler can only warn and ignore the option if not recognized | |
12500 # So say no if there are warnings | |
12501 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
12502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
12504 lt_cv_prog_compiler_c_o_CXX=yes | |
12505 fi | |
12506 fi | |
12507 chmod u+w . 2>&5 | |
12508 $rm conftest* | |
12509 # SGI C++ compiler will create directory out/ii_files/ for | |
12510 # template instantiation | |
12511 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
12512 $rm out/* && rmdir out | |
12513 cd .. | |
12514 rmdir conftest | |
12515 $rm conftest* | |
12516 | |
12517 fi | |
12518 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12519 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
12520 | |
12521 | |
12522 hard_links="nottested" | |
12523 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
12524 # do not overwrite the value of need_locks provided by the user | |
12525 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
12526 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
12527 hard_links=yes | |
12528 $rm conftest* | |
12529 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12530 touch conftest.a | |
12531 ln conftest.a conftest.b 2>&5 || hard_links=no | |
12532 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12533 { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
12534 echo "${ECHO_T}$hard_links" >&6; } | |
12535 if test "$hard_links" = no; then | |
12536 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12537 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12538 need_locks=warn | |
12539 fi | |
12540 else | |
12541 need_locks=no | |
12542 fi | |
12543 | |
12544 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12545 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
12546 | |
12547 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12548 case $host_os in | |
12549 aix4* | aix5*) | |
12550 # If we're using GNU nm, then we don't want the "-C" option. | |
12551 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12552 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
12553 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' | |
12554 else | |
12555 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' | |
12556 fi | |
12557 ;; | |
12558 pw32*) | |
12559 export_symbols_cmds_CXX="$ltdll_cmds" | |
12560 ;; | |
12561 cygwin* | mingw*) | |
12562 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' | |
12563 ;; | |
12564 *) | |
12565 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12566 ;; | |
12567 esac | |
12568 | |
12569 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
12570 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
12571 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12572 | |
12573 # | |
12574 # Do we need to explicitly link libc? | |
12575 # | |
12576 case "x$archive_cmds_need_lc_CXX" in | |
12577 x|xyes) | |
12578 # Assume -lc should be added | |
12579 archive_cmds_need_lc_CXX=yes | |
12580 | |
12581 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12582 case $archive_cmds_CXX in | |
12583 *'~'*) | |
12584 # FIXME: we may have to deal with multi-command sequences. | |
12585 ;; | |
12586 '$CC '*) | |
12587 # Test whether the compiler implicitly links with -lc since on some | |
12588 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12589 # to ld, don't add -lc before -lgcc. | |
12590 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12591 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
12592 $rm conftest* | |
12593 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12594 | |
12595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12596 (eval $ac_compile) 2>&5 | |
12597 ac_status=$? | |
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12599 (exit $ac_status); } 2>conftest.err; then | |
12600 soname=conftest | |
12601 lib=conftest | |
12602 libobjs=conftest.$ac_objext | |
12603 deplibs= | |
12604 wl=$lt_prog_compiler_wl_CXX | |
12605 pic_flag=$lt_prog_compiler_pic_CXX | |
12606 compiler_flags=-v | |
12607 linker_flags=-v | |
12608 verstring= | |
12609 output_objdir=. | |
12610 libname=conftest | |
12611 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12612 allow_undefined_flag_CXX= | |
12613 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12614 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12615 ac_status=$? | |
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12617 (exit $ac_status); } | |
12618 then | |
12619 archive_cmds_need_lc_CXX=no | |
12620 else | |
12621 archive_cmds_need_lc_CXX=yes | |
12622 fi | |
12623 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12624 else | |
12625 cat conftest.err 1>&5 | |
12626 fi | |
12627 $rm conftest* | |
12628 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
12629 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } | |
12630 ;; | |
12631 esac | |
12632 fi | |
12633 ;; | |
12634 esac | |
12635 | |
12636 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
12637 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
12638 library_names_spec= | |
12639 libname_spec='lib$name' | |
12640 soname_spec= | |
12641 shrext_cmds=".so" | |
12642 postinstall_cmds= | |
12643 postuninstall_cmds= | |
12644 finish_cmds= | |
12645 finish_eval= | |
12646 shlibpath_var= | |
12647 shlibpath_overrides_runpath=unknown | |
12648 version_type=none | |
12649 dynamic_linker="$host_os ld.so" | |
12650 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12651 if test "$GCC" = yes; then | |
12652 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12653 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
12654 # if the path contains ";" then we assume it to be the separator | |
12655 # otherwise default to the standard path separator (i.e. ":") - it is | |
12656 # assumed that no part of a normal pathname contains ";" but that should | |
12657 # okay in the real world where ";" in dirpaths is itself problematic. | |
12658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12659 else | |
12660 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12661 fi | |
12662 else | |
12663 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12664 fi | |
12665 need_lib_prefix=unknown | |
12666 hardcode_into_libs=no | |
12667 | |
12668 # when you set need_version to no, make sure it does not cause -set_version | |
12669 # flags to be left without arguments | |
12670 need_version=unknown | |
12671 | |
12672 case $host_os in | |
12673 aix3*) | |
12674 version_type=linux | |
12675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12676 shlibpath_var=LIBPATH | |
12677 | |
12678 # AIX 3 has no versioning support, so we append a major version to the name. | |
12679 soname_spec='${libname}${release}${shared_ext}$major' | |
12680 ;; | |
12681 | |
12682 aix4* | aix5*) | |
12683 version_type=linux | |
12684 need_lib_prefix=no | |
12685 need_version=no | |
12686 hardcode_into_libs=yes | |
12687 if test "$host_cpu" = ia64; then | |
12688 # AIX 5 supports IA64 | |
12689 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12690 shlibpath_var=LD_LIBRARY_PATH | |
12691 else | |
12692 # With GCC up to 2.95.x, collect2 would create an import file | |
12693 # for dependence libraries. The import file would start with | |
12694 # the line `#! .'. This would cause the generated library to | |
12695 # depend on `.', always an invalid library. This was fixed in | |
12696 # development snapshots of GCC prior to 3.0. | |
12697 case $host_os in | |
12698 aix4 | aix4.[01] | aix4.[01].*) | |
12699 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12700 echo ' yes ' | |
12701 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
12702 : | |
12703 else | |
12704 can_build_shared=no | |
12705 fi | |
12706 ;; | |
12707 esac | |
12708 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12709 # soname into executable. Probably we can add versioning support to | |
12710 # collect2, so additional links can be useful in future. | |
12711 if test "$aix_use_runtimelinking" = yes; then | |
12712 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12713 # instead of lib<name>.a to let people know that these are not | |
12714 # typical AIX shared libraries. | |
12715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12716 else | |
12717 # We preserve .a as extension for shared libraries through AIX4.2 | |
12718 # and later when we are not doing run time linking. | |
12719 library_names_spec='${libname}${release}.a $libname.a' | |
12720 soname_spec='${libname}${release}${shared_ext}$major' | |
12721 fi | |
12722 shlibpath_var=LIBPATH | |
12723 fi | |
12724 ;; | |
12725 | |
12726 amigaos*) | |
12727 library_names_spec='$libname.ixlibrary $libname.a' | |
12728 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12729 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' | |
12730 ;; | |
12731 | |
12732 beos*) | |
12733 library_names_spec='${libname}${shared_ext}' | |
12734 dynamic_linker="$host_os ld.so" | |
12735 shlibpath_var=LIBRARY_PATH | |
12736 ;; | |
12737 | |
12738 bsdi[45]*) | |
12739 version_type=linux | |
12740 need_version=no | |
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12742 soname_spec='${libname}${release}${shared_ext}$major' | |
12743 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12744 shlibpath_var=LD_LIBRARY_PATH | |
12745 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12746 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12747 # the default ld.so.conf also contains /usr/contrib/lib and | |
12748 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12749 # libtool to hard-code these into programs | |
12750 ;; | |
12751 | |
12752 cygwin* | mingw* | pw32*) | |
12753 version_type=windows | |
12754 shrext_cmds=".dll" | |
12755 need_version=no | |
12756 need_lib_prefix=no | |
12757 | |
12758 case $GCC,$host_os in | |
12759 yes,cygwin* | yes,mingw* | yes,pw32*) | |
12760 library_names_spec='$libname.dll.a' | |
12761 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
12762 postinstall_cmds='base_file=`basename \${file}`~ | |
12763 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
12764 dldir=$destdir/`dirname \$dlpath`~ | |
12765 test -d \$dldir || mkdir -p \$dldir~ | |
12766 $install_prog $dir/$dlname \$dldir/$dlname~ | |
12767 chmod a+x \$dldir/$dlname' | |
12768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
12769 dlpath=$dir/\$dldll~ | |
12770 $rm \$dlpath' | |
12771 shlibpath_overrides_runpath=yes | |
12772 | |
12773 case $host_os in | |
12774 cygwin*) | |
12775 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
12776 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12777 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
12778 ;; | |
12779 mingw*) | |
12780 # MinGW DLLs use traditional 'lib' prefix | |
12781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12782 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12783 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
12784 # It is most probably a Windows format PATH printed by | |
12785 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
12786 # path with ; separators, and with drive letters. We can handle the | |
12787 # drive letters (cygwin fileutils understands them), so leave them, | |
12788 # especially as we might pass files found there to a mingw objdump, | |
12789 # which wouldn't understand a cygwinified path. Ahh. | |
12790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12791 else | |
12792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12793 fi | |
12794 ;; | |
12795 pw32*) | |
12796 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
12797 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12798 ;; | |
12799 esac | |
12800 ;; | |
12801 | |
12802 *) | |
12803 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
12804 ;; | |
12805 esac | |
12806 dynamic_linker='Win32 ld.exe' | |
12807 # FIXME: first we should search . and the directory the executable is in | |
12808 shlibpath_var=PATH | |
12809 ;; | |
12810 | |
12811 darwin* | rhapsody*) | |
12812 dynamic_linker="$host_os dyld" | |
12813 version_type=darwin | |
12814 need_lib_prefix=no | |
12815 need_version=no | |
12816 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12817 soname_spec='${libname}${release}${major}$shared_ext' | |
12818 shlibpath_overrides_runpath=yes | |
12819 shlibpath_var=DYLD_LIBRARY_PATH | |
12820 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
12821 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
12822 if test "$GCC" = yes; then | |
12823 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"` | |
12824 else | |
12825 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
12826 fi | |
12827 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12828 ;; | |
12829 | |
12830 dgux*) | |
12831 version_type=linux | |
12832 need_lib_prefix=no | |
12833 need_version=no | |
12834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12835 soname_spec='${libname}${release}${shared_ext}$major' | |
12836 shlibpath_var=LD_LIBRARY_PATH | |
12837 ;; | |
12838 | |
12839 freebsd1*) | |
12840 dynamic_linker=no | |
12841 ;; | |
12842 | |
12843 kfreebsd*-gnu) | |
12844 version_type=linux | |
12845 need_lib_prefix=no | |
12846 need_version=no | |
12847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12848 soname_spec='${libname}${release}${shared_ext}$major' | |
12849 shlibpath_var=LD_LIBRARY_PATH | |
12850 shlibpath_overrides_runpath=no | |
12851 hardcode_into_libs=yes | |
12852 dynamic_linker='GNU ld.so' | |
12853 ;; | |
12854 | |
12855 freebsd* | dragonfly*) | |
12856 # DragonFly does not have aout. When/if they implement a new | |
12857 # versioning mechanism, adjust this. | |
12858 if test -x /usr/bin/objformat; then | |
12859 objformat=`/usr/bin/objformat` | |
12860 else | |
12861 case $host_os in | |
12862 freebsd[123]*) objformat=aout ;; | |
12863 *) objformat=elf ;; | |
12864 esac | |
12865 fi | |
12866 version_type=freebsd-$objformat | |
12867 case $version_type in | |
12868 freebsd-elf*) | |
12869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12870 need_version=no | |
12871 need_lib_prefix=no | |
12872 ;; | |
12873 freebsd-*) | |
12874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12875 need_version=yes | |
12876 ;; | |
12877 esac | |
12878 shlibpath_var=LD_LIBRARY_PATH | |
12879 case $host_os in | |
12880 freebsd2*) | |
12881 shlibpath_overrides_runpath=yes | |
12882 ;; | |
12883 freebsd3.[01]* | freebsdelf3.[01]*) | |
12884 shlibpath_overrides_runpath=yes | |
12885 hardcode_into_libs=yes | |
12886 ;; | |
12887 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
12888 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
12889 shlibpath_overrides_runpath=no | |
12890 hardcode_into_libs=yes | |
12891 ;; | |
12892 freebsd*) # from 4.6 on | |
12893 shlibpath_overrides_runpath=yes | |
12894 hardcode_into_libs=yes | |
12895 ;; | |
12896 esac | |
12897 ;; | |
12898 | |
12899 gnu*) | |
12900 version_type=linux | |
12901 need_lib_prefix=no | |
12902 need_version=no | |
12903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12904 soname_spec='${libname}${release}${shared_ext}$major' | |
12905 shlibpath_var=LD_LIBRARY_PATH | |
12906 hardcode_into_libs=yes | |
12907 ;; | |
12908 | |
12909 hpux9* | hpux10* | hpux11*) | |
12910 # Give a soname corresponding to the major version so that dld.sl refuses to | |
12911 # link against other versions. | |
12912 version_type=sunos | |
12913 need_lib_prefix=no | |
12914 need_version=no | |
12915 case $host_cpu in | |
12916 ia64*) | |
12917 shrext_cmds='.so' | |
12918 hardcode_into_libs=yes | |
12919 dynamic_linker="$host_os dld.so" | |
12920 shlibpath_var=LD_LIBRARY_PATH | |
12921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12923 soname_spec='${libname}${release}${shared_ext}$major' | |
12924 if test "X$HPUX_IA64_MODE" = X32; then | |
12925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12926 else | |
12927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12928 fi | |
12929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12930 ;; | |
12931 hppa*64*) | |
12932 shrext_cmds='.sl' | |
12933 hardcode_into_libs=yes | |
12934 dynamic_linker="$host_os dld.sl" | |
12935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12938 soname_spec='${libname}${release}${shared_ext}$major' | |
12939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12941 ;; | |
12942 *) | |
12943 shrext_cmds='.sl' | |
12944 dynamic_linker="$host_os dld.sl" | |
12945 shlibpath_var=SHLIB_PATH | |
12946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12948 soname_spec='${libname}${release}${shared_ext}$major' | |
12949 ;; | |
12950 esac | |
12951 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
12952 postinstall_cmds='chmod 555 $lib' | |
12953 ;; | |
12954 | |
12955 interix3*) | |
12956 version_type=linux | |
12957 need_lib_prefix=no | |
12958 need_version=no | |
12959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12960 soname_spec='${libname}${release}${shared_ext}$major' | |
12961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12962 shlibpath_var=LD_LIBRARY_PATH | |
12963 shlibpath_overrides_runpath=no | |
12964 hardcode_into_libs=yes | |
12965 ;; | |
12966 | |
12967 irix5* | irix6* | nonstopux*) | |
12968 case $host_os in | |
12969 nonstopux*) version_type=nonstopux ;; | |
12970 *) | |
12971 if test "$lt_cv_prog_gnu_ld" = yes; then | |
12972 version_type=linux | |
12973 else | |
12974 version_type=irix | |
12975 fi ;; | |
12976 esac | |
12977 need_lib_prefix=no | |
12978 need_version=no | |
12979 soname_spec='${libname}${release}${shared_ext}$major' | |
12980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12981 case $host_os in | |
12982 irix5* | nonstopux*) | |
12983 libsuff= shlibsuff= | |
12984 ;; | |
12985 *) | |
12986 case $LD in # libtool.m4 will add one of these switches to LD | |
12987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12988 libsuff= shlibsuff= libmagic=32-bit;; | |
12989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12990 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12992 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12993 *) libsuff= shlibsuff= libmagic=never-match;; | |
12994 esac | |
12995 ;; | |
12996 esac | |
12997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12998 shlibpath_overrides_runpath=no | |
12999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
13000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
13001 hardcode_into_libs=yes | |
13002 ;; | |
13003 | |
13004 # No shared lib support for Linux oldld, aout, or coff. | |
13005 linux*oldld* | linux*aout* | linux*coff*) | |
13006 dynamic_linker=no | |
13007 ;; | |
13008 | |
13009 # This must be Linux ELF. | |
13010 linux*) | |
13011 version_type=linux | |
13012 need_lib_prefix=no | |
13013 need_version=no | |
13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13015 soname_spec='${libname}${release}${shared_ext}$major' | |
13016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
13017 shlibpath_var=LD_LIBRARY_PATH | |
13018 shlibpath_overrides_runpath=no | |
13019 # This implies no fast_install, which is unacceptable. | |
13020 # Some rework will be needed to allow for fast_install | |
13021 # before this can be enabled. | |
13022 hardcode_into_libs=yes | |
13023 | |
13024 # Append ld.so.conf contents to the search path | |
13025 if test -f /etc/ld.so.conf; then | |
13026 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' ' '` | |
13027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
13028 fi | |
13029 | |
13030 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
13031 # powerpc, because MkLinux only supported shared libraries with the | |
13032 # GNU dynamic linker. Since this was broken with cross compilers, | |
13033 # most powerpc-linux boxes support dynamic linking these days and | |
13034 # people can always --disable-shared, the test was removed, and we | |
13035 # assume the GNU/Linux dynamic linker is in use. | |
13036 dynamic_linker='GNU/Linux ld.so' | |
13037 ;; | |
13038 | |
13039 knetbsd*-gnu) | |
13040 version_type=linux | |
13041 need_lib_prefix=no | |
13042 need_version=no | |
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13044 soname_spec='${libname}${release}${shared_ext}$major' | |
13045 shlibpath_var=LD_LIBRARY_PATH | |
13046 shlibpath_overrides_runpath=no | |
13047 hardcode_into_libs=yes | |
13048 dynamic_linker='GNU ld.so' | |
13049 ;; | |
13050 | |
13051 netbsd*) | |
13052 version_type=sunos | |
13053 need_lib_prefix=no | |
13054 need_version=no | |
13055 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13058 dynamic_linker='NetBSD (a.out) ld.so' | |
13059 else | |
13060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
13061 soname_spec='${libname}${release}${shared_ext}$major' | |
13062 dynamic_linker='NetBSD ld.elf_so' | |
13063 fi | |
13064 shlibpath_var=LD_LIBRARY_PATH | |
13065 shlibpath_overrides_runpath=yes | |
13066 hardcode_into_libs=yes | |
13067 ;; | |
13068 | |
13069 newsos6) | |
13070 version_type=linux | |
13071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13072 shlibpath_var=LD_LIBRARY_PATH | |
13073 shlibpath_overrides_runpath=yes | |
13074 ;; | |
13075 | |
13076 nto-qnx*) | |
13077 version_type=linux | |
13078 need_lib_prefix=no | |
13079 need_version=no | |
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13081 soname_spec='${libname}${release}${shared_ext}$major' | |
13082 shlibpath_var=LD_LIBRARY_PATH | |
13083 shlibpath_overrides_runpath=yes | |
13084 ;; | |
13085 | |
13086 openbsd*) | |
13087 version_type=sunos | |
13088 sys_lib_dlsearch_path_spec="/usr/lib" | |
13089 need_lib_prefix=no | |
13090 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
13091 case $host_os in | |
13092 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
13093 *) need_version=no ;; | |
13094 esac | |
13095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
13097 shlibpath_var=LD_LIBRARY_PATH | |
13098 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13099 case $host_os in | |
13100 openbsd2.[89] | openbsd2.[89].*) | |
13101 shlibpath_overrides_runpath=no | |
13102 ;; | |
13103 *) | |
13104 shlibpath_overrides_runpath=yes | |
13105 ;; | |
13106 esac | |
13107 else | |
13108 shlibpath_overrides_runpath=yes | |
13109 fi | |
13110 ;; | |
13111 | |
13112 os2*) | |
13113 libname_spec='$name' | |
13114 shrext_cmds=".dll" | |
13115 need_lib_prefix=no | |
13116 library_names_spec='$libname${shared_ext} $libname.a' | |
13117 dynamic_linker='OS/2 ld.exe' | |
13118 shlibpath_var=LIBPATH | |
13119 ;; | |
13120 | |
13121 osf3* | osf4* | osf5*) | |
13122 version_type=osf | |
13123 need_lib_prefix=no | |
13124 need_version=no | |
13125 soname_spec='${libname}${release}${shared_ext}$major' | |
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13127 shlibpath_var=LD_LIBRARY_PATH | |
13128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
13129 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
13130 ;; | |
13131 | |
13132 solaris*) | |
13133 version_type=linux | |
13134 need_lib_prefix=no | |
13135 need_version=no | |
13136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13137 soname_spec='${libname}${release}${shared_ext}$major' | |
13138 shlibpath_var=LD_LIBRARY_PATH | |
13139 shlibpath_overrides_runpath=yes | |
13140 hardcode_into_libs=yes | |
13141 # ldd complains unless libraries are executable | |
13142 postinstall_cmds='chmod +x $lib' | |
13143 ;; | |
13144 | |
13145 sunos4*) | |
13146 version_type=sunos | |
13147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
13148 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
13149 shlibpath_var=LD_LIBRARY_PATH | |
13150 shlibpath_overrides_runpath=yes | |
13151 if test "$with_gnu_ld" = yes; then | |
13152 need_lib_prefix=no | |
13153 fi | |
13154 need_version=yes | |
13155 ;; | |
13156 | |
13157 sysv4 | sysv4.3*) | |
13158 version_type=linux | |
13159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13160 soname_spec='${libname}${release}${shared_ext}$major' | |
13161 shlibpath_var=LD_LIBRARY_PATH | |
13162 case $host_vendor in | |
13163 sni) | |
13164 shlibpath_overrides_runpath=no | |
13165 need_lib_prefix=no | |
13166 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
13167 runpath_var=LD_RUN_PATH | |
13168 ;; | |
13169 siemens) | |
13170 need_lib_prefix=no | |
13171 ;; | |
13172 motorola) | |
13173 need_lib_prefix=no | |
13174 need_version=no | |
13175 shlibpath_overrides_runpath=no | |
13176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
13177 ;; | |
13178 esac | |
13179 ;; | |
13180 | |
13181 sysv4*MP*) | |
13182 if test -d /usr/nec ;then | |
13183 version_type=linux | |
13184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
13185 soname_spec='$libname${shared_ext}.$major' | |
13186 shlibpath_var=LD_LIBRARY_PATH | |
13187 fi | |
13188 ;; | |
13189 | |
13190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13191 version_type=freebsd-elf | |
13192 need_lib_prefix=no | |
13193 need_version=no | |
13194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
13195 soname_spec='${libname}${release}${shared_ext}$major' | |
13196 shlibpath_var=LD_LIBRARY_PATH | |
13197 hardcode_into_libs=yes | |
13198 if test "$with_gnu_ld" = yes; then | |
13199 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
13200 shlibpath_overrides_runpath=no | |
13201 else | |
13202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
13203 shlibpath_overrides_runpath=yes | |
13204 case $host_os in | |
13205 sco3.2v5*) | |
13206 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
13207 ;; | |
13208 esac | |
13209 fi | |
13210 sys_lib_dlsearch_path_spec='/usr/lib' | |
13211 ;; | |
13212 | |
13213 uts4*) | |
13214 version_type=linux | |
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
13216 soname_spec='${libname}${release}${shared_ext}$major' | |
13217 shlibpath_var=LD_LIBRARY_PATH | |
13218 ;; | |
13219 | |
13220 *) | |
13221 dynamic_linker=no | |
13222 ;; | |
13223 esac | |
13224 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
13225 echo "${ECHO_T}$dynamic_linker" >&6; } | |
13226 test "$dynamic_linker" = no && can_build_shared=no | |
13227 | |
13228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
13229 if test "$GCC" = yes; then | |
13230 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
13231 fi | |
13232 | |
13233 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
13234 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
13235 hardcode_action_CXX= | |
13236 if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
13237 test -n "$runpath_var_CXX" || \ | |
13238 test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
13239 | |
13240 # We can hardcode non-existant directories. | |
13241 if test "$hardcode_direct_CXX" != no && | |
13242 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
13243 # have to relink, otherwise we might link with an installed library | |
13244 # when we should be linking with a yet-to-be-installed one | |
13245 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
13246 test "$hardcode_minus_L_CXX" != no; then | |
13247 # Linking always hardcodes the temporary library directory. | |
13248 hardcode_action_CXX=relink | |
13249 else | |
13250 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
13251 hardcode_action_CXX=immediate | |
13252 fi | |
13253 else | |
13254 # We cannot hardcode anything, or else we can only hardcode existing | |
13255 # directories. | |
13256 hardcode_action_CXX=unsupported | |
13257 fi | |
13258 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
13259 echo "${ECHO_T}$hardcode_action_CXX" >&6; } | |
13260 | |
13261 if test "$hardcode_action_CXX" = relink; then | |
13262 # Fast installation is not supported | |
13263 enable_fast_install=no | |
13264 elif test "$shlibpath_overrides_runpath" = yes || | |
13265 test "$enable_shared" = no; then | |
13266 # Fast installation is not necessary | |
13267 enable_fast_install=needless | |
13268 fi | |
13269 | |
13270 | |
13271 # The else clause should only fire when bootstrapping the | |
13272 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
13273 # with your package, and you will get complaints that there are | |
13274 # no rules to generate ltmain.sh. | |
13275 if test -f "$ltmain"; then | |
13276 # See if we are running on zsh, and set the options which allow our commands through | |
13277 # without removal of \ escapes. | |
13278 if test -n "${ZSH_VERSION+set}" ; then | |
13279 setopt NO_GLOB_SUBST | |
13280 fi | |
13281 # Now quote all the things that may contain metacharacters while being | |
13282 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
13283 # variables and quote the copies for generation of the libtool script. | |
13284 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
13285 SED SHELL STRIP \ | |
13286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
13287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
13288 deplibs_check_method reload_flag reload_cmds need_locks \ | |
13289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
13290 lt_cv_sys_global_symbol_to_c_name_address \ | |
13291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
13292 old_postinstall_cmds old_postuninstall_cmds \ | |
13293 compiler_CXX \ | |
13294 CC_CXX \ | |
13295 LD_CXX \ | |
13296 lt_prog_compiler_wl_CXX \ | |
13297 lt_prog_compiler_pic_CXX \ | |
13298 lt_prog_compiler_static_CXX \ | |
13299 lt_prog_compiler_no_builtin_flag_CXX \ | |
13300 export_dynamic_flag_spec_CXX \ | |
13301 thread_safe_flag_spec_CXX \ | |
13302 whole_archive_flag_spec_CXX \ | |
13303 enable_shared_with_static_runtimes_CXX \ | |
13304 old_archive_cmds_CXX \ | |
13305 old_archive_from_new_cmds_CXX \ | |
13306 predep_objects_CXX \ | |
13307 postdep_objects_CXX \ | |
13308 predeps_CXX \ | |
13309 postdeps_CXX \ | |
13310 compiler_lib_search_path_CXX \ | |
13311 archive_cmds_CXX \ | |
13312 archive_expsym_cmds_CXX \ | |
13313 postinstall_cmds_CXX \ | |
13314 postuninstall_cmds_CXX \ | |
13315 old_archive_from_expsyms_cmds_CXX \ | |
13316 allow_undefined_flag_CXX \ | |
13317 no_undefined_flag_CXX \ | |
13318 export_symbols_cmds_CXX \ | |
13319 hardcode_libdir_flag_spec_CXX \ | |
13320 hardcode_libdir_flag_spec_ld_CXX \ | |
13321 hardcode_libdir_separator_CXX \ | |
13322 hardcode_automatic_CXX \ | |
13323 module_cmds_CXX \ | |
13324 module_expsym_cmds_CXX \ | |
13325 lt_cv_prog_compiler_c_o_CXX \ | |
13326 exclude_expsyms_CXX \ | |
13327 include_expsyms_CXX; do | |
13328 | |
13329 case $var in | |
13330 old_archive_cmds_CXX | \ | |
13331 old_archive_from_new_cmds_CXX | \ | |
13332 archive_cmds_CXX | \ | |
13333 archive_expsym_cmds_CXX | \ | |
13334 module_cmds_CXX | \ | |
13335 module_expsym_cmds_CXX | \ | |
13336 old_archive_from_expsyms_cmds_CXX | \ | |
13337 export_symbols_cmds_CXX | \ | |
13338 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
13339 postinstall_cmds | postuninstall_cmds | \ | |
13340 old_postinstall_cmds | old_postuninstall_cmds | \ | |
13341 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
13342 # Double-quote double-evaled strings. | |
13343 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
13344 ;; | |
13345 *) | |
13346 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
13347 ;; | |
13348 esac | |
13349 done | |
13350 | |
13351 case $lt_echo in | |
13352 *'\$0 --fallback-echo"') | |
13353 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
13354 ;; | |
13355 esac | |
13356 | |
13357 cfgfile="$ofile" | |
13358 | |
13359 cat <<__EOF__ >> "$cfgfile" | |
13360 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
13361 | |
13362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13363 | |
13364 # Shell to use when invoking shell scripts. | |
13365 SHELL=$lt_SHELL | |
13366 | |
13367 # Whether or not to build shared libraries. | |
13368 build_libtool_libs=$enable_shared | |
13369 | |
13370 # Whether or not to build static libraries. | |
13371 build_old_libs=$enable_static | |
13372 | |
13373 # Whether or not to add -lc for building shared libraries. | |
13374 build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
13375 | |
13376 # Whether or not to disallow shared libs when runtime libs are static | |
13377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
13378 | |
13379 # Whether or not to optimize for fast installation. | |
13380 fast_install=$enable_fast_install | |
13381 | |
13382 # The host system. | |
13383 host_alias=$host_alias | |
13384 host=$host | |
13385 host_os=$host_os | |
13386 | |
13387 # The build system. | |
13388 build_alias=$build_alias | |
13389 build=$build | |
13390 build_os=$build_os | |
13391 | |
13392 # An echo program that does not interpret backslashes. | |
13393 echo=$lt_echo | |
13394 | |
13395 # The archiver. | |
13396 AR=$lt_AR | |
13397 AR_FLAGS=$lt_AR_FLAGS | |
13398 | |
13399 # A C compiler. | |
13400 LTCC=$lt_LTCC | |
13401 | |
13402 # LTCC compiler flags. | |
13403 LTCFLAGS=$lt_LTCFLAGS | |
13404 | |
13405 # A language-specific compiler. | |
13406 CC=$lt_compiler_CXX | |
13407 | |
13408 # Is the compiler the GNU C compiler? | |
13409 with_gcc=$GCC_CXX | |
13410 | |
13411 # An ERE matcher. | |
13412 EGREP=$lt_EGREP | |
13413 | |
13414 # The linker used to build libraries. | |
13415 LD=$lt_LD_CXX | |
13416 | |
13417 # Whether we need hard or soft links. | |
13418 LN_S=$lt_LN_S | |
13419 | |
13420 # A BSD-compatible nm program. | |
13421 NM=$lt_NM | |
13422 | |
13423 # A symbol stripping program | |
13424 STRIP=$lt_STRIP | |
13425 | |
13426 # Used to examine libraries when file_magic_cmd begins "file" | |
13427 MAGIC_CMD=$MAGIC_CMD | |
13428 | |
13429 # Used on cygwin: DLL creation program. | |
13430 DLLTOOL="$DLLTOOL" | |
13431 | |
13432 # Used on cygwin: object dumper. | |
13433 OBJDUMP="$OBJDUMP" | |
13434 | |
13435 # Used on cygwin: assembler. | |
13436 AS="$AS" | |
13437 | |
13438 # The name of the directory that contains temporary libtool files. | |
13439 objdir=$objdir | |
13440 | |
13441 # How to create reloadable object files. | |
13442 reload_flag=$lt_reload_flag | |
13443 reload_cmds=$lt_reload_cmds | |
13444 | |
13445 # How to pass a linker flag through the compiler. | |
13446 wl=$lt_lt_prog_compiler_wl_CXX | |
13447 | |
13448 # Object file suffix (normally "o"). | |
13449 objext="$ac_objext" | |
13450 | |
13451 # Old archive suffix (normally "a"). | |
13452 libext="$libext" | |
13453 | |
13454 # Shared library suffix (normally ".so"). | |
13455 shrext_cmds='$shrext_cmds' | |
13456 | |
13457 # Executable file suffix (normally ""). | |
13458 exeext="$exeext" | |
13459 | |
13460 # Additional compiler flags for building library objects. | |
13461 pic_flag=$lt_lt_prog_compiler_pic_CXX | |
13462 pic_mode=$pic_mode | |
13463 | |
13464 # What is the maximum length of a command? | |
13465 max_cmd_len=$lt_cv_sys_max_cmd_len | |
13466 | |
13467 # Does compiler simultaneously support -c and -o options? | |
13468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
13469 | |
13470 # Must we lock files when doing compilation? | |
13471 need_locks=$lt_need_locks | |
13472 | |
13473 # Do we need the lib prefix for modules? | |
13474 need_lib_prefix=$need_lib_prefix | |
13475 | |
13476 # Do we need a version for libraries? | |
13477 need_version=$need_version | |
13478 | |
13479 # Whether dlopen is supported. | |
13480 dlopen_support=$enable_dlopen | |
13481 | |
13482 # Whether dlopen of programs is supported. | |
13483 dlopen_self=$enable_dlopen_self | |
13484 | |
13485 # Whether dlopen of statically linked programs is supported. | |
13486 dlopen_self_static=$enable_dlopen_self_static | |
13487 | |
13488 # Compiler flag to prevent dynamic linking. | |
13489 link_static_flag=$lt_lt_prog_compiler_static_CXX | |
13490 | |
13491 # Compiler flag to turn off builtin functions. | |
13492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
13493 | |
13494 # Compiler flag to allow reflexive dlopens. | |
13495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
13496 | |
13497 # Compiler flag to generate shared objects directly from archives. | |
13498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
13499 | |
13500 # Compiler flag to generate thread-safe objects. | |
13501 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
13502 | |
13503 # Library versioning type. | |
13504 version_type=$version_type | |
13505 | |
13506 # Format of library name prefix. | |
13507 libname_spec=$lt_libname_spec | |
13508 | |
13509 # List of archive names. First name is the real one, the rest are links. | |
13510 # The last name is the one that the linker finds with -lNAME. | |
13511 library_names_spec=$lt_library_names_spec | |
13512 | |
13513 # The coded name of the library, if different from the real name. | |
13514 soname_spec=$lt_soname_spec | |
13515 | |
13516 # Commands used to build and install an old-style archive. | |
13517 RANLIB=$lt_RANLIB | |
13518 old_archive_cmds=$lt_old_archive_cmds_CXX | |
13519 old_postinstall_cmds=$lt_old_postinstall_cmds | |
13520 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13521 | |
13522 # Create an old-style archive from a shared archive. | |
13523 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
13524 | |
13525 # Create a temporary old-style archive to link instead of a shared archive. | |
13526 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
13527 | |
13528 # Commands used to build and install a shared archive. | |
13529 archive_cmds=$lt_archive_cmds_CXX | |
13530 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
13531 postinstall_cmds=$lt_postinstall_cmds | |
13532 postuninstall_cmds=$lt_postuninstall_cmds | |
13533 | |
13534 # Commands used to build a loadable module (assumed same as above if empty) | |
13535 module_cmds=$lt_module_cmds_CXX | |
13536 module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
13537 | |
13538 # Commands to strip libraries. | |
13539 old_striplib=$lt_old_striplib | |
13540 striplib=$lt_striplib | |
13541 | |
13542 # Dependencies to place before the objects being linked to create a | |
13543 # shared library. | |
13544 predep_objects=$lt_predep_objects_CXX | |
13545 | |
13546 # Dependencies to place after the objects being linked to create a | |
13547 # shared library. | |
13548 postdep_objects=$lt_postdep_objects_CXX | |
13549 | |
13550 # Dependencies to place before the objects being linked to create a | |
13551 # shared library. | |
13552 predeps=$lt_predeps_CXX | |
13553 | |
13554 # Dependencies to place after the objects being linked to create a | |
13555 # shared library. | |
13556 postdeps=$lt_postdeps_CXX | |
13557 | |
13558 # The library search path used internally by the compiler when linking | |
13559 # a shared library. | |
13560 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
13561 | |
13562 # Method to check whether dependent libraries are shared objects. | |
13563 deplibs_check_method=$lt_deplibs_check_method | |
13564 | |
13565 # Command to use when deplibs_check_method == file_magic. | |
13566 file_magic_cmd=$lt_file_magic_cmd | |
13567 | |
13568 # Flag that allows shared libraries with undefined symbols to be built. | |
13569 allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
13570 | |
13571 # Flag that forces no undefined symbols. | |
13572 no_undefined_flag=$lt_no_undefined_flag_CXX | |
13573 | |
13574 # Commands used to finish a libtool library installation in a directory. | |
13575 finish_cmds=$lt_finish_cmds | |
13576 | |
13577 # Same as above, but a single script fragment to be evaled but not shown. | |
13578 finish_eval=$lt_finish_eval | |
13579 | |
13580 # Take the output of nm and produce a listing of raw symbols and C names. | |
13581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13582 | |
13583 # Transform the output of nm in a proper C declaration | |
13584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13585 | |
13586 # Transform the output of nm in a C name address pair | |
13587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13588 | |
13589 # This is the shared library runtime path variable. | |
13590 runpath_var=$runpath_var | |
13591 | |
13592 # This is the shared library path variable. | |
13593 shlibpath_var=$shlibpath_var | |
13594 | |
13595 # Is shlibpath searched before the hard-coded library search path? | |
13596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13597 | |
13598 # How to hardcode a shared library path into an executable. | |
13599 hardcode_action=$hardcode_action_CXX | |
13600 | |
13601 # Whether we should hardcode library paths into libraries. | |
13602 hardcode_into_libs=$hardcode_into_libs | |
13603 | |
13604 # Flag to hardcode \$libdir into a binary during linking. | |
13605 # This must work even if \$libdir does not exist. | |
13606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
13607 | |
13608 # If ld is used when linking, flag to hardcode \$libdir into | |
13609 # a binary during linking. This must work even if \$libdir does | |
13610 # not exist. | |
13611 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
13612 | |
13613 # Whether we need a single -rpath flag with a separated argument. | |
13614 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
13615 | |
13616 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
13617 # resulting binary. | |
13618 hardcode_direct=$hardcode_direct_CXX | |
13619 | |
13620 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
13621 # resulting binary. | |
13622 hardcode_minus_L=$hardcode_minus_L_CXX | |
13623 | |
13624 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
13625 # the resulting binary. | |
13626 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
13627 | |
13628 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
13629 # and all subsequent libraries and executables linked against it. | |
13630 hardcode_automatic=$hardcode_automatic_CXX | |
13631 | |
13632 # Variables whose values should be saved in libtool wrapper scripts and | |
13633 # restored at relink time. | |
13634 variables_saved_for_relink="$variables_saved_for_relink" | |
13635 | |
13636 # Whether libtool must link a program against all its dependency libraries. | |
13637 link_all_deplibs=$link_all_deplibs_CXX | |
13638 | |
13639 # Compile-time system search path for libraries | |
13640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13641 | |
13642 # Run-time system search path for libraries | |
13643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13644 | |
13645 # Fix the shell variable \$srcfile for the compiler. | |
13646 fix_srcfile_path="$fix_srcfile_path_CXX" | |
13647 | |
13648 # Set to yes if exported symbols are required. | |
13649 always_export_symbols=$always_export_symbols_CXX | |
13650 | |
13651 # The commands to list exported symbols. | |
13652 export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
13653 | |
13654 # The commands to extract the exported symbol list from a shared archive. | |
13655 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13656 | |
13657 # Symbols that should not be listed in the preloaded symbols. | |
13658 exclude_expsyms=$lt_exclude_expsyms_CXX | |
13659 | |
13660 # Symbols that must always be exported. | |
13661 include_expsyms=$lt_include_expsyms_CXX | |
13662 | |
13663 # ### END LIBTOOL TAG CONFIG: $tagname | |
13664 | |
13665 __EOF__ | |
13666 | |
13667 | |
13668 else | |
13669 # If there is no Makefile yet, we rely on a make rule to execute | |
13670 # `config.status --recheck' to rerun these tests and create the | |
13671 # libtool script then. | |
13672 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
13673 if test -f "$ltmain_in"; then | |
13674 test -f Makefile && make "$ltmain" | |
13675 fi | |
13676 fi | |
13677 | |
13678 | |
13679 ac_ext=c | |
13680 ac_cpp='$CPP $CPPFLAGS' | |
13681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13683 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13684 | |
13685 CC=$lt_save_CC | |
13686 LDCXX=$LD | |
13687 LD=$lt_save_LD | |
13688 GCC=$lt_save_GCC | |
13689 with_gnu_ldcxx=$with_gnu_ld | |
13690 with_gnu_ld=$lt_save_with_gnu_ld | |
13691 lt_cv_path_LDCXX=$lt_cv_path_LD | |
13692 lt_cv_path_LD=$lt_save_path_LD | |
13693 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13694 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13695 | |
13696 else | |
13697 tagname="" | |
13698 fi | |
13699 ;; | |
13700 | |
13701 F77) | |
13702 if test -n "$F77" && test "X$F77" != "Xno"; then | |
13703 | |
13704 ac_ext=f | |
13705 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
13706 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13707 ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
13708 | |
13709 | |
13710 archive_cmds_need_lc_F77=no | |
13711 allow_undefined_flag_F77= | |
13712 always_export_symbols_F77=no | |
13713 archive_expsym_cmds_F77= | |
13714 export_dynamic_flag_spec_F77= | |
13715 hardcode_direct_F77=no | |
13716 hardcode_libdir_flag_spec_F77= | |
13717 hardcode_libdir_flag_spec_ld_F77= | |
13718 hardcode_libdir_separator_F77= | |
13719 hardcode_minus_L_F77=no | |
13720 hardcode_automatic_F77=no | |
13721 module_cmds_F77= | |
13722 module_expsym_cmds_F77= | |
13723 link_all_deplibs_F77=unknown | |
13724 old_archive_cmds_F77=$old_archive_cmds | |
13725 no_undefined_flag_F77= | |
13726 whole_archive_flag_spec_F77= | |
13727 enable_shared_with_static_runtimes_F77=no | |
13728 | |
13729 # Source file extension for f77 test sources. | |
13730 ac_ext=f | |
13731 | |
13732 # Object file extension for compiled f77 test sources. | |
13733 objext=o | |
13734 objext_F77=$objext | |
13735 | |
13736 # Code to be used in simple compile tests | |
13737 lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
13738 | |
13739 # Code to be used in simple link tests | |
13740 lt_simple_link_test_code=" program t\n end\n" | |
13741 | |
13742 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13743 | |
13744 # If no C compiler was specified, use CC. | |
13745 LTCC=${LTCC-"$CC"} | |
13746 | |
13747 # If no C compiler flags were specified, use CFLAGS. | |
13748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13749 | |
13750 # Allow CC to be a program name with arguments. | |
13751 compiler=$CC | |
13752 | |
13753 | |
13754 # save warnings/boilerplate of simple test code | |
13755 ac_outfile=conftest.$ac_objext | |
13756 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
13757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13758 _lt_compiler_boilerplate=`cat conftest.err` | |
13759 $rm conftest* | |
13760 | |
13761 ac_outfile=conftest.$ac_objext | |
13762 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
13763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
13764 _lt_linker_boilerplate=`cat conftest.err` | |
13765 $rm conftest* | |
13766 | |
13767 | |
13768 # Allow CC to be a program name with arguments. | |
13769 lt_save_CC="$CC" | |
13770 CC=${F77-"f77"} | |
13771 compiler=$CC | |
13772 compiler_F77=$CC | |
13773 for cc_temp in $compiler""; do | |
13774 case $cc_temp in | |
13775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13777 \-*) ;; | |
13778 *) break;; | |
13779 esac | |
13780 done | |
13781 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
13782 | |
13783 | |
13784 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
13785 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
13786 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
13787 echo "${ECHO_T}$can_build_shared" >&6; } | |
13788 | |
13789 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
13790 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
13791 test "$can_build_shared" = "no" && enable_shared=no | |
13792 | |
13793 # On AIX, shared libraries and static libraries use the same namespace, and | |
13794 # are all built from PIC. | |
13795 case $host_os in | |
13796 aix3*) | |
13797 test "$enable_shared" = yes && enable_static=no | |
13798 if test -n "$RANLIB"; then | |
13799 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13800 postinstall_cmds='$RANLIB $lib' | |
13801 fi | |
13802 ;; | |
13803 aix4* | aix5*) | |
13804 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
13805 test "$enable_shared" = yes && enable_static=no | |
13806 fi | |
13807 ;; | |
13808 esac | |
13809 { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
13810 echo "${ECHO_T}$enable_shared" >&6; } | |
13811 | |
13812 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
13813 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
13814 # Make sure either enable_shared or enable_static is yes. | |
13815 test "$enable_shared" = yes || enable_static=yes | |
13816 { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
13817 echo "${ECHO_T}$enable_static" >&6; } | |
13818 | |
13819 GCC_F77="$G77" | |
13820 LD_F77="$LD" | |
13821 | |
13822 lt_prog_compiler_wl_F77= | |
13823 lt_prog_compiler_pic_F77= | |
13824 lt_prog_compiler_static_F77= | |
13825 | |
13826 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13827 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
13828 | |
13829 if test "$GCC" = yes; then | |
13830 lt_prog_compiler_wl_F77='-Wl,' | |
13831 lt_prog_compiler_static_F77='-static' | |
13832 | |
13833 case $host_os in | |
13834 aix*) | |
13835 # All AIX code is PIC. | |
13836 if test "$host_cpu" = ia64; then | |
13837 # AIX 5 now supports IA64 processor | |
13838 lt_prog_compiler_static_F77='-Bstatic' | |
13839 fi | |
13840 ;; | |
13841 | |
13842 amigaos*) | |
13843 # FIXME: we need at least 68020 code to build shared libraries, but | |
13844 # adding the `-m68020' flag to GCC prevents building anything better, | |
13845 # like `-m68040'. | |
13846 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
13847 ;; | |
13848 | |
13849 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13850 # PIC is the default for these OSes. | |
13851 ;; | |
13852 | |
13853 mingw* | pw32* | os2*) | |
13854 # This hack is so that the source file can tell whether it is being | |
13855 # built for inclusion in a dll (and should export symbols for example). | |
13856 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13857 ;; | |
13858 | |
13859 darwin* | rhapsody*) | |
13860 # PIC is the default on this platform | |
13861 # Common symbols not allowed in MH_DYLIB files | |
13862 lt_prog_compiler_pic_F77='-fno-common' | |
13863 ;; | |
13864 | |
13865 interix3*) | |
13866 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13867 # Instead, we relocate shared libraries at runtime. | |
13868 ;; | |
13869 | |
13870 msdosdjgpp*) | |
13871 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13872 # on systems that don't support them. | |
13873 lt_prog_compiler_can_build_shared_F77=no | |
13874 enable_shared=no | |
13875 ;; | |
13876 | |
13877 sysv4*MP*) | |
13878 if test -d /usr/nec; then | |
13879 lt_prog_compiler_pic_F77=-Kconform_pic | |
13880 fi | |
13881 ;; | |
13882 | |
13883 hpux*) | |
13884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13885 # not for PA HP-UX. | |
13886 case $host_cpu in | |
13887 hppa*64*|ia64*) | |
13888 # +Z the default | |
13889 ;; | |
13890 *) | |
13891 lt_prog_compiler_pic_F77='-fPIC' | |
13892 ;; | |
13893 esac | |
13894 ;; | |
13895 | |
13896 *) | |
13897 lt_prog_compiler_pic_F77='-fPIC' | |
13898 ;; | |
13899 esac | |
13900 else | |
13901 # PORTME Check for flag to pass linker flags through the system compiler. | |
13902 case $host_os in | |
13903 aix*) | |
13904 lt_prog_compiler_wl_F77='-Wl,' | |
13905 if test "$host_cpu" = ia64; then | |
13906 # AIX 5 now supports IA64 processor | |
13907 lt_prog_compiler_static_F77='-Bstatic' | |
13908 else | |
13909 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
13910 fi | |
13911 ;; | |
13912 darwin*) | |
13913 # PIC is the default on this platform | |
13914 # Common symbols not allowed in MH_DYLIB files | |
13915 case $cc_basename in | |
13916 xlc*) | |
13917 lt_prog_compiler_pic_F77='-qnocommon' | |
13918 lt_prog_compiler_wl_F77='-Wl,' | |
13919 ;; | |
13920 esac | |
13921 ;; | |
13922 | |
13923 mingw* | pw32* | os2*) | |
13924 # This hack is so that the source file can tell whether it is being | |
13925 # built for inclusion in a dll (and should export symbols for example). | |
13926 lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13927 ;; | |
13928 | |
13929 hpux9* | hpux10* | hpux11*) | |
13930 lt_prog_compiler_wl_F77='-Wl,' | |
13931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13932 # not for PA HP-UX. | |
13933 case $host_cpu in | |
13934 hppa*64*|ia64*) | |
13935 # +Z the default | |
13936 ;; | |
13937 *) | |
13938 lt_prog_compiler_pic_F77='+Z' | |
13939 ;; | |
13940 esac | |
13941 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13942 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
13943 ;; | |
13944 | |
13945 irix5* | irix6* | nonstopux*) | |
13946 lt_prog_compiler_wl_F77='-Wl,' | |
13947 # PIC (with -KPIC) is the default. | |
13948 lt_prog_compiler_static_F77='-non_shared' | |
13949 ;; | |
13950 | |
13951 newsos6) | |
13952 lt_prog_compiler_pic_F77='-KPIC' | |
13953 lt_prog_compiler_static_F77='-Bstatic' | |
13954 ;; | |
13955 | |
13956 linux*) | |
13957 case $cc_basename in | |
13958 icc* | ecc*) | |
13959 lt_prog_compiler_wl_F77='-Wl,' | |
13960 lt_prog_compiler_pic_F77='-KPIC' | |
13961 lt_prog_compiler_static_F77='-static' | |
13962 ;; | |
13963 pgcc* | pgf77* | pgf90* | pgf95*) | |
13964 # Portland Group compilers (*not* the Pentium gcc compiler, | |
13965 # which looks to be a dead project) | |
13966 lt_prog_compiler_wl_F77='-Wl,' | |
13967 lt_prog_compiler_pic_F77='-fpic' | |
13968 lt_prog_compiler_static_F77='-Bstatic' | |
13969 ;; | |
13970 ccc*) | |
13971 lt_prog_compiler_wl_F77='-Wl,' | |
13972 # All Alpha code is PIC. | |
13973 lt_prog_compiler_static_F77='-non_shared' | |
13974 ;; | |
13975 esac | |
13976 ;; | |
13977 | |
13978 osf3* | osf4* | osf5*) | |
13979 lt_prog_compiler_wl_F77='-Wl,' | |
13980 # All OSF/1 code is PIC. | |
13981 lt_prog_compiler_static_F77='-non_shared' | |
13982 ;; | |
13983 | |
13984 solaris*) | |
13985 lt_prog_compiler_pic_F77='-KPIC' | |
13986 lt_prog_compiler_static_F77='-Bstatic' | |
13987 case $cc_basename in | |
13988 f77* | f90* | f95*) | |
13989 lt_prog_compiler_wl_F77='-Qoption ld ';; | |
13990 *) | |
13991 lt_prog_compiler_wl_F77='-Wl,';; | |
13992 esac | |
13993 ;; | |
13994 | |
13995 sunos4*) | |
13996 lt_prog_compiler_wl_F77='-Qoption ld ' | |
13997 lt_prog_compiler_pic_F77='-PIC' | |
13998 lt_prog_compiler_static_F77='-Bstatic' | |
13999 ;; | |
14000 | |
14001 sysv4 | sysv4.2uw2* | sysv4.3*) | |
14002 lt_prog_compiler_wl_F77='-Wl,' | |
14003 lt_prog_compiler_pic_F77='-KPIC' | |
14004 lt_prog_compiler_static_F77='-Bstatic' | |
14005 ;; | |
14006 | |
14007 sysv4*MP*) | |
14008 if test -d /usr/nec ;then | |
14009 lt_prog_compiler_pic_F77='-Kconform_pic' | |
14010 lt_prog_compiler_static_F77='-Bstatic' | |
14011 fi | |
14012 ;; | |
14013 | |
14014 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14015 lt_prog_compiler_wl_F77='-Wl,' | |
14016 lt_prog_compiler_pic_F77='-KPIC' | |
14017 lt_prog_compiler_static_F77='-Bstatic' | |
14018 ;; | |
14019 | |
14020 unicos*) | |
14021 lt_prog_compiler_wl_F77='-Wl,' | |
14022 lt_prog_compiler_can_build_shared_F77=no | |
14023 ;; | |
14024 | |
14025 uts4*) | |
14026 lt_prog_compiler_pic_F77='-pic' | |
14027 lt_prog_compiler_static_F77='-Bstatic' | |
14028 ;; | |
14029 | |
14030 *) | |
14031 lt_prog_compiler_can_build_shared_F77=no | |
14032 ;; | |
14033 esac | |
14034 fi | |
14035 | |
14036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
14037 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } | |
14038 | |
14039 # | |
14040 # Check to make sure the PIC flag actually works. | |
14041 # | |
14042 if test -n "$lt_prog_compiler_pic_F77"; then | |
14043 | |
14044 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
14045 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } | |
14046 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
14047 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14048 else | |
14049 lt_prog_compiler_pic_works_F77=no | |
14050 ac_outfile=conftest.$ac_objext | |
14051 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14052 lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
14053 # Insert the option either (1) after the last *FLAGS variable, or | |
14054 # (2) before a word containing "conftest.", or (3) at the end. | |
14055 # Note that $ac_compile itself does not contain backslashes and begins | |
14056 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14057 # The option is referenced via a variable to avoid confusing sed. | |
14058 lt_compile=`echo "$ac_compile" | $SED \ | |
14059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14061 -e 's:$: $lt_compiler_flag:'` | |
14062 (eval echo "\"\$as_me:14062: $lt_compile\"" >&5) | |
14063 (eval "$lt_compile" 2>conftest.err) | |
14064 ac_status=$? | |
14065 cat conftest.err >&5 | |
14066 echo "$as_me:14066: \$? = $ac_status" >&5 | |
14067 if (exit $ac_status) && test -s "$ac_outfile"; then | |
14068 # The compiler can only warn and ignore the option if not recognized | |
14069 # So say no if there are warnings other than the usual output. | |
14070 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
14071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14072 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14073 lt_prog_compiler_pic_works_F77=yes | |
14074 fi | |
14075 fi | |
14076 $rm conftest* | |
14077 | |
14078 fi | |
14079 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
14080 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } | |
14081 | |
14082 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
14083 case $lt_prog_compiler_pic_F77 in | |
14084 "" | " "*) ;; | |
14085 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
14086 esac | |
14087 else | |
14088 lt_prog_compiler_pic_F77= | |
14089 lt_prog_compiler_can_build_shared_F77=no | |
14090 fi | |
14091 | |
14092 fi | |
14093 case $host_os in | |
14094 # For platforms which do not support PIC, -DPIC is meaningless: | |
14095 *djgpp*) | |
14096 lt_prog_compiler_pic_F77= | |
14097 ;; | |
14098 *) | |
14099 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
14100 ;; | |
14101 esac | |
14102 | |
14103 # | |
14104 # Check to make sure the static flag actually works. | |
14105 # | |
14106 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
14107 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14108 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
14109 if test "${lt_prog_compiler_static_works_F77+set}" = set; then | |
14110 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14111 else | |
14112 lt_prog_compiler_static_works_F77=no | |
14113 save_LDFLAGS="$LDFLAGS" | |
14114 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14115 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
14116 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14117 # The linker can only warn and ignore the option if not recognized | |
14118 # So say no if there are warnings | |
14119 if test -s conftest.err; then | |
14120 # Append any errors to the config.log. | |
14121 cat conftest.err 1>&5 | |
14122 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
14123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14124 if diff conftest.exp conftest.er2 >/dev/null; then | |
14125 lt_prog_compiler_static_works_F77=yes | |
14126 fi | |
14127 else | |
14128 lt_prog_compiler_static_works_F77=yes | |
14129 fi | |
14130 fi | |
14131 $rm conftest* | |
14132 LDFLAGS="$save_LDFLAGS" | |
14133 | |
14134 fi | |
14135 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | |
14136 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } | |
14137 | |
14138 if test x"$lt_prog_compiler_static_works_F77" = xyes; then | |
14139 : | |
14140 else | |
14141 lt_prog_compiler_static_F77= | |
14142 fi | |
14143 | |
14144 | |
14145 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14146 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
14147 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
14148 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14149 else | |
14150 lt_cv_prog_compiler_c_o_F77=no | |
14151 $rm -r conftest 2>/dev/null | |
14152 mkdir conftest | |
14153 cd conftest | |
14154 mkdir out | |
14155 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14156 | |
14157 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14158 # Insert the option either (1) after the last *FLAGS variable, or | |
14159 # (2) before a word containing "conftest.", or (3) at the end. | |
14160 # Note that $ac_compile itself does not contain backslashes and begins | |
14161 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14162 lt_compile=`echo "$ac_compile" | $SED \ | |
14163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14165 -e 's:$: $lt_compiler_flag:'` | |
14166 (eval echo "\"\$as_me:14166: $lt_compile\"" >&5) | |
14167 (eval "$lt_compile" 2>out/conftest.err) | |
14168 ac_status=$? | |
14169 cat out/conftest.err >&5 | |
14170 echo "$as_me:14170: \$? = $ac_status" >&5 | |
14171 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14172 then | |
14173 # The compiler can only warn and ignore the option if not recognized | |
14174 # So say no if there are warnings | |
14175 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
14176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14178 lt_cv_prog_compiler_c_o_F77=yes | |
14179 fi | |
14180 fi | |
14181 chmod u+w . 2>&5 | |
14182 $rm conftest* | |
14183 # SGI C++ compiler will create directory out/ii_files/ for | |
14184 # template instantiation | |
14185 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
14186 $rm out/* && rmdir out | |
14187 cd .. | |
14188 rmdir conftest | |
14189 $rm conftest* | |
14190 | |
14191 fi | |
14192 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
14193 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } | |
14194 | |
14195 | |
14196 hard_links="nottested" | |
14197 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
14198 # do not overwrite the value of need_locks provided by the user | |
14199 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
14200 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
14201 hard_links=yes | |
14202 $rm conftest* | |
14203 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14204 touch conftest.a | |
14205 ln conftest.a conftest.b 2>&5 || hard_links=no | |
14206 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14207 { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
14208 echo "${ECHO_T}$hard_links" >&6; } | |
14209 if test "$hard_links" = no; then | |
14210 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14211 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14212 need_locks=warn | |
14213 fi | |
14214 else | |
14215 need_locks=no | |
14216 fi | |
14217 | |
14218 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14219 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
14220 | |
14221 runpath_var= | |
14222 allow_undefined_flag_F77= | |
14223 enable_shared_with_static_runtimes_F77=no | |
14224 archive_cmds_F77= | |
14225 archive_expsym_cmds_F77= | |
14226 old_archive_From_new_cmds_F77= | |
14227 old_archive_from_expsyms_cmds_F77= | |
14228 export_dynamic_flag_spec_F77= | |
14229 whole_archive_flag_spec_F77= | |
14230 thread_safe_flag_spec_F77= | |
14231 hardcode_libdir_flag_spec_F77= | |
14232 hardcode_libdir_flag_spec_ld_F77= | |
14233 hardcode_libdir_separator_F77= | |
14234 hardcode_direct_F77=no | |
14235 hardcode_minus_L_F77=no | |
14236 hardcode_shlibpath_var_F77=unsupported | |
14237 link_all_deplibs_F77=unknown | |
14238 hardcode_automatic_F77=no | |
14239 module_cmds_F77= | |
14240 module_expsym_cmds_F77= | |
14241 always_export_symbols_F77=no | |
14242 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14243 # include_expsyms should be a list of space-separated symbols to be *always* | |
14244 # included in the symbol list | |
14245 include_expsyms_F77= | |
14246 # exclude_expsyms can be an extended regexp of symbols to exclude | |
14247 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
14248 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
14249 # as well as any symbol that contains `d'. | |
14250 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
14251 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
14252 # platforms (ab)use it in PIC code, but their linkers get confused if | |
14253 # the symbol is explicitly referenced. Since portable code cannot | |
14254 # rely on this symbol name, it's probably fine to never include it in | |
14255 # preloaded symbol tables. | |
14256 extract_expsyms_cmds= | |
14257 # Just being paranoid about ensuring that cc_basename is set. | |
14258 for cc_temp in $compiler""; do | |
14259 case $cc_temp in | |
14260 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
14261 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
14262 \-*) ;; | |
14263 *) break;; | |
14264 esac | |
14265 done | |
14266 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
14267 | |
14268 case $host_os in | |
14269 cygwin* | mingw* | pw32*) | |
14270 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
14271 # When not using gcc, we currently assume that we are using | |
14272 # Microsoft Visual C++. | |
14273 if test "$GCC" != yes; then | |
14274 with_gnu_ld=no | |
14275 fi | |
14276 ;; | |
14277 interix*) | |
14278 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
14279 with_gnu_ld=yes | |
14280 ;; | |
14281 openbsd*) | |
14282 with_gnu_ld=no | |
14283 ;; | |
14284 esac | |
14285 | |
14286 ld_shlibs_F77=yes | |
14287 if test "$with_gnu_ld" = yes; then | |
14288 # If archive_cmds runs LD, not CC, wlarc should be empty | |
14289 wlarc='${wl}' | |
14290 | |
14291 # Set some defaults for GNU ld with shared library support. These | |
14292 # are reset later if shared libraries are not supported. Putting them | |
14293 # here allows them to be overridden if necessary. | |
14294 runpath_var=LD_RUN_PATH | |
14295 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
14296 export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
14297 # ancient GNU ld didn't support --whole-archive et. al. | |
14298 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
14299 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
14300 else | |
14301 whole_archive_flag_spec_F77= | |
14302 fi | |
14303 supports_anon_versioning=no | |
14304 case `$LD -v 2>/dev/null` in | |
14305 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
14306 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
14307 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
14308 *\ 2.11.*) ;; # other 2.11 versions | |
14309 *) supports_anon_versioning=yes ;; | |
14310 esac | |
14311 | |
14312 # See if GNU ld supports shared libraries. | |
14313 case $host_os in | |
14314 aix3* | aix4* | aix5*) | |
14315 # On AIX/PPC, the GNU linker is very broken | |
14316 if test "$host_cpu" != ia64; then | |
14317 ld_shlibs_F77=no | |
14318 cat <<EOF 1>&2 | |
14319 | |
14320 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
14321 *** to be unable to reliably create shared libraries on AIX. | |
14322 *** Therefore, libtool is disabling shared libraries support. If you | |
14323 *** really care for shared libraries, you may want to modify your PATH | |
14324 *** so that a non-GNU linker is found, and then restart. | |
14325 | |
14326 EOF | |
14327 fi | |
14328 ;; | |
14329 | |
14330 amigaos*) | |
14331 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)' | |
14332 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14333 hardcode_minus_L_F77=yes | |
14334 | |
14335 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
14336 # that the semantics of dynamic libraries on AmigaOS, at least up | |
14337 # to version 4, is to share data among multiple programs linked | |
14338 # with the same dynamic library. Since this doesn't match the | |
14339 # behavior of shared libraries on other platforms, we can't use | |
14340 # them. | |
14341 ld_shlibs_F77=no | |
14342 ;; | |
14343 | |
14344 beos*) | |
14345 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14346 allow_undefined_flag_F77=unsupported | |
14347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
14348 # support --undefined. This deserves some investigation. FIXME | |
14349 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14350 else | |
14351 ld_shlibs_F77=no | |
14352 fi | |
14353 ;; | |
14354 | |
14355 cygwin* | mingw* | pw32*) | |
14356 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
14357 # as there is no search path for DLLs. | |
14358 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14359 allow_undefined_flag_F77=unsupported | |
14360 always_export_symbols_F77=no | |
14361 enable_shared_with_static_runtimes_F77=yes | |
14362 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
14363 | |
14364 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
14365 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14366 # If the export-symbols file already is a .def file (1st line | |
14367 # is EXPORTS), use it as is; otherwise, prepend... | |
14368 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
14369 cp $export_symbols $output_objdir/$soname.def; | |
14370 else | |
14371 echo EXPORTS > $output_objdir/$soname.def; | |
14372 cat $export_symbols >> $output_objdir/$soname.def; | |
14373 fi~ | |
14374 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
14375 else | |
14376 ld_shlibs_F77=no | |
14377 fi | |
14378 ;; | |
14379 | |
14380 interix3*) | |
14381 hardcode_direct_F77=no | |
14382 hardcode_shlibpath_var_F77=no | |
14383 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14384 export_dynamic_flag_spec_F77='${wl}-E' | |
14385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
14386 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
14387 # default) and relocated if they conflict, which is a slow very memory | |
14388 # consuming and fragmenting process. To avoid this, we pick a random, | |
14389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
14390 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
14391 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' | |
14392 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' | |
14393 ;; | |
14394 | |
14395 linux*) | |
14396 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14397 tmp_addflag= | |
14398 case $cc_basename,$host_cpu in | |
14399 pgcc*) # Portland Group C compiler | |
14400 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' | |
14401 tmp_addflag=' $pic_flag' | |
14402 ;; | |
14403 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
14404 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' | |
14405 tmp_addflag=' $pic_flag -Mnomain' ;; | |
14406 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
14407 tmp_addflag=' -i_dynamic' ;; | |
14408 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
14409 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
14410 ifc* | ifort*) # Intel Fortran compiler | |
14411 tmp_addflag=' -nofor_main' ;; | |
14412 esac | |
14413 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14414 | |
14415 if test $supports_anon_versioning = yes; then | |
14416 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
14417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
14418 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
14419 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
14420 fi | |
14421 else | |
14422 ld_shlibs_F77=no | |
14423 fi | |
14424 ;; | |
14425 | |
14426 netbsd*) | |
14427 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14428 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
14429 wlarc= | |
14430 else | |
14431 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14432 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14433 fi | |
14434 ;; | |
14435 | |
14436 solaris*) | |
14437 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
14438 ld_shlibs_F77=no | |
14439 cat <<EOF 1>&2 | |
14440 | |
14441 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14442 *** create shared libraries on Solaris systems. Therefore, libtool | |
14443 *** is disabling shared libraries support. We urge you to upgrade GNU | |
14444 *** binutils to release 2.9.1 or newer. Another option is to modify | |
14445 *** your PATH or compiler configuration so that the native linker is | |
14446 *** used, and then restart. | |
14447 | |
14448 EOF | |
14449 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14450 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14451 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14452 else | |
14453 ld_shlibs_F77=no | |
14454 fi | |
14455 ;; | |
14456 | |
14457 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
14458 case `$LD -v 2>&1` in | |
14459 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14460 ld_shlibs_F77=no | |
14461 cat <<_LT_EOF 1>&2 | |
14462 | |
14463 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14464 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14465 *** is disabling shared libraries support. We urge you to upgrade GNU | |
14466 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14467 *** your PATH or compiler configuration so that the native linker is | |
14468 *** used, and then restart. | |
14469 | |
14470 _LT_EOF | |
14471 ;; | |
14472 *) | |
14473 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14474 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
14475 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
14476 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
14477 else | |
14478 ld_shlibs_F77=no | |
14479 fi | |
14480 ;; | |
14481 esac | |
14482 ;; | |
14483 | |
14484 sunos4*) | |
14485 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14486 wlarc= | |
14487 hardcode_direct_F77=yes | |
14488 hardcode_shlibpath_var_F77=no | |
14489 ;; | |
14490 | |
14491 *) | |
14492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14493 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14494 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14495 else | |
14496 ld_shlibs_F77=no | |
14497 fi | |
14498 ;; | |
14499 esac | |
14500 | |
14501 if test "$ld_shlibs_F77" = no; then | |
14502 runpath_var= | |
14503 hardcode_libdir_flag_spec_F77= | |
14504 export_dynamic_flag_spec_F77= | |
14505 whole_archive_flag_spec_F77= | |
14506 fi | |
14507 else | |
14508 # PORTME fill in a description of your system's linker (not GNU ld) | |
14509 case $host_os in | |
14510 aix3*) | |
14511 allow_undefined_flag_F77=unsupported | |
14512 always_export_symbols_F77=yes | |
14513 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' | |
14514 # Note: this linker hardcodes the directories in LIBPATH if there | |
14515 # are no directories specified by -L. | |
14516 hardcode_minus_L_F77=yes | |
14517 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
14518 # Neither direct hardcoding nor static linking is supported with a | |
14519 # broken collect2. | |
14520 hardcode_direct_F77=unsupported | |
14521 fi | |
14522 ;; | |
14523 | |
14524 aix4* | aix5*) | |
14525 if test "$host_cpu" = ia64; then | |
14526 # On IA64, the linker does run time linking by default, so we don't | |
14527 # have to do anything special. | |
14528 aix_use_runtimelinking=no | |
14529 exp_sym_flag='-Bexport' | |
14530 no_entry_flag="" | |
14531 else | |
14532 # If we're using GNU nm, then we don't want the "-C" option. | |
14533 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14534 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
14535 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' | |
14536 else | |
14537 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' | |
14538 fi | |
14539 aix_use_runtimelinking=no | |
14540 | |
14541 # Test if we are trying to use run time linking or normal | |
14542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14543 # need to do runtime linking. | |
14544 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
14545 for ld_flag in $LDFLAGS; do | |
14546 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14547 aix_use_runtimelinking=yes | |
14548 break | |
14549 fi | |
14550 done | |
14551 ;; | |
14552 esac | |
14553 | |
14554 exp_sym_flag='-bexport' | |
14555 no_entry_flag='-bnoentry' | |
14556 fi | |
14557 | |
14558 # When large executables or shared objects are built, AIX ld can | |
14559 # have problems creating the table of contents. If linking a library | |
14560 # or program results in "error TOC overflow" add -mminimal-toc to | |
14561 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14562 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14563 | |
14564 archive_cmds_F77='' | |
14565 hardcode_direct_F77=yes | |
14566 hardcode_libdir_separator_F77=':' | |
14567 link_all_deplibs_F77=yes | |
14568 | |
14569 if test "$GCC" = yes; then | |
14570 case $host_os in aix4.[012]|aix4.[012].*) | |
14571 # We only want to do this on AIX 4.2 and lower, the check | |
14572 # below for broken collect2 doesn't work under 4.3+ | |
14573 collect2name=`${CC} -print-prog-name=collect2` | |
14574 if test -f "$collect2name" && \ | |
14575 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
14576 then | |
14577 # We have reworked collect2 | |
14578 hardcode_direct_F77=yes | |
14579 else | |
14580 # We have old collect2 | |
14581 hardcode_direct_F77=unsupported | |
14582 # It fails to find uninstalled libraries when the uninstalled | |
14583 # path is not listed in the libpath. Setting hardcode_minus_L | |
14584 # to unsupported forces relinking | |
14585 hardcode_minus_L_F77=yes | |
14586 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14587 hardcode_libdir_separator_F77= | |
14588 fi | |
14589 ;; | |
14590 esac | |
14591 shared_flag='-shared' | |
14592 if test "$aix_use_runtimelinking" = yes; then | |
14593 shared_flag="$shared_flag "'${wl}-G' | |
14594 fi | |
14595 else | |
14596 # not using gcc | |
14597 if test "$host_cpu" = ia64; then | |
14598 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14599 # chokes on -Wl,-G. The following line is correct: | |
14600 shared_flag='-G' | |
14601 else | |
14602 if test "$aix_use_runtimelinking" = yes; then | |
14603 shared_flag='${wl}-G' | |
14604 else | |
14605 shared_flag='${wl}-bM:SRE' | |
14606 fi | |
14607 fi | |
14608 fi | |
14609 | |
14610 # It seems that -bexpall does not export symbols beginning with | |
14611 # underscore (_), so it is better to generate a list of symbols to export. | |
14612 always_export_symbols_F77=yes | |
14613 if test "$aix_use_runtimelinking" = yes; then | |
14614 # Warning - without using the other runtime loading flags (-brtl), | |
14615 # -berok will link without error, but may produce a broken library. | |
14616 allow_undefined_flag_F77='-berok' | |
14617 # Determine the default libpath from the value encoded in an empty executable. | |
14618 cat >conftest.$ac_ext <<_ACEOF | |
14619 program main | |
14620 | |
14621 end | |
14622 _ACEOF | |
14623 rm -f conftest.$ac_objext conftest$ac_exeext | |
14624 if { (ac_try="$ac_link" | |
14625 case "(($ac_try" in | |
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14627 *) ac_try_echo=$ac_try;; | |
14628 esac | |
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14630 (eval "$ac_link") 2>conftest.er1 | |
14631 ac_status=$? | |
14632 grep -v '^ *+' conftest.er1 >conftest.err | |
14633 rm -f conftest.er1 | |
14634 cat conftest.err >&5 | |
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14636 (exit $ac_status); } && | |
14637 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
14638 { (case "(($ac_try" in | |
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14640 *) ac_try_echo=$ac_try;; | |
14641 esac | |
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14643 (eval "$ac_try") 2>&5 | |
14644 ac_status=$? | |
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14646 (exit $ac_status); }; } && | |
14647 { ac_try='test -s conftest$ac_exeext' | |
14648 { (case "(($ac_try" in | |
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14650 *) ac_try_echo=$ac_try;; | |
14651 esac | |
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14653 (eval "$ac_try") 2>&5 | |
14654 ac_status=$? | |
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14656 (exit $ac_status); }; }; then | |
14657 | |
14658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14659 }'` | |
14660 # Check for a 64-bit object if we didn't find anything. | |
14661 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; } | |
14662 }'`; fi | |
14663 else | |
14664 echo "$as_me: failed program was:" >&5 | |
14665 sed 's/^/| /' conftest.$ac_ext >&5 | |
14666 | |
14667 | |
14668 fi | |
14669 | |
14670 rm -f core conftest.err conftest.$ac_objext \ | |
14671 conftest$ac_exeext conftest.$ac_ext | |
14672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14673 | |
14674 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14675 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" | |
14676 else | |
14677 if test "$host_cpu" = ia64; then | |
14678 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
14679 allow_undefined_flag_F77="-z nodefs" | |
14680 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" | |
14681 else | |
14682 # Determine the default libpath from the value encoded in an empty executable. | |
14683 cat >conftest.$ac_ext <<_ACEOF | |
14684 program main | |
14685 | |
14686 end | |
14687 _ACEOF | |
14688 rm -f conftest.$ac_objext conftest$ac_exeext | |
14689 if { (ac_try="$ac_link" | |
14690 case "(($ac_try" in | |
14691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14692 *) ac_try_echo=$ac_try;; | |
14693 esac | |
14694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14695 (eval "$ac_link") 2>conftest.er1 | |
14696 ac_status=$? | |
14697 grep -v '^ *+' conftest.er1 >conftest.err | |
14698 rm -f conftest.er1 | |
14699 cat conftest.err >&5 | |
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14701 (exit $ac_status); } && | |
14702 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
14703 { (case "(($ac_try" in | |
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14705 *) ac_try_echo=$ac_try;; | |
14706 esac | |
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14708 (eval "$ac_try") 2>&5 | |
14709 ac_status=$? | |
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14711 (exit $ac_status); }; } && | |
14712 { ac_try='test -s conftest$ac_exeext' | |
14713 { (case "(($ac_try" in | |
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14715 *) ac_try_echo=$ac_try;; | |
14716 esac | |
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14718 (eval "$ac_try") 2>&5 | |
14719 ac_status=$? | |
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14721 (exit $ac_status); }; }; then | |
14722 | |
14723 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14724 }'` | |
14725 # Check for a 64-bit object if we didn't find anything. | |
14726 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; } | |
14727 }'`; fi | |
14728 else | |
14729 echo "$as_me: failed program was:" >&5 | |
14730 sed 's/^/| /' conftest.$ac_ext >&5 | |
14731 | |
14732 | |
14733 fi | |
14734 | |
14735 rm -f core conftest.err conftest.$ac_objext \ | |
14736 conftest$ac_exeext conftest.$ac_ext | |
14737 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
14738 | |
14739 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14740 # Warning - without using the other run time loading flags, | |
14741 # -berok will link without error, but may produce a broken library. | |
14742 no_undefined_flag_F77=' ${wl}-bernotok' | |
14743 allow_undefined_flag_F77=' ${wl}-berok' | |
14744 # Exported symbols can be pulled into shared objects from archives | |
14745 whole_archive_flag_spec_F77='$convenience' | |
14746 archive_cmds_need_lc_F77=yes | |
14747 # This is similar to how AIX traditionally builds its shared libraries. | |
14748 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' | |
14749 fi | |
14750 fi | |
14751 ;; | |
14752 | |
14753 amigaos*) | |
14754 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)' | |
14755 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14756 hardcode_minus_L_F77=yes | |
14757 # see comment about different semantics on the GNU ld section | |
14758 ld_shlibs_F77=no | |
14759 ;; | |
14760 | |
14761 bsdi[45]*) | |
14762 export_dynamic_flag_spec_F77=-rdynamic | |
14763 ;; | |
14764 | |
14765 cygwin* | mingw* | pw32*) | |
14766 # When not using gcc, we currently assume that we are using | |
14767 # Microsoft Visual C++. | |
14768 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14769 # no search path for DLLs. | |
14770 hardcode_libdir_flag_spec_F77=' ' | |
14771 allow_undefined_flag_F77=unsupported | |
14772 # Tell ltmain to make .lib files, not .a files. | |
14773 libext=lib | |
14774 # Tell ltmain to make .dll files, not .so files. | |
14775 shrext_cmds=".dll" | |
14776 # FIXME: Setting linknames here is a bad hack. | |
14777 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
14778 # The linker will automatically build a .lib file if we build a DLL. | |
14779 old_archive_From_new_cmds_F77='true' | |
14780 # FIXME: Should let the user specify the lib program. | |
14781 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
14782 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | |
14783 enable_shared_with_static_runtimes_F77=yes | |
14784 ;; | |
14785 | |
14786 darwin* | rhapsody*) | |
14787 case $host_os in | |
14788 rhapsody* | darwin1.[012]) | |
14789 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
14790 ;; | |
14791 *) # Darwin 1.3 on | |
14792 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
14793 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14794 else | |
14795 case ${MACOSX_DEPLOYMENT_TARGET} in | |
14796 10.[012]) | |
14797 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14798 ;; | |
14799 10.*) | |
14800 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
14801 ;; | |
14802 esac | |
14803 fi | |
14804 ;; | |
14805 esac | |
14806 archive_cmds_need_lc_F77=no | |
14807 hardcode_direct_F77=no | |
14808 hardcode_automatic_F77=yes | |
14809 hardcode_shlibpath_var_F77=unsupported | |
14810 whole_archive_flag_spec_F77='' | |
14811 link_all_deplibs_F77=yes | |
14812 if test "$GCC" = yes ; then | |
14813 output_verbose_link_cmd='echo' | |
14814 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
14815 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
14816 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
14817 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}' | |
14818 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}' | |
14819 else | |
14820 case $cc_basename in | |
14821 xlc*) | |
14822 output_verbose_link_cmd='echo' | |
14823 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
14824 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
14825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
14826 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}' | |
14827 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}' | |
14828 ;; | |
14829 *) | |
14830 ld_shlibs_F77=no | |
14831 ;; | |
14832 esac | |
14833 fi | |
14834 ;; | |
14835 | |
14836 dgux*) | |
14837 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14838 hardcode_libdir_flag_spec_F77='-L$libdir' | |
14839 hardcode_shlibpath_var_F77=no | |
14840 ;; | |
14841 | |
14842 freebsd1*) | |
14843 ld_shlibs_F77=no | |
14844 ;; | |
14845 | |
14846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
14847 # support. Future versions do this automatically, but an explicit c++rt0.o | |
14848 # does not break anything, and helps significantly (at the cost of a little | |
14849 # extra space). | |
14850 freebsd2.2*) | |
14851 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14852 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14853 hardcode_direct_F77=yes | |
14854 hardcode_shlibpath_var_F77=no | |
14855 ;; | |
14856 | |
14857 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
14858 freebsd2*) | |
14859 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14860 hardcode_direct_F77=yes | |
14861 hardcode_minus_L_F77=yes | |
14862 hardcode_shlibpath_var_F77=no | |
14863 ;; | |
14864 | |
14865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
14866 freebsd* | kfreebsd*-gnu | dragonfly*) | |
14867 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
14868 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14869 hardcode_direct_F77=yes | |
14870 hardcode_shlibpath_var_F77=no | |
14871 ;; | |
14872 | |
14873 hpux9*) | |
14874 if test "$GCC" = yes; then | |
14875 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' | |
14876 else | |
14877 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' | |
14878 fi | |
14879 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14880 hardcode_libdir_separator_F77=: | |
14881 hardcode_direct_F77=yes | |
14882 | |
14883 # hardcode_minus_L: Not really in the search PATH, | |
14884 # but as the default location of the library. | |
14885 hardcode_minus_L_F77=yes | |
14886 export_dynamic_flag_spec_F77='${wl}-E' | |
14887 ;; | |
14888 | |
14889 hpux10*) | |
14890 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14891 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14892 else | |
14893 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14894 fi | |
14895 if test "$with_gnu_ld" = no; then | |
14896 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14897 hardcode_libdir_separator_F77=: | |
14898 | |
14899 hardcode_direct_F77=yes | |
14900 export_dynamic_flag_spec_F77='${wl}-E' | |
14901 | |
14902 # hardcode_minus_L: Not really in the search PATH, | |
14903 # but as the default location of the library. | |
14904 hardcode_minus_L_F77=yes | |
14905 fi | |
14906 ;; | |
14907 | |
14908 hpux11*) | |
14909 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14910 case $host_cpu in | |
14911 hppa*64*) | |
14912 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14913 ;; | |
14914 ia64*) | |
14915 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14916 ;; | |
14917 *) | |
14918 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14919 ;; | |
14920 esac | |
14921 else | |
14922 case $host_cpu in | |
14923 hppa*64*) | |
14924 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14925 ;; | |
14926 ia64*) | |
14927 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14928 ;; | |
14929 *) | |
14930 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14931 ;; | |
14932 esac | |
14933 fi | |
14934 if test "$with_gnu_ld" = no; then | |
14935 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14936 hardcode_libdir_separator_F77=: | |
14937 | |
14938 case $host_cpu in | |
14939 hppa*64*|ia64*) | |
14940 hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
14941 hardcode_direct_F77=no | |
14942 hardcode_shlibpath_var_F77=no | |
14943 ;; | |
14944 *) | |
14945 hardcode_direct_F77=yes | |
14946 export_dynamic_flag_spec_F77='${wl}-E' | |
14947 | |
14948 # hardcode_minus_L: Not really in the search PATH, | |
14949 # but as the default location of the library. | |
14950 hardcode_minus_L_F77=yes | |
14951 ;; | |
14952 esac | |
14953 fi | |
14954 ;; | |
14955 | |
14956 irix5* | irix6* | nonstopux*) | |
14957 if test "$GCC" = yes; then | |
14958 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' | |
14959 else | |
14960 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' | |
14961 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
14962 fi | |
14963 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14964 hardcode_libdir_separator_F77=: | |
14965 link_all_deplibs_F77=yes | |
14966 ;; | |
14967 | |
14968 netbsd*) | |
14969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14970 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14971 else | |
14972 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14973 fi | |
14974 hardcode_libdir_flag_spec_F77='-R$libdir' | |
14975 hardcode_direct_F77=yes | |
14976 hardcode_shlibpath_var_F77=no | |
14977 ;; | |
14978 | |
14979 newsos6) | |
14980 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14981 hardcode_direct_F77=yes | |
14982 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14983 hardcode_libdir_separator_F77=: | |
14984 hardcode_shlibpath_var_F77=no | |
14985 ;; | |
14986 | |
14987 openbsd*) | |
14988 hardcode_direct_F77=yes | |
14989 hardcode_shlibpath_var_F77=no | |
14990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14991 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14992 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
14993 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14994 export_dynamic_flag_spec_F77='${wl}-E' | |
14995 else | |
14996 case $host_os in | |
14997 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14998 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14999 hardcode_libdir_flag_spec_F77='-R$libdir' | |
15000 ;; | |
15001 *) | |
15002 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
15003 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
15004 ;; | |
15005 esac | |
15006 fi | |
15007 ;; | |
15008 | |
15009 os2*) | |
15010 hardcode_libdir_flag_spec_F77='-L$libdir' | |
15011 hardcode_minus_L_F77=yes | |
15012 allow_undefined_flag_F77=unsupported | |
15013 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' | |
15014 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
15015 ;; | |
15016 | |
15017 osf3*) | |
15018 if test "$GCC" = yes; then | |
15019 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
15020 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' | |
15021 else | |
15022 allow_undefined_flag_F77=' -expect_unresolved \*' | |
15023 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' | |
15024 fi | |
15025 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
15026 hardcode_libdir_separator_F77=: | |
15027 ;; | |
15028 | |
15029 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
15030 if test "$GCC" = yes; then | |
15031 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
15032 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' | |
15033 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
15034 else | |
15035 allow_undefined_flag_F77=' -expect_unresolved \*' | |
15036 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' | |
15037 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~ | |
15038 $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' | |
15039 | |
15040 # Both c and cxx compiler support -rpath directly | |
15041 hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
15042 fi | |
15043 hardcode_libdir_separator_F77=: | |
15044 ;; | |
15045 | |
15046 solaris*) | |
15047 no_undefined_flag_F77=' -z text' | |
15048 if test "$GCC" = yes; then | |
15049 wlarc='${wl}' | |
15050 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15051 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
15052 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
15053 else | |
15054 wlarc='' | |
15055 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15056 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
15057 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
15058 fi | |
15059 hardcode_libdir_flag_spec_F77='-R$libdir' | |
15060 hardcode_shlibpath_var_F77=no | |
15061 case $host_os in | |
15062 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
15063 *) | |
15064 # The compiler driver will combine linker options so we | |
15065 # cannot just pass the convience library names through | |
15066 # without $wl, iff we do not link with $LD. | |
15067 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
15068 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
15069 case $wlarc in | |
15070 '') | |
15071 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | |
15072 *) | |
15073 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' ;; | |
15074 esac ;; | |
15075 esac | |
15076 link_all_deplibs_F77=yes | |
15077 ;; | |
15078 | |
15079 sunos4*) | |
15080 if test "x$host_vendor" = xsequent; then | |
15081 # Use $CC to link under sequent, because it throws in some extra .o | |
15082 # files that make .init and .fini sections work. | |
15083 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
15084 else | |
15085 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
15086 fi | |
15087 hardcode_libdir_flag_spec_F77='-L$libdir' | |
15088 hardcode_direct_F77=yes | |
15089 hardcode_minus_L_F77=yes | |
15090 hardcode_shlibpath_var_F77=no | |
15091 ;; | |
15092 | |
15093 sysv4) | |
15094 case $host_vendor in | |
15095 sni) | |
15096 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15097 hardcode_direct_F77=yes # is this really true??? | |
15098 ;; | |
15099 siemens) | |
15100 ## LD is ld it makes a PLAMLIB | |
15101 ## CC just makes a GrossModule. | |
15102 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
15103 reload_cmds_F77='$CC -r -o $output$reload_objs' | |
15104 hardcode_direct_F77=no | |
15105 ;; | |
15106 motorola) | |
15107 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15108 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
15109 ;; | |
15110 esac | |
15111 runpath_var='LD_RUN_PATH' | |
15112 hardcode_shlibpath_var_F77=no | |
15113 ;; | |
15114 | |
15115 sysv4.3*) | |
15116 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15117 hardcode_shlibpath_var_F77=no | |
15118 export_dynamic_flag_spec_F77='-Bexport' | |
15119 ;; | |
15120 | |
15121 sysv4*MP*) | |
15122 if test -d /usr/nec; then | |
15123 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15124 hardcode_shlibpath_var_F77=no | |
15125 runpath_var=LD_RUN_PATH | |
15126 hardcode_runpath_var=yes | |
15127 ld_shlibs_F77=yes | |
15128 fi | |
15129 ;; | |
15130 | |
15131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
15132 no_undefined_flag_F77='${wl}-z,text' | |
15133 archive_cmds_need_lc_F77=no | |
15134 hardcode_shlibpath_var_F77=no | |
15135 runpath_var='LD_RUN_PATH' | |
15136 | |
15137 if test "$GCC" = yes; then | |
15138 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15139 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15140 else | |
15141 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15142 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15143 fi | |
15144 ;; | |
15145 | |
15146 sysv5* | sco3.2v5* | sco5v6*) | |
15147 # Note: We can NOT use -z defs as we might desire, because we do not | |
15148 # link with -lc, and that would cause any symbols used from libc to | |
15149 # always be unresolved, which means just about no library would | |
15150 # ever link correctly. If we're not using GNU ld we use -z text | |
15151 # though, which does catch some bad symbols but isn't as heavy-handed | |
15152 # as -z defs. | |
15153 no_undefined_flag_F77='${wl}-z,text' | |
15154 allow_undefined_flag_F77='${wl}-z,nodefs' | |
15155 archive_cmds_need_lc_F77=no | |
15156 hardcode_shlibpath_var_F77=no | |
15157 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
15158 hardcode_libdir_separator_F77=':' | |
15159 link_all_deplibs_F77=yes | |
15160 export_dynamic_flag_spec_F77='${wl}-Bexport' | |
15161 runpath_var='LD_RUN_PATH' | |
15162 | |
15163 if test "$GCC" = yes; then | |
15164 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15165 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15166 else | |
15167 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15168 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
15169 fi | |
15170 ;; | |
15171 | |
15172 uts4*) | |
15173 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
15174 hardcode_libdir_flag_spec_F77='-L$libdir' | |
15175 hardcode_shlibpath_var_F77=no | |
15176 ;; | |
15177 | |
15178 *) | |
15179 ld_shlibs_F77=no | |
15180 ;; | |
15181 esac | |
15182 fi | |
15183 | |
15184 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
15185 echo "${ECHO_T}$ld_shlibs_F77" >&6; } | |
15186 test "$ld_shlibs_F77" = no && can_build_shared=no | |
15187 | |
15188 # | |
15189 # Do we need to explicitly link libc? | |
15190 # | |
15191 case "x$archive_cmds_need_lc_F77" in | |
15192 x|xyes) | |
15193 # Assume -lc should be added | |
15194 archive_cmds_need_lc_F77=yes | |
15195 | |
15196 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
15197 case $archive_cmds_F77 in | |
15198 *'~'*) | |
15199 # FIXME: we may have to deal with multi-command sequences. | |
15200 ;; | |
15201 '$CC '*) | |
15202 # Test whether the compiler implicitly links with -lc since on some | |
15203 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
15204 # to ld, don't add -lc before -lgcc. | |
15205 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
15206 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
15207 $rm conftest* | |
15208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15209 | |
15210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15211 (eval $ac_compile) 2>&5 | |
15212 ac_status=$? | |
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15214 (exit $ac_status); } 2>conftest.err; then | |
15215 soname=conftest | |
15216 lib=conftest | |
15217 libobjs=conftest.$ac_objext | |
15218 deplibs= | |
15219 wl=$lt_prog_compiler_wl_F77 | |
15220 pic_flag=$lt_prog_compiler_pic_F77 | |
15221 compiler_flags=-v | |
15222 linker_flags=-v | |
15223 verstring= | |
15224 output_objdir=. | |
15225 libname=conftest | |
15226 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
15227 allow_undefined_flag_F77= | |
15228 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
15229 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
15230 ac_status=$? | |
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15232 (exit $ac_status); } | |
15233 then | |
15234 archive_cmds_need_lc_F77=no | |
15235 else | |
15236 archive_cmds_need_lc_F77=yes | |
15237 fi | |
15238 allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
15239 else | |
15240 cat conftest.err 1>&5 | |
15241 fi | |
15242 $rm conftest* | |
15243 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
15244 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } | |
15245 ;; | |
15246 esac | |
15247 fi | |
15248 ;; | |
15249 esac | |
15250 | |
15251 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
15252 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
15253 library_names_spec= | |
15254 libname_spec='lib$name' | |
15255 soname_spec= | |
15256 shrext_cmds=".so" | |
15257 postinstall_cmds= | |
15258 postuninstall_cmds= | |
15259 finish_cmds= | |
15260 finish_eval= | |
15261 shlibpath_var= | |
15262 shlibpath_overrides_runpath=unknown | |
15263 version_type=none | |
15264 dynamic_linker="$host_os ld.so" | |
15265 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
15266 if test "$GCC" = yes; then | |
15267 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
15268 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
15269 # if the path contains ";" then we assume it to be the separator | |
15270 # otherwise default to the standard path separator (i.e. ":") - it is | |
15271 # assumed that no part of a normal pathname contains ";" but that should | |
15272 # okay in the real world where ";" in dirpaths is itself problematic. | |
15273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15274 else | |
15275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15276 fi | |
15277 else | |
15278 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
15279 fi | |
15280 need_lib_prefix=unknown | |
15281 hardcode_into_libs=no | |
15282 | |
15283 # when you set need_version to no, make sure it does not cause -set_version | |
15284 # flags to be left without arguments | |
15285 need_version=unknown | |
15286 | |
15287 case $host_os in | |
15288 aix3*) | |
15289 version_type=linux | |
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
15291 shlibpath_var=LIBPATH | |
15292 | |
15293 # AIX 3 has no versioning support, so we append a major version to the name. | |
15294 soname_spec='${libname}${release}${shared_ext}$major' | |
15295 ;; | |
15296 | |
15297 aix4* | aix5*) | |
15298 version_type=linux | |
15299 need_lib_prefix=no | |
15300 need_version=no | |
15301 hardcode_into_libs=yes | |
15302 if test "$host_cpu" = ia64; then | |
15303 # AIX 5 supports IA64 | |
15304 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
15305 shlibpath_var=LD_LIBRARY_PATH | |
15306 else | |
15307 # With GCC up to 2.95.x, collect2 would create an import file | |
15308 # for dependence libraries. The import file would start with | |
15309 # the line `#! .'. This would cause the generated library to | |
15310 # depend on `.', always an invalid library. This was fixed in | |
15311 # development snapshots of GCC prior to 3.0. | |
15312 case $host_os in | |
15313 aix4 | aix4.[01] | aix4.[01].*) | |
15314 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
15315 echo ' yes ' | |
15316 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
15317 : | |
15318 else | |
15319 can_build_shared=no | |
15320 fi | |
15321 ;; | |
15322 esac | |
15323 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
15324 # soname into executable. Probably we can add versioning support to | |
15325 # collect2, so additional links can be useful in future. | |
15326 if test "$aix_use_runtimelinking" = yes; then | |
15327 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
15328 # instead of lib<name>.a to let people know that these are not | |
15329 # typical AIX shared libraries. | |
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15331 else | |
15332 # We preserve .a as extension for shared libraries through AIX4.2 | |
15333 # and later when we are not doing run time linking. | |
15334 library_names_spec='${libname}${release}.a $libname.a' | |
15335 soname_spec='${libname}${release}${shared_ext}$major' | |
15336 fi | |
15337 shlibpath_var=LIBPATH | |
15338 fi | |
15339 ;; | |
15340 | |
15341 amigaos*) | |
15342 library_names_spec='$libname.ixlibrary $libname.a' | |
15343 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
15344 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' | |
15345 ;; | |
15346 | |
15347 beos*) | |
15348 library_names_spec='${libname}${shared_ext}' | |
15349 dynamic_linker="$host_os ld.so" | |
15350 shlibpath_var=LIBRARY_PATH | |
15351 ;; | |
15352 | |
15353 bsdi[45]*) | |
15354 version_type=linux | |
15355 need_version=no | |
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15357 soname_spec='${libname}${release}${shared_ext}$major' | |
15358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
15359 shlibpath_var=LD_LIBRARY_PATH | |
15360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
15361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
15362 # the default ld.so.conf also contains /usr/contrib/lib and | |
15363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
15364 # libtool to hard-code these into programs | |
15365 ;; | |
15366 | |
15367 cygwin* | mingw* | pw32*) | |
15368 version_type=windows | |
15369 shrext_cmds=".dll" | |
15370 need_version=no | |
15371 need_lib_prefix=no | |
15372 | |
15373 case $GCC,$host_os in | |
15374 yes,cygwin* | yes,mingw* | yes,pw32*) | |
15375 library_names_spec='$libname.dll.a' | |
15376 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
15377 postinstall_cmds='base_file=`basename \${file}`~ | |
15378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
15379 dldir=$destdir/`dirname \$dlpath`~ | |
15380 test -d \$dldir || mkdir -p \$dldir~ | |
15381 $install_prog $dir/$dlname \$dldir/$dlname~ | |
15382 chmod a+x \$dldir/$dlname' | |
15383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
15384 dlpath=$dir/\$dldll~ | |
15385 $rm \$dlpath' | |
15386 shlibpath_overrides_runpath=yes | |
15387 | |
15388 case $host_os in | |
15389 cygwin*) | |
15390 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
15391 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15392 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
15393 ;; | |
15394 mingw*) | |
15395 # MinGW DLLs use traditional 'lib' prefix | |
15396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
15398 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
15399 # It is most probably a Windows format PATH printed by | |
15400 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
15401 # path with ; separators, and with drive letters. We can handle the | |
15402 # drive letters (cygwin fileutils understands them), so leave them, | |
15403 # especially as we might pass files found there to a mingw objdump, | |
15404 # which wouldn't understand a cygwinified path. Ahh. | |
15405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
15406 else | |
15407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
15408 fi | |
15409 ;; | |
15410 pw32*) | |
15411 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
15412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
15413 ;; | |
15414 esac | |
15415 ;; | |
15416 | |
15417 *) | |
15418 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
15419 ;; | |
15420 esac | |
15421 dynamic_linker='Win32 ld.exe' | |
15422 # FIXME: first we should search . and the directory the executable is in | |
15423 shlibpath_var=PATH | |
15424 ;; | |
15425 | |
15426 darwin* | rhapsody*) | |
15427 dynamic_linker="$host_os dyld" | |
15428 version_type=darwin | |
15429 need_lib_prefix=no | |
15430 need_version=no | |
15431 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
15432 soname_spec='${libname}${release}${major}$shared_ext' | |
15433 shlibpath_overrides_runpath=yes | |
15434 shlibpath_var=DYLD_LIBRARY_PATH | |
15435 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
15436 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
15437 if test "$GCC" = yes; then | |
15438 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"` | |
15439 else | |
15440 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
15441 fi | |
15442 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
15443 ;; | |
15444 | |
15445 dgux*) | |
15446 version_type=linux | |
15447 need_lib_prefix=no | |
15448 need_version=no | |
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
15450 soname_spec='${libname}${release}${shared_ext}$major' | |
15451 shlibpath_var=LD_LIBRARY_PATH | |
15452 ;; | |
15453 | |
15454 freebsd1*) | |
15455 dynamic_linker=no | |
15456 ;; | |
15457 | |
15458 kfreebsd*-gnu) | |
15459 version_type=linux | |
15460 need_lib_prefix=no | |
15461 need_version=no | |
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15463 soname_spec='${libname}${release}${shared_ext}$major' | |
15464 shlibpath_var=LD_LIBRARY_PATH | |
15465 shlibpath_overrides_runpath=no | |
15466 hardcode_into_libs=yes | |
15467 dynamic_linker='GNU ld.so' | |
15468 ;; | |
15469 | |
15470 freebsd* | dragonfly*) | |
15471 # DragonFly does not have aout. When/if they implement a new | |
15472 # versioning mechanism, adjust this. | |
15473 if test -x /usr/bin/objformat; then | |
15474 objformat=`/usr/bin/objformat` | |
15475 else | |
15476 case $host_os in | |
15477 freebsd[123]*) objformat=aout ;; | |
15478 *) objformat=elf ;; | |
15479 esac | |
15480 fi | |
15481 version_type=freebsd-$objformat | |
15482 case $version_type in | |
15483 freebsd-elf*) | |
15484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15485 need_version=no | |
15486 need_lib_prefix=no | |
15487 ;; | |
15488 freebsd-*) | |
15489 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15490 need_version=yes | |
15491 ;; | |
15492 esac | |
15493 shlibpath_var=LD_LIBRARY_PATH | |
15494 case $host_os in | |
15495 freebsd2*) | |
15496 shlibpath_overrides_runpath=yes | |
15497 ;; | |
15498 freebsd3.[01]* | freebsdelf3.[01]*) | |
15499 shlibpath_overrides_runpath=yes | |
15500 hardcode_into_libs=yes | |
15501 ;; | |
15502 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
15503 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
15504 shlibpath_overrides_runpath=no | |
15505 hardcode_into_libs=yes | |
15506 ;; | |
15507 freebsd*) # from 4.6 on | |
15508 shlibpath_overrides_runpath=yes | |
15509 hardcode_into_libs=yes | |
15510 ;; | |
15511 esac | |
15512 ;; | |
15513 | |
15514 gnu*) | |
15515 version_type=linux | |
15516 need_lib_prefix=no | |
15517 need_version=no | |
15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15519 soname_spec='${libname}${release}${shared_ext}$major' | |
15520 shlibpath_var=LD_LIBRARY_PATH | |
15521 hardcode_into_libs=yes | |
15522 ;; | |
15523 | |
15524 hpux9* | hpux10* | hpux11*) | |
15525 # Give a soname corresponding to the major version so that dld.sl refuses to | |
15526 # link against other versions. | |
15527 version_type=sunos | |
15528 need_lib_prefix=no | |
15529 need_version=no | |
15530 case $host_cpu in | |
15531 ia64*) | |
15532 shrext_cmds='.so' | |
15533 hardcode_into_libs=yes | |
15534 dynamic_linker="$host_os dld.so" | |
15535 shlibpath_var=LD_LIBRARY_PATH | |
15536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15538 soname_spec='${libname}${release}${shared_ext}$major' | |
15539 if test "X$HPUX_IA64_MODE" = X32; then | |
15540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15541 else | |
15542 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15543 fi | |
15544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15545 ;; | |
15546 hppa*64*) | |
15547 shrext_cmds='.sl' | |
15548 hardcode_into_libs=yes | |
15549 dynamic_linker="$host_os dld.sl" | |
15550 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15553 soname_spec='${libname}${release}${shared_ext}$major' | |
15554 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15556 ;; | |
15557 *) | |
15558 shrext_cmds='.sl' | |
15559 dynamic_linker="$host_os dld.sl" | |
15560 shlibpath_var=SHLIB_PATH | |
15561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15563 soname_spec='${libname}${release}${shared_ext}$major' | |
15564 ;; | |
15565 esac | |
15566 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
15567 postinstall_cmds='chmod 555 $lib' | |
15568 ;; | |
15569 | |
15570 interix3*) | |
15571 version_type=linux | |
15572 need_lib_prefix=no | |
15573 need_version=no | |
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15575 soname_spec='${libname}${release}${shared_ext}$major' | |
15576 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15577 shlibpath_var=LD_LIBRARY_PATH | |
15578 shlibpath_overrides_runpath=no | |
15579 hardcode_into_libs=yes | |
15580 ;; | |
15581 | |
15582 irix5* | irix6* | nonstopux*) | |
15583 case $host_os in | |
15584 nonstopux*) version_type=nonstopux ;; | |
15585 *) | |
15586 if test "$lt_cv_prog_gnu_ld" = yes; then | |
15587 version_type=linux | |
15588 else | |
15589 version_type=irix | |
15590 fi ;; | |
15591 esac | |
15592 need_lib_prefix=no | |
15593 need_version=no | |
15594 soname_spec='${libname}${release}${shared_ext}$major' | |
15595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15596 case $host_os in | |
15597 irix5* | nonstopux*) | |
15598 libsuff= shlibsuff= | |
15599 ;; | |
15600 *) | |
15601 case $LD in # libtool.m4 will add one of these switches to LD | |
15602 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15603 libsuff= shlibsuff= libmagic=32-bit;; | |
15604 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15605 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15606 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15607 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15608 *) libsuff= shlibsuff= libmagic=never-match;; | |
15609 esac | |
15610 ;; | |
15611 esac | |
15612 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15613 shlibpath_overrides_runpath=no | |
15614 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15615 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15616 hardcode_into_libs=yes | |
15617 ;; | |
15618 | |
15619 # No shared lib support for Linux oldld, aout, or coff. | |
15620 linux*oldld* | linux*aout* | linux*coff*) | |
15621 dynamic_linker=no | |
15622 ;; | |
15623 | |
15624 # This must be Linux ELF. | |
15625 linux*) | |
15626 version_type=linux | |
15627 need_lib_prefix=no | |
15628 need_version=no | |
15629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15630 soname_spec='${libname}${release}${shared_ext}$major' | |
15631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15632 shlibpath_var=LD_LIBRARY_PATH | |
15633 shlibpath_overrides_runpath=no | |
15634 # This implies no fast_install, which is unacceptable. | |
15635 # Some rework will be needed to allow for fast_install | |
15636 # before this can be enabled. | |
15637 hardcode_into_libs=yes | |
15638 | |
15639 # Append ld.so.conf contents to the search path | |
15640 if test -f /etc/ld.so.conf; then | |
15641 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' ' '` | |
15642 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15643 fi | |
15644 | |
15645 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15646 # powerpc, because MkLinux only supported shared libraries with the | |
15647 # GNU dynamic linker. Since this was broken with cross compilers, | |
15648 # most powerpc-linux boxes support dynamic linking these days and | |
15649 # people can always --disable-shared, the test was removed, and we | |
15650 # assume the GNU/Linux dynamic linker is in use. | |
15651 dynamic_linker='GNU/Linux ld.so' | |
15652 ;; | |
15653 | |
15654 knetbsd*-gnu) | |
15655 version_type=linux | |
15656 need_lib_prefix=no | |
15657 need_version=no | |
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15659 soname_spec='${libname}${release}${shared_ext}$major' | |
15660 shlibpath_var=LD_LIBRARY_PATH | |
15661 shlibpath_overrides_runpath=no | |
15662 hardcode_into_libs=yes | |
15663 dynamic_linker='GNU ld.so' | |
15664 ;; | |
15665 | |
15666 netbsd*) | |
15667 version_type=sunos | |
15668 need_lib_prefix=no | |
15669 need_version=no | |
15670 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15673 dynamic_linker='NetBSD (a.out) ld.so' | |
15674 else | |
15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15676 soname_spec='${libname}${release}${shared_ext}$major' | |
15677 dynamic_linker='NetBSD ld.elf_so' | |
15678 fi | |
15679 shlibpath_var=LD_LIBRARY_PATH | |
15680 shlibpath_overrides_runpath=yes | |
15681 hardcode_into_libs=yes | |
15682 ;; | |
15683 | |
15684 newsos6) | |
15685 version_type=linux | |
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15687 shlibpath_var=LD_LIBRARY_PATH | |
15688 shlibpath_overrides_runpath=yes | |
15689 ;; | |
15690 | |
15691 nto-qnx*) | |
15692 version_type=linux | |
15693 need_lib_prefix=no | |
15694 need_version=no | |
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15696 soname_spec='${libname}${release}${shared_ext}$major' | |
15697 shlibpath_var=LD_LIBRARY_PATH | |
15698 shlibpath_overrides_runpath=yes | |
15699 ;; | |
15700 | |
15701 openbsd*) | |
15702 version_type=sunos | |
15703 sys_lib_dlsearch_path_spec="/usr/lib" | |
15704 need_lib_prefix=no | |
15705 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15706 case $host_os in | |
15707 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15708 *) need_version=no ;; | |
15709 esac | |
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15712 shlibpath_var=LD_LIBRARY_PATH | |
15713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15714 case $host_os in | |
15715 openbsd2.[89] | openbsd2.[89].*) | |
15716 shlibpath_overrides_runpath=no | |
15717 ;; | |
15718 *) | |
15719 shlibpath_overrides_runpath=yes | |
15720 ;; | |
15721 esac | |
15722 else | |
15723 shlibpath_overrides_runpath=yes | |
15724 fi | |
15725 ;; | |
15726 | |
15727 os2*) | |
15728 libname_spec='$name' | |
15729 shrext_cmds=".dll" | |
15730 need_lib_prefix=no | |
15731 library_names_spec='$libname${shared_ext} $libname.a' | |
15732 dynamic_linker='OS/2 ld.exe' | |
15733 shlibpath_var=LIBPATH | |
15734 ;; | |
15735 | |
15736 osf3* | osf4* | osf5*) | |
15737 version_type=osf | |
15738 need_lib_prefix=no | |
15739 need_version=no | |
15740 soname_spec='${libname}${release}${shared_ext}$major' | |
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15742 shlibpath_var=LD_LIBRARY_PATH | |
15743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15745 ;; | |
15746 | |
15747 solaris*) | |
15748 version_type=linux | |
15749 need_lib_prefix=no | |
15750 need_version=no | |
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15752 soname_spec='${libname}${release}${shared_ext}$major' | |
15753 shlibpath_var=LD_LIBRARY_PATH | |
15754 shlibpath_overrides_runpath=yes | |
15755 hardcode_into_libs=yes | |
15756 # ldd complains unless libraries are executable | |
15757 postinstall_cmds='chmod +x $lib' | |
15758 ;; | |
15759 | |
15760 sunos4*) | |
15761 version_type=sunos | |
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15764 shlibpath_var=LD_LIBRARY_PATH | |
15765 shlibpath_overrides_runpath=yes | |
15766 if test "$with_gnu_ld" = yes; then | |
15767 need_lib_prefix=no | |
15768 fi | |
15769 need_version=yes | |
15770 ;; | |
15771 | |
15772 sysv4 | sysv4.3*) | |
15773 version_type=linux | |
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15775 soname_spec='${libname}${release}${shared_ext}$major' | |
15776 shlibpath_var=LD_LIBRARY_PATH | |
15777 case $host_vendor in | |
15778 sni) | |
15779 shlibpath_overrides_runpath=no | |
15780 need_lib_prefix=no | |
15781 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
15782 runpath_var=LD_RUN_PATH | |
15783 ;; | |
15784 siemens) | |
15785 need_lib_prefix=no | |
15786 ;; | |
15787 motorola) | |
15788 need_lib_prefix=no | |
15789 need_version=no | |
15790 shlibpath_overrides_runpath=no | |
15791 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15792 ;; | |
15793 esac | |
15794 ;; | |
15795 | |
15796 sysv4*MP*) | |
15797 if test -d /usr/nec ;then | |
15798 version_type=linux | |
15799 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15800 soname_spec='$libname${shared_ext}.$major' | |
15801 shlibpath_var=LD_LIBRARY_PATH | |
15802 fi | |
15803 ;; | |
15804 | |
15805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15806 version_type=freebsd-elf | |
15807 need_lib_prefix=no | |
15808 need_version=no | |
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15810 soname_spec='${libname}${release}${shared_ext}$major' | |
15811 shlibpath_var=LD_LIBRARY_PATH | |
15812 hardcode_into_libs=yes | |
15813 if test "$with_gnu_ld" = yes; then | |
15814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15815 shlibpath_overrides_runpath=no | |
15816 else | |
15817 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15818 shlibpath_overrides_runpath=yes | |
15819 case $host_os in | |
15820 sco3.2v5*) | |
15821 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15822 ;; | |
15823 esac | |
15824 fi | |
15825 sys_lib_dlsearch_path_spec='/usr/lib' | |
15826 ;; | |
15827 | |
15828 uts4*) | |
15829 version_type=linux | |
15830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15831 soname_spec='${libname}${release}${shared_ext}$major' | |
15832 shlibpath_var=LD_LIBRARY_PATH | |
15833 ;; | |
15834 | |
15835 *) | |
15836 dynamic_linker=no | |
15837 ;; | |
15838 esac | |
15839 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
15840 echo "${ECHO_T}$dynamic_linker" >&6; } | |
15841 test "$dynamic_linker" = no && can_build_shared=no | |
15842 | |
15843 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15844 if test "$GCC" = yes; then | |
15845 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15846 fi | |
15847 | |
15848 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
15849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
15850 hardcode_action_F77= | |
15851 if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
15852 test -n "$runpath_var_F77" || \ | |
15853 test "X$hardcode_automatic_F77" = "Xyes" ; then | |
15854 | |
15855 # We can hardcode non-existant directories. | |
15856 if test "$hardcode_direct_F77" != no && | |
15857 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15858 # have to relink, otherwise we might link with an installed library | |
15859 # when we should be linking with a yet-to-be-installed one | |
15860 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
15861 test "$hardcode_minus_L_F77" != no; then | |
15862 # Linking always hardcodes the temporary library directory. | |
15863 hardcode_action_F77=relink | |
15864 else | |
15865 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15866 hardcode_action_F77=immediate | |
15867 fi | |
15868 else | |
15869 # We cannot hardcode anything, or else we can only hardcode existing | |
15870 # directories. | |
15871 hardcode_action_F77=unsupported | |
15872 fi | |
15873 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
15874 echo "${ECHO_T}$hardcode_action_F77" >&6; } | |
15875 | |
15876 if test "$hardcode_action_F77" = relink; then | |
15877 # Fast installation is not supported | |
15878 enable_fast_install=no | |
15879 elif test "$shlibpath_overrides_runpath" = yes || | |
15880 test "$enable_shared" = no; then | |
15881 # Fast installation is not necessary | |
15882 enable_fast_install=needless | |
15883 fi | |
15884 | |
15885 | |
15886 # The else clause should only fire when bootstrapping the | |
15887 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
15888 # with your package, and you will get complaints that there are | |
15889 # no rules to generate ltmain.sh. | |
15890 if test -f "$ltmain"; then | |
15891 # See if we are running on zsh, and set the options which allow our commands through | |
15892 # without removal of \ escapes. | |
15893 if test -n "${ZSH_VERSION+set}" ; then | |
15894 setopt NO_GLOB_SUBST | |
15895 fi | |
15896 # Now quote all the things that may contain metacharacters while being | |
15897 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
15898 # variables and quote the copies for generation of the libtool script. | |
15899 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
15900 SED SHELL STRIP \ | |
15901 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
15902 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
15903 deplibs_check_method reload_flag reload_cmds need_locks \ | |
15904 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
15905 lt_cv_sys_global_symbol_to_c_name_address \ | |
15906 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
15907 old_postinstall_cmds old_postuninstall_cmds \ | |
15908 compiler_F77 \ | |
15909 CC_F77 \ | |
15910 LD_F77 \ | |
15911 lt_prog_compiler_wl_F77 \ | |
15912 lt_prog_compiler_pic_F77 \ | |
15913 lt_prog_compiler_static_F77 \ | |
15914 lt_prog_compiler_no_builtin_flag_F77 \ | |
15915 export_dynamic_flag_spec_F77 \ | |
15916 thread_safe_flag_spec_F77 \ | |
15917 whole_archive_flag_spec_F77 \ | |
15918 enable_shared_with_static_runtimes_F77 \ | |
15919 old_archive_cmds_F77 \ | |
15920 old_archive_from_new_cmds_F77 \ | |
15921 predep_objects_F77 \ | |
15922 postdep_objects_F77 \ | |
15923 predeps_F77 \ | |
15924 postdeps_F77 \ | |
15925 compiler_lib_search_path_F77 \ | |
15926 archive_cmds_F77 \ | |
15927 archive_expsym_cmds_F77 \ | |
15928 postinstall_cmds_F77 \ | |
15929 postuninstall_cmds_F77 \ | |
15930 old_archive_from_expsyms_cmds_F77 \ | |
15931 allow_undefined_flag_F77 \ | |
15932 no_undefined_flag_F77 \ | |
15933 export_symbols_cmds_F77 \ | |
15934 hardcode_libdir_flag_spec_F77 \ | |
15935 hardcode_libdir_flag_spec_ld_F77 \ | |
15936 hardcode_libdir_separator_F77 \ | |
15937 hardcode_automatic_F77 \ | |
15938 module_cmds_F77 \ | |
15939 module_expsym_cmds_F77 \ | |
15940 lt_cv_prog_compiler_c_o_F77 \ | |
15941 exclude_expsyms_F77 \ | |
15942 include_expsyms_F77; do | |
15943 | |
15944 case $var in | |
15945 old_archive_cmds_F77 | \ | |
15946 old_archive_from_new_cmds_F77 | \ | |
15947 archive_cmds_F77 | \ | |
15948 archive_expsym_cmds_F77 | \ | |
15949 module_cmds_F77 | \ | |
15950 module_expsym_cmds_F77 | \ | |
15951 old_archive_from_expsyms_cmds_F77 | \ | |
15952 export_symbols_cmds_F77 | \ | |
15953 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15954 postinstall_cmds | postuninstall_cmds | \ | |
15955 old_postinstall_cmds | old_postuninstall_cmds | \ | |
15956 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15957 # Double-quote double-evaled strings. | |
15958 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15959 ;; | |
15960 *) | |
15961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
15962 ;; | |
15963 esac | |
15964 done | |
15965 | |
15966 case $lt_echo in | |
15967 *'\$0 --fallback-echo"') | |
15968 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
15969 ;; | |
15970 esac | |
15971 | |
15972 cfgfile="$ofile" | |
15973 | |
15974 cat <<__EOF__ >> "$cfgfile" | |
15975 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15976 | |
15977 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15978 | |
15979 # Shell to use when invoking shell scripts. | |
15980 SHELL=$lt_SHELL | |
15981 | |
15982 # Whether or not to build shared libraries. | |
15983 build_libtool_libs=$enable_shared | |
15984 | |
15985 # Whether or not to build static libraries. | |
15986 build_old_libs=$enable_static | |
15987 | |
15988 # Whether or not to add -lc for building shared libraries. | |
15989 build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
15990 | |
15991 # Whether or not to disallow shared libs when runtime libs are static | |
15992 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
15993 | |
15994 # Whether or not to optimize for fast installation. | |
15995 fast_install=$enable_fast_install | |
15996 | |
15997 # The host system. | |
15998 host_alias=$host_alias | |
15999 host=$host | |
16000 host_os=$host_os | |
16001 | |
16002 # The build system. | |
16003 build_alias=$build_alias | |
16004 build=$build | |
16005 build_os=$build_os | |
16006 | |
16007 # An echo program that does not interpret backslashes. | |
16008 echo=$lt_echo | |
16009 | |
16010 # The archiver. | |
16011 AR=$lt_AR | |
16012 AR_FLAGS=$lt_AR_FLAGS | |
16013 | |
16014 # A C compiler. | |
16015 LTCC=$lt_LTCC | |
16016 | |
16017 # LTCC compiler flags. | |
16018 LTCFLAGS=$lt_LTCFLAGS | |
16019 | |
16020 # A language-specific compiler. | |
16021 CC=$lt_compiler_F77 | |
16022 | |
16023 # Is the compiler the GNU C compiler? | |
16024 with_gcc=$GCC_F77 | |
16025 | |
16026 # An ERE matcher. | |
16027 EGREP=$lt_EGREP | |
16028 | |
16029 # The linker used to build libraries. | |
16030 LD=$lt_LD_F77 | |
16031 | |
16032 # Whether we need hard or soft links. | |
16033 LN_S=$lt_LN_S | |
16034 | |
16035 # A BSD-compatible nm program. | |
16036 NM=$lt_NM | |
16037 | |
16038 # A symbol stripping program | |
16039 STRIP=$lt_STRIP | |
16040 | |
16041 # Used to examine libraries when file_magic_cmd begins "file" | |
16042 MAGIC_CMD=$MAGIC_CMD | |
16043 | |
16044 # Used on cygwin: DLL creation program. | |
16045 DLLTOOL="$DLLTOOL" | |
16046 | |
16047 # Used on cygwin: object dumper. | |
16048 OBJDUMP="$OBJDUMP" | |
16049 | |
16050 # Used on cygwin: assembler. | |
16051 AS="$AS" | |
16052 | |
16053 # The name of the directory that contains temporary libtool files. | |
16054 objdir=$objdir | |
16055 | |
16056 # How to create reloadable object files. | |
16057 reload_flag=$lt_reload_flag | |
16058 reload_cmds=$lt_reload_cmds | |
16059 | |
16060 # How to pass a linker flag through the compiler. | |
16061 wl=$lt_lt_prog_compiler_wl_F77 | |
16062 | |
16063 # Object file suffix (normally "o"). | |
16064 objext="$ac_objext" | |
16065 | |
16066 # Old archive suffix (normally "a"). | |
16067 libext="$libext" | |
16068 | |
16069 # Shared library suffix (normally ".so"). | |
16070 shrext_cmds='$shrext_cmds' | |
16071 | |
16072 # Executable file suffix (normally ""). | |
16073 exeext="$exeext" | |
16074 | |
16075 # Additional compiler flags for building library objects. | |
16076 pic_flag=$lt_lt_prog_compiler_pic_F77 | |
16077 pic_mode=$pic_mode | |
16078 | |
16079 # What is the maximum length of a command? | |
16080 max_cmd_len=$lt_cv_sys_max_cmd_len | |
16081 | |
16082 # Does compiler simultaneously support -c and -o options? | |
16083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
16084 | |
16085 # Must we lock files when doing compilation? | |
16086 need_locks=$lt_need_locks | |
16087 | |
16088 # Do we need the lib prefix for modules? | |
16089 need_lib_prefix=$need_lib_prefix | |
16090 | |
16091 # Do we need a version for libraries? | |
16092 need_version=$need_version | |
16093 | |
16094 # Whether dlopen is supported. | |
16095 dlopen_support=$enable_dlopen | |
16096 | |
16097 # Whether dlopen of programs is supported. | |
16098 dlopen_self=$enable_dlopen_self | |
16099 | |
16100 # Whether dlopen of statically linked programs is supported. | |
16101 dlopen_self_static=$enable_dlopen_self_static | |
16102 | |
16103 # Compiler flag to prevent dynamic linking. | |
16104 link_static_flag=$lt_lt_prog_compiler_static_F77 | |
16105 | |
16106 # Compiler flag to turn off builtin functions. | |
16107 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
16108 | |
16109 # Compiler flag to allow reflexive dlopens. | |
16110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
16111 | |
16112 # Compiler flag to generate shared objects directly from archives. | |
16113 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
16114 | |
16115 # Compiler flag to generate thread-safe objects. | |
16116 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
16117 | |
16118 # Library versioning type. | |
16119 version_type=$version_type | |
16120 | |
16121 # Format of library name prefix. | |
16122 libname_spec=$lt_libname_spec | |
16123 | |
16124 # List of archive names. First name is the real one, the rest are links. | |
16125 # The last name is the one that the linker finds with -lNAME. | |
16126 library_names_spec=$lt_library_names_spec | |
16127 | |
16128 # The coded name of the library, if different from the real name. | |
16129 soname_spec=$lt_soname_spec | |
16130 | |
16131 # Commands used to build and install an old-style archive. | |
16132 RANLIB=$lt_RANLIB | |
16133 old_archive_cmds=$lt_old_archive_cmds_F77 | |
16134 old_postinstall_cmds=$lt_old_postinstall_cmds | |
16135 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
16136 | |
16137 # Create an old-style archive from a shared archive. | |
16138 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
16139 | |
16140 # Create a temporary old-style archive to link instead of a shared archive. | |
16141 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
16142 | |
16143 # Commands used to build and install a shared archive. | |
16144 archive_cmds=$lt_archive_cmds_F77 | |
16145 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
16146 postinstall_cmds=$lt_postinstall_cmds | |
16147 postuninstall_cmds=$lt_postuninstall_cmds | |
16148 | |
16149 # Commands used to build a loadable module (assumed same as above if empty) | |
16150 module_cmds=$lt_module_cmds_F77 | |
16151 module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
16152 | |
16153 # Commands to strip libraries. | |
16154 old_striplib=$lt_old_striplib | |
16155 striplib=$lt_striplib | |
16156 | |
16157 # Dependencies to place before the objects being linked to create a | |
16158 # shared library. | |
16159 predep_objects=$lt_predep_objects_F77 | |
16160 | |
16161 # Dependencies to place after the objects being linked to create a | |
16162 # shared library. | |
16163 postdep_objects=$lt_postdep_objects_F77 | |
16164 | |
16165 # Dependencies to place before the objects being linked to create a | |
16166 # shared library. | |
16167 predeps=$lt_predeps_F77 | |
16168 | |
16169 # Dependencies to place after the objects being linked to create a | |
16170 # shared library. | |
16171 postdeps=$lt_postdeps_F77 | |
16172 | |
16173 # The library search path used internally by the compiler when linking | |
16174 # a shared library. | |
16175 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
16176 | |
16177 # Method to check whether dependent libraries are shared objects. | |
16178 deplibs_check_method=$lt_deplibs_check_method | |
16179 | |
16180 # Command to use when deplibs_check_method == file_magic. | |
16181 file_magic_cmd=$lt_file_magic_cmd | |
16182 | |
16183 # Flag that allows shared libraries with undefined symbols to be built. | |
16184 allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
16185 | |
16186 # Flag that forces no undefined symbols. | |
16187 no_undefined_flag=$lt_no_undefined_flag_F77 | |
16188 | |
16189 # Commands used to finish a libtool library installation in a directory. | |
16190 finish_cmds=$lt_finish_cmds | |
16191 | |
16192 # Same as above, but a single script fragment to be evaled but not shown. | |
16193 finish_eval=$lt_finish_eval | |
16194 | |
16195 # Take the output of nm and produce a listing of raw symbols and C names. | |
16196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
16197 | |
16198 # Transform the output of nm in a proper C declaration | |
16199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
16200 | |
16201 # Transform the output of nm in a C name address pair | |
16202 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
16203 | |
16204 # This is the shared library runtime path variable. | |
16205 runpath_var=$runpath_var | |
16206 | |
16207 # This is the shared library path variable. | |
16208 shlibpath_var=$shlibpath_var | |
16209 | |
16210 # Is shlibpath searched before the hard-coded library search path? | |
16211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16212 | |
16213 # How to hardcode a shared library path into an executable. | |
16214 hardcode_action=$hardcode_action_F77 | |
16215 | |
16216 # Whether we should hardcode library paths into libraries. | |
16217 hardcode_into_libs=$hardcode_into_libs | |
16218 | |
16219 # Flag to hardcode \$libdir into a binary during linking. | |
16220 # This must work even if \$libdir does not exist. | |
16221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
16222 | |
16223 # If ld is used when linking, flag to hardcode \$libdir into | |
16224 # a binary during linking. This must work even if \$libdir does | |
16225 # not exist. | |
16226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
16227 | |
16228 # Whether we need a single -rpath flag with a separated argument. | |
16229 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
16230 | |
16231 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
16232 # resulting binary. | |
16233 hardcode_direct=$hardcode_direct_F77 | |
16234 | |
16235 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
16236 # resulting binary. | |
16237 hardcode_minus_L=$hardcode_minus_L_F77 | |
16238 | |
16239 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
16240 # the resulting binary. | |
16241 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
16242 | |
16243 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
16244 # and all subsequent libraries and executables linked against it. | |
16245 hardcode_automatic=$hardcode_automatic_F77 | |
16246 | |
16247 # Variables whose values should be saved in libtool wrapper scripts and | |
16248 # restored at relink time. | |
16249 variables_saved_for_relink="$variables_saved_for_relink" | |
16250 | |
16251 # Whether libtool must link a program against all its dependency libraries. | |
16252 link_all_deplibs=$link_all_deplibs_F77 | |
16253 | |
16254 # Compile-time system search path for libraries | |
16255 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16256 | |
16257 # Run-time system search path for libraries | |
16258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16259 | |
16260 # Fix the shell variable \$srcfile for the compiler. | |
16261 fix_srcfile_path="$fix_srcfile_path_F77" | |
16262 | |
16263 # Set to yes if exported symbols are required. | |
16264 always_export_symbols=$always_export_symbols_F77 | |
16265 | |
16266 # The commands to list exported symbols. | |
16267 export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
16268 | |
16269 # The commands to extract the exported symbol list from a shared archive. | |
16270 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16271 | |
16272 # Symbols that should not be listed in the preloaded symbols. | |
16273 exclude_expsyms=$lt_exclude_expsyms_F77 | |
16274 | |
16275 # Symbols that must always be exported. | |
16276 include_expsyms=$lt_include_expsyms_F77 | |
16277 | |
16278 # ### END LIBTOOL TAG CONFIG: $tagname | |
16279 | |
16280 __EOF__ | |
16281 | |
16282 | |
16283 else | |
16284 # If there is no Makefile yet, we rely on a make rule to execute | |
16285 # `config.status --recheck' to rerun these tests and create the | |
16286 # libtool script then. | |
16287 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
16288 if test -f "$ltmain_in"; then | |
16289 test -f Makefile && make "$ltmain" | |
16290 fi | |
16291 fi | |
16292 | |
16293 | |
16294 ac_ext=c | |
16295 ac_cpp='$CPP $CPPFLAGS' | |
16296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16298 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16299 | |
16300 CC="$lt_save_CC" | |
16301 | |
16302 else | |
16303 tagname="" | |
16304 fi | |
16305 ;; | |
16306 | |
16307 GCJ) | |
16308 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
16309 | |
16310 | |
16311 # Source file extension for Java test sources. | |
16312 ac_ext=java | |
16313 | |
16314 # Object file extension for compiled Java test sources. | |
16315 objext=o | |
16316 objext_GCJ=$objext | |
16317 | |
16318 # Code to be used in simple compile tests | |
16319 lt_simple_compile_test_code="class foo {}\n" | |
16320 | |
16321 # Code to be used in simple link tests | |
16322 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | |
16323 | |
16324 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
16325 | |
16326 # If no C compiler was specified, use CC. | |
16327 LTCC=${LTCC-"$CC"} | |
16328 | |
16329 # If no C compiler flags were specified, use CFLAGS. | |
16330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
16331 | |
16332 # Allow CC to be a program name with arguments. | |
16333 compiler=$CC | |
16334 | |
16335 | |
16336 # save warnings/boilerplate of simple test code | |
16337 ac_outfile=conftest.$ac_objext | |
16338 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
16339 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
16340 _lt_compiler_boilerplate=`cat conftest.err` | |
16341 $rm conftest* | |
16342 | |
16343 ac_outfile=conftest.$ac_objext | |
16344 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
16345 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
16346 _lt_linker_boilerplate=`cat conftest.err` | |
16347 $rm conftest* | |
16348 | |
16349 | |
16350 # Allow CC to be a program name with arguments. | |
16351 lt_save_CC="$CC" | |
16352 CC=${GCJ-"gcj"} | |
16353 compiler=$CC | |
16354 compiler_GCJ=$CC | |
16355 for cc_temp in $compiler""; do | |
16356 case $cc_temp in | |
16357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16359 \-*) ;; | |
16360 *) break;; | |
16361 esac | |
16362 done | |
16363 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
16364 | |
16365 | |
16366 # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
16367 archive_cmds_need_lc_GCJ=no | |
16368 | |
16369 old_archive_cmds_GCJ=$old_archive_cmds | |
16370 | |
16371 | |
16372 lt_prog_compiler_no_builtin_flag_GCJ= | |
16373 | |
16374 if test "$GCC" = yes; then | |
16375 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
16376 | |
16377 | |
16378 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
16379 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
16380 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
16381 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16382 else | |
16383 lt_cv_prog_compiler_rtti_exceptions=no | |
16384 ac_outfile=conftest.$ac_objext | |
16385 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16386 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
16387 # Insert the option either (1) after the last *FLAGS variable, or | |
16388 # (2) before a word containing "conftest.", or (3) at the end. | |
16389 # Note that $ac_compile itself does not contain backslashes and begins | |
16390 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16391 # The option is referenced via a variable to avoid confusing sed. | |
16392 lt_compile=`echo "$ac_compile" | $SED \ | |
16393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16395 -e 's:$: $lt_compiler_flag:'` | |
16396 (eval echo "\"\$as_me:16396: $lt_compile\"" >&5) | |
16397 (eval "$lt_compile" 2>conftest.err) | |
16398 ac_status=$? | |
16399 cat conftest.err >&5 | |
16400 echo "$as_me:16400: \$? = $ac_status" >&5 | |
16401 if (exit $ac_status) && test -s "$ac_outfile"; then | |
16402 # The compiler can only warn and ignore the option if not recognized | |
16403 # So say no if there are warnings other than the usual output. | |
16404 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
16405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16406 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16407 lt_cv_prog_compiler_rtti_exceptions=yes | |
16408 fi | |
16409 fi | |
16410 $rm conftest* | |
16411 | |
16412 fi | |
16413 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
16414 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
16415 | |
16416 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
16417 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
16418 else | |
16419 : | |
16420 fi | |
16421 | |
16422 fi | |
16423 | |
16424 lt_prog_compiler_wl_GCJ= | |
16425 lt_prog_compiler_pic_GCJ= | |
16426 lt_prog_compiler_static_GCJ= | |
16427 | |
16428 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
16429 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
16430 | |
16431 if test "$GCC" = yes; then | |
16432 lt_prog_compiler_wl_GCJ='-Wl,' | |
16433 lt_prog_compiler_static_GCJ='-static' | |
16434 | |
16435 case $host_os in | |
16436 aix*) | |
16437 # All AIX code is PIC. | |
16438 if test "$host_cpu" = ia64; then | |
16439 # AIX 5 now supports IA64 processor | |
16440 lt_prog_compiler_static_GCJ='-Bstatic' | |
16441 fi | |
16442 ;; | |
16443 | |
16444 amigaos*) | |
16445 # FIXME: we need at least 68020 code to build shared libraries, but | |
16446 # adding the `-m68020' flag to GCC prevents building anything better, | |
16447 # like `-m68040'. | |
16448 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
16449 ;; | |
16450 | |
16451 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
16452 # PIC is the default for these OSes. | |
16453 ;; | |
16454 | |
16455 mingw* | pw32* | os2*) | |
16456 # This hack is so that the source file can tell whether it is being | |
16457 # built for inclusion in a dll (and should export symbols for example). | |
16458 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
16459 ;; | |
16460 | |
16461 darwin* | rhapsody*) | |
16462 # PIC is the default on this platform | |
16463 # Common symbols not allowed in MH_DYLIB files | |
16464 lt_prog_compiler_pic_GCJ='-fno-common' | |
16465 ;; | |
16466 | |
16467 interix3*) | |
16468 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
16469 # Instead, we relocate shared libraries at runtime. | |
16470 ;; | |
16471 | |
16472 msdosdjgpp*) | |
16473 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
16474 # on systems that don't support them. | |
16475 lt_prog_compiler_can_build_shared_GCJ=no | |
16476 enable_shared=no | |
16477 ;; | |
16478 | |
16479 sysv4*MP*) | |
16480 if test -d /usr/nec; then | |
16481 lt_prog_compiler_pic_GCJ=-Kconform_pic | |
16482 fi | |
16483 ;; | |
16484 | |
16485 hpux*) | |
16486 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16487 # not for PA HP-UX. | |
16488 case $host_cpu in | |
16489 hppa*64*|ia64*) | |
16490 # +Z the default | |
16491 ;; | |
16492 *) | |
16493 lt_prog_compiler_pic_GCJ='-fPIC' | |
16494 ;; | |
16495 esac | |
16496 ;; | |
16497 | |
16498 *) | |
16499 lt_prog_compiler_pic_GCJ='-fPIC' | |
16500 ;; | |
16501 esac | |
16502 else | |
16503 # PORTME Check for flag to pass linker flags through the system compiler. | |
16504 case $host_os in | |
16505 aix*) | |
16506 lt_prog_compiler_wl_GCJ='-Wl,' | |
16507 if test "$host_cpu" = ia64; then | |
16508 # AIX 5 now supports IA64 processor | |
16509 lt_prog_compiler_static_GCJ='-Bstatic' | |
16510 else | |
16511 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
16512 fi | |
16513 ;; | |
16514 darwin*) | |
16515 # PIC is the default on this platform | |
16516 # Common symbols not allowed in MH_DYLIB files | |
16517 case $cc_basename in | |
16518 xlc*) | |
16519 lt_prog_compiler_pic_GCJ='-qnocommon' | |
16520 lt_prog_compiler_wl_GCJ='-Wl,' | |
16521 ;; | |
16522 esac | |
16523 ;; | |
16524 | |
16525 mingw* | pw32* | os2*) | |
16526 # This hack is so that the source file can tell whether it is being | |
16527 # built for inclusion in a dll (and should export symbols for example). | |
16528 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
16529 ;; | |
16530 | |
16531 hpux9* | hpux10* | hpux11*) | |
16532 lt_prog_compiler_wl_GCJ='-Wl,' | |
16533 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16534 # not for PA HP-UX. | |
16535 case $host_cpu in | |
16536 hppa*64*|ia64*) | |
16537 # +Z the default | |
16538 ;; | |
16539 *) | |
16540 lt_prog_compiler_pic_GCJ='+Z' | |
16541 ;; | |
16542 esac | |
16543 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
16544 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
16545 ;; | |
16546 | |
16547 irix5* | irix6* | nonstopux*) | |
16548 lt_prog_compiler_wl_GCJ='-Wl,' | |
16549 # PIC (with -KPIC) is the default. | |
16550 lt_prog_compiler_static_GCJ='-non_shared' | |
16551 ;; | |
16552 | |
16553 newsos6) | |
16554 lt_prog_compiler_pic_GCJ='-KPIC' | |
16555 lt_prog_compiler_static_GCJ='-Bstatic' | |
16556 ;; | |
16557 | |
16558 linux*) | |
16559 case $cc_basename in | |
16560 icc* | ecc*) | |
16561 lt_prog_compiler_wl_GCJ='-Wl,' | |
16562 lt_prog_compiler_pic_GCJ='-KPIC' | |
16563 lt_prog_compiler_static_GCJ='-static' | |
16564 ;; | |
16565 pgcc* | pgf77* | pgf90* | pgf95*) | |
16566 # Portland Group compilers (*not* the Pentium gcc compiler, | |
16567 # which looks to be a dead project) | |
16568 lt_prog_compiler_wl_GCJ='-Wl,' | |
16569 lt_prog_compiler_pic_GCJ='-fpic' | |
16570 lt_prog_compiler_static_GCJ='-Bstatic' | |
16571 ;; | |
16572 ccc*) | |
16573 lt_prog_compiler_wl_GCJ='-Wl,' | |
16574 # All Alpha code is PIC. | |
16575 lt_prog_compiler_static_GCJ='-non_shared' | |
16576 ;; | |
16577 esac | |
16578 ;; | |
16579 | |
16580 osf3* | osf4* | osf5*) | |
16581 lt_prog_compiler_wl_GCJ='-Wl,' | |
16582 # All OSF/1 code is PIC. | |
16583 lt_prog_compiler_static_GCJ='-non_shared' | |
16584 ;; | |
16585 | |
16586 solaris*) | |
16587 lt_prog_compiler_pic_GCJ='-KPIC' | |
16588 lt_prog_compiler_static_GCJ='-Bstatic' | |
16589 case $cc_basename in | |
16590 f77* | f90* | f95*) | |
16591 lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
16592 *) | |
16593 lt_prog_compiler_wl_GCJ='-Wl,';; | |
16594 esac | |
16595 ;; | |
16596 | |
16597 sunos4*) | |
16598 lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
16599 lt_prog_compiler_pic_GCJ='-PIC' | |
16600 lt_prog_compiler_static_GCJ='-Bstatic' | |
16601 ;; | |
16602 | |
16603 sysv4 | sysv4.2uw2* | sysv4.3*) | |
16604 lt_prog_compiler_wl_GCJ='-Wl,' | |
16605 lt_prog_compiler_pic_GCJ='-KPIC' | |
16606 lt_prog_compiler_static_GCJ='-Bstatic' | |
16607 ;; | |
16608 | |
16609 sysv4*MP*) | |
16610 if test -d /usr/nec ;then | |
16611 lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
16612 lt_prog_compiler_static_GCJ='-Bstatic' | |
16613 fi | |
16614 ;; | |
16615 | |
16616 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
16617 lt_prog_compiler_wl_GCJ='-Wl,' | |
16618 lt_prog_compiler_pic_GCJ='-KPIC' | |
16619 lt_prog_compiler_static_GCJ='-Bstatic' | |
16620 ;; | |
16621 | |
16622 unicos*) | |
16623 lt_prog_compiler_wl_GCJ='-Wl,' | |
16624 lt_prog_compiler_can_build_shared_GCJ=no | |
16625 ;; | |
16626 | |
16627 uts4*) | |
16628 lt_prog_compiler_pic_GCJ='-pic' | |
16629 lt_prog_compiler_static_GCJ='-Bstatic' | |
16630 ;; | |
16631 | |
16632 *) | |
16633 lt_prog_compiler_can_build_shared_GCJ=no | |
16634 ;; | |
16635 esac | |
16636 fi | |
16637 | |
16638 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
16639 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } | |
16640 | |
16641 # | |
16642 # Check to make sure the PIC flag actually works. | |
16643 # | |
16644 if test -n "$lt_prog_compiler_pic_GCJ"; then | |
16645 | |
16646 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
16647 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } | |
16648 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
16649 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16650 else | |
16651 lt_prog_compiler_pic_works_GCJ=no | |
16652 ac_outfile=conftest.$ac_objext | |
16653 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16654 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
16655 # Insert the option either (1) after the last *FLAGS variable, or | |
16656 # (2) before a word containing "conftest.", or (3) at the end. | |
16657 # Note that $ac_compile itself does not contain backslashes and begins | |
16658 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16659 # The option is referenced via a variable to avoid confusing sed. | |
16660 lt_compile=`echo "$ac_compile" | $SED \ | |
16661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16663 -e 's:$: $lt_compiler_flag:'` | |
16664 (eval echo "\"\$as_me:16664: $lt_compile\"" >&5) | |
16665 (eval "$lt_compile" 2>conftest.err) | |
16666 ac_status=$? | |
16667 cat conftest.err >&5 | |
16668 echo "$as_me:16668: \$? = $ac_status" >&5 | |
16669 if (exit $ac_status) && test -s "$ac_outfile"; then | |
16670 # The compiler can only warn and ignore the option if not recognized | |
16671 # So say no if there are warnings other than the usual output. | |
16672 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
16673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
16675 lt_prog_compiler_pic_works_GCJ=yes | |
16676 fi | |
16677 fi | |
16678 $rm conftest* | |
16679 | |
16680 fi | |
16681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
16682 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } | |
16683 | |
16684 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
16685 case $lt_prog_compiler_pic_GCJ in | |
16686 "" | " "*) ;; | |
16687 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
16688 esac | |
16689 else | |
16690 lt_prog_compiler_pic_GCJ= | |
16691 lt_prog_compiler_can_build_shared_GCJ=no | |
16692 fi | |
16693 | |
16694 fi | |
16695 case $host_os in | |
16696 # For platforms which do not support PIC, -DPIC is meaningless: | |
16697 *djgpp*) | |
16698 lt_prog_compiler_pic_GCJ= | |
16699 ;; | |
16700 *) | |
16701 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
16702 ;; | |
16703 esac | |
16704 | |
16705 # | |
16706 # Check to make sure the static flag actually works. | |
16707 # | |
16708 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | |
16709 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
16710 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
16711 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | |
16712 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16713 else | |
16714 lt_prog_compiler_static_works_GCJ=no | |
16715 save_LDFLAGS="$LDFLAGS" | |
16716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
16717 printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
16718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
16719 # The linker can only warn and ignore the option if not recognized | |
16720 # So say no if there are warnings | |
16721 if test -s conftest.err; then | |
16722 # Append any errors to the config.log. | |
16723 cat conftest.err 1>&5 | |
16724 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
16725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16726 if diff conftest.exp conftest.er2 >/dev/null; then | |
16727 lt_prog_compiler_static_works_GCJ=yes | |
16728 fi | |
16729 else | |
16730 lt_prog_compiler_static_works_GCJ=yes | |
16731 fi | |
16732 fi | |
16733 $rm conftest* | |
16734 LDFLAGS="$save_LDFLAGS" | |
16735 | |
16736 fi | |
16737 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | |
16738 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } | |
16739 | |
16740 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | |
16741 : | |
16742 else | |
16743 lt_prog_compiler_static_GCJ= | |
16744 fi | |
16745 | |
16746 | |
16747 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
16748 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
16749 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
16750 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16751 else | |
16752 lt_cv_prog_compiler_c_o_GCJ=no | |
16753 $rm -r conftest 2>/dev/null | |
16754 mkdir conftest | |
16755 cd conftest | |
16756 mkdir out | |
16757 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16758 | |
16759 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16760 # Insert the option either (1) after the last *FLAGS variable, or | |
16761 # (2) before a word containing "conftest.", or (3) at the end. | |
16762 # Note that $ac_compile itself does not contain backslashes and begins | |
16763 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16764 lt_compile=`echo "$ac_compile" | $SED \ | |
16765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16767 -e 's:$: $lt_compiler_flag:'` | |
16768 (eval echo "\"\$as_me:16768: $lt_compile\"" >&5) | |
16769 (eval "$lt_compile" 2>out/conftest.err) | |
16770 ac_status=$? | |
16771 cat out/conftest.err >&5 | |
16772 echo "$as_me:16772: \$? = $ac_status" >&5 | |
16773 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
16774 then | |
16775 # The compiler can only warn and ignore the option if not recognized | |
16776 # So say no if there are warnings | |
16777 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
16778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
16779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16780 lt_cv_prog_compiler_c_o_GCJ=yes | |
16781 fi | |
16782 fi | |
16783 chmod u+w . 2>&5 | |
16784 $rm conftest* | |
16785 # SGI C++ compiler will create directory out/ii_files/ for | |
16786 # template instantiation | |
16787 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
16788 $rm out/* && rmdir out | |
16789 cd .. | |
16790 rmdir conftest | |
16791 $rm conftest* | |
16792 | |
16793 fi | |
16794 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
16795 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } | |
16796 | |
16797 | |
16798 hard_links="nottested" | |
16799 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
16800 # do not overwrite the value of need_locks provided by the user | |
16801 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
16802 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
16803 hard_links=yes | |
16804 $rm conftest* | |
16805 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16806 touch conftest.a | |
16807 ln conftest.a conftest.b 2>&5 || hard_links=no | |
16808 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16809 { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
16810 echo "${ECHO_T}$hard_links" >&6; } | |
16811 if test "$hard_links" = no; then | |
16812 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
16813 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
16814 need_locks=warn | |
16815 fi | |
16816 else | |
16817 need_locks=no | |
16818 fi | |
16819 | |
16820 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
16821 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
16822 | |
16823 runpath_var= | |
16824 allow_undefined_flag_GCJ= | |
16825 enable_shared_with_static_runtimes_GCJ=no | |
16826 archive_cmds_GCJ= | |
16827 archive_expsym_cmds_GCJ= | |
16828 old_archive_From_new_cmds_GCJ= | |
16829 old_archive_from_expsyms_cmds_GCJ= | |
16830 export_dynamic_flag_spec_GCJ= | |
16831 whole_archive_flag_spec_GCJ= | |
16832 thread_safe_flag_spec_GCJ= | |
16833 hardcode_libdir_flag_spec_GCJ= | |
16834 hardcode_libdir_flag_spec_ld_GCJ= | |
16835 hardcode_libdir_separator_GCJ= | |
16836 hardcode_direct_GCJ=no | |
16837 hardcode_minus_L_GCJ=no | |
16838 hardcode_shlibpath_var_GCJ=unsupported | |
16839 link_all_deplibs_GCJ=unknown | |
16840 hardcode_automatic_GCJ=no | |
16841 module_cmds_GCJ= | |
16842 module_expsym_cmds_GCJ= | |
16843 always_export_symbols_GCJ=no | |
16844 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16845 # include_expsyms should be a list of space-separated symbols to be *always* | |
16846 # included in the symbol list | |
16847 include_expsyms_GCJ= | |
16848 # exclude_expsyms can be an extended regexp of symbols to exclude | |
16849 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16850 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16851 # as well as any symbol that contains `d'. | |
16852 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
16853 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
16854 # platforms (ab)use it in PIC code, but their linkers get confused if | |
16855 # the symbol is explicitly referenced. Since portable code cannot | |
16856 # rely on this symbol name, it's probably fine to never include it in | |
16857 # preloaded symbol tables. | |
16858 extract_expsyms_cmds= | |
16859 # Just being paranoid about ensuring that cc_basename is set. | |
16860 for cc_temp in $compiler""; do | |
16861 case $cc_temp in | |
16862 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16863 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16864 \-*) ;; | |
16865 *) break;; | |
16866 esac | |
16867 done | |
16868 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
16869 | |
16870 case $host_os in | |
16871 cygwin* | mingw* | pw32*) | |
16872 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16873 # When not using gcc, we currently assume that we are using | |
16874 # Microsoft Visual C++. | |
16875 if test "$GCC" != yes; then | |
16876 with_gnu_ld=no | |
16877 fi | |
16878 ;; | |
16879 interix*) | |
16880 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
16881 with_gnu_ld=yes | |
16882 ;; | |
16883 openbsd*) | |
16884 with_gnu_ld=no | |
16885 ;; | |
16886 esac | |
16887 | |
16888 ld_shlibs_GCJ=yes | |
16889 if test "$with_gnu_ld" = yes; then | |
16890 # If archive_cmds runs LD, not CC, wlarc should be empty | |
16891 wlarc='${wl}' | |
16892 | |
16893 # Set some defaults for GNU ld with shared library support. These | |
16894 # are reset later if shared libraries are not supported. Putting them | |
16895 # here allows them to be overridden if necessary. | |
16896 runpath_var=LD_RUN_PATH | |
16897 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
16898 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
16899 # ancient GNU ld didn't support --whole-archive et. al. | |
16900 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
16901 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16902 else | |
16903 whole_archive_flag_spec_GCJ= | |
16904 fi | |
16905 supports_anon_versioning=no | |
16906 case `$LD -v 2>/dev/null` in | |
16907 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
16908 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
16909 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
16910 *\ 2.11.*) ;; # other 2.11 versions | |
16911 *) supports_anon_versioning=yes ;; | |
16912 esac | |
16913 | |
16914 # See if GNU ld supports shared libraries. | |
16915 case $host_os in | |
16916 aix3* | aix4* | aix5*) | |
16917 # On AIX/PPC, the GNU linker is very broken | |
16918 if test "$host_cpu" != ia64; then | |
16919 ld_shlibs_GCJ=no | |
16920 cat <<EOF 1>&2 | |
16921 | |
16922 *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16923 *** to be unable to reliably create shared libraries on AIX. | |
16924 *** Therefore, libtool is disabling shared libraries support. If you | |
16925 *** really care for shared libraries, you may want to modify your PATH | |
16926 *** so that a non-GNU linker is found, and then restart. | |
16927 | |
16928 EOF | |
16929 fi | |
16930 ;; | |
16931 | |
16932 amigaos*) | |
16933 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)' | |
16934 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16935 hardcode_minus_L_GCJ=yes | |
16936 | |
16937 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16938 # that the semantics of dynamic libraries on AmigaOS, at least up | |
16939 # to version 4, is to share data among multiple programs linked | |
16940 # with the same dynamic library. Since this doesn't match the | |
16941 # behavior of shared libraries on other platforms, we can't use | |
16942 # them. | |
16943 ld_shlibs_GCJ=no | |
16944 ;; | |
16945 | |
16946 beos*) | |
16947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16948 allow_undefined_flag_GCJ=unsupported | |
16949 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16950 # support --undefined. This deserves some investigation. FIXME | |
16951 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16952 else | |
16953 ld_shlibs_GCJ=no | |
16954 fi | |
16955 ;; | |
16956 | |
16957 cygwin* | mingw* | pw32*) | |
16958 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
16959 # as there is no search path for DLLs. | |
16960 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16961 allow_undefined_flag_GCJ=unsupported | |
16962 always_export_symbols_GCJ=no | |
16963 enable_shared_with_static_runtimes_GCJ=yes | |
16964 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
16965 | |
16966 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
16967 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16968 # If the export-symbols file already is a .def file (1st line | |
16969 # is EXPORTS), use it as is; otherwise, prepend... | |
16970 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
16971 cp $export_symbols $output_objdir/$soname.def; | |
16972 else | |
16973 echo EXPORTS > $output_objdir/$soname.def; | |
16974 cat $export_symbols >> $output_objdir/$soname.def; | |
16975 fi~ | |
16976 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16977 else | |
16978 ld_shlibs_GCJ=no | |
16979 fi | |
16980 ;; | |
16981 | |
16982 interix3*) | |
16983 hardcode_direct_GCJ=no | |
16984 hardcode_shlibpath_var_GCJ=no | |
16985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16986 export_dynamic_flag_spec_GCJ='${wl}-E' | |
16987 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
16988 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
16989 # default) and relocated if they conflict, which is a slow very memory | |
16990 # consuming and fragmenting process. To avoid this, we pick a random, | |
16991 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
16992 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
16993 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' | |
16994 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' | |
16995 ;; | |
16996 | |
16997 linux*) | |
16998 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16999 tmp_addflag= | |
17000 case $cc_basename,$host_cpu in | |
17001 pgcc*) # Portland Group C compiler | |
17002 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' | |
17003 tmp_addflag=' $pic_flag' | |
17004 ;; | |
17005 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
17006 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' | |
17007 tmp_addflag=' $pic_flag -Mnomain' ;; | |
17008 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
17009 tmp_addflag=' -i_dynamic' ;; | |
17010 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
17011 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
17012 ifc* | ifort*) # Intel Fortran compiler | |
17013 tmp_addflag=' -nofor_main' ;; | |
17014 esac | |
17015 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17016 | |
17017 if test $supports_anon_versioning = yes; then | |
17018 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
17019 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
17020 $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
17021 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
17022 fi | |
17023 else | |
17024 ld_shlibs_GCJ=no | |
17025 fi | |
17026 ;; | |
17027 | |
17028 netbsd*) | |
17029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17030 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
17031 wlarc= | |
17032 else | |
17033 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17034 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
17035 fi | |
17036 ;; | |
17037 | |
17038 solaris*) | |
17039 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
17040 ld_shlibs_GCJ=no | |
17041 cat <<EOF 1>&2 | |
17042 | |
17043 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
17044 *** create shared libraries on Solaris systems. Therefore, libtool | |
17045 *** is disabling shared libraries support. We urge you to upgrade GNU | |
17046 *** binutils to release 2.9.1 or newer. Another option is to modify | |
17047 *** your PATH or compiler configuration so that the native linker is | |
17048 *** used, and then restart. | |
17049 | |
17050 EOF | |
17051 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
17052 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17053 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
17054 else | |
17055 ld_shlibs_GCJ=no | |
17056 fi | |
17057 ;; | |
17058 | |
17059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
17060 case `$LD -v 2>&1` in | |
17061 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
17062 ld_shlibs_GCJ=no | |
17063 cat <<_LT_EOF 1>&2 | |
17064 | |
17065 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
17066 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
17067 *** is disabling shared libraries support. We urge you to upgrade GNU | |
17068 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
17069 *** your PATH or compiler configuration so that the native linker is | |
17070 *** used, and then restart. | |
17071 | |
17072 _LT_EOF | |
17073 ;; | |
17074 *) | |
17075 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
17076 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
17077 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
17078 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
17079 else | |
17080 ld_shlibs_GCJ=no | |
17081 fi | |
17082 ;; | |
17083 esac | |
17084 ;; | |
17085 | |
17086 sunos4*) | |
17087 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17088 wlarc= | |
17089 hardcode_direct_GCJ=yes | |
17090 hardcode_shlibpath_var_GCJ=no | |
17091 ;; | |
17092 | |
17093 *) | |
17094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
17095 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
17096 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
17097 else | |
17098 ld_shlibs_GCJ=no | |
17099 fi | |
17100 ;; | |
17101 esac | |
17102 | |
17103 if test "$ld_shlibs_GCJ" = no; then | |
17104 runpath_var= | |
17105 hardcode_libdir_flag_spec_GCJ= | |
17106 export_dynamic_flag_spec_GCJ= | |
17107 whole_archive_flag_spec_GCJ= | |
17108 fi | |
17109 else | |
17110 # PORTME fill in a description of your system's linker (not GNU ld) | |
17111 case $host_os in | |
17112 aix3*) | |
17113 allow_undefined_flag_GCJ=unsupported | |
17114 always_export_symbols_GCJ=yes | |
17115 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
17116 # Note: this linker hardcodes the directories in LIBPATH if there | |
17117 # are no directories specified by -L. | |
17118 hardcode_minus_L_GCJ=yes | |
17119 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
17120 # Neither direct hardcoding nor static linking is supported with a | |
17121 # broken collect2. | |
17122 hardcode_direct_GCJ=unsupported | |
17123 fi | |
17124 ;; | |
17125 | |
17126 aix4* | aix5*) | |
17127 if test "$host_cpu" = ia64; then | |
17128 # On IA64, the linker does run time linking by default, so we don't | |
17129 # have to do anything special. | |
17130 aix_use_runtimelinking=no | |
17131 exp_sym_flag='-Bexport' | |
17132 no_entry_flag="" | |
17133 else | |
17134 # If we're using GNU nm, then we don't want the "-C" option. | |
17135 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
17136 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
17137 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
17138 else | |
17139 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
17140 fi | |
17141 aix_use_runtimelinking=no | |
17142 | |
17143 # Test if we are trying to use run time linking or normal | |
17144 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
17145 # need to do runtime linking. | |
17146 case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
17147 for ld_flag in $LDFLAGS; do | |
17148 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
17149 aix_use_runtimelinking=yes | |
17150 break | |
17151 fi | |
17152 done | |
17153 ;; | |
17154 esac | |
17155 | |
17156 exp_sym_flag='-bexport' | |
17157 no_entry_flag='-bnoentry' | |
17158 fi | |
17159 | |
17160 # When large executables or shared objects are built, AIX ld can | |
17161 # have problems creating the table of contents. If linking a library | |
17162 # or program results in "error TOC overflow" add -mminimal-toc to | |
17163 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
17164 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
17165 | |
17166 archive_cmds_GCJ='' | |
17167 hardcode_direct_GCJ=yes | |
17168 hardcode_libdir_separator_GCJ=':' | |
17169 link_all_deplibs_GCJ=yes | |
17170 | |
17171 if test "$GCC" = yes; then | |
17172 case $host_os in aix4.[012]|aix4.[012].*) | |
17173 # We only want to do this on AIX 4.2 and lower, the check | |
17174 # below for broken collect2 doesn't work under 4.3+ | |
17175 collect2name=`${CC} -print-prog-name=collect2` | |
17176 if test -f "$collect2name" && \ | |
17177 strings "$collect2name" | grep resolve_lib_name >/dev/null | |
17178 then | |
17179 # We have reworked collect2 | |
17180 hardcode_direct_GCJ=yes | |
17181 else | |
17182 # We have old collect2 | |
17183 hardcode_direct_GCJ=unsupported | |
17184 # It fails to find uninstalled libraries when the uninstalled | |
17185 # path is not listed in the libpath. Setting hardcode_minus_L | |
17186 # to unsupported forces relinking | |
17187 hardcode_minus_L_GCJ=yes | |
17188 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17189 hardcode_libdir_separator_GCJ= | |
17190 fi | |
17191 ;; | |
17192 esac | |
17193 shared_flag='-shared' | |
17194 if test "$aix_use_runtimelinking" = yes; then | |
17195 shared_flag="$shared_flag "'${wl}-G' | |
17196 fi | |
17197 else | |
17198 # not using gcc | |
17199 if test "$host_cpu" = ia64; then | |
17200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
17201 # chokes on -Wl,-G. The following line is correct: | |
17202 shared_flag='-G' | |
17203 else | |
17204 if test "$aix_use_runtimelinking" = yes; then | |
17205 shared_flag='${wl}-G' | |
17206 else | |
17207 shared_flag='${wl}-bM:SRE' | |
17208 fi | |
17209 fi | |
17210 fi | |
17211 | |
17212 # It seems that -bexpall does not export symbols beginning with | |
17213 # underscore (_), so it is better to generate a list of symbols to export. | |
17214 always_export_symbols_GCJ=yes | |
17215 if test "$aix_use_runtimelinking" = yes; then | |
17216 # Warning - without using the other runtime loading flags (-brtl), | |
17217 # -berok will link without error, but may produce a broken library. | |
17218 allow_undefined_flag_GCJ='-berok' | |
17219 # Determine the default libpath from the value encoded in an empty executable. | |
17220 cat >conftest.$ac_ext <<_ACEOF | |
17221 /* confdefs.h. */ | |
17222 _ACEOF | |
17223 cat confdefs.h >>conftest.$ac_ext | |
17224 cat >>conftest.$ac_ext <<_ACEOF | |
17225 /* end confdefs.h. */ | |
17226 | |
17227 int | |
17228 main () | |
17229 { | |
17230 | |
17231 ; | |
17232 return 0; | |
17233 } | |
17234 _ACEOF | |
17235 rm -f conftest.$ac_objext conftest$ac_exeext | |
17236 if { (ac_try="$ac_link" | |
17237 case "(($ac_try" in | |
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17239 *) ac_try_echo=$ac_try;; | |
17240 esac | |
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17242 (eval "$ac_link") 2>conftest.er1 | |
17243 ac_status=$? | |
17244 grep -v '^ *+' conftest.er1 >conftest.err | |
17245 rm -f conftest.er1 | |
17246 cat conftest.err >&5 | |
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17248 (exit $ac_status); } && | |
17249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17250 { (case "(($ac_try" in | |
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17252 *) ac_try_echo=$ac_try;; | |
17253 esac | |
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17255 (eval "$ac_try") 2>&5 | |
17256 ac_status=$? | |
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17258 (exit $ac_status); }; } && | |
17259 { ac_try='test -s conftest$ac_exeext' | |
17260 { (case "(($ac_try" in | |
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17262 *) ac_try_echo=$ac_try;; | |
17263 esac | |
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17265 (eval "$ac_try") 2>&5 | |
17266 ac_status=$? | |
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17268 (exit $ac_status); }; }; then | |
17269 | |
17270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
17271 }'` | |
17272 # Check for a 64-bit object if we didn't find anything. | |
17273 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; } | |
17274 }'`; fi | |
17275 else | |
17276 echo "$as_me: failed program was:" >&5 | |
17277 sed 's/^/| /' conftest.$ac_ext >&5 | |
17278 | |
17279 | |
17280 fi | |
17281 | |
17282 rm -f core conftest.err conftest.$ac_objext \ | |
17283 conftest$ac_exeext conftest.$ac_ext | |
17284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
17285 | |
17286 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
17287 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
17288 else | |
17289 if test "$host_cpu" = ia64; then | |
17290 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
17291 allow_undefined_flag_GCJ="-z nodefs" | |
17292 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
17293 else | |
17294 # Determine the default libpath from the value encoded in an empty executable. | |
17295 cat >conftest.$ac_ext <<_ACEOF | |
17296 /* confdefs.h. */ | |
17297 _ACEOF | |
17298 cat confdefs.h >>conftest.$ac_ext | |
17299 cat >>conftest.$ac_ext <<_ACEOF | |
17300 /* end confdefs.h. */ | |
17301 | |
17302 int | |
17303 main () | |
17304 { | |
17305 | |
17306 ; | |
17307 return 0; | |
17308 } | |
17309 _ACEOF | |
17310 rm -f conftest.$ac_objext conftest$ac_exeext | |
17311 if { (ac_try="$ac_link" | |
17312 case "(($ac_try" in | |
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17314 *) ac_try_echo=$ac_try;; | |
17315 esac | |
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17317 (eval "$ac_link") 2>conftest.er1 | |
17318 ac_status=$? | |
17319 grep -v '^ *+' conftest.er1 >conftest.err | |
17320 rm -f conftest.er1 | |
17321 cat conftest.err >&5 | |
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17323 (exit $ac_status); } && | |
17324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
17325 { (case "(($ac_try" in | |
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17327 *) ac_try_echo=$ac_try;; | |
17328 esac | |
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17330 (eval "$ac_try") 2>&5 | |
17331 ac_status=$? | |
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17333 (exit $ac_status); }; } && | |
17334 { ac_try='test -s conftest$ac_exeext' | |
17335 { (case "(($ac_try" in | |
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17337 *) ac_try_echo=$ac_try;; | |
17338 esac | |
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17340 (eval "$ac_try") 2>&5 | |
17341 ac_status=$? | |
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17343 (exit $ac_status); }; }; then | |
17344 | |
17345 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
17346 }'` | |
17347 # Check for a 64-bit object if we didn't find anything. | |
17348 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; } | |
17349 }'`; fi | |
17350 else | |
17351 echo "$as_me: failed program was:" >&5 | |
17352 sed 's/^/| /' conftest.$ac_ext >&5 | |
17353 | |
17354 | |
17355 fi | |
17356 | |
17357 rm -f core conftest.err conftest.$ac_objext \ | |
17358 conftest$ac_exeext conftest.$ac_ext | |
17359 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
17360 | |
17361 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
17362 # Warning - without using the other run time loading flags, | |
17363 # -berok will link without error, but may produce a broken library. | |
17364 no_undefined_flag_GCJ=' ${wl}-bernotok' | |
17365 allow_undefined_flag_GCJ=' ${wl}-berok' | |
17366 # Exported symbols can be pulled into shared objects from archives | |
17367 whole_archive_flag_spec_GCJ='$convenience' | |
17368 archive_cmds_need_lc_GCJ=yes | |
17369 # This is similar to how AIX traditionally builds its shared libraries. | |
17370 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
17371 fi | |
17372 fi | |
17373 ;; | |
17374 | |
17375 amigaos*) | |
17376 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)' | |
17377 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17378 hardcode_minus_L_GCJ=yes | |
17379 # see comment about different semantics on the GNU ld section | |
17380 ld_shlibs_GCJ=no | |
17381 ;; | |
17382 | |
17383 bsdi[45]*) | |
17384 export_dynamic_flag_spec_GCJ=-rdynamic | |
17385 ;; | |
17386 | |
17387 cygwin* | mingw* | pw32*) | |
17388 # When not using gcc, we currently assume that we are using | |
17389 # Microsoft Visual C++. | |
17390 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
17391 # no search path for DLLs. | |
17392 hardcode_libdir_flag_spec_GCJ=' ' | |
17393 allow_undefined_flag_GCJ=unsupported | |
17394 # Tell ltmain to make .lib files, not .a files. | |
17395 libext=lib | |
17396 # Tell ltmain to make .dll files, not .so files. | |
17397 shrext_cmds=".dll" | |
17398 # FIXME: Setting linknames here is a bad hack. | |
17399 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
17400 # The linker will automatically build a .lib file if we build a DLL. | |
17401 old_archive_From_new_cmds_GCJ='true' | |
17402 # FIXME: Should let the user specify the lib program. | |
17403 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
17404 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
17405 enable_shared_with_static_runtimes_GCJ=yes | |
17406 ;; | |
17407 | |
17408 darwin* | rhapsody*) | |
17409 case $host_os in | |
17410 rhapsody* | darwin1.[012]) | |
17411 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
17412 ;; | |
17413 *) # Darwin 1.3 on | |
17414 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
17415 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
17416 else | |
17417 case ${MACOSX_DEPLOYMENT_TARGET} in | |
17418 10.[012]) | |
17419 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
17420 ;; | |
17421 10.*) | |
17422 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
17423 ;; | |
17424 esac | |
17425 fi | |
17426 ;; | |
17427 esac | |
17428 archive_cmds_need_lc_GCJ=no | |
17429 hardcode_direct_GCJ=no | |
17430 hardcode_automatic_GCJ=yes | |
17431 hardcode_shlibpath_var_GCJ=unsupported | |
17432 whole_archive_flag_spec_GCJ='' | |
17433 link_all_deplibs_GCJ=yes | |
17434 if test "$GCC" = yes ; then | |
17435 output_verbose_link_cmd='echo' | |
17436 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
17437 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
17438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
17439 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
17440 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
17441 else | |
17442 case $cc_basename in | |
17443 xlc*) | |
17444 output_verbose_link_cmd='echo' | |
17445 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
17446 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
17447 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
17448 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
17449 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
17450 ;; | |
17451 *) | |
17452 ld_shlibs_GCJ=no | |
17453 ;; | |
17454 esac | |
17455 fi | |
17456 ;; | |
17457 | |
17458 dgux*) | |
17459 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17460 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17461 hardcode_shlibpath_var_GCJ=no | |
17462 ;; | |
17463 | |
17464 freebsd1*) | |
17465 ld_shlibs_GCJ=no | |
17466 ;; | |
17467 | |
17468 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
17469 # support. Future versions do this automatically, but an explicit c++rt0.o | |
17470 # does not break anything, and helps significantly (at the cost of a little | |
17471 # extra space). | |
17472 freebsd2.2*) | |
17473 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
17474 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17475 hardcode_direct_GCJ=yes | |
17476 hardcode_shlibpath_var_GCJ=no | |
17477 ;; | |
17478 | |
17479 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
17480 freebsd2*) | |
17481 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17482 hardcode_direct_GCJ=yes | |
17483 hardcode_minus_L_GCJ=yes | |
17484 hardcode_shlibpath_var_GCJ=no | |
17485 ;; | |
17486 | |
17487 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
17488 freebsd* | kfreebsd*-gnu | dragonfly*) | |
17489 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
17490 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17491 hardcode_direct_GCJ=yes | |
17492 hardcode_shlibpath_var_GCJ=no | |
17493 ;; | |
17494 | |
17495 hpux9*) | |
17496 if test "$GCC" = yes; then | |
17497 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
17498 else | |
17499 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
17500 fi | |
17501 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17502 hardcode_libdir_separator_GCJ=: | |
17503 hardcode_direct_GCJ=yes | |
17504 | |
17505 # hardcode_minus_L: Not really in the search PATH, | |
17506 # but as the default location of the library. | |
17507 hardcode_minus_L_GCJ=yes | |
17508 export_dynamic_flag_spec_GCJ='${wl}-E' | |
17509 ;; | |
17510 | |
17511 hpux10*) | |
17512 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
17513 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17514 else | |
17515 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
17516 fi | |
17517 if test "$with_gnu_ld" = no; then | |
17518 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17519 hardcode_libdir_separator_GCJ=: | |
17520 | |
17521 hardcode_direct_GCJ=yes | |
17522 export_dynamic_flag_spec_GCJ='${wl}-E' | |
17523 | |
17524 # hardcode_minus_L: Not really in the search PATH, | |
17525 # but as the default location of the library. | |
17526 hardcode_minus_L_GCJ=yes | |
17527 fi | |
17528 ;; | |
17529 | |
17530 hpux11*) | |
17531 if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
17532 case $host_cpu in | |
17533 hppa*64*) | |
17534 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17535 ;; | |
17536 ia64*) | |
17537 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
17538 ;; | |
17539 *) | |
17540 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17541 ;; | |
17542 esac | |
17543 else | |
17544 case $host_cpu in | |
17545 hppa*64*) | |
17546 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17547 ;; | |
17548 ia64*) | |
17549 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
17550 ;; | |
17551 *) | |
17552 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17553 ;; | |
17554 esac | |
17555 fi | |
17556 if test "$with_gnu_ld" = no; then | |
17557 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17558 hardcode_libdir_separator_GCJ=: | |
17559 | |
17560 case $host_cpu in | |
17561 hppa*64*|ia64*) | |
17562 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
17563 hardcode_direct_GCJ=no | |
17564 hardcode_shlibpath_var_GCJ=no | |
17565 ;; | |
17566 *) | |
17567 hardcode_direct_GCJ=yes | |
17568 export_dynamic_flag_spec_GCJ='${wl}-E' | |
17569 | |
17570 # hardcode_minus_L: Not really in the search PATH, | |
17571 # but as the default location of the library. | |
17572 hardcode_minus_L_GCJ=yes | |
17573 ;; | |
17574 esac | |
17575 fi | |
17576 ;; | |
17577 | |
17578 irix5* | irix6* | nonstopux*) | |
17579 if test "$GCC" = yes; then | |
17580 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17581 else | |
17582 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17583 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
17584 fi | |
17585 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17586 hardcode_libdir_separator_GCJ=: | |
17587 link_all_deplibs_GCJ=yes | |
17588 ;; | |
17589 | |
17590 netbsd*) | |
17591 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17592 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
17593 else | |
17594 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
17595 fi | |
17596 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17597 hardcode_direct_GCJ=yes | |
17598 hardcode_shlibpath_var_GCJ=no | |
17599 ;; | |
17600 | |
17601 newsos6) | |
17602 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17603 hardcode_direct_GCJ=yes | |
17604 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17605 hardcode_libdir_separator_GCJ=: | |
17606 hardcode_shlibpath_var_GCJ=no | |
17607 ;; | |
17608 | |
17609 openbsd*) | |
17610 hardcode_direct_GCJ=yes | |
17611 hardcode_shlibpath_var_GCJ=no | |
17612 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17613 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17614 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
17615 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17616 export_dynamic_flag_spec_GCJ='${wl}-E' | |
17617 else | |
17618 case $host_os in | |
17619 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
17620 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17621 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17622 ;; | |
17623 *) | |
17624 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17625 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17626 ;; | |
17627 esac | |
17628 fi | |
17629 ;; | |
17630 | |
17631 os2*) | |
17632 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17633 hardcode_minus_L_GCJ=yes | |
17634 allow_undefined_flag_GCJ=unsupported | |
17635 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
17636 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
17637 ;; | |
17638 | |
17639 osf3*) | |
17640 if test "$GCC" = yes; then | |
17641 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17642 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17643 else | |
17644 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17645 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17646 fi | |
17647 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17648 hardcode_libdir_separator_GCJ=: | |
17649 ;; | |
17650 | |
17651 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
17652 if test "$GCC" = yes; then | |
17653 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17654 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17655 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17656 else | |
17657 allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17658 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17659 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
17660 $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' | |
17661 | |
17662 # Both c and cxx compiler support -rpath directly | |
17663 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
17664 fi | |
17665 hardcode_libdir_separator_GCJ=: | |
17666 ;; | |
17667 | |
17668 solaris*) | |
17669 no_undefined_flag_GCJ=' -z text' | |
17670 if test "$GCC" = yes; then | |
17671 wlarc='${wl}' | |
17672 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17673 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17674 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
17675 else | |
17676 wlarc='' | |
17677 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17678 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17679 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
17680 fi | |
17681 hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17682 hardcode_shlibpath_var_GCJ=no | |
17683 case $host_os in | |
17684 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
17685 *) | |
17686 # The compiler driver will combine linker options so we | |
17687 # cannot just pass the convience library names through | |
17688 # without $wl, iff we do not link with $LD. | |
17689 # Luckily, gcc supports the same syntax we need for Sun Studio. | |
17690 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
17691 case $wlarc in | |
17692 '') | |
17693 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
17694 *) | |
17695 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
17696 esac ;; | |
17697 esac | |
17698 link_all_deplibs_GCJ=yes | |
17699 ;; | |
17700 | |
17701 sunos4*) | |
17702 if test "x$host_vendor" = xsequent; then | |
17703 # Use $CC to link under sequent, because it throws in some extra .o | |
17704 # files that make .init and .fini sections work. | |
17705 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
17706 else | |
17707 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
17708 fi | |
17709 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17710 hardcode_direct_GCJ=yes | |
17711 hardcode_minus_L_GCJ=yes | |
17712 hardcode_shlibpath_var_GCJ=no | |
17713 ;; | |
17714 | |
17715 sysv4) | |
17716 case $host_vendor in | |
17717 sni) | |
17718 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17719 hardcode_direct_GCJ=yes # is this really true??? | |
17720 ;; | |
17721 siemens) | |
17722 ## LD is ld it makes a PLAMLIB | |
17723 ## CC just makes a GrossModule. | |
17724 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
17725 reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
17726 hardcode_direct_GCJ=no | |
17727 ;; | |
17728 motorola) | |
17729 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17730 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
17731 ;; | |
17732 esac | |
17733 runpath_var='LD_RUN_PATH' | |
17734 hardcode_shlibpath_var_GCJ=no | |
17735 ;; | |
17736 | |
17737 sysv4.3*) | |
17738 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17739 hardcode_shlibpath_var_GCJ=no | |
17740 export_dynamic_flag_spec_GCJ='-Bexport' | |
17741 ;; | |
17742 | |
17743 sysv4*MP*) | |
17744 if test -d /usr/nec; then | |
17745 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17746 hardcode_shlibpath_var_GCJ=no | |
17747 runpath_var=LD_RUN_PATH | |
17748 hardcode_runpath_var=yes | |
17749 ld_shlibs_GCJ=yes | |
17750 fi | |
17751 ;; | |
17752 | |
17753 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
17754 no_undefined_flag_GCJ='${wl}-z,text' | |
17755 archive_cmds_need_lc_GCJ=no | |
17756 hardcode_shlibpath_var_GCJ=no | |
17757 runpath_var='LD_RUN_PATH' | |
17758 | |
17759 if test "$GCC" = yes; then | |
17760 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17761 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17762 else | |
17763 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17764 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17765 fi | |
17766 ;; | |
17767 | |
17768 sysv5* | sco3.2v5* | sco5v6*) | |
17769 # Note: We can NOT use -z defs as we might desire, because we do not | |
17770 # link with -lc, and that would cause any symbols used from libc to | |
17771 # always be unresolved, which means just about no library would | |
17772 # ever link correctly. If we're not using GNU ld we use -z text | |
17773 # though, which does catch some bad symbols but isn't as heavy-handed | |
17774 # as -z defs. | |
17775 no_undefined_flag_GCJ='${wl}-z,text' | |
17776 allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
17777 archive_cmds_need_lc_GCJ=no | |
17778 hardcode_shlibpath_var_GCJ=no | |
17779 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
17780 hardcode_libdir_separator_GCJ=':' | |
17781 link_all_deplibs_GCJ=yes | |
17782 export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
17783 runpath_var='LD_RUN_PATH' | |
17784 | |
17785 if test "$GCC" = yes; then | |
17786 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17787 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17788 else | |
17789 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17790 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17791 fi | |
17792 ;; | |
17793 | |
17794 uts4*) | |
17795 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17796 hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17797 hardcode_shlibpath_var_GCJ=no | |
17798 ;; | |
17799 | |
17800 *) | |
17801 ld_shlibs_GCJ=no | |
17802 ;; | |
17803 esac | |
17804 fi | |
17805 | |
17806 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
17807 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } | |
17808 test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
17809 | |
17810 # | |
17811 # Do we need to explicitly link libc? | |
17812 # | |
17813 case "x$archive_cmds_need_lc_GCJ" in | |
17814 x|xyes) | |
17815 # Assume -lc should be added | |
17816 archive_cmds_need_lc_GCJ=yes | |
17817 | |
17818 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
17819 case $archive_cmds_GCJ in | |
17820 *'~'*) | |
17821 # FIXME: we may have to deal with multi-command sequences. | |
17822 ;; | |
17823 '$CC '*) | |
17824 # Test whether the compiler implicitly links with -lc since on some | |
17825 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17826 # to ld, don't add -lc before -lgcc. | |
17827 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
17828 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
17829 $rm conftest* | |
17830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17831 | |
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17833 (eval $ac_compile) 2>&5 | |
17834 ac_status=$? | |
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17836 (exit $ac_status); } 2>conftest.err; then | |
17837 soname=conftest | |
17838 lib=conftest | |
17839 libobjs=conftest.$ac_objext | |
17840 deplibs= | |
17841 wl=$lt_prog_compiler_wl_GCJ | |
17842 pic_flag=$lt_prog_compiler_pic_GCJ | |
17843 compiler_flags=-v | |
17844 linker_flags=-v | |
17845 verstring= | |
17846 output_objdir=. | |
17847 libname=conftest | |
17848 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
17849 allow_undefined_flag_GCJ= | |
17850 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
17851 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
17852 ac_status=$? | |
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17854 (exit $ac_status); } | |
17855 then | |
17856 archive_cmds_need_lc_GCJ=no | |
17857 else | |
17858 archive_cmds_need_lc_GCJ=yes | |
17859 fi | |
17860 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
17861 else | |
17862 cat conftest.err 1>&5 | |
17863 fi | |
17864 $rm conftest* | |
17865 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
17866 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } | |
17867 ;; | |
17868 esac | |
17869 fi | |
17870 ;; | |
17871 esac | |
17872 | |
17873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
17874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
17875 library_names_spec= | |
17876 libname_spec='lib$name' | |
17877 soname_spec= | |
17878 shrext_cmds=".so" | |
17879 postinstall_cmds= | |
17880 postuninstall_cmds= | |
17881 finish_cmds= | |
17882 finish_eval= | |
17883 shlibpath_var= | |
17884 shlibpath_overrides_runpath=unknown | |
17885 version_type=none | |
17886 dynamic_linker="$host_os ld.so" | |
17887 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17888 if test "$GCC" = yes; then | |
17889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17890 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
17891 # if the path contains ";" then we assume it to be the separator | |
17892 # otherwise default to the standard path separator (i.e. ":") - it is | |
17893 # assumed that no part of a normal pathname contains ";" but that should | |
17894 # okay in the real world where ";" in dirpaths is itself problematic. | |
17895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17896 else | |
17897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17898 fi | |
17899 else | |
17900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17901 fi | |
17902 need_lib_prefix=unknown | |
17903 hardcode_into_libs=no | |
17904 | |
17905 # when you set need_version to no, make sure it does not cause -set_version | |
17906 # flags to be left without arguments | |
17907 need_version=unknown | |
17908 | |
17909 case $host_os in | |
17910 aix3*) | |
17911 version_type=linux | |
17912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
17913 shlibpath_var=LIBPATH | |
17914 | |
17915 # AIX 3 has no versioning support, so we append a major version to the name. | |
17916 soname_spec='${libname}${release}${shared_ext}$major' | |
17917 ;; | |
17918 | |
17919 aix4* | aix5*) | |
17920 version_type=linux | |
17921 need_lib_prefix=no | |
17922 need_version=no | |
17923 hardcode_into_libs=yes | |
17924 if test "$host_cpu" = ia64; then | |
17925 # AIX 5 supports IA64 | |
17926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
17927 shlibpath_var=LD_LIBRARY_PATH | |
17928 else | |
17929 # With GCC up to 2.95.x, collect2 would create an import file | |
17930 # for dependence libraries. The import file would start with | |
17931 # the line `#! .'. This would cause the generated library to | |
17932 # depend on `.', always an invalid library. This was fixed in | |
17933 # development snapshots of GCC prior to 3.0. | |
17934 case $host_os in | |
17935 aix4 | aix4.[01] | aix4.[01].*) | |
17936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17937 echo ' yes ' | |
17938 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
17939 : | |
17940 else | |
17941 can_build_shared=no | |
17942 fi | |
17943 ;; | |
17944 esac | |
17945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
17946 # soname into executable. Probably we can add versioning support to | |
17947 # collect2, so additional links can be useful in future. | |
17948 if test "$aix_use_runtimelinking" = yes; then | |
17949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17950 # instead of lib<name>.a to let people know that these are not | |
17951 # typical AIX shared libraries. | |
17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17953 else | |
17954 # We preserve .a as extension for shared libraries through AIX4.2 | |
17955 # and later when we are not doing run time linking. | |
17956 library_names_spec='${libname}${release}.a $libname.a' | |
17957 soname_spec='${libname}${release}${shared_ext}$major' | |
17958 fi | |
17959 shlibpath_var=LIBPATH | |
17960 fi | |
17961 ;; | |
17962 | |
17963 amigaos*) | |
17964 library_names_spec='$libname.ixlibrary $libname.a' | |
17965 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17966 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' | |
17967 ;; | |
17968 | |
17969 beos*) | |
17970 library_names_spec='${libname}${shared_ext}' | |
17971 dynamic_linker="$host_os ld.so" | |
17972 shlibpath_var=LIBRARY_PATH | |
17973 ;; | |
17974 | |
17975 bsdi[45]*) | |
17976 version_type=linux | |
17977 need_version=no | |
17978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17979 soname_spec='${libname}${release}${shared_ext}$major' | |
17980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17981 shlibpath_var=LD_LIBRARY_PATH | |
17982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17984 # the default ld.so.conf also contains /usr/contrib/lib and | |
17985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17986 # libtool to hard-code these into programs | |
17987 ;; | |
17988 | |
17989 cygwin* | mingw* | pw32*) | |
17990 version_type=windows | |
17991 shrext_cmds=".dll" | |
17992 need_version=no | |
17993 need_lib_prefix=no | |
17994 | |
17995 case $GCC,$host_os in | |
17996 yes,cygwin* | yes,mingw* | yes,pw32*) | |
17997 library_names_spec='$libname.dll.a' | |
17998 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
17999 postinstall_cmds='base_file=`basename \${file}`~ | |
18000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
18001 dldir=$destdir/`dirname \$dlpath`~ | |
18002 test -d \$dldir || mkdir -p \$dldir~ | |
18003 $install_prog $dir/$dlname \$dldir/$dlname~ | |
18004 chmod a+x \$dldir/$dlname' | |
18005 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
18006 dlpath=$dir/\$dldll~ | |
18007 $rm \$dlpath' | |
18008 shlibpath_overrides_runpath=yes | |
18009 | |
18010 case $host_os in | |
18011 cygwin*) | |
18012 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
18013 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
18014 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
18015 ;; | |
18016 mingw*) | |
18017 # MinGW DLLs use traditional 'lib' prefix | |
18018 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
18019 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
18020 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
18021 # It is most probably a Windows format PATH printed by | |
18022 # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
18023 # path with ; separators, and with drive letters. We can handle the | |
18024 # drive letters (cygwin fileutils understands them), so leave them, | |
18025 # especially as we might pass files found there to a mingw objdump, | |
18026 # which wouldn't understand a cygwinified path. Ahh. | |
18027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
18028 else | |
18029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
18030 fi | |
18031 ;; | |
18032 pw32*) | |
18033 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
18034 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
18035 ;; | |
18036 esac | |
18037 ;; | |
18038 | |
18039 *) | |
18040 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
18041 ;; | |
18042 esac | |
18043 dynamic_linker='Win32 ld.exe' | |
18044 # FIXME: first we should search . and the directory the executable is in | |
18045 shlibpath_var=PATH | |
18046 ;; | |
18047 | |
18048 darwin* | rhapsody*) | |
18049 dynamic_linker="$host_os dyld" | |
18050 version_type=darwin | |
18051 need_lib_prefix=no | |
18052 need_version=no | |
18053 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
18054 soname_spec='${libname}${release}${major}$shared_ext' | |
18055 shlibpath_overrides_runpath=yes | |
18056 shlibpath_var=DYLD_LIBRARY_PATH | |
18057 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
18058 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
18059 if test "$GCC" = yes; then | |
18060 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"` | |
18061 else | |
18062 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
18063 fi | |
18064 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
18065 ;; | |
18066 | |
18067 dgux*) | |
18068 version_type=linux | |
18069 need_lib_prefix=no | |
18070 need_version=no | |
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
18072 soname_spec='${libname}${release}${shared_ext}$major' | |
18073 shlibpath_var=LD_LIBRARY_PATH | |
18074 ;; | |
18075 | |
18076 freebsd1*) | |
18077 dynamic_linker=no | |
18078 ;; | |
18079 | |
18080 kfreebsd*-gnu) | |
18081 version_type=linux | |
18082 need_lib_prefix=no | |
18083 need_version=no | |
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18085 soname_spec='${libname}${release}${shared_ext}$major' | |
18086 shlibpath_var=LD_LIBRARY_PATH | |
18087 shlibpath_overrides_runpath=no | |
18088 hardcode_into_libs=yes | |
18089 dynamic_linker='GNU ld.so' | |
18090 ;; | |
18091 | |
18092 freebsd* | dragonfly*) | |
18093 # DragonFly does not have aout. When/if they implement a new | |
18094 # versioning mechanism, adjust this. | |
18095 if test -x /usr/bin/objformat; then | |
18096 objformat=`/usr/bin/objformat` | |
18097 else | |
18098 case $host_os in | |
18099 freebsd[123]*) objformat=aout ;; | |
18100 *) objformat=elf ;; | |
18101 esac | |
18102 fi | |
18103 version_type=freebsd-$objformat | |
18104 case $version_type in | |
18105 freebsd-elf*) | |
18106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
18107 need_version=no | |
18108 need_lib_prefix=no | |
18109 ;; | |
18110 freebsd-*) | |
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
18112 need_version=yes | |
18113 ;; | |
18114 esac | |
18115 shlibpath_var=LD_LIBRARY_PATH | |
18116 case $host_os in | |
18117 freebsd2*) | |
18118 shlibpath_overrides_runpath=yes | |
18119 ;; | |
18120 freebsd3.[01]* | freebsdelf3.[01]*) | |
18121 shlibpath_overrides_runpath=yes | |
18122 hardcode_into_libs=yes | |
18123 ;; | |
18124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
18125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
18126 shlibpath_overrides_runpath=no | |
18127 hardcode_into_libs=yes | |
18128 ;; | |
18129 freebsd*) # from 4.6 on | |
18130 shlibpath_overrides_runpath=yes | |
18131 hardcode_into_libs=yes | |
18132 ;; | |
18133 esac | |
18134 ;; | |
18135 | |
18136 gnu*) | |
18137 version_type=linux | |
18138 need_lib_prefix=no | |
18139 need_version=no | |
18140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
18141 soname_spec='${libname}${release}${shared_ext}$major' | |
18142 shlibpath_var=LD_LIBRARY_PATH | |
18143 hardcode_into_libs=yes | |
18144 ;; | |
18145 | |
18146 hpux9* | hpux10* | hpux11*) | |
18147 # Give a soname corresponding to the major version so that dld.sl refuses to | |
18148 # link against other versions. | |
18149 version_type=sunos | |
18150 need_lib_prefix=no | |
18151 need_version=no | |
18152 case $host_cpu in | |
18153 ia64*) | |
18154 shrext_cmds='.so' | |
18155 hardcode_into_libs=yes | |
18156 dynamic_linker="$host_os dld.so" | |
18157 shlibpath_var=LD_LIBRARY_PATH | |
18158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18160 soname_spec='${libname}${release}${shared_ext}$major' | |
18161 if test "X$HPUX_IA64_MODE" = X32; then | |
18162 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
18163 else | |
18164 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
18165 fi | |
18166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
18167 ;; | |
18168 hppa*64*) | |
18169 shrext_cmds='.sl' | |
18170 hardcode_into_libs=yes | |
18171 dynamic_linker="$host_os dld.sl" | |
18172 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
18173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18175 soname_spec='${libname}${release}${shared_ext}$major' | |
18176 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
18177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
18178 ;; | |
18179 *) | |
18180 shrext_cmds='.sl' | |
18181 dynamic_linker="$host_os dld.sl" | |
18182 shlibpath_var=SHLIB_PATH | |
18183 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18185 soname_spec='${libname}${release}${shared_ext}$major' | |
18186 ;; | |
18187 esac | |
18188 # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
18189 postinstall_cmds='chmod 555 $lib' | |
18190 ;; | |
18191 | |
18192 interix3*) | |
18193 version_type=linux | |
18194 need_lib_prefix=no | |
18195 need_version=no | |
18196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18197 soname_spec='${libname}${release}${shared_ext}$major' | |
18198 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
18199 shlibpath_var=LD_LIBRARY_PATH | |
18200 shlibpath_overrides_runpath=no | |
18201 hardcode_into_libs=yes | |
18202 ;; | |
18203 | |
18204 irix5* | irix6* | nonstopux*) | |
18205 case $host_os in | |
18206 nonstopux*) version_type=nonstopux ;; | |
18207 *) | |
18208 if test "$lt_cv_prog_gnu_ld" = yes; then | |
18209 version_type=linux | |
18210 else | |
18211 version_type=irix | |
18212 fi ;; | |
18213 esac | |
18214 need_lib_prefix=no | |
18215 need_version=no | |
18216 soname_spec='${libname}${release}${shared_ext}$major' | |
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
18218 case $host_os in | |
18219 irix5* | nonstopux*) | |
18220 libsuff= shlibsuff= | |
18221 ;; | |
18222 *) | |
18223 case $LD in # libtool.m4 will add one of these switches to LD | |
18224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
18225 libsuff= shlibsuff= libmagic=32-bit;; | |
18226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
18227 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
18228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
18229 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
18230 *) libsuff= shlibsuff= libmagic=never-match;; | |
18231 esac | |
18232 ;; | |
18233 esac | |
18234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
18235 shlibpath_overrides_runpath=no | |
18236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
18237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
18238 hardcode_into_libs=yes | |
18239 ;; | |
18240 | |
18241 # No shared lib support for Linux oldld, aout, or coff. | |
18242 linux*oldld* | linux*aout* | linux*coff*) | |
18243 dynamic_linker=no | |
18244 ;; | |
18245 | |
18246 # This must be Linux ELF. | |
18247 linux*) | |
18248 version_type=linux | |
18249 need_lib_prefix=no | |
18250 need_version=no | |
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18252 soname_spec='${libname}${release}${shared_ext}$major' | |
18253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
18254 shlibpath_var=LD_LIBRARY_PATH | |
18255 shlibpath_overrides_runpath=no | |
18256 # This implies no fast_install, which is unacceptable. | |
18257 # Some rework will be needed to allow for fast_install | |
18258 # before this can be enabled. | |
18259 hardcode_into_libs=yes | |
18260 | |
18261 # Append ld.so.conf contents to the search path | |
18262 if test -f /etc/ld.so.conf; then | |
18263 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' ' '` | |
18264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
18265 fi | |
18266 | |
18267 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
18268 # powerpc, because MkLinux only supported shared libraries with the | |
18269 # GNU dynamic linker. Since this was broken with cross compilers, | |
18270 # most powerpc-linux boxes support dynamic linking these days and | |
18271 # people can always --disable-shared, the test was removed, and we | |
18272 # assume the GNU/Linux dynamic linker is in use. | |
18273 dynamic_linker='GNU/Linux ld.so' | |
18274 ;; | |
18275 | |
18276 knetbsd*-gnu) | |
18277 version_type=linux | |
18278 need_lib_prefix=no | |
18279 need_version=no | |
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18281 soname_spec='${libname}${release}${shared_ext}$major' | |
18282 shlibpath_var=LD_LIBRARY_PATH | |
18283 shlibpath_overrides_runpath=no | |
18284 hardcode_into_libs=yes | |
18285 dynamic_linker='GNU ld.so' | |
18286 ;; | |
18287 | |
18288 netbsd*) | |
18289 version_type=sunos | |
18290 need_lib_prefix=no | |
18291 need_version=no | |
18292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
18293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
18295 dynamic_linker='NetBSD (a.out) ld.so' | |
18296 else | |
18297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
18298 soname_spec='${libname}${release}${shared_ext}$major' | |
18299 dynamic_linker='NetBSD ld.elf_so' | |
18300 fi | |
18301 shlibpath_var=LD_LIBRARY_PATH | |
18302 shlibpath_overrides_runpath=yes | |
18303 hardcode_into_libs=yes | |
18304 ;; | |
18305 | |
18306 newsos6) | |
18307 version_type=linux | |
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18309 shlibpath_var=LD_LIBRARY_PATH | |
18310 shlibpath_overrides_runpath=yes | |
18311 ;; | |
18312 | |
18313 nto-qnx*) | |
18314 version_type=linux | |
18315 need_lib_prefix=no | |
18316 need_version=no | |
18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18318 soname_spec='${libname}${release}${shared_ext}$major' | |
18319 shlibpath_var=LD_LIBRARY_PATH | |
18320 shlibpath_overrides_runpath=yes | |
18321 ;; | |
18322 | |
18323 openbsd*) | |
18324 version_type=sunos | |
18325 sys_lib_dlsearch_path_spec="/usr/lib" | |
18326 need_lib_prefix=no | |
18327 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
18328 case $host_os in | |
18329 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
18330 *) need_version=no ;; | |
18331 esac | |
18332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
18334 shlibpath_var=LD_LIBRARY_PATH | |
18335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
18336 case $host_os in | |
18337 openbsd2.[89] | openbsd2.[89].*) | |
18338 shlibpath_overrides_runpath=no | |
18339 ;; | |
18340 *) | |
18341 shlibpath_overrides_runpath=yes | |
18342 ;; | |
18343 esac | |
18344 else | |
18345 shlibpath_overrides_runpath=yes | |
18346 fi | |
18347 ;; | |
18348 | |
18349 os2*) | |
18350 libname_spec='$name' | |
18351 shrext_cmds=".dll" | |
18352 need_lib_prefix=no | |
18353 library_names_spec='$libname${shared_ext} $libname.a' | |
18354 dynamic_linker='OS/2 ld.exe' | |
18355 shlibpath_var=LIBPATH | |
18356 ;; | |
18357 | |
18358 osf3* | osf4* | osf5*) | |
18359 version_type=osf | |
18360 need_lib_prefix=no | |
18361 need_version=no | |
18362 soname_spec='${libname}${release}${shared_ext}$major' | |
18363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18364 shlibpath_var=LD_LIBRARY_PATH | |
18365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
18366 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
18367 ;; | |
18368 | |
18369 solaris*) | |
18370 version_type=linux | |
18371 need_lib_prefix=no | |
18372 need_version=no | |
18373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18374 soname_spec='${libname}${release}${shared_ext}$major' | |
18375 shlibpath_var=LD_LIBRARY_PATH | |
18376 shlibpath_overrides_runpath=yes | |
18377 hardcode_into_libs=yes | |
18378 # ldd complains unless libraries are executable | |
18379 postinstall_cmds='chmod +x $lib' | |
18380 ;; | |
18381 | |
18382 sunos4*) | |
18383 version_type=sunos | |
18384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
18385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
18386 shlibpath_var=LD_LIBRARY_PATH | |
18387 shlibpath_overrides_runpath=yes | |
18388 if test "$with_gnu_ld" = yes; then | |
18389 need_lib_prefix=no | |
18390 fi | |
18391 need_version=yes | |
18392 ;; | |
18393 | |
18394 sysv4 | sysv4.3*) | |
18395 version_type=linux | |
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18397 soname_spec='${libname}${release}${shared_ext}$major' | |
18398 shlibpath_var=LD_LIBRARY_PATH | |
18399 case $host_vendor in | |
18400 sni) | |
18401 shlibpath_overrides_runpath=no | |
18402 need_lib_prefix=no | |
18403 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
18404 runpath_var=LD_RUN_PATH | |
18405 ;; | |
18406 siemens) | |
18407 need_lib_prefix=no | |
18408 ;; | |
18409 motorola) | |
18410 need_lib_prefix=no | |
18411 need_version=no | |
18412 shlibpath_overrides_runpath=no | |
18413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
18414 ;; | |
18415 esac | |
18416 ;; | |
18417 | |
18418 sysv4*MP*) | |
18419 if test -d /usr/nec ;then | |
18420 version_type=linux | |
18421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
18422 soname_spec='$libname${shared_ext}.$major' | |
18423 shlibpath_var=LD_LIBRARY_PATH | |
18424 fi | |
18425 ;; | |
18426 | |
18427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
18428 version_type=freebsd-elf | |
18429 need_lib_prefix=no | |
18430 need_version=no | |
18431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
18432 soname_spec='${libname}${release}${shared_ext}$major' | |
18433 shlibpath_var=LD_LIBRARY_PATH | |
18434 hardcode_into_libs=yes | |
18435 if test "$with_gnu_ld" = yes; then | |
18436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
18437 shlibpath_overrides_runpath=no | |
18438 else | |
18439 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
18440 shlibpath_overrides_runpath=yes | |
18441 case $host_os in | |
18442 sco3.2v5*) | |
18443 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
18444 ;; | |
18445 esac | |
18446 fi | |
18447 sys_lib_dlsearch_path_spec='/usr/lib' | |
18448 ;; | |
18449 | |
18450 uts4*) | |
18451 version_type=linux | |
18452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
18453 soname_spec='${libname}${release}${shared_ext}$major' | |
18454 shlibpath_var=LD_LIBRARY_PATH | |
18455 ;; | |
18456 | |
18457 *) | |
18458 dynamic_linker=no | |
18459 ;; | |
18460 esac | |
18461 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
18462 echo "${ECHO_T}$dynamic_linker" >&6; } | |
18463 test "$dynamic_linker" = no && can_build_shared=no | |
18464 | |
18465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
18466 if test "$GCC" = yes; then | |
18467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
18468 fi | |
18469 | |
18470 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
18471 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
18472 hardcode_action_GCJ= | |
18473 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
18474 test -n "$runpath_var_GCJ" || \ | |
18475 test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
18476 | |
18477 # We can hardcode non-existant directories. | |
18478 if test "$hardcode_direct_GCJ" != no && | |
18479 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
18480 # have to relink, otherwise we might link with an installed library | |
18481 # when we should be linking with a yet-to-be-installed one | |
18482 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
18483 test "$hardcode_minus_L_GCJ" != no; then | |
18484 # Linking always hardcodes the temporary library directory. | |
18485 hardcode_action_GCJ=relink | |
18486 else | |
18487 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
18488 hardcode_action_GCJ=immediate | |
18489 fi | |
18490 else | |
18491 # We cannot hardcode anything, or else we can only hardcode existing | |
18492 # directories. | |
18493 hardcode_action_GCJ=unsupported | |
18494 fi | |
18495 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
18496 echo "${ECHO_T}$hardcode_action_GCJ" >&6; } | |
18497 | |
18498 if test "$hardcode_action_GCJ" = relink; then | |
18499 # Fast installation is not supported | |
18500 enable_fast_install=no | |
18501 elif test "$shlibpath_overrides_runpath" = yes || | |
18502 test "$enable_shared" = no; then | |
18503 # Fast installation is not necessary | |
18504 enable_fast_install=needless | |
18505 fi | |
18506 | |
18507 | |
18508 # The else clause should only fire when bootstrapping the | |
18509 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18510 # with your package, and you will get complaints that there are | |
18511 # no rules to generate ltmain.sh. | |
18512 if test -f "$ltmain"; then | |
18513 # See if we are running on zsh, and set the options which allow our commands through | |
18514 # without removal of \ escapes. | |
18515 if test -n "${ZSH_VERSION+set}" ; then | |
18516 setopt NO_GLOB_SUBST | |
18517 fi | |
18518 # Now quote all the things that may contain metacharacters while being | |
18519 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18520 # variables and quote the copies for generation of the libtool script. | |
18521 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
18522 SED SHELL STRIP \ | |
18523 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18524 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18525 deplibs_check_method reload_flag reload_cmds need_locks \ | |
18526 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18527 lt_cv_sys_global_symbol_to_c_name_address \ | |
18528 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18529 old_postinstall_cmds old_postuninstall_cmds \ | |
18530 compiler_GCJ \ | |
18531 CC_GCJ \ | |
18532 LD_GCJ \ | |
18533 lt_prog_compiler_wl_GCJ \ | |
18534 lt_prog_compiler_pic_GCJ \ | |
18535 lt_prog_compiler_static_GCJ \ | |
18536 lt_prog_compiler_no_builtin_flag_GCJ \ | |
18537 export_dynamic_flag_spec_GCJ \ | |
18538 thread_safe_flag_spec_GCJ \ | |
18539 whole_archive_flag_spec_GCJ \ | |
18540 enable_shared_with_static_runtimes_GCJ \ | |
18541 old_archive_cmds_GCJ \ | |
18542 old_archive_from_new_cmds_GCJ \ | |
18543 predep_objects_GCJ \ | |
18544 postdep_objects_GCJ \ | |
18545 predeps_GCJ \ | |
18546 postdeps_GCJ \ | |
18547 compiler_lib_search_path_GCJ \ | |
18548 archive_cmds_GCJ \ | |
18549 archive_expsym_cmds_GCJ \ | |
18550 postinstall_cmds_GCJ \ | |
18551 postuninstall_cmds_GCJ \ | |
18552 old_archive_from_expsyms_cmds_GCJ \ | |
18553 allow_undefined_flag_GCJ \ | |
18554 no_undefined_flag_GCJ \ | |
18555 export_symbols_cmds_GCJ \ | |
18556 hardcode_libdir_flag_spec_GCJ \ | |
18557 hardcode_libdir_flag_spec_ld_GCJ \ | |
18558 hardcode_libdir_separator_GCJ \ | |
18559 hardcode_automatic_GCJ \ | |
18560 module_cmds_GCJ \ | |
18561 module_expsym_cmds_GCJ \ | |
18562 lt_cv_prog_compiler_c_o_GCJ \ | |
18563 exclude_expsyms_GCJ \ | |
18564 include_expsyms_GCJ; do | |
18565 | |
18566 case $var in | |
18567 old_archive_cmds_GCJ | \ | |
18568 old_archive_from_new_cmds_GCJ | \ | |
18569 archive_cmds_GCJ | \ | |
18570 archive_expsym_cmds_GCJ | \ | |
18571 module_cmds_GCJ | \ | |
18572 module_expsym_cmds_GCJ | \ | |
18573 old_archive_from_expsyms_cmds_GCJ | \ | |
18574 export_symbols_cmds_GCJ | \ | |
18575 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18576 postinstall_cmds | postuninstall_cmds | \ | |
18577 old_postinstall_cmds | old_postuninstall_cmds | \ | |
18578 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18579 # Double-quote double-evaled strings. | |
18580 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18581 ;; | |
18582 *) | |
18583 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18584 ;; | |
18585 esac | |
18586 done | |
18587 | |
18588 case $lt_echo in | |
18589 *'\$0 --fallback-echo"') | |
18590 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18591 ;; | |
18592 esac | |
18593 | |
18594 cfgfile="$ofile" | |
18595 | |
18596 cat <<__EOF__ >> "$cfgfile" | |
18597 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18598 | |
18599 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18600 | |
18601 # Shell to use when invoking shell scripts. | |
18602 SHELL=$lt_SHELL | |
18603 | |
18604 # Whether or not to build shared libraries. | |
18605 build_libtool_libs=$enable_shared | |
18606 | |
18607 # Whether or not to build static libraries. | |
18608 build_old_libs=$enable_static | |
18609 | |
18610 # Whether or not to add -lc for building shared libraries. | |
18611 build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
18612 | |
18613 # Whether or not to disallow shared libs when runtime libs are static | |
18614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
18615 | |
18616 # Whether or not to optimize for fast installation. | |
18617 fast_install=$enable_fast_install | |
18618 | |
18619 # The host system. | |
18620 host_alias=$host_alias | |
18621 host=$host | |
18622 host_os=$host_os | |
18623 | |
18624 # The build system. | |
18625 build_alias=$build_alias | |
18626 build=$build | |
18627 build_os=$build_os | |
18628 | |
18629 # An echo program that does not interpret backslashes. | |
18630 echo=$lt_echo | |
18631 | |
18632 # The archiver. | |
18633 AR=$lt_AR | |
18634 AR_FLAGS=$lt_AR_FLAGS | |
18635 | |
18636 # A C compiler. | |
18637 LTCC=$lt_LTCC | |
18638 | |
18639 # LTCC compiler flags. | |
18640 LTCFLAGS=$lt_LTCFLAGS | |
18641 | |
18642 # A language-specific compiler. | |
18643 CC=$lt_compiler_GCJ | |
18644 | |
18645 # Is the compiler the GNU C compiler? | |
18646 with_gcc=$GCC_GCJ | |
18647 | |
18648 # An ERE matcher. | |
18649 EGREP=$lt_EGREP | |
18650 | |
18651 # The linker used to build libraries. | |
18652 LD=$lt_LD_GCJ | |
18653 | |
18654 # Whether we need hard or soft links. | |
18655 LN_S=$lt_LN_S | |
18656 | |
18657 # A BSD-compatible nm program. | |
18658 NM=$lt_NM | |
18659 | |
18660 # A symbol stripping program | |
18661 STRIP=$lt_STRIP | |
18662 | |
18663 # Used to examine libraries when file_magic_cmd begins "file" | |
18664 MAGIC_CMD=$MAGIC_CMD | |
18665 | |
18666 # Used on cygwin: DLL creation program. | |
18667 DLLTOOL="$DLLTOOL" | |
18668 | |
18669 # Used on cygwin: object dumper. | |
18670 OBJDUMP="$OBJDUMP" | |
18671 | |
18672 # Used on cygwin: assembler. | |
18673 AS="$AS" | |
18674 | |
18675 # The name of the directory that contains temporary libtool files. | |
18676 objdir=$objdir | |
18677 | |
18678 # How to create reloadable object files. | |
18679 reload_flag=$lt_reload_flag | |
18680 reload_cmds=$lt_reload_cmds | |
18681 | |
18682 # How to pass a linker flag through the compiler. | |
18683 wl=$lt_lt_prog_compiler_wl_GCJ | |
18684 | |
18685 # Object file suffix (normally "o"). | |
18686 objext="$ac_objext" | |
18687 | |
18688 # Old archive suffix (normally "a"). | |
18689 libext="$libext" | |
18690 | |
18691 # Shared library suffix (normally ".so"). | |
18692 shrext_cmds='$shrext_cmds' | |
18693 | |
18694 # Executable file suffix (normally ""). | |
18695 exeext="$exeext" | |
18696 | |
18697 # Additional compiler flags for building library objects. | |
18698 pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
18699 pic_mode=$pic_mode | |
18700 | |
18701 # What is the maximum length of a command? | |
18702 max_cmd_len=$lt_cv_sys_max_cmd_len | |
18703 | |
18704 # Does compiler simultaneously support -c and -o options? | |
18705 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
18706 | |
18707 # Must we lock files when doing compilation? | |
18708 need_locks=$lt_need_locks | |
18709 | |
18710 # Do we need the lib prefix for modules? | |
18711 need_lib_prefix=$need_lib_prefix | |
18712 | |
18713 # Do we need a version for libraries? | |
18714 need_version=$need_version | |
18715 | |
18716 # Whether dlopen is supported. | |
18717 dlopen_support=$enable_dlopen | |
18718 | |
18719 # Whether dlopen of programs is supported. | |
18720 dlopen_self=$enable_dlopen_self | |
18721 | |
18722 # Whether dlopen of statically linked programs is supported. | |
18723 dlopen_self_static=$enable_dlopen_self_static | |
18724 | |
18725 # Compiler flag to prevent dynamic linking. | |
18726 link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
18727 | |
18728 # Compiler flag to turn off builtin functions. | |
18729 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
18730 | |
18731 # Compiler flag to allow reflexive dlopens. | |
18732 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
18733 | |
18734 # Compiler flag to generate shared objects directly from archives. | |
18735 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
18736 | |
18737 # Compiler flag to generate thread-safe objects. | |
18738 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
18739 | |
18740 # Library versioning type. | |
18741 version_type=$version_type | |
18742 | |
18743 # Format of library name prefix. | |
18744 libname_spec=$lt_libname_spec | |
18745 | |
18746 # List of archive names. First name is the real one, the rest are links. | |
18747 # The last name is the one that the linker finds with -lNAME. | |
18748 library_names_spec=$lt_library_names_spec | |
18749 | |
18750 # The coded name of the library, if different from the real name. | |
18751 soname_spec=$lt_soname_spec | |
18752 | |
18753 # Commands used to build and install an old-style archive. | |
18754 RANLIB=$lt_RANLIB | |
18755 old_archive_cmds=$lt_old_archive_cmds_GCJ | |
18756 old_postinstall_cmds=$lt_old_postinstall_cmds | |
18757 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18758 | |
18759 # Create an old-style archive from a shared archive. | |
18760 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
18761 | |
18762 # Create a temporary old-style archive to link instead of a shared archive. | |
18763 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
18764 | |
18765 # Commands used to build and install a shared archive. | |
18766 archive_cmds=$lt_archive_cmds_GCJ | |
18767 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
18768 postinstall_cmds=$lt_postinstall_cmds | |
18769 postuninstall_cmds=$lt_postuninstall_cmds | |
18770 | |
18771 # Commands used to build a loadable module (assumed same as above if empty) | |
18772 module_cmds=$lt_module_cmds_GCJ | |
18773 module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
18774 | |
18775 # Commands to strip libraries. | |
18776 old_striplib=$lt_old_striplib | |
18777 striplib=$lt_striplib | |
18778 | |
18779 # Dependencies to place before the objects being linked to create a | |
18780 # shared library. | |
18781 predep_objects=$lt_predep_objects_GCJ | |
18782 | |
18783 # Dependencies to place after the objects being linked to create a | |
18784 # shared library. | |
18785 postdep_objects=$lt_postdep_objects_GCJ | |
18786 | |
18787 # Dependencies to place before the objects being linked to create a | |
18788 # shared library. | |
18789 predeps=$lt_predeps_GCJ | |
18790 | |
18791 # Dependencies to place after the objects being linked to create a | |
18792 # shared library. | |
18793 postdeps=$lt_postdeps_GCJ | |
18794 | |
18795 # The library search path used internally by the compiler when linking | |
18796 # a shared library. | |
18797 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
18798 | |
18799 # Method to check whether dependent libraries are shared objects. | |
18800 deplibs_check_method=$lt_deplibs_check_method | |
18801 | |
18802 # Command to use when deplibs_check_method == file_magic. | |
18803 file_magic_cmd=$lt_file_magic_cmd | |
18804 | |
18805 # Flag that allows shared libraries with undefined symbols to be built. | |
18806 allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
18807 | |
18808 # Flag that forces no undefined symbols. | |
18809 no_undefined_flag=$lt_no_undefined_flag_GCJ | |
18810 | |
18811 # Commands used to finish a libtool library installation in a directory. | |
18812 finish_cmds=$lt_finish_cmds | |
18813 | |
18814 # Same as above, but a single script fragment to be evaled but not shown. | |
18815 finish_eval=$lt_finish_eval | |
18816 | |
18817 # Take the output of nm and produce a listing of raw symbols and C names. | |
18818 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18819 | |
18820 # Transform the output of nm in a proper C declaration | |
18821 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18822 | |
18823 # Transform the output of nm in a C name address pair | |
18824 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18825 | |
18826 # This is the shared library runtime path variable. | |
18827 runpath_var=$runpath_var | |
18828 | |
18829 # This is the shared library path variable. | |
18830 shlibpath_var=$shlibpath_var | |
18831 | |
18832 # Is shlibpath searched before the hard-coded library search path? | |
18833 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18834 | |
18835 # How to hardcode a shared library path into an executable. | |
18836 hardcode_action=$hardcode_action_GCJ | |
18837 | |
18838 # Whether we should hardcode library paths into libraries. | |
18839 hardcode_into_libs=$hardcode_into_libs | |
18840 | |
18841 # Flag to hardcode \$libdir into a binary during linking. | |
18842 # This must work even if \$libdir does not exist. | |
18843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
18844 | |
18845 # If ld is used when linking, flag to hardcode \$libdir into | |
18846 # a binary during linking. This must work even if \$libdir does | |
18847 # not exist. | |
18848 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
18849 | |
18850 # Whether we need a single -rpath flag with a separated argument. | |
18851 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
18852 | |
18853 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18854 # resulting binary. | |
18855 hardcode_direct=$hardcode_direct_GCJ | |
18856 | |
18857 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18858 # resulting binary. | |
18859 hardcode_minus_L=$hardcode_minus_L_GCJ | |
18860 | |
18861 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18862 # the resulting binary. | |
18863 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
18864 | |
18865 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18866 # and all subsequent libraries and executables linked against it. | |
18867 hardcode_automatic=$hardcode_automatic_GCJ | |
18868 | |
18869 # Variables whose values should be saved in libtool wrapper scripts and | |
18870 # restored at relink time. | |
18871 variables_saved_for_relink="$variables_saved_for_relink" | |
18872 | |
18873 # Whether libtool must link a program against all its dependency libraries. | |
18874 link_all_deplibs=$link_all_deplibs_GCJ | |
18875 | |
18876 # Compile-time system search path for libraries | |
18877 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18878 | |
18879 # Run-time system search path for libraries | |
18880 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18881 | |
18882 # Fix the shell variable \$srcfile for the compiler. | |
18883 fix_srcfile_path="$fix_srcfile_path_GCJ" | |
18884 | |
18885 # Set to yes if exported symbols are required. | |
18886 always_export_symbols=$always_export_symbols_GCJ | |
18887 | |
18888 # The commands to list exported symbols. | |
18889 export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
18890 | |
18891 # The commands to extract the exported symbol list from a shared archive. | |
18892 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18893 | |
18894 # Symbols that should not be listed in the preloaded symbols. | |
18895 exclude_expsyms=$lt_exclude_expsyms_GCJ | |
18896 | |
18897 # Symbols that must always be exported. | |
18898 include_expsyms=$lt_include_expsyms_GCJ | |
18899 | |
18900 # ### END LIBTOOL TAG CONFIG: $tagname | |
18901 | |
18902 __EOF__ | |
18903 | |
18904 | |
18905 else | |
18906 # If there is no Makefile yet, we rely on a make rule to execute | |
18907 # `config.status --recheck' to rerun these tests and create the | |
18908 # libtool script then. | |
18909 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18910 if test -f "$ltmain_in"; then | |
18911 test -f Makefile && make "$ltmain" | |
18912 fi | |
18913 fi | |
18914 | |
18915 | |
18916 ac_ext=c | |
18917 ac_cpp='$CPP $CPPFLAGS' | |
18918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18920 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18921 | |
18922 CC="$lt_save_CC" | |
18923 | |
18924 else | |
18925 tagname="" | |
18926 fi | |
18927 ;; | |
18928 | |
18929 RC) | |
18930 | |
18931 | |
18932 # Source file extension for RC test sources. | |
18933 ac_ext=rc | |
18934 | |
18935 # Object file extension for compiled RC test sources. | |
18936 objext=o | |
18937 objext_RC=$objext | |
18938 | |
18939 # Code to be used in simple compile tests | |
18940 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
18941 | |
18942 # Code to be used in simple link tests | |
18943 lt_simple_link_test_code="$lt_simple_compile_test_code" | |
18944 | |
18945 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18946 | |
18947 # If no C compiler was specified, use CC. | |
18948 LTCC=${LTCC-"$CC"} | |
18949 | |
18950 # If no C compiler flags were specified, use CFLAGS. | |
18951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
18952 | |
18953 # Allow CC to be a program name with arguments. | |
18954 compiler=$CC | |
18955 | |
18956 | |
18957 # save warnings/boilerplate of simple test code | |
18958 ac_outfile=conftest.$ac_objext | |
18959 printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
18960 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18961 _lt_compiler_boilerplate=`cat conftest.err` | |
18962 $rm conftest* | |
18963 | |
18964 ac_outfile=conftest.$ac_objext | |
18965 printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
18966 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18967 _lt_linker_boilerplate=`cat conftest.err` | |
18968 $rm conftest* | |
18969 | |
18970 | |
18971 # Allow CC to be a program name with arguments. | |
18972 lt_save_CC="$CC" | |
18973 CC=${RC-"windres"} | |
18974 compiler=$CC | |
18975 compiler_RC=$CC | |
18976 for cc_temp in $compiler""; do | |
18977 case $cc_temp in | |
18978 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18979 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18980 \-*) ;; | |
18981 *) break;; | |
18982 esac | |
18983 done | |
18984 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18985 | |
18986 lt_cv_prog_compiler_c_o_RC=yes | |
18987 | |
18988 # The else clause should only fire when bootstrapping the | |
18989 # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18990 # with your package, and you will get complaints that there are | |
18991 # no rules to generate ltmain.sh. | |
18992 if test -f "$ltmain"; then | |
18993 # See if we are running on zsh, and set the options which allow our commands through | |
18994 # without removal of \ escapes. | |
18995 if test -n "${ZSH_VERSION+set}" ; then | |
18996 setopt NO_GLOB_SUBST | |
18997 fi | |
18998 # Now quote all the things that may contain metacharacters while being | |
18999 # careful not to overquote the AC_SUBSTed values. We take copies of the | |
19000 # variables and quote the copies for generation of the libtool script. | |
19001 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
19002 SED SHELL STRIP \ | |
19003 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
19004 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
19005 deplibs_check_method reload_flag reload_cmds need_locks \ | |
19006 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
19007 lt_cv_sys_global_symbol_to_c_name_address \ | |
19008 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
19009 old_postinstall_cmds old_postuninstall_cmds \ | |
19010 compiler_RC \ | |
19011 CC_RC \ | |
19012 LD_RC \ | |
19013 lt_prog_compiler_wl_RC \ | |
19014 lt_prog_compiler_pic_RC \ | |
19015 lt_prog_compiler_static_RC \ | |
19016 lt_prog_compiler_no_builtin_flag_RC \ | |
19017 export_dynamic_flag_spec_RC \ | |
19018 thread_safe_flag_spec_RC \ | |
19019 whole_archive_flag_spec_RC \ | |
19020 enable_shared_with_static_runtimes_RC \ | |
19021 old_archive_cmds_RC \ | |
19022 old_archive_from_new_cmds_RC \ | |
19023 predep_objects_RC \ | |
19024 postdep_objects_RC \ | |
19025 predeps_RC \ | |
19026 postdeps_RC \ | |
19027 compiler_lib_search_path_RC \ | |
19028 archive_cmds_RC \ | |
19029 archive_expsym_cmds_RC \ | |
19030 postinstall_cmds_RC \ | |
19031 postuninstall_cmds_RC \ | |
19032 old_archive_from_expsyms_cmds_RC \ | |
19033 allow_undefined_flag_RC \ | |
19034 no_undefined_flag_RC \ | |
19035 export_symbols_cmds_RC \ | |
19036 hardcode_libdir_flag_spec_RC \ | |
19037 hardcode_libdir_flag_spec_ld_RC \ | |
19038 hardcode_libdir_separator_RC \ | |
19039 hardcode_automatic_RC \ | |
19040 module_cmds_RC \ | |
19041 module_expsym_cmds_RC \ | |
19042 lt_cv_prog_compiler_c_o_RC \ | |
19043 exclude_expsyms_RC \ | |
19044 include_expsyms_RC; do | |
19045 | |
19046 case $var in | |
19047 old_archive_cmds_RC | \ | |
19048 old_archive_from_new_cmds_RC | \ | |
19049 archive_cmds_RC | \ | |
19050 archive_expsym_cmds_RC | \ | |
19051 module_cmds_RC | \ | |
19052 module_expsym_cmds_RC | \ | |
19053 old_archive_from_expsyms_cmds_RC | \ | |
19054 export_symbols_cmds_RC | \ | |
19055 extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
19056 postinstall_cmds | postuninstall_cmds | \ | |
19057 old_postinstall_cmds | old_postuninstall_cmds | \ | |
19058 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
19059 # Double-quote double-evaled strings. | |
19060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
19061 ;; | |
19062 *) | |
19063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
19064 ;; | |
19065 esac | |
19066 done | |
19067 | |
19068 case $lt_echo in | |
19069 *'\$0 --fallback-echo"') | |
19070 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
19071 ;; | |
19072 esac | |
19073 | |
19074 cfgfile="$ofile" | |
19075 | |
19076 cat <<__EOF__ >> "$cfgfile" | |
19077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
19078 | |
19079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19080 | |
19081 # Shell to use when invoking shell scripts. | |
19082 SHELL=$lt_SHELL | |
19083 | |
19084 # Whether or not to build shared libraries. | |
19085 build_libtool_libs=$enable_shared | |
19086 | |
19087 # Whether or not to build static libraries. | |
19088 build_old_libs=$enable_static | |
19089 | |
19090 # Whether or not to add -lc for building shared libraries. | |
19091 build_libtool_need_lc=$archive_cmds_need_lc_RC | |
19092 | |
19093 # Whether or not to disallow shared libs when runtime libs are static | |
19094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
19095 | |
19096 # Whether or not to optimize for fast installation. | |
19097 fast_install=$enable_fast_install | |
19098 | |
19099 # The host system. | |
19100 host_alias=$host_alias | |
19101 host=$host | |
19102 host_os=$host_os | |
19103 | |
19104 # The build system. | |
19105 build_alias=$build_alias | |
19106 build=$build | |
19107 build_os=$build_os | |
19108 | |
19109 # An echo program that does not interpret backslashes. | |
19110 echo=$lt_echo | |
19111 | |
19112 # The archiver. | |
19113 AR=$lt_AR | |
19114 AR_FLAGS=$lt_AR_FLAGS | |
19115 | |
19116 # A C compiler. | |
19117 LTCC=$lt_LTCC | |
19118 | |
19119 # LTCC compiler flags. | |
19120 LTCFLAGS=$lt_LTCFLAGS | |
19121 | |
19122 # A language-specific compiler. | |
19123 CC=$lt_compiler_RC | |
19124 | |
19125 # Is the compiler the GNU C compiler? | |
19126 with_gcc=$GCC_RC | |
19127 | |
19128 # An ERE matcher. | |
19129 EGREP=$lt_EGREP | |
19130 | |
19131 # The linker used to build libraries. | |
19132 LD=$lt_LD_RC | |
19133 | |
19134 # Whether we need hard or soft links. | |
19135 LN_S=$lt_LN_S | |
19136 | |
19137 # A BSD-compatible nm program. | |
19138 NM=$lt_NM | |
19139 | |
19140 # A symbol stripping program | |
19141 STRIP=$lt_STRIP | |
19142 | |
19143 # Used to examine libraries when file_magic_cmd begins "file" | |
19144 MAGIC_CMD=$MAGIC_CMD | |
19145 | |
19146 # Used on cygwin: DLL creation program. | |
19147 DLLTOOL="$DLLTOOL" | |
19148 | |
19149 # Used on cygwin: object dumper. | |
19150 OBJDUMP="$OBJDUMP" | |
19151 | |
19152 # Used on cygwin: assembler. | |
19153 AS="$AS" | |
19154 | |
19155 # The name of the directory that contains temporary libtool files. | |
19156 objdir=$objdir | |
19157 | |
19158 # How to create reloadable object files. | |
19159 reload_flag=$lt_reload_flag | |
19160 reload_cmds=$lt_reload_cmds | |
19161 | |
19162 # How to pass a linker flag through the compiler. | |
19163 wl=$lt_lt_prog_compiler_wl_RC | |
19164 | |
19165 # Object file suffix (normally "o"). | |
19166 objext="$ac_objext" | |
19167 | |
19168 # Old archive suffix (normally "a"). | |
19169 libext="$libext" | |
19170 | |
19171 # Shared library suffix (normally ".so"). | |
19172 shrext_cmds='$shrext_cmds' | |
19173 | |
19174 # Executable file suffix (normally ""). | |
19175 exeext="$exeext" | |
19176 | |
19177 # Additional compiler flags for building library objects. | |
19178 pic_flag=$lt_lt_prog_compiler_pic_RC | |
19179 pic_mode=$pic_mode | |
19180 | |
19181 # What is the maximum length of a command? | |
19182 max_cmd_len=$lt_cv_sys_max_cmd_len | |
19183 | |
19184 # Does compiler simultaneously support -c and -o options? | |
19185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
19186 | |
19187 # Must we lock files when doing compilation? | |
19188 need_locks=$lt_need_locks | |
19189 | |
19190 # Do we need the lib prefix for modules? | |
19191 need_lib_prefix=$need_lib_prefix | |
19192 | |
19193 # Do we need a version for libraries? | |
19194 need_version=$need_version | |
19195 | |
19196 # Whether dlopen is supported. | |
19197 dlopen_support=$enable_dlopen | |
19198 | |
19199 # Whether dlopen of programs is supported. | |
19200 dlopen_self=$enable_dlopen_self | |
19201 | |
19202 # Whether dlopen of statically linked programs is supported. | |
19203 dlopen_self_static=$enable_dlopen_self_static | |
19204 | |
19205 # Compiler flag to prevent dynamic linking. | |
19206 link_static_flag=$lt_lt_prog_compiler_static_RC | |
19207 | |
19208 # Compiler flag to turn off builtin functions. | |
19209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
19210 | |
19211 # Compiler flag to allow reflexive dlopens. | |
19212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
19213 | |
19214 # Compiler flag to generate shared objects directly from archives. | |
19215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
19216 | |
19217 # Compiler flag to generate thread-safe objects. | |
19218 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
19219 | |
19220 # Library versioning type. | |
19221 version_type=$version_type | |
19222 | |
19223 # Format of library name prefix. | |
19224 libname_spec=$lt_libname_spec | |
19225 | |
19226 # List of archive names. First name is the real one, the rest are links. | |
19227 # The last name is the one that the linker finds with -lNAME. | |
19228 library_names_spec=$lt_library_names_spec | |
19229 | |
19230 # The coded name of the library, if different from the real name. | |
19231 soname_spec=$lt_soname_spec | |
19232 | |
19233 # Commands used to build and install an old-style archive. | |
19234 RANLIB=$lt_RANLIB | |
19235 old_archive_cmds=$lt_old_archive_cmds_RC | |
19236 old_postinstall_cmds=$lt_old_postinstall_cmds | |
19237 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19238 | |
19239 # Create an old-style archive from a shared archive. | |
19240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
19241 | |
19242 # Create a temporary old-style archive to link instead of a shared archive. | |
19243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
19244 | |
19245 # Commands used to build and install a shared archive. | |
19246 archive_cmds=$lt_archive_cmds_RC | |
19247 archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
19248 postinstall_cmds=$lt_postinstall_cmds | |
19249 postuninstall_cmds=$lt_postuninstall_cmds | |
19250 | |
19251 # Commands used to build a loadable module (assumed same as above if empty) | |
19252 module_cmds=$lt_module_cmds_RC | |
19253 module_expsym_cmds=$lt_module_expsym_cmds_RC | |
19254 | |
19255 # Commands to strip libraries. | |
19256 old_striplib=$lt_old_striplib | |
19257 striplib=$lt_striplib | |
19258 | |
19259 # Dependencies to place before the objects being linked to create a | |
19260 # shared library. | |
19261 predep_objects=$lt_predep_objects_RC | |
19262 | |
19263 # Dependencies to place after the objects being linked to create a | |
19264 # shared library. | |
19265 postdep_objects=$lt_postdep_objects_RC | |
19266 | |
19267 # Dependencies to place before the objects being linked to create a | |
19268 # shared library. | |
19269 predeps=$lt_predeps_RC | |
19270 | |
19271 # Dependencies to place after the objects being linked to create a | |
19272 # shared library. | |
19273 postdeps=$lt_postdeps_RC | |
19274 | |
19275 # The library search path used internally by the compiler when linking | |
19276 # a shared library. | |
19277 compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
19278 | |
19279 # Method to check whether dependent libraries are shared objects. | |
19280 deplibs_check_method=$lt_deplibs_check_method | |
19281 | |
19282 # Command to use when deplibs_check_method == file_magic. | |
19283 file_magic_cmd=$lt_file_magic_cmd | |
19284 | |
19285 # Flag that allows shared libraries with undefined symbols to be built. | |
19286 allow_undefined_flag=$lt_allow_undefined_flag_RC | |
19287 | |
19288 # Flag that forces no undefined symbols. | |
19289 no_undefined_flag=$lt_no_undefined_flag_RC | |
19290 | |
19291 # Commands used to finish a libtool library installation in a directory. | |
19292 finish_cmds=$lt_finish_cmds | |
19293 | |
19294 # Same as above, but a single script fragment to be evaled but not shown. | |
19295 finish_eval=$lt_finish_eval | |
19296 | |
19297 # Take the output of nm and produce a listing of raw symbols and C names. | |
19298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19299 | |
19300 # Transform the output of nm in a proper C declaration | |
19301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19302 | |
19303 # Transform the output of nm in a C name address pair | |
19304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19305 | |
19306 # This is the shared library runtime path variable. | |
19307 runpath_var=$runpath_var | |
19308 | |
19309 # This is the shared library path variable. | |
19310 shlibpath_var=$shlibpath_var | |
19311 | |
19312 # Is shlibpath searched before the hard-coded library search path? | |
19313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19314 | |
19315 # How to hardcode a shared library path into an executable. | |
19316 hardcode_action=$hardcode_action_RC | |
19317 | |
19318 # Whether we should hardcode library paths into libraries. | |
19319 hardcode_into_libs=$hardcode_into_libs | |
19320 | |
19321 # Flag to hardcode \$libdir into a binary during linking. | |
19322 # This must work even if \$libdir does not exist. | |
19323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
19324 | |
19325 # If ld is used when linking, flag to hardcode \$libdir into | |
19326 # a binary during linking. This must work even if \$libdir does | |
19327 # not exist. | |
19328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
19329 | |
19330 # Whether we need a single -rpath flag with a separated argument. | |
19331 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
19332 | |
19333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
19334 # resulting binary. | |
19335 hardcode_direct=$hardcode_direct_RC | |
19336 | |
19337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
19338 # resulting binary. | |
19339 hardcode_minus_L=$hardcode_minus_L_RC | |
19340 | |
19341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
19342 # the resulting binary. | |
19343 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
19344 | |
19345 # Set to yes if building a shared library automatically hardcodes DIR into the library | |
19346 # and all subsequent libraries and executables linked against it. | |
19347 hardcode_automatic=$hardcode_automatic_RC | |
19348 | |
19349 # Variables whose values should be saved in libtool wrapper scripts and | |
19350 # restored at relink time. | |
19351 variables_saved_for_relink="$variables_saved_for_relink" | |
19352 | |
19353 # Whether libtool must link a program against all its dependency libraries. | |
19354 link_all_deplibs=$link_all_deplibs_RC | |
19355 | |
19356 # Compile-time system search path for libraries | |
19357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19358 | |
19359 # Run-time system search path for libraries | |
19360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19361 | |
19362 # Fix the shell variable \$srcfile for the compiler. | |
19363 fix_srcfile_path="$fix_srcfile_path_RC" | |
19364 | |
19365 # Set to yes if exported symbols are required. | |
19366 always_export_symbols=$always_export_symbols_RC | |
19367 | |
19368 # The commands to list exported symbols. | |
19369 export_symbols_cmds=$lt_export_symbols_cmds_RC | |
19370 | |
19371 # The commands to extract the exported symbol list from a shared archive. | |
19372 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19373 | |
19374 # Symbols that should not be listed in the preloaded symbols. | |
19375 exclude_expsyms=$lt_exclude_expsyms_RC | |
19376 | |
19377 # Symbols that must always be exported. | |
19378 include_expsyms=$lt_include_expsyms_RC | |
19379 | |
19380 # ### END LIBTOOL TAG CONFIG: $tagname | |
19381 | |
19382 __EOF__ | |
19383 | |
19384 | |
19385 else | |
19386 # If there is no Makefile yet, we rely on a make rule to execute | |
19387 # `config.status --recheck' to rerun these tests and create the | |
19388 # libtool script then. | |
19389 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
19390 if test -f "$ltmain_in"; then | |
19391 test -f Makefile && make "$ltmain" | |
19392 fi | |
19393 fi | |
19394 | |
19395 | |
19396 ac_ext=c | |
19397 ac_cpp='$CPP $CPPFLAGS' | |
19398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19400 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19401 | |
19402 CC="$lt_save_CC" | |
19403 | |
19404 ;; | |
19405 | |
19406 *) | |
19407 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
19408 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
19409 { (exit 1); exit 1; }; } | |
19410 ;; | |
19411 esac | |
19412 | |
19413 # Append the new tag name to the list of available tags. | |
19414 if test -n "$tagname" ; then | |
19415 available_tags="$available_tags $tagname" | |
19416 fi | |
19417 fi | |
19418 done | |
19419 IFS="$lt_save_ifs" | |
19420 | |
19421 # Now substitute the updated list of available tags. | |
19422 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
19423 mv "${ofile}T" "$ofile" | |
19424 chmod +x "$ofile" | |
19425 else | |
19426 rm -f "${ofile}T" | |
19427 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
19428 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
19429 { (exit 1); exit 1; }; } | |
19430 fi | |
19431 fi | |
19432 | |
19433 | |
19434 | |
19435 # This can be used to rebuild libtool when needed | |
19436 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
19437 | |
19438 # Always use our own libtool. | |
19439 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
19440 | |
19441 # Prevent multiple expansion | |
19442 | |
19443 | |
19444 | |
19445 | |
19446 | |
19447 | |
19448 | |
19449 | |
19450 | |
19451 | |
19452 | |
19453 | |
19454 | |
19455 | |
19456 | |
19457 | |
19458 | |
19459 | |
19460 | 11137 |
19461 | 11138 |
19462 | 11139 |
19463 | 11140 |
19464 | 11141 |
23179 | 14856 |
23180 cat >>$CONFIG_STATUS <<_ACEOF | 14857 cat >>$CONFIG_STATUS <<_ACEOF |
23181 # Files that config.status was made for. | 14858 # Files that config.status was made for. |
23182 config_files="$ac_config_files" | 14859 config_files="$ac_config_files" |
23183 config_headers="$ac_config_headers" | 14860 config_headers="$ac_config_headers" |
14861 config_commands="$ac_config_commands" | |
23184 | 14862 |
23185 _ACEOF | 14863 _ACEOF |
23186 | 14864 |
23187 cat >>$CONFIG_STATUS <<\_ACEOF | 14865 cat >>$CONFIG_STATUS <<\_ACEOF |
23188 ac_cs_usage="\ | 14866 ac_cs_usage="\ |
23204 Configuration files: | 14882 Configuration files: |
23205 $config_files | 14883 $config_files |
23206 | 14884 |
23207 Configuration headers: | 14885 Configuration headers: |
23208 $config_headers | 14886 $config_headers |
14887 | |
14888 Configuration commands: | |
14889 $config_commands | |
23209 | 14890 |
23210 Report bugs to <bug-autoconf@gnu.org>." | 14891 Report bugs to <bug-autoconf@gnu.org>." |
23211 | 14892 |
23212 _ACEOF | 14893 _ACEOF |
23213 cat >>$CONFIG_STATUS <<_ACEOF | 14894 cat >>$CONFIG_STATUS <<_ACEOF |
23310 echo "$ac_log" | 14991 echo "$ac_log" |
23311 } >&5 | 14992 } >&5 |
23312 | 14993 |
23313 _ACEOF | 14994 _ACEOF |
23314 cat >>$CONFIG_STATUS <<_ACEOF | 14995 cat >>$CONFIG_STATUS <<_ACEOF |
14996 # | |
14997 # INIT-COMMANDS | |
14998 # | |
14999 | |
15000 | |
15001 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
15002 # if CDPATH is set. | |
15003 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15004 | |
15005 sed_quote_subst='$sed_quote_subst' | |
15006 double_quote_subst='$double_quote_subst' | |
15007 delay_variable_subst='$delay_variable_subst' | |
15008 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
15009 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
15010 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
15011 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
15012 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
15013 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
15014 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
15015 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
15016 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
15017 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
15018 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
15019 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
15020 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
15021 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
15022 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
15023 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
15024 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
15025 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
15026 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
15027 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
15028 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
15029 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
15030 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
15031 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
15032 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
15033 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
15034 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15035 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15036 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' | |
15037 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
15038 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
15039 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
15040 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
15041 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
15042 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
15043 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15044 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15045 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15046 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
15047 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
15048 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
15049 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
15050 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
15051 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
15052 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
15053 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
15054 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
15055 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
15056 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
15057 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
15058 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15059 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
15060 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
15061 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
15062 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
15063 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
15064 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' | |
15065 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
15066 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
15067 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
15068 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
15069 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
15070 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15071 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15072 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
15073 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
15074 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15075 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15076 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
15077 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15078 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15079 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15080 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15081 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15082 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15083 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
15084 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15085 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
15086 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15087 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
15088 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
15089 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
15090 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
15091 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
15092 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
15093 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
15094 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
15095 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
15096 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
15097 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
15098 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15099 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
15100 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
15101 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15102 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15103 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
15104 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
15105 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
15106 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
15107 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
15108 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
15109 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
15110 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15111 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15112 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15113 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15114 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15115 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
15116 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
15117 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
15118 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15119 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
15120 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
15121 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
15122 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
15123 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
15124 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
15125 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
15126 | |
15127 LTCC='$LTCC' | |
15128 LTCFLAGS='$LTCFLAGS' | |
15129 compiler='$compiler_DEFAULT' | |
15130 | |
15131 # Quote evaled strings. | |
15132 for var in SED \ | |
15133 GREP \ | |
15134 EGREP \ | |
15135 FGREP \ | |
15136 LD \ | |
15137 NM \ | |
15138 LN_S \ | |
15139 lt_SP2NL \ | |
15140 lt_NL2SP \ | |
15141 reload_flag \ | |
15142 OBJDUMP \ | |
15143 deplibs_check_method \ | |
15144 file_magic_cmd \ | |
15145 AR \ | |
15146 AR_FLAGS \ | |
15147 STRIP \ | |
15148 RANLIB \ | |
15149 CC \ | |
15150 CFLAGS \ | |
15151 compiler \ | |
15152 lt_cv_sys_global_symbol_pipe \ | |
15153 lt_cv_sys_global_symbol_to_cdecl \ | |
15154 lt_cv_sys_global_symbol_to_c_name_address \ | |
15155 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
15156 SHELL \ | |
15157 ECHO \ | |
15158 lt_prog_compiler_no_builtin_flag \ | |
15159 lt_prog_compiler_wl \ | |
15160 lt_prog_compiler_pic \ | |
15161 lt_prog_compiler_static \ | |
15162 lt_cv_prog_compiler_c_o \ | |
15163 need_locks \ | |
15164 DSYMUTIL \ | |
15165 NMEDIT \ | |
15166 LIPO \ | |
15167 OTOOL \ | |
15168 OTOOL64 \ | |
15169 shrext_cmds \ | |
15170 export_dynamic_flag_spec \ | |
15171 whole_archive_flag_spec \ | |
15172 compiler_needs_object \ | |
15173 with_gnu_ld \ | |
15174 allow_undefined_flag \ | |
15175 no_undefined_flag \ | |
15176 hardcode_libdir_flag_spec \ | |
15177 hardcode_libdir_flag_spec_ld \ | |
15178 hardcode_libdir_separator \ | |
15179 fix_srcfile_path \ | |
15180 exclude_expsyms \ | |
15181 include_expsyms \ | |
15182 file_list_spec \ | |
15183 variables_saved_for_relink \ | |
15184 libname_spec \ | |
15185 library_names_spec \ | |
15186 soname_spec \ | |
15187 finish_eval \ | |
15188 old_striplib \ | |
15189 striplib; do | |
15190 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
15191 *[\\\\\\\`\\"\\\$]*) | |
15192 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
15193 ;; | |
15194 *) | |
15195 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15196 ;; | |
15197 esac | |
15198 done | |
15199 | |
15200 # Double-quote double-evaled strings. | |
15201 for var in reload_cmds \ | |
15202 old_postinstall_cmds \ | |
15203 old_postuninstall_cmds \ | |
15204 old_archive_cmds \ | |
15205 extract_expsyms_cmds \ | |
15206 old_archive_from_new_cmds \ | |
15207 old_archive_from_expsyms_cmds \ | |
15208 archive_cmds \ | |
15209 archive_expsym_cmds \ | |
15210 module_cmds \ | |
15211 module_expsym_cmds \ | |
15212 export_symbols_cmds \ | |
15213 prelink_cmds \ | |
15214 postinstall_cmds \ | |
15215 postuninstall_cmds \ | |
15216 finish_cmds \ | |
15217 sys_lib_search_path_spec \ | |
15218 sys_lib_dlsearch_path_spec; do | |
15219 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
15220 *[\\\\\\\`\\"\\\$]*) | |
15221 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
15222 ;; | |
15223 *) | |
15224 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15225 ;; | |
15226 esac | |
15227 done | |
15228 | |
15229 # Fix-up fallback echo if it was mangled by the above quoting rules. | |
15230 case \$lt_ECHO in | |
15231 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
15232 ;; | |
15233 esac | |
15234 | |
15235 ac_aux_dir='$ac_aux_dir' | |
15236 xsi_shell='$xsi_shell' | |
15237 lt_shell_append='$lt_shell_append' | |
15238 | |
15239 # See if we are running on zsh, and set the options which allow our | |
15240 # commands through without removal of \ escapes INIT. | |
15241 if test -n "\${ZSH_VERSION+set}" ; then | |
15242 setopt NO_GLOB_SUBST | |
15243 fi | |
15244 | |
15245 | |
15246 PACKAGE='$PACKAGE' | |
15247 VERSION='$VERSION' | |
15248 TIMESTAMP='$TIMESTAMP' | |
15249 RM='$RM' | |
15250 ofile='$ofile' | |
15251 | |
15252 | |
15253 | |
15254 | |
23315 _ACEOF | 15255 _ACEOF |
23316 | 15256 |
23317 cat >>$CONFIG_STATUS <<\_ACEOF | 15257 cat >>$CONFIG_STATUS <<\_ACEOF |
23318 | 15258 |
23319 # Handling of arguments. | 15259 # Handling of arguments. |
23320 for ac_config_target in $ac_config_targets | 15260 for ac_config_target in $ac_config_targets |
23321 do | 15261 do |
23322 case $ac_config_target in | 15262 case $ac_config_target in |
23323 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | 15263 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
15264 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
23324 "${makefiles_generic}") CONFIG_FILES="$CONFIG_FILES ${makefiles_generic}" ;; | 15265 "${makefiles_generic}") CONFIG_FILES="$CONFIG_FILES ${makefiles_generic}" ;; |
23325 "${makefiles_wnn}") CONFIG_FILES="$CONFIG_FILES ${makefiles_wnn}" ;; | 15266 "${makefiles_wnn}") CONFIG_FILES="$CONFIG_FILES ${makefiles_wnn}" ;; |
23326 "${makefiles_wnn_dic}") CONFIG_FILES="$CONFIG_FILES ${makefiles_wnn_dic}" ;; | 15267 "${makefiles_wnn_dic}") CONFIG_FILES="$CONFIG_FILES ${makefiles_wnn_dic}" ;; |
23327 "${makefiles_cwnn}") CONFIG_FILES="$CONFIG_FILES ${makefiles_cwnn}" ;; | 15268 "${makefiles_cwnn}") CONFIG_FILES="$CONFIG_FILES ${makefiles_cwnn}" ;; |
23328 "${makefiles_cwnn_dic}") CONFIG_FILES="$CONFIG_FILES ${makefiles_cwnn_dic}" ;; | 15269 "${makefiles_cwnn_dic}") CONFIG_FILES="$CONFIG_FILES ${makefiles_cwnn_dic}" ;; |
23341 # We use the long form for the default assignment because of an extremely | 15282 # We use the long form for the default assignment because of an extremely |
23342 # bizarre bug on SunOS 4.1.3. | 15283 # bizarre bug on SunOS 4.1.3. |
23343 if $ac_need_defaults; then | 15284 if $ac_need_defaults; then |
23344 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 15285 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
23345 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 15286 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
15287 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
23346 fi | 15288 fi |
23347 | 15289 |
23348 # Have a temporary directory for convenience. Make it in the build tree | 15290 # Have a temporary directory for convenience. Make it in the build tree |
23349 # simply because there is no reason against having it here, and in addition, | 15291 # simply because there is no reason against having it here, and in addition, |
23350 # creating and moving files from /tmp can sometimes cause problems. | 15292 # creating and moving files from /tmp can sometimes cause problems. |
23466 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | 15408 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
23467 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | 15409 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
23468 INSTALL_DATA!$INSTALL_DATA$ac_delim | 15410 INSTALL_DATA!$INSTALL_DATA$ac_delim |
23469 LN_S!$LN_S$ac_delim | 15411 LN_S!$LN_S$ac_delim |
23470 SET_MAKE!$SET_MAKE$ac_delim | 15412 SET_MAKE!$SET_MAKE$ac_delim |
15413 LIBTOOL!$LIBTOOL$ac_delim | |
15414 SED!$SED$ac_delim | |
23471 GREP!$GREP$ac_delim | 15415 GREP!$GREP$ac_delim |
23472 EGREP!$EGREP$ac_delim | 15416 EGREP!$EGREP$ac_delim |
23473 ECHO!$ECHO$ac_delim | 15417 FGREP!$FGREP$ac_delim |
15418 LD!$LD$ac_delim | |
15419 DUMPBIN!$DUMPBIN$ac_delim | |
15420 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim | |
15421 NM!$NM$ac_delim | |
15422 OBJDUMP!$OBJDUMP$ac_delim | |
23474 AR!$AR$ac_delim | 15423 AR!$AR$ac_delim |
15424 STRIP!$STRIP$ac_delim | |
23475 RANLIB!$RANLIB$ac_delim | 15425 RANLIB!$RANLIB$ac_delim |
23476 STRIP!$STRIP$ac_delim | 15426 lt_ECHO!$lt_ECHO$ac_delim |
23477 CXX!$CXX$ac_delim | 15427 DSYMUTIL!$DSYMUTIL$ac_delim |
23478 CXXFLAGS!$CXXFLAGS$ac_delim | 15428 NMEDIT!$NMEDIT$ac_delim |
23479 ac_ct_CXX!$ac_ct_CXX$ac_delim | 15429 LIPO!$LIPO$ac_delim |
23480 CXXCPP!$CXXCPP$ac_delim | 15430 OTOOL!$OTOOL$ac_delim |
23481 F77!$F77$ac_delim | |
23482 FFLAGS!$FFLAGS$ac_delim | |
23483 ac_ct_F77!$ac_ct_F77$ac_delim | |
23484 LIBTOOL!$LIBTOOL$ac_delim | |
23485 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim | |
23486 XMKMF!$XMKMF$ac_delim | |
23487 TERMLIB!$TERMLIB$ac_delim | |
23488 CNVFILE_SUBDIR!$CNVFILE_SUBDIR$ac_delim | |
23489 _ACEOF | 15431 _ACEOF |
23490 | 15432 |
23491 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | 15433 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
23492 break | 15434 break |
23493 elif $ac_last_try; then | 15435 elif $ac_last_try; then |
23525 | 15467 |
23526 | 15468 |
23527 ac_delim='%!_!# ' | 15469 ac_delim='%!_!# ' |
23528 for ac_last_try in false false false false false :; do | 15470 for ac_last_try in false false false false false :; do |
23529 cat >conf$$subs.sed <<_ACEOF | 15471 cat >conf$$subs.sed <<_ACEOF |
15472 OTOOL64!$OTOOL64$ac_delim | |
15473 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim | |
15474 XMKMF!$XMKMF$ac_delim | |
15475 TERMLIB!$TERMLIB$ac_delim | |
15476 CNVFILE_SUBDIR!$CNVFILE_SUBDIR$ac_delim | |
23530 LIBOBJS!$LIBOBJS$ac_delim | 15477 LIBOBJS!$LIBOBJS$ac_delim |
23531 JS_SUPPORTOBJS!$JS_SUPPORTOBJS$ac_delim | 15478 JS_SUPPORTOBJS!$JS_SUPPORTOBJS$ac_delim |
23532 WRAPLIB!$WRAPLIB$ac_delim | 15479 WRAPLIB!$WRAPLIB$ac_delim |
23533 LTLIBOBJS!$LTLIBOBJS$ac_delim | 15480 LTLIBOBJS!$LTLIBOBJS$ac_delim |
23534 _ACEOF | 15481 _ACEOF |
23535 | 15482 |
23536 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then | 15483 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then |
23537 break | 15484 break |
23538 elif $ac_last_try; then | 15485 elif $ac_last_try; then |
23539 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | 15486 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
23540 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | 15487 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
23541 { (exit 1); exit 1; }; } | 15488 { (exit 1); exit 1; }; } |
23588 | 15535 |
23589 cat >>$CONFIG_STATUS <<\_ACEOF | 15536 cat >>$CONFIG_STATUS <<\_ACEOF |
23590 fi # test -n "$CONFIG_FILES" | 15537 fi # test -n "$CONFIG_FILES" |
23591 | 15538 |
23592 | 15539 |
23593 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS | 15540 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
23594 do | 15541 do |
23595 case $ac_tag in | 15542 case $ac_tag in |
23596 :[FHLC]) ac_mode=$ac_tag; continue;; | 15543 :[FHLC]) ac_mode=$ac_tag; continue;; |
23597 esac | 15544 esac |
23598 case $ac_mode$ac_tag in | 15545 case $ac_mode$ac_tag in |
23927 cat "$ac_result" | 15874 cat "$ac_result" |
23928 fi | 15875 fi |
23929 rm -f "$tmp/out12" | 15876 rm -f "$tmp/out12" |
23930 ;; | 15877 ;; |
23931 | 15878 |
23932 | 15879 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
15880 echo "$as_me: executing $ac_file commands" >&6;} | |
15881 ;; | |
23933 esac | 15882 esac |
23934 | 15883 |
15884 | |
15885 case $ac_file$ac_mode in | |
15886 "libtool":C) | |
15887 | |
15888 # See if we are running on zsh, and set the options which allow our | |
15889 # commands through without removal of \ escapes. | |
15890 if test -n "${ZSH_VERSION+set}" ; then | |
15891 setopt NO_GLOB_SUBST | |
15892 fi | |
15893 | |
15894 cfgfile="${ofile}T" | |
15895 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
15896 $RM "$cfgfile" | |
15897 | |
15898 cat <<_LT_EOF >> "$cfgfile" | |
15899 #! $SHELL | |
15900 | |
15901 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
15902 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
15903 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15904 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
15905 # | |
15906 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
15907 # 2006, 2007, 2008 Free Software Foundation, Inc. | |
15908 # Written by Gordon Matzigkeit, 1996 | |
15909 # | |
15910 # This file is part of GNU Libtool. | |
15911 # | |
15912 # GNU Libtool is free software; you can redistribute it and/or | |
15913 # modify it under the terms of the GNU General Public License as | |
15914 # published by the Free Software Foundation; either version 2 of | |
15915 # the License, or (at your option) any later version. | |
15916 # | |
15917 # As a special exception to the GNU General Public License, | |
15918 # if you distribute this file as part of a program or library that | |
15919 # is built using GNU Libtool, you may include this file under the | |
15920 # same distribution terms that you use for the rest of that program. | |
15921 # | |
15922 # GNU Libtool is distributed in the hope that it will be useful, | |
15923 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15924 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15925 # GNU General Public License for more details. | |
15926 # | |
15927 # You should have received a copy of the GNU General Public License | |
15928 # along with GNU Libtool; see the file COPYING. If not, a copy | |
15929 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
15930 # obtained by writing to the Free Software Foundation, Inc., | |
15931 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
15932 | |
15933 | |
15934 # The names of the tagged configurations supported by this script. | |
15935 available_tags="" | |
15936 | |
15937 # ### BEGIN LIBTOOL CONFIG | |
15938 | |
15939 # Which release of libtool.m4 was used? | |
15940 macro_version=$macro_version | |
15941 macro_revision=$macro_revision | |
15942 | |
15943 # Whether or not to build shared libraries. | |
15944 build_libtool_libs=$enable_shared | |
15945 | |
15946 # Whether or not to build static libraries. | |
15947 build_old_libs=$enable_static | |
15948 | |
15949 # What type of objects to build. | |
15950 pic_mode=$pic_mode | |
15951 | |
15952 # Whether or not to optimize for fast installation. | |
15953 fast_install=$enable_fast_install | |
15954 | |
15955 # The host system. | |
15956 host_alias=$host_alias | |
15957 host=$host | |
15958 host_os=$host_os | |
15959 | |
15960 # The build system. | |
15961 build_alias=$build_alias | |
15962 build=$build | |
15963 build_os=$build_os | |
15964 | |
15965 # A sed program that does not truncate output. | |
15966 SED=$lt_SED | |
15967 | |
15968 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
15969 Xsed="\$SED -e 1s/^X//" | |
15970 | |
15971 # A grep program that handles long lines. | |
15972 GREP=$lt_GREP | |
15973 | |
15974 # An ERE matcher. | |
15975 EGREP=$lt_EGREP | |
15976 | |
15977 # A literal string matcher. | |
15978 FGREP=$lt_FGREP | |
15979 | |
15980 # A BSD- or MS-compatible name lister. | |
15981 NM=$lt_NM | |
15982 | |
15983 # Whether we need soft or hard links. | |
15984 LN_S=$lt_LN_S | |
15985 | |
15986 # What is the maximum length of a command? | |
15987 max_cmd_len=$max_cmd_len | |
15988 | |
15989 # Object file suffix (normally "o"). | |
15990 objext=$ac_objext | |
15991 | |
15992 # Executable file suffix (normally ""). | |
15993 exeext=$exeext | |
15994 | |
15995 # whether the shell understands "unset". | |
15996 lt_unset=$lt_unset | |
15997 | |
15998 # turn spaces into newlines. | |
15999 SP2NL=$lt_lt_SP2NL | |
16000 | |
16001 # turn newlines into spaces. | |
16002 NL2SP=$lt_lt_NL2SP | |
16003 | |
16004 # How to create reloadable object files. | |
16005 reload_flag=$lt_reload_flag | |
16006 reload_cmds=$lt_reload_cmds | |
16007 | |
16008 # An object symbol dumper. | |
16009 OBJDUMP=$lt_OBJDUMP | |
16010 | |
16011 # Method to check whether dependent libraries are shared objects. | |
16012 deplibs_check_method=$lt_deplibs_check_method | |
16013 | |
16014 # Command to use when deplibs_check_method == "file_magic". | |
16015 file_magic_cmd=$lt_file_magic_cmd | |
16016 | |
16017 # The archiver. | |
16018 AR=$lt_AR | |
16019 AR_FLAGS=$lt_AR_FLAGS | |
16020 | |
16021 # A symbol stripping program. | |
16022 STRIP=$lt_STRIP | |
16023 | |
16024 # Commands used to install an old-style archive. | |
16025 RANLIB=$lt_RANLIB | |
16026 old_postinstall_cmds=$lt_old_postinstall_cmds | |
16027 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
16028 | |
16029 # A C compiler. | |
16030 LTCC=$lt_CC | |
16031 | |
16032 # LTCC compiler flags. | |
16033 LTCFLAGS=$lt_CFLAGS | |
16034 | |
16035 # Take the output of nm and produce a listing of raw symbols and C names. | |
16036 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
16037 | |
16038 # Transform the output of nm in a proper C declaration. | |
16039 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
16040 | |
16041 # Transform the output of nm in a C name address pair. | |
16042 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
16043 | |
16044 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
16045 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
16046 | |
16047 # The name of the directory that contains temporary libtool files. | |
16048 objdir=$objdir | |
16049 | |
16050 # Shell to use when invoking shell scripts. | |
16051 SHELL=$lt_SHELL | |
16052 | |
16053 # An echo program that does not interpret backslashes. | |
16054 ECHO=$lt_ECHO | |
16055 | |
16056 # Used to examine libraries when file_magic_cmd begins with "file". | |
16057 MAGIC_CMD=$MAGIC_CMD | |
16058 | |
16059 # Must we lock files when doing compilation? | |
16060 need_locks=$lt_need_locks | |
16061 | |
16062 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
16063 DSYMUTIL=$lt_DSYMUTIL | |
16064 | |
16065 # Tool to change global to local symbols on Mac OS X. | |
16066 NMEDIT=$lt_NMEDIT | |
16067 | |
16068 # Tool to manipulate fat objects and archives on Mac OS X. | |
16069 LIPO=$lt_LIPO | |
16070 | |
16071 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
16072 OTOOL=$lt_OTOOL | |
16073 | |
16074 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
16075 OTOOL64=$lt_OTOOL64 | |
16076 | |
16077 # Old archive suffix (normally "a"). | |
16078 libext=$libext | |
16079 | |
16080 # Shared library suffix (normally ".so"). | |
16081 shrext_cmds=$lt_shrext_cmds | |
16082 | |
16083 # The commands to extract the exported symbol list from a shared archive. | |
16084 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16085 | |
16086 # Variables whose values should be saved in libtool wrapper scripts and | |
16087 # restored at link time. | |
16088 variables_saved_for_relink=$lt_variables_saved_for_relink | |
16089 | |
16090 # Do we need the "lib" prefix for modules? | |
16091 need_lib_prefix=$need_lib_prefix | |
16092 | |
16093 # Do we need a version for libraries? | |
16094 need_version=$need_version | |
16095 | |
16096 # Library versioning type. | |
16097 version_type=$version_type | |
16098 | |
16099 # Shared library runtime path variable. | |
16100 runpath_var=$runpath_var | |
16101 | |
16102 # Shared library path variable. | |
16103 shlibpath_var=$shlibpath_var | |
16104 | |
16105 # Is shlibpath searched before the hard-coded library search path? | |
16106 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16107 | |
16108 # Format of library name prefix. | |
16109 libname_spec=$lt_libname_spec | |
16110 | |
16111 # List of archive names. First name is the real one, the rest are links. | |
16112 # The last name is the one that the linker finds with -lNAME | |
16113 library_names_spec=$lt_library_names_spec | |
16114 | |
16115 # The coded name of the library, if different from the real name. | |
16116 soname_spec=$lt_soname_spec | |
16117 | |
16118 # Command to use after installation of a shared archive. | |
16119 postinstall_cmds=$lt_postinstall_cmds | |
16120 | |
16121 # Command to use after uninstallation of a shared archive. | |
16122 postuninstall_cmds=$lt_postuninstall_cmds | |
16123 | |
16124 # Commands used to finish a libtool library installation in a directory. | |
16125 finish_cmds=$lt_finish_cmds | |
16126 | |
16127 # As "finish_cmds", except a single script fragment to be evaled but | |
16128 # not shown. | |
16129 finish_eval=$lt_finish_eval | |
16130 | |
16131 # Whether we should hardcode library paths into libraries. | |
16132 hardcode_into_libs=$hardcode_into_libs | |
16133 | |
16134 # Compile-time system search path for libraries. | |
16135 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16136 | |
16137 # Run-time system search path for libraries. | |
16138 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16139 | |
16140 # Whether dlopen is supported. | |
16141 dlopen_support=$enable_dlopen | |
16142 | |
16143 # Whether dlopen of programs is supported. | |
16144 dlopen_self=$enable_dlopen_self | |
16145 | |
16146 # Whether dlopen of statically linked programs is supported. | |
16147 dlopen_self_static=$enable_dlopen_self_static | |
16148 | |
16149 # Commands to strip libraries. | |
16150 old_striplib=$lt_old_striplib | |
16151 striplib=$lt_striplib | |
16152 | |
16153 | |
16154 # The linker used to build libraries. | |
16155 LD=$lt_LD | |
16156 | |
16157 # Commands used to build an old-style archive. | |
16158 old_archive_cmds=$lt_old_archive_cmds | |
16159 | |
16160 # A language specific compiler. | |
16161 CC=$lt_compiler | |
16162 | |
16163 # Is the compiler the GNU compiler? | |
16164 with_gcc=$GCC | |
16165 | |
16166 # Compiler flag to turn off builtin functions. | |
16167 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16168 | |
16169 # How to pass a linker flag through the compiler. | |
16170 wl=$lt_lt_prog_compiler_wl | |
16171 | |
16172 # Additional compiler flags for building library objects. | |
16173 pic_flag=$lt_lt_prog_compiler_pic | |
16174 | |
16175 # Compiler flag to prevent dynamic linking. | |
16176 link_static_flag=$lt_lt_prog_compiler_static | |
16177 | |
16178 # Does compiler simultaneously support -c and -o options? | |
16179 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16180 | |
16181 # Whether or not to add -lc for building shared libraries. | |
16182 build_libtool_need_lc=$archive_cmds_need_lc | |
16183 | |
16184 # Whether or not to disallow shared libs when runtime libs are static. | |
16185 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16186 | |
16187 # Compiler flag to allow reflexive dlopens. | |
16188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16189 | |
16190 # Compiler flag to generate shared objects directly from archives. | |
16191 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16192 | |
16193 # Whether the compiler copes with passing no objects directly. | |
16194 compiler_needs_object=$lt_compiler_needs_object | |
16195 | |
16196 # Create an old-style archive from a shared archive. | |
16197 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
16198 | |
16199 # Create a temporary old-style archive to link instead of a shared archive. | |
16200 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
16201 | |
16202 # Commands used to build a shared archive. | |
16203 archive_cmds=$lt_archive_cmds | |
16204 archive_expsym_cmds=$lt_archive_expsym_cmds | |
16205 | |
16206 # Commands used to build a loadable module if different from building | |
16207 # a shared archive. | |
16208 module_cmds=$lt_module_cmds | |
16209 module_expsym_cmds=$lt_module_expsym_cmds | |
16210 | |
16211 # Whether we are building with GNU ld or not. | |
16212 with_gnu_ld=$lt_with_gnu_ld | |
16213 | |
16214 # Flag that allows shared libraries with undefined symbols to be built. | |
16215 allow_undefined_flag=$lt_allow_undefined_flag | |
16216 | |
16217 # Flag that enforces no undefined symbols. | |
16218 no_undefined_flag=$lt_no_undefined_flag | |
16219 | |
16220 # Flag to hardcode \$libdir into a binary during linking. | |
16221 # This must work even if \$libdir does not exist | |
16222 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
16223 | |
16224 # If ld is used when linking, flag to hardcode \$libdir into a binary | |
16225 # during linking. This must work even if \$libdir does not exist. | |
16226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
16227 | |
16228 # Whether we need a single "-rpath" flag with a separated argument. | |
16229 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
16230 | |
16231 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16232 # DIR into the resulting binary. | |
16233 hardcode_direct=$hardcode_direct | |
16234 | |
16235 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
16236 # DIR into the resulting binary and the resulting library dependency is | |
16237 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
16238 # library is relocated. | |
16239 hardcode_direct_absolute=$hardcode_direct_absolute | |
16240 | |
16241 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
16242 # into the resulting binary. | |
16243 hardcode_minus_L=$hardcode_minus_L | |
16244 | |
16245 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
16246 # into the resulting binary. | |
16247 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
16248 | |
16249 # Set to "yes" if building a shared library automatically hardcodes DIR | |
16250 # into the library and all subsequent libraries and executables linked | |
16251 # against it. | |
16252 hardcode_automatic=$hardcode_automatic | |
16253 | |
16254 # Set to yes if linker adds runtime paths of dependent libraries | |
16255 # to runtime path list. | |
16256 inherit_rpath=$inherit_rpath | |
16257 | |
16258 # Whether libtool must link a program against all its dependency libraries. | |
16259 link_all_deplibs=$link_all_deplibs | |
16260 | |
16261 # Fix the shell variable \$srcfile for the compiler. | |
16262 fix_srcfile_path=$lt_fix_srcfile_path | |
16263 | |
16264 # Set to "yes" if exported symbols are required. | |
16265 always_export_symbols=$always_export_symbols | |
16266 | |
16267 # The commands to list exported symbols. | |
16268 export_symbols_cmds=$lt_export_symbols_cmds | |
16269 | |
16270 # Symbols that should not be listed in the preloaded symbols. | |
16271 exclude_expsyms=$lt_exclude_expsyms | |
16272 | |
16273 # Symbols that must always be exported. | |
16274 include_expsyms=$lt_include_expsyms | |
16275 | |
16276 # Commands necessary for linking programs (against libraries) with templates. | |
16277 prelink_cmds=$lt_prelink_cmds | |
16278 | |
16279 # Specify filename containing input files. | |
16280 file_list_spec=$lt_file_list_spec | |
16281 | |
16282 # How to hardcode a shared library path into an executable. | |
16283 hardcode_action=$hardcode_action | |
16284 | |
16285 # ### END LIBTOOL CONFIG | |
16286 | |
16287 _LT_EOF | |
16288 | |
16289 case $host_os in | |
16290 aix3*) | |
16291 cat <<\_LT_EOF >> "$cfgfile" | |
16292 # AIX sometimes has problems with the GCC collect2 program. For some | |
16293 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
16294 # vanish in a puff of smoke. | |
16295 if test "X${COLLECT_NAMES+set}" != Xset; then | |
16296 COLLECT_NAMES= | |
16297 export COLLECT_NAMES | |
16298 fi | |
16299 _LT_EOF | |
16300 ;; | |
16301 esac | |
16302 | |
16303 | |
16304 ltmain="$ac_aux_dir/ltmain.sh" | |
16305 | |
16306 | |
16307 # We use sed instead of cat because bash on DJGPP gets confused if | |
16308 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
16309 # text mode, it properly converts lines to CR/LF. This bash problem | |
16310 # is reportedly fixed, but why not run on old versions too? | |
16311 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
16312 || (rm -f "$cfgfile"; exit 1) | |
16313 | |
16314 case $xsi_shell in | |
16315 yes) | |
16316 cat << \_LT_EOF >> "$cfgfile" | |
16317 | |
16318 # func_dirname file append nondir_replacement | |
16319 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16320 # otherwise set result to NONDIR_REPLACEMENT. | |
16321 func_dirname () | |
16322 { | |
16323 case ${1} in | |
16324 */*) func_dirname_result="${1%/*}${2}" ;; | |
16325 * ) func_dirname_result="${3}" ;; | |
16326 esac | |
16327 } | |
16328 | |
16329 # func_basename file | |
16330 func_basename () | |
16331 { | |
16332 func_basename_result="${1##*/}" | |
16333 } | |
16334 | |
16335 # func_dirname_and_basename file append nondir_replacement | |
16336 # perform func_basename and func_dirname in a single function | |
16337 # call: | |
16338 # dirname: Compute the dirname of FILE. If nonempty, | |
16339 # add APPEND to the result, otherwise set result | |
16340 # to NONDIR_REPLACEMENT. | |
16341 # value returned in "$func_dirname_result" | |
16342 # basename: Compute filename of FILE. | |
16343 # value retuned in "$func_basename_result" | |
16344 # Implementation must be kept synchronized with func_dirname | |
16345 # and func_basename. For efficiency, we do not delegate to | |
16346 # those functions but instead duplicate the functionality here. | |
16347 func_dirname_and_basename () | |
16348 { | |
16349 case ${1} in | |
16350 */*) func_dirname_result="${1%/*}${2}" ;; | |
16351 * ) func_dirname_result="${3}" ;; | |
16352 esac | |
16353 func_basename_result="${1##*/}" | |
16354 } | |
16355 | |
16356 # func_stripname prefix suffix name | |
16357 # strip PREFIX and SUFFIX off of NAME. | |
16358 # PREFIX and SUFFIX must not contain globbing or regex special | |
16359 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16360 # dot (in which case that matches only a dot). | |
16361 func_stripname () | |
16362 { | |
16363 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
16364 # positional parameters, so assign one to ordinary parameter first. | |
16365 func_stripname_result=${3} | |
16366 func_stripname_result=${func_stripname_result#"${1}"} | |
16367 func_stripname_result=${func_stripname_result%"${2}"} | |
16368 } | |
16369 | |
16370 # func_opt_split | |
16371 func_opt_split () | |
16372 { | |
16373 func_opt_split_opt=${1%%=*} | |
16374 func_opt_split_arg=${1#*=} | |
16375 } | |
16376 | |
16377 # func_lo2o object | |
16378 func_lo2o () | |
16379 { | |
16380 case ${1} in | |
16381 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
16382 *) func_lo2o_result=${1} ;; | |
16383 esac | |
16384 } | |
16385 | |
16386 # func_xform libobj-or-source | |
16387 func_xform () | |
16388 { | |
16389 func_xform_result=${1%.*}.lo | |
16390 } | |
16391 | |
16392 # func_arith arithmetic-term... | |
16393 func_arith () | |
16394 { | |
16395 func_arith_result=$(( $* )) | |
16396 } | |
16397 | |
16398 # func_len string | |
16399 # STRING may not start with a hyphen. | |
16400 func_len () | |
16401 { | |
16402 func_len_result=${#1} | |
16403 } | |
16404 | |
16405 _LT_EOF | |
16406 ;; | |
16407 *) # Bourne compatible functions. | |
16408 cat << \_LT_EOF >> "$cfgfile" | |
16409 | |
16410 # func_dirname file append nondir_replacement | |
16411 # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
16412 # otherwise set result to NONDIR_REPLACEMENT. | |
16413 func_dirname () | |
16414 { | |
16415 # Extract subdirectory from the argument. | |
16416 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
16417 if test "X$func_dirname_result" = "X${1}"; then | |
16418 func_dirname_result="${3}" | |
16419 else | |
16420 func_dirname_result="$func_dirname_result${2}" | |
16421 fi | |
16422 } | |
16423 | |
16424 # func_basename file | |
16425 func_basename () | |
16426 { | |
16427 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
16428 } | |
16429 | |
16430 | |
16431 # func_stripname prefix suffix name | |
16432 # strip PREFIX and SUFFIX off of NAME. | |
16433 # PREFIX and SUFFIX must not contain globbing or regex special | |
16434 # characters, hashes, percent signs, but SUFFIX may contain a leading | |
16435 # dot (in which case that matches only a dot). | |
16436 # func_strip_suffix prefix name | |
16437 func_stripname () | |
16438 { | |
16439 case ${2} in | |
16440 .*) func_stripname_result=`$ECHO "X${3}" \ | |
16441 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
16442 *) func_stripname_result=`$ECHO "X${3}" \ | |
16443 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
16444 esac | |
16445 } | |
16446 | |
16447 # sed scripts: | |
16448 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
16449 my_sed_long_arg='1s/^-[^=]*=//' | |
16450 | |
16451 # func_opt_split | |
16452 func_opt_split () | |
16453 { | |
16454 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
16455 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
16456 } | |
16457 | |
16458 # func_lo2o object | |
16459 func_lo2o () | |
16460 { | |
16461 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
16462 } | |
16463 | |
16464 # func_xform libobj-or-source | |
16465 func_xform () | |
16466 { | |
16467 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
16468 } | |
16469 | |
16470 # func_arith arithmetic-term... | |
16471 func_arith () | |
16472 { | |
16473 func_arith_result=`expr "$@"` | |
16474 } | |
16475 | |
16476 # func_len string | |
16477 # STRING may not start with a hyphen. | |
16478 func_len () | |
16479 { | |
16480 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
16481 } | |
16482 | |
16483 _LT_EOF | |
16484 esac | |
16485 | |
16486 case $lt_shell_append in | |
16487 yes) | |
16488 cat << \_LT_EOF >> "$cfgfile" | |
16489 | |
16490 # func_append var value | |
16491 # Append VALUE to the end of shell variable VAR. | |
16492 func_append () | |
16493 { | |
16494 eval "$1+=\$2" | |
16495 } | |
16496 _LT_EOF | |
16497 ;; | |
16498 *) | |
16499 cat << \_LT_EOF >> "$cfgfile" | |
16500 | |
16501 # func_append var value | |
16502 # Append VALUE to the end of shell variable VAR. | |
16503 func_append () | |
16504 { | |
16505 eval "$1=\$$1\$2" | |
16506 } | |
16507 | |
16508 _LT_EOF | |
16509 ;; | |
16510 esac | |
16511 | |
16512 | |
16513 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
16514 || (rm -f "$cfgfile"; exit 1) | |
16515 | |
16516 mv -f "$cfgfile" "$ofile" || | |
16517 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
16518 chmod +x "$ofile" | |
16519 | |
16520 ;; | |
16521 | |
16522 esac | |
23935 done # for ac_tag | 16523 done # for ac_tag |
23936 | 16524 |
23937 | 16525 |
23938 { (exit 0); exit 0; } | 16526 { (exit 0); exit 0; } |
23939 _ACEOF | 16527 _ACEOF |