Changes in libcfa/configure [c6bbcdb:e523b07]
- File:
-
- 1 edited
-
libcfa/configure (modified) (38 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/configure
rc6bbcdb re523b07 198 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209 test \$(( 1 + 1 )) = 2 || exit 1" 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 210 201 if (eval "$as_required") 2>/dev/null; then : 211 202 as_have_required=yes … … 565 556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 557 567 SHELL=${CONFIG_SHELL-/bin/sh}568 569 558 570 559 test -n "$DJDIR" || exec 7<&0 </dev/null … … 596 585 PACKAGE_URL='' 597 586 598 # Factoring default headers for most tests.599 ac_includes_default="\600 #include <stdio.h>601 #ifdef HAVE_SYS_TYPES_H602 # include <sys/types.h>603 #endif604 #ifdef HAVE_SYS_STAT_H605 # include <sys/stat.h>606 #endif607 #ifdef STDC_HEADERS608 # include <stdlib.h>609 # include <stddef.h>610 #else611 # ifdef HAVE_STDLIB_H612 # include <stdlib.h>613 # endif614 #endif615 #ifdef HAVE_STRING_H616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H617 # include <memory.h>618 # endif619 # include <string.h>620 #endif621 #ifdef HAVE_STRINGS_H622 # include <strings.h>623 #endif624 #ifdef HAVE_INTTYPES_H625 # include <inttypes.h>626 #endif627 #ifdef HAVE_STDINT_H628 # include <stdint.h>629 #endif630 #ifdef HAVE_UNISTD_H631 # include <unistd.h>632 #endif"633 634 587 ac_subst_vars='am__EXEEXT_FALSE 635 588 am__EXEEXT_TRUE 636 589 LTLIBOBJS 637 590 LIBOBJS 591 RANLIB 638 592 am__fastdepCCAS_FALSE 639 593 am__fastdepCCAS_TRUE … … 641 595 CCASFLAGS 642 596 CCAS 643 CXXCPP 597 am__fastdepCC_FALSE 598 am__fastdepCC_TRUE 599 CCDEPMODE 600 ac_ct_CC 601 CFLAGS 602 CC 644 603 am__fastdepCXX_FALSE 645 604 am__fastdepCXX_TRUE 646 605 CXXDEPMODE 647 ac_ct_CXX648 CXXFLAGS649 CXX650 CPP651 LT_SYS_LIBRARY_PATH652 OTOOL64653 OTOOL654 LIPO655 NMEDIT656 DSYMUTIL657 MANIFEST_TOOL658 RANLIB659 ac_ct_AR660 AR661 DLLTOOL662 OBJDUMP663 LN_S664 NM665 ac_ct_DUMPBIN666 DUMPBIN667 LD668 FGREP669 EGREP670 GREP671 SED672 am__fastdepCC_FALSE673 am__fastdepCC_TRUE674 CCDEPMODE675 606 am__nodep 676 607 AMDEPBACKSLASH … … 682 613 OBJEXT 683 614 EXEEXT 684 ac_ct_C C615 ac_ct_CXX 685 616 CPPFLAGS 686 617 LDFLAGS 687 CFLAGS 688 CC 689 host_os 690 host_vendor 691 host_cpu 692 host 693 build_os 694 build_vendor 695 build_cpu 696 build 697 LIBTOOL 618 CXXFLAGS 619 CXX 698 620 CFA_LIBDIR 699 621 CFA_BINDIR … … 709 631 CFACPP 710 632 CFACC 711 CFA_VERSION712 633 DRIVER_DIR 713 634 CONFIGURATION … … 784 705 enable_silent_rules 785 706 with_cfa_name 786 enable_shared787 enable_static788 with_pic789 enable_fast_install790 with_aix_soname791 707 enable_dependency_tracking 792 with_gnu_ld793 with_sysroot794 enable_libtool_lock795 708 ' 796 709 ac_precious_vars='build_alias … … 800 713 CONFIGURATION 801 714 DRIVER_DIR 802 CFA_VERSION 803 CC 804 CFLAGS 715 CXX 716 CXXFLAGS 805 717 LDFLAGS 806 718 LIBS 807 719 CPPFLAGS 808 LT_SYS_LIBRARY_PATH809 CPP810 CXX811 CXXFLAGS812 720 CCC 813 CXXCPP 721 CC 722 CFLAGS 814 723 CCAS 815 724 CCASFLAGS' … … 1426 1335 --program-suffix=SUFFIX append SUFFIX to installed program names 1427 1336 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1428 1429 System types:1430 --build=BUILD configure for building on BUILD [guessed]1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]1432 1337 _ACEOF 1433 1338 fi … … 1445 1350 --enable-silent-rules less verbose build output (undo: "make V=1") 1446 1351 --disable-silent-rules verbose build output (undo: "make V=0") 1447 --enable-shared[=PKGS] build shared libraries [default=yes]1448 --enable-static[=PKGS] build static libraries [default=yes]1449 --enable-fast-install[=PKGS]1450 optimize for fast installation [default=yes]1451 1352 --enable-dependency-tracking 1452 1353 do not reject slow dependency extractors 1453 1354 --disable-dependency-tracking 1454 1355 speeds up one-time build 1455 --disable-libtool-lock avoid locking (might break parallel builds)1456 1356 1457 1357 Optional Packages: … … 1459 1359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1460 1360 --with-cfa-name=NAME NAME too which cfa will be installed 1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use1462 both]1463 --with-aix-soname=aix|svr4|both1464 shared library versioning (aka "SONAME") variant to1465 provide on AIX, [default=aix].1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]1467 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the1468 compiler's sysroot if not specified).1469 1361 1470 1362 Some influential environment variables: … … 1475 1367 deubg, nodebug, nolib (prelude-only) 1476 1368 DRIVER_DIR The path to the cforall driver directory 1477 CFA_VERSION The long version of cfa 1478 CC C compiler command 1479 CFLAGS C compiler flags 1369 CXX C++ compiler command 1370 CXXFLAGS C++ compiler flags 1480 1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1481 1372 nonstandard directory <lib dir> … … 1483 1374 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1484 1375 you have headers in a nonstandard directory <include dir> 1485 LT_SYS_LIBRARY_PATH 1486 User-defined run-time library search path. 1487 CPP C preprocessor 1488 CXX C++ compiler command 1489 CXXFLAGS C++ compiler flags 1490 CXXCPP C++ preprocessor 1376 CC C compiler command 1377 CFLAGS C compiler flags 1491 1378 CCAS assembler compiler command (defaults to CC) 1492 1379 CCASFLAGS assembler compiler flags (defaults to CFLAGS) … … 1571 1458 ## Autoconf initialization. ## 1572 1459 ## ------------------------ ## 1460 1461 # ac_fn_cxx_try_compile LINENO 1462 # ---------------------------- 1463 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1464 ac_fn_cxx_try_compile () 1465 { 1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1467 rm -f conftest.$ac_objext 1468 if { { ac_try="$ac_compile" 1469 case "(($ac_try" in 1470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1471 *) ac_try_echo=$ac_try;; 1472 esac 1473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1474 $as_echo "$ac_try_echo"; } >&5 1475 (eval "$ac_compile") 2>conftest.err 1476 ac_status=$? 1477 if test -s conftest.err; then 1478 grep -v '^ *+' conftest.err >conftest.er1 1479 cat conftest.er1 >&5 1480 mv -f conftest.er1 conftest.err 1481 fi 1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1483 test $ac_status = 0; } && { 1484 test -z "$ac_cxx_werror_flag" || 1485 test ! -s conftest.err 1486 } && test -s conftest.$ac_objext; then : 1487 ac_retval=0 1488 else 1489 $as_echo "$as_me: failed program was:" >&5 1490 sed 's/^/| /' conftest.$ac_ext >&5 1491 1492 ac_retval=1 1493 fi 1494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1495 as_fn_set_status $ac_retval 1496 1497 } # ac_fn_cxx_try_compile 1573 1498 1574 1499 # ac_fn_c_try_compile LINENO … … 1609 1534 1610 1535 } # ac_fn_c_try_compile 1611 1612 # ac_fn_c_try_link LINENO1613 # -----------------------1614 # Try to link conftest.$ac_ext, and return whether this succeeded.1615 ac_fn_c_try_link ()1616 {1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1618 rm -f conftest.$ac_objext conftest$ac_exeext1619 if { { ac_try="$ac_link"1620 case "(($ac_try" in1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1622 *) ac_try_echo=$ac_try;;1623 esac1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1625 $as_echo "$ac_try_echo"; } >&51626 (eval "$ac_link") 2>conftest.err1627 ac_status=$?1628 if test -s conftest.err; then1629 grep -v '^ *+' conftest.err >conftest.er11630 cat conftest.er1 >&51631 mv -f conftest.er1 conftest.err1632 fi1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51634 test $ac_status = 0; } && {1635 test -z "$ac_c_werror_flag" ||1636 test ! -s conftest.err1637 } && test -s conftest$ac_exeext && {1638 test "$cross_compiling" = yes ||1639 test -x conftest$ac_exeext1640 }; then :1641 ac_retval=01642 else1643 $as_echo "$as_me: failed program was:" >&51644 sed 's/^/| /' conftest.$ac_ext >&51645 1646 ac_retval=11647 fi1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would1650 # interfere with the next link command; also delete a directory that is1651 # left behind by Apple's compiler. We do this before executing the actions.1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1654 as_fn_set_status $ac_retval1655 1656 } # ac_fn_c_try_link1657 1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES1659 # -------------------------------------------------------1660 # Tests whether HEADER exists and can be compiled using the include files in1661 # INCLUDES, setting the cache variable VAR accordingly.1662 ac_fn_c_check_header_compile ()1663 {1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51666 $as_echo_n "checking for $2... " >&6; }1667 if eval \${$3+:} false; then :1668 $as_echo_n "(cached) " >&61669 else1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1671 /* end confdefs.h. */1672 $41673 #include <$2>1674 _ACEOF1675 if ac_fn_c_try_compile "$LINENO"; then :1676 eval "$3=yes"1677 else1678 eval "$3=no"1679 fi1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1681 fi1682 eval ac_res=\$$31683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51684 $as_echo "$ac_res" >&6; }1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1686 1687 } # ac_fn_c_check_header_compile1688 1689 # ac_fn_c_try_cpp LINENO1690 # ----------------------1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.1692 ac_fn_c_try_cpp ()1693 {1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1695 if { { ac_try="$ac_cpp conftest.$ac_ext"1696 case "(($ac_try" in1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1698 *) ac_try_echo=$ac_try;;1699 esac1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1701 $as_echo "$ac_try_echo"; } >&51702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1703 ac_status=$?1704 if test -s conftest.err; then1705 grep -v '^ *+' conftest.err >conftest.er11706 cat conftest.er1 >&51707 mv -f conftest.er1 conftest.err1708 fi1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51710 test $ac_status = 0; } > conftest.i && {1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||1712 test ! -s conftest.err1713 }; then :1714 ac_retval=01715 else1716 $as_echo "$as_me: failed program was:" >&51717 sed 's/^/| /' conftest.$ac_ext >&51718 1719 ac_retval=11720 fi1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1722 as_fn_set_status $ac_retval1723 1724 } # ac_fn_c_try_cpp1725 1726 # ac_fn_c_try_run LINENO1727 # ----------------------1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes1729 # that executables *can* be run.1730 ac_fn_c_try_run ()1731 {1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1733 if { { ac_try="$ac_link"1734 case "(($ac_try" in1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1736 *) ac_try_echo=$ac_try;;1737 esac1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1739 $as_echo "$ac_try_echo"; } >&51740 (eval "$ac_link") 2>&51741 ac_status=$?1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'1744 { { case "(($ac_try" in1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1746 *) ac_try_echo=$ac_try;;1747 esac1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1749 $as_echo "$ac_try_echo"; } >&51750 (eval "$ac_try") 2>&51751 ac_status=$?1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51753 test $ac_status = 0; }; }; then :1754 ac_retval=01755 else1756 $as_echo "$as_me: program exited with status $ac_status" >&51757 $as_echo "$as_me: failed program was:" >&51758 sed 's/^/| /' conftest.$ac_ext >&51759 1760 ac_retval=$ac_status1761 fi1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1764 as_fn_set_status $ac_retval1765 1766 } # ac_fn_c_try_run1767 1768 # ac_fn_c_check_func LINENO FUNC VAR1769 # ----------------------------------1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly1771 ac_fn_c_check_func ()1772 {1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51775 $as_echo_n "checking for $2... " >&6; }1776 if eval \${$3+:} false; then :1777 $as_echo_n "(cached) " >&61778 else1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1780 /* end confdefs.h. */1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */1783 #define $2 innocuous_$21784 1785 /* System header to define __stub macros and hopefully few prototypes,1786 which can conflict with char $2 (); below.1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since1788 <limits.h> exists even on freestanding compilers. */1789 1790 #ifdef __STDC__1791 # include <limits.h>1792 #else1793 # include <assert.h>1794 #endif1795 1796 #undef $21797 1798 /* Override any GCC internal prototype to avoid an error.1799 Use char because int might match the return type of a GCC1800 builtin and then its argument prototype would still apply. */1801 #ifdef __cplusplus1802 extern "C"1803 #endif1804 char $2 ();1805 /* The GNU C library defines this for functions which it implements1806 to always fail with ENOSYS. Some functions are actually named1807 something starting with __ and the normal name is an alias. */1808 #if defined __stub_$2 || defined __stub___$21809 choke me1810 #endif1811 1812 int1813 main ()1814 {1815 return $2 ();1816 ;1817 return 0;1818 }1819 _ACEOF1820 if ac_fn_c_try_link "$LINENO"; then :1821 eval "$3=yes"1822 else1823 eval "$3=no"1824 fi1825 rm -f core conftest.err conftest.$ac_objext \1826 conftest$ac_exeext conftest.$ac_ext1827 fi1828 eval ac_res=\$$31829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51830 $as_echo "$ac_res" >&6; }1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1832 1833 } # ac_fn_c_check_func1834 1835 # ac_fn_cxx_try_compile LINENO1836 # ----------------------------1837 # Try to compile conftest.$ac_ext, and return whether this succeeded.1838 ac_fn_cxx_try_compile ()1839 {1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1841 rm -f conftest.$ac_objext1842 if { { ac_try="$ac_compile"1843 case "(($ac_try" in1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1845 *) ac_try_echo=$ac_try;;1846 esac1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1848 $as_echo "$ac_try_echo"; } >&51849 (eval "$ac_compile") 2>conftest.err1850 ac_status=$?1851 if test -s conftest.err; then1852 grep -v '^ *+' conftest.err >conftest.er11853 cat conftest.er1 >&51854 mv -f conftest.er1 conftest.err1855 fi1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51857 test $ac_status = 0; } && {1858 test -z "$ac_cxx_werror_flag" ||1859 test ! -s conftest.err1860 } && test -s conftest.$ac_objext; then :1861 ac_retval=01862 else1863 $as_echo "$as_me: failed program was:" >&51864 sed 's/^/| /' conftest.$ac_ext >&51865 1866 ac_retval=11867 fi1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1869 as_fn_set_status $ac_retval1870 1871 } # ac_fn_cxx_try_compile1872 1873 # ac_fn_cxx_try_cpp LINENO1874 # ------------------------1875 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.1876 ac_fn_cxx_try_cpp ()1877 {1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1879 if { { ac_try="$ac_cpp conftest.$ac_ext"1880 case "(($ac_try" in1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1882 *) ac_try_echo=$ac_try;;1883 esac1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1885 $as_echo "$ac_try_echo"; } >&51886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1887 ac_status=$?1888 if test -s conftest.err; then1889 grep -v '^ *+' conftest.err >conftest.er11890 cat conftest.er1 >&51891 mv -f conftest.er1 conftest.err1892 fi1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51894 test $ac_status = 0; } > conftest.i && {1895 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||1896 test ! -s conftest.err1897 }; then :1898 ac_retval=01899 else1900 $as_echo "$as_me: failed program was:" >&51901 sed 's/^/| /' conftest.$ac_ext >&51902 1903 ac_retval=11904 fi1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1906 as_fn_set_status $ac_retval1907 1908 } # ac_fn_cxx_try_cpp1909 1910 # ac_fn_cxx_try_link LINENO1911 # -------------------------1912 # Try to link conftest.$ac_ext, and return whether this succeeded.1913 ac_fn_cxx_try_link ()1914 {1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1916 rm -f conftest.$ac_objext conftest$ac_exeext1917 if { { ac_try="$ac_link"1918 case "(($ac_try" in1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1920 *) ac_try_echo=$ac_try;;1921 esac1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1923 $as_echo "$ac_try_echo"; } >&51924 (eval "$ac_link") 2>conftest.err1925 ac_status=$?1926 if test -s conftest.err; then1927 grep -v '^ *+' conftest.err >conftest.er11928 cat conftest.er1 >&51929 mv -f conftest.er1 conftest.err1930 fi1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51932 test $ac_status = 0; } && {1933 test -z "$ac_cxx_werror_flag" ||1934 test ! -s conftest.err1935 } && test -s conftest$ac_exeext && {1936 test "$cross_compiling" = yes ||1937 test -x conftest$ac_exeext1938 }; then :1939 ac_retval=01940 else1941 $as_echo "$as_me: failed program was:" >&51942 sed 's/^/| /' conftest.$ac_ext >&51943 1944 ac_retval=11945 fi1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would1948 # interfere with the next link command; also delete a directory that is1949 # left behind by Apple's compiler. We do this before executing the actions.1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1952 as_fn_set_status $ac_retval1953 1954 } # ac_fn_cxx_try_link1955 1536 cat >config.log <<_ACEOF 1956 1537 This file contains any messages produced by compilers while … … 2306 1887 2307 1888 ac_aux_dir= 2308 for ac_dir in automake "$srcdir"/automake; do1889 for ac_dir in ./automake "$srcdir"/./automake; do 2309 1890 if test -f "$ac_dir/install-sh"; then 2310 1891 ac_aux_dir=$ac_dir … … 2322 1903 done 2323 1904 if test -z "$ac_aux_dir"; then 2324 as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 51905 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./automake \"$srcdir\"/./automake" "$LINENO" 5 2325 1906 fi 2326 1907 … … 2332 1913 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2333 1914 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2334 2335 1915 2336 1916 … … 2935 2515 2936 2516 2937 2938 2517 CFACC=${DRIVER_DIR}cfa 2939 2518 CFACPP=${DRIVER_DIR}cfa-cpp 2940 2941 2519 2942 2520 … … 3070 2648 3071 2649 # Checks for programs. 3072 case `pwd` in 3073 *\ * | *\ *) 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3075 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3076 esac 3077 3078 3079 3080 macro_version='2.4.6' 3081 macro_revision='2.4.6' 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 ltmain=$ac_aux_dir/ltmain.sh 3096 3097 # Make sure we can run config.sub. 3098 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3099 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3100 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3102 $as_echo_n "checking build system type... " >&6; } 3103 if ${ac_cv_build+:} false; then : 3104 $as_echo_n "(cached) " >&6 3105 else 3106 ac_build_alias=$build_alias 3107 test "x$ac_build_alias" = x && 3108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3109 test "x$ac_build_alias" = x && 3110 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3111 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3112 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3113 3114 fi 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3116 $as_echo "$ac_cv_build" >&6; } 3117 case $ac_cv_build in 3118 *-*-*) ;; 3119 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3120 esac 3121 build=$ac_cv_build 3122 ac_save_IFS=$IFS; IFS='-' 3123 set x $ac_cv_build 3124 shift 3125 build_cpu=$1 3126 build_vendor=$2 3127 shift; shift 3128 # Remember, the first character of IFS is used to create $*, 3129 # except with old shells: 3130 build_os=$* 3131 IFS=$ac_save_IFS 3132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3133 3134 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3136 $as_echo_n "checking host system type... " >&6; } 3137 if ${ac_cv_host+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139 else 3140 if test "x$host_alias" = x; then 3141 ac_cv_host=$ac_cv_build 3142 else 3143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3144 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3145 fi 3146 3147 fi 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3149 $as_echo "$ac_cv_host" >&6; } 3150 case $ac_cv_host in 3151 *-*-*) ;; 3152 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3153 esac 3154 host=$ac_cv_host 3155 ac_save_IFS=$IFS; IFS='-' 3156 set x $ac_cv_host 3157 shift 3158 host_cpu=$1 3159 host_vendor=$2 3160 shift; shift 3161 # Remember, the first character of IFS is used to create $*, 3162 # except with old shells: 3163 host_os=$* 3164 IFS=$ac_save_IFS 3165 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3166 3167 3168 # Backslashify metacharacters that are still active within 3169 # double-quoted strings. 3170 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3171 3172 # Same as above, but do not quote variable references. 3173 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3174 3175 # Sed substitution to delay expansion of an escaped shell variable in a 3176 # double_quote_subst'ed string. 3177 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3178 3179 # Sed substitution to delay expansion of an escaped single quote. 3180 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3181 3182 # Sed substitution to avoid accidental globbing in evaled expressions 3183 no_glob_subst='s/\*/\\\*/g' 3184 3185 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3186 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3187 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3188 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3190 $as_echo_n "checking how to print strings... " >&6; } 3191 # Test print first, because it will be a builtin if present. 3192 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3194 ECHO='print -r --' 3195 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3196 ECHO='printf %s\n' 3197 else 3198 # Use this function as a fallback that always works. 3199 func_fallback_echo () 3200 { 3201 eval 'cat <<_LTECHO_EOF 3202 $1 3203 _LTECHO_EOF' 3204 } 3205 ECHO='func_fallback_echo' 3206 fi 3207 3208 # func_echo_all arg... 3209 # Invoke $ECHO with all args, space-separated. 3210 func_echo_all () 3211 { 3212 $ECHO "" 3213 } 3214 3215 case $ECHO in 3216 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3217 $as_echo "printf" >&6; } ;; 3218 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3219 $as_echo "print -r" >&6; } ;; 3220 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3221 $as_echo "cat" >&6; } ;; 3222 esac 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 DEPDIR="${am__leading_dot}deps" 3238 3239 ac_config_commands="$ac_config_commands depfiles" 3240 3241 3242 am_make=${MAKE-make} 3243 cat > confinc << 'END' 3244 am__doit: 3245 @echo this is the am__doit target 3246 .PHONY: am__doit 3247 END 3248 # If we don't find an include directive, just comment out the code. 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3250 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3251 am__include="#" 3252 am__quote= 3253 _am_result=none 3254 # First try GNU make style include. 3255 echo "include confinc" > confmf 3256 # Ignore all kinds of additional output from 'make'. 3257 case `$am_make -s -f confmf 2> /dev/null` in #( 3258 *the\ am__doit\ target*) 3259 am__include=include 3260 am__quote= 3261 _am_result=GNU 3262 ;; 3263 esac 3264 # Now try BSD make style include. 3265 if test "$am__include" = "#"; then 3266 echo '.include "confinc"' > confmf 3267 case `$am_make -s -f confmf 2> /dev/null` in #( 3268 *the\ am__doit\ target*) 3269 am__include=.include 3270 am__quote="\"" 3271 _am_result=BSD 3272 ;; 3273 esac 3274 fi 3275 3276 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3278 $as_echo "$_am_result" >&6; } 3279 rm -f confinc confmf 3280 3281 # Check whether --enable-dependency-tracking was given. 3282 if test "${enable_dependency_tracking+set}" = set; then : 3283 enableval=$enable_dependency_tracking; 3284 fi 3285 3286 if test "x$enable_dependency_tracking" != xno; then 3287 am_depcomp="$ac_aux_dir/depcomp" 3288 AMDEPBACKSLASH='\' 3289 am__nodep='_no' 3290 fi 3291 if test "x$enable_dependency_tracking" != xno; then 3292 AMDEP_TRUE= 3293 AMDEP_FALSE='#' 3294 else 3295 AMDEP_TRUE='#' 3296 AMDEP_FALSE= 3297 fi 3298 3299 3300 ac_ext=c 3301 ac_cpp='$CPP $CPPFLAGS' 3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3305 if test -n "$ac_tool_prefix"; then 3306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3307 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2650 ac_ext=cpp 2651 ac_cpp='$CXXCPP $CPPFLAGS' 2652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2655 if test -z "$CXX"; then 2656 if test -n "$CCC"; then 2657 CXX=$CCC 2658 else 2659 if test -n "$ac_tool_prefix"; then 2660 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2661 do 2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3308 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3309 2665 $as_echo_n "checking for $ac_word... " >&6; } 3310 if ${ac_cv_prog_C C+:} false; then :2666 if ${ac_cv_prog_CXX+:} false; then : 3311 2667 $as_echo_n "(cached) " >&6 3312 2668 else 3313 if test -n "$C C"; then3314 ac_cv_prog_C C="$CC" # Let the user override the test.2669 if test -n "$CXX"; then 2670 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3315 2671 else 3316 2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 3321 2677 for ac_exec_ext in '' $ac_executable_extensions; do 3322 2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3323 ac_cv_prog_C C="${ac_tool_prefix}gcc"2679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3324 2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3325 2681 break 2 … … 3331 2687 fi 3332 2688 fi 3333 C C=$ac_cv_prog_CC3334 if test -n "$C C"; then3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $C C" >&53336 $as_echo "$C C" >&6; }2689 CXX=$ac_cv_prog_CXX 2690 if test -n "$CXX"; then 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2692 $as_echo "$CXX" >&6; } 3337 2693 else 3338 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 3341 2697 3342 2698 3343 fi 3344 if test -z "$ac_cv_prog_CC"; then 3345 ac_ct_CC=$CC 3346 # Extract the first word of "gcc", so it can be a program name with args. 3347 set dummy gcc; ac_word=$2 2699 test -n "$CXX" && break 2700 done 2701 fi 2702 if test -z "$CXX"; then 2703 ac_ct_CXX=$CXX 2704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2705 do 2706 # Extract the first word of "$ac_prog", so it can be a program name with args. 2707 set dummy $ac_prog; ac_word=$2 3348 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3349 2709 $as_echo_n "checking for $ac_word... " >&6; } 3350 if ${ac_cv_prog_ac_ct_C C+:} false; then :2710 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3351 2711 $as_echo_n "(cached) " >&6 3352 2712 else 3353 if test -n "$ac_ct_C C"; then3354 ac_cv_prog_ac_ct_C C="$ac_ct_CC" # Let the user override the test.2713 if test -n "$ac_ct_CXX"; then 2714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3355 2715 else 3356 2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 3361 2721 for ac_exec_ext in '' $ac_executable_extensions; do 3362 2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3363 ac_cv_prog_ac_ct_C C="gcc"2723 ac_cv_prog_ac_ct_CXX="$ac_prog" 3364 2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3365 2725 break 2 … … 3371 2731 fi 3372 2732 fi 3373 ac_ct_C C=$ac_cv_prog_ac_ct_CC3374 if test -n "$ac_ct_C C"; then3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_C C" >&53376 $as_echo "$ac_ct_C C" >&6; }2733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2734 if test -n "$ac_ct_CXX"; then 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 2736 $as_echo "$ac_ct_CXX" >&6; } 3377 2737 else 3378 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 3380 2740 fi 3381 2741 3382 if test "x$ac_ct_CC" = x; then 3383 CC="" 2742 2743 test -n "$ac_ct_CXX" && break 2744 done 2745 2746 if test "x$ac_ct_CXX" = x; then 2747 CXX="g++" 3384 2748 else 3385 2749 case $cross_compiling:$ac_tool_warned in … … 3389 2753 ac_tool_warned=yes ;; 3390 2754 esac 3391 C C=$ac_ct_CC2755 CXX=$ac_ct_CXX 3392 2756 fi 3393 else 3394 CC="$ac_cv_prog_CC" 3395 fi 3396 3397 if test -z "$CC"; then 3398 if test -n "$ac_tool_prefix"; then 3399 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3400 set dummy ${ac_tool_prefix}cc; ac_word=$2 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3402 $as_echo_n "checking for $ac_word... " >&6; } 3403 if ${ac_cv_prog_CC+:} false; then : 3404 $as_echo_n "(cached) " >&6 3405 else 3406 if test -n "$CC"; then 3407 ac_cv_prog_CC="$CC" # Let the user override the test. 3408 else 3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3410 for as_dir in $PATH 3411 do 3412 IFS=$as_save_IFS 3413 test -z "$as_dir" && as_dir=. 3414 for ac_exec_ext in '' $ac_executable_extensions; do 3415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3416 ac_cv_prog_CC="${ac_tool_prefix}cc" 3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3418 break 2 2757 fi 2758 3419 2759 fi 3420 done 3421 done 3422 IFS=$as_save_IFS 3423 3424 fi 3425 fi 3426 CC=$ac_cv_prog_CC 3427 if test -n "$CC"; then 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3429 $as_echo "$CC" >&6; } 3430 else 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3432 $as_echo "no" >&6; } 3433 fi 3434 3435 3436 fi 3437 fi 3438 if test -z "$CC"; then 3439 # Extract the first word of "cc", so it can be a program name with args. 3440 set dummy cc; ac_word=$2 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3442 $as_echo_n "checking for $ac_word... " >&6; } 3443 if ${ac_cv_prog_CC+:} false; then : 3444 $as_echo_n "(cached) " >&6 3445 else 3446 if test -n "$CC"; then 3447 ac_cv_prog_CC="$CC" # Let the user override the test. 3448 else 3449 ac_prog_rejected=no 3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3451 for as_dir in $PATH 3452 do 3453 IFS=$as_save_IFS 3454 test -z "$as_dir" && as_dir=. 3455 for ac_exec_ext in '' $ac_executable_extensions; do 3456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3457 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3458 ac_prog_rejected=yes 3459 continue 3460 fi 3461 ac_cv_prog_CC="cc" 3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3463 break 2 3464 fi 3465 done 3466 done 3467 IFS=$as_save_IFS 3468 3469 if test $ac_prog_rejected = yes; then 3470 # We found a bogon in the path, so make sure we never use it. 3471 set dummy $ac_cv_prog_CC 3472 shift 3473 if test $# != 0; then 3474 # We chose a different compiler from the bogus one. 3475 # However, it has the same basename, so the bogon will be chosen 3476 # first if we set CC to just the basename; use the full file name. 3477 shift 3478 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3479 fi 3480 fi 3481 fi 3482 fi 3483 CC=$ac_cv_prog_CC 3484 if test -n "$CC"; then 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3486 $as_echo "$CC" >&6; } 3487 else 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3489 $as_echo "no" >&6; } 3490 fi 3491 3492 3493 fi 3494 if test -z "$CC"; then 3495 if test -n "$ac_tool_prefix"; then 3496 for ac_prog in cl.exe 3497 do 3498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501 $as_echo_n "checking for $ac_word... " >&6; } 3502 if ${ac_cv_prog_CC+:} false; then : 3503 $as_echo_n "(cached) " >&6 3504 else 3505 if test -n "$CC"; then 3506 ac_cv_prog_CC="$CC" # Let the user override the test. 3507 else 3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509 for as_dir in $PATH 3510 do 3511 IFS=$as_save_IFS 3512 test -z "$as_dir" && as_dir=. 3513 for ac_exec_ext in '' $ac_executable_extensions; do 3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3515 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3517 break 2 3518 fi 3519 done 3520 done 3521 IFS=$as_save_IFS 3522 3523 fi 3524 fi 3525 CC=$ac_cv_prog_CC 3526 if test -n "$CC"; then 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3528 $as_echo "$CC" >&6; } 3529 else 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3531 $as_echo "no" >&6; } 3532 fi 3533 3534 3535 test -n "$CC" && break 3536 done 3537 fi 3538 if test -z "$CC"; then 3539 ac_ct_CC=$CC 3540 for ac_prog in cl.exe 3541 do 3542 # Extract the first word of "$ac_prog", so it can be a program name with args. 3543 set dummy $ac_prog; ac_word=$2 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3545 $as_echo_n "checking for $ac_word... " >&6; } 3546 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548 else 3549 if test -n "$ac_ct_CC"; then 3550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3551 else 3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3553 for as_dir in $PATH 3554 do 3555 IFS=$as_save_IFS 3556 test -z "$as_dir" && as_dir=. 3557 for ac_exec_ext in '' $ac_executable_extensions; do 3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3559 ac_cv_prog_ac_ct_CC="$ac_prog" 3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3561 break 2 3562 fi 3563 done 3564 done 3565 IFS=$as_save_IFS 3566 3567 fi 3568 fi 3569 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3570 if test -n "$ac_ct_CC"; then 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3572 $as_echo "$ac_ct_CC" >&6; } 3573 else 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3575 $as_echo "no" >&6; } 3576 fi 3577 3578 3579 test -n "$ac_ct_CC" && break 3580 done 3581 3582 if test "x$ac_ct_CC" = x; then 3583 CC="" 3584 else 3585 case $cross_compiling:$ac_tool_warned in 3586 yes:) 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3589 ac_tool_warned=yes ;; 3590 esac 3591 CC=$ac_ct_CC 3592 fi 3593 fi 3594 3595 fi 3596 3597 3598 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3600 as_fn_error $? "no acceptable C compiler found in \$PATH 3601 See \`config.log' for more details" "$LINENO" 5; } 3602 2760 fi 3603 2761 # Provide some information about the compiler. 3604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&52762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3605 2763 set X $ac_compile 3606 2764 ac_compiler=$2 … … 3642 2800 # It will help us diagnose broken compilers, and finding out an intuition 3643 2801 # of exeext. 3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&53645 $as_echo_n "checking whether the C compiler works... " >&6; }2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 2803 $as_echo_n "checking whether the C++ compiler works... " >&6; } 3646 2804 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3647 2805 … … 3713 2871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3714 2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3715 as_fn_error 77 "C compiler cannot create executables2873 as_fn_error 77 "C++ compiler cannot create executables 3716 2874 See \`config.log' for more details" "$LINENO" 5; } 3717 2875 else … … 3719 2877 $as_echo "yes" >&6; } 3720 2878 fi 3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&53722 $as_echo_n "checking for C compiler default output file name... " >&6; }2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 2880 $as_echo_n "checking for C++ compiler default output file name... " >&6; } 3723 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3724 2882 $as_echo "$ac_file" >&6; } … … 3814 2972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3815 2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3816 as_fn_error $? "cannot run C compiled programs.2974 as_fn_error $? "cannot run C++ compiled programs. 3817 2975 If you meant to cross compile, use \`--host'. 3818 2976 See \`config.log' for more details" "$LINENO" 5; } … … 3876 3034 OBJEXT=$ac_cv_objext 3877 3035 ac_objext=$OBJEXT 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3037 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3038 if ${ac_cv_cxx_compiler_gnu+:} false; then : 3039 $as_echo_n "(cached) " >&6 3040 else 3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3042 /* end confdefs.h. */ 3043 3044 int 3045 main () 3046 { 3047 #ifndef __GNUC__ 3048 choke me 3049 #endif 3050 3051 ; 3052 return 0; 3053 } 3054 _ACEOF 3055 if ac_fn_cxx_try_compile "$LINENO"; then : 3056 ac_compiler_gnu=yes 3057 else 3058 ac_compiler_gnu=no 3059 fi 3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3061 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3062 3063 fi 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3065 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3066 if test $ac_compiler_gnu = yes; then 3067 GXX=yes 3068 else 3069 GXX= 3070 fi 3071 ac_test_CXXFLAGS=${CXXFLAGS+set} 3072 ac_save_CXXFLAGS=$CXXFLAGS 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3074 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 3075 if ${ac_cv_prog_cxx_g+:} false; then : 3076 $as_echo_n "(cached) " >&6 3077 else 3078 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3079 ac_cxx_werror_flag=yes 3080 ac_cv_prog_cxx_g=no 3081 CXXFLAGS="-g" 3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3083 /* end confdefs.h. */ 3084 3085 int 3086 main () 3087 { 3088 3089 ; 3090 return 0; 3091 } 3092 _ACEOF 3093 if ac_fn_cxx_try_compile "$LINENO"; then : 3094 ac_cv_prog_cxx_g=yes 3095 else 3096 CXXFLAGS="" 3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3098 /* end confdefs.h. */ 3099 3100 int 3101 main () 3102 { 3103 3104 ; 3105 return 0; 3106 } 3107 _ACEOF 3108 if ac_fn_cxx_try_compile "$LINENO"; then : 3109 3110 else 3111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3112 CXXFLAGS="-g" 3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3114 /* end confdefs.h. */ 3115 3116 int 3117 main () 3118 { 3119 3120 ; 3121 return 0; 3122 } 3123 _ACEOF 3124 if ac_fn_cxx_try_compile "$LINENO"; then : 3125 ac_cv_prog_cxx_g=yes 3126 fi 3127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3128 fi 3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3130 fi 3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3133 fi 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3135 $as_echo "$ac_cv_prog_cxx_g" >&6; } 3136 if test "$ac_test_CXXFLAGS" = set; then 3137 CXXFLAGS=$ac_save_CXXFLAGS 3138 elif test $ac_cv_prog_cxx_g = yes; then 3139 if test "$GXX" = yes; then 3140 CXXFLAGS="-g -O2" 3141 else 3142 CXXFLAGS="-g" 3143 fi 3144 else 3145 if test "$GXX" = yes; then 3146 CXXFLAGS="-O2" 3147 else 3148 CXXFLAGS= 3149 fi 3150 fi 3151 ac_ext=c 3152 ac_cpp='$CPP $CPPFLAGS' 3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3156 DEPDIR="${am__leading_dot}deps" 3157 3158 ac_config_commands="$ac_config_commands depfiles" 3159 3160 3161 am_make=${MAKE-make} 3162 cat > confinc << 'END' 3163 am__doit: 3164 @echo this is the am__doit target 3165 .PHONY: am__doit 3166 END 3167 # If we don't find an include directive, just comment out the code. 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3169 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3170 am__include="#" 3171 am__quote= 3172 _am_result=none 3173 # First try GNU make style include. 3174 echo "include confinc" > confmf 3175 # Ignore all kinds of additional output from 'make'. 3176 case `$am_make -s -f confmf 2> /dev/null` in #( 3177 *the\ am__doit\ target*) 3178 am__include=include 3179 am__quote= 3180 _am_result=GNU 3181 ;; 3182 esac 3183 # Now try BSD make style include. 3184 if test "$am__include" = "#"; then 3185 echo '.include "confinc"' > confmf 3186 case `$am_make -s -f confmf 2> /dev/null` in #( 3187 *the\ am__doit\ target*) 3188 am__include=.include 3189 am__quote="\"" 3190 _am_result=BSD 3191 ;; 3192 esac 3193 fi 3194 3195 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3197 $as_echo "$_am_result" >&6; } 3198 rm -f confinc confmf 3199 3200 # Check whether --enable-dependency-tracking was given. 3201 if test "${enable_dependency_tracking+set}" = set; then : 3202 enableval=$enable_dependency_tracking; 3203 fi 3204 3205 if test "x$enable_dependency_tracking" != xno; then 3206 am_depcomp="$ac_aux_dir/depcomp" 3207 AMDEPBACKSLASH='\' 3208 am__nodep='_no' 3209 fi 3210 if test "x$enable_dependency_tracking" != xno; then 3211 AMDEP_TRUE= 3212 AMDEP_FALSE='#' 3213 else 3214 AMDEP_TRUE='#' 3215 AMDEP_FALSE= 3216 fi 3217 3218 3219 3220 depcc="$CXX" am_compiler_list= 3221 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3223 $as_echo_n "checking dependency style of $depcc... " >&6; } 3224 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 3225 $as_echo_n "(cached) " >&6 3226 else 3227 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3228 # We make a subdir and do the tests there. Otherwise we can end up 3229 # making bogus files that we don't know about and never remove. For 3230 # instance it was reported that on HP-UX the gcc test will end up 3231 # making a dummy file named 'D' -- because '-MD' means "put the output 3232 # in D". 3233 rm -rf conftest.dir 3234 mkdir conftest.dir 3235 # Copy depcomp to subdir because otherwise we won't find it if we're 3236 # using a relative directory. 3237 cp "$am_depcomp" conftest.dir 3238 cd conftest.dir 3239 # We will build objects and dependencies in a subdirectory because 3240 # it helps to detect inapplicable dependency modes. For instance 3241 # both Tru64's cc and ICC support -MD to output dependencies as a 3242 # side effect of compilation, but ICC will put the dependencies in 3243 # the current directory while Tru64 will put them in the object 3244 # directory. 3245 mkdir sub 3246 3247 am_cv_CXX_dependencies_compiler_type=none 3248 if test "$am_compiler_list" = ""; then 3249 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3250 fi 3251 am__universal=false 3252 case " $depcc " in #( 3253 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3254 esac 3255 3256 for depmode in $am_compiler_list; do 3257 # Setup a source with many dependencies, because some compilers 3258 # like to wrap large dependency lists on column 80 (with \), and 3259 # we should not choose a depcomp mode which is confused by this. 3260 # 3261 # We need to recreate these files for each test, as the compiler may 3262 # overwrite some of them when testing with obscure command lines. 3263 # This happens at least with the AIX C compiler. 3264 : > sub/conftest.c 3265 for i in 1 2 3 4 5 6; do 3266 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3267 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3268 # Solaris 10 /bin/sh. 3269 echo '/* dummy */' > sub/conftst$i.h 3270 done 3271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3272 3273 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3274 # mode. It turns out that the SunPro C++ compiler does not properly 3275 # handle '-M -o', and we need to detect this. Also, some Intel 3276 # versions had trouble with output in subdirs. 3277 am__obj=sub/conftest.${OBJEXT-o} 3278 am__minus_obj="-o $am__obj" 3279 case $depmode in 3280 gcc) 3281 # This depmode causes a compiler race in universal mode. 3282 test "$am__universal" = false || continue 3283 ;; 3284 nosideeffect) 3285 # After this tag, mechanisms are not by side-effect, so they'll 3286 # only be used when explicitly requested. 3287 if test "x$enable_dependency_tracking" = xyes; then 3288 continue 3289 else 3290 break 3291 fi 3292 ;; 3293 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3294 # This compiler won't grok '-c -o', but also, the minuso test has 3295 # not run yet. These depmodes are late enough in the game, and 3296 # so weak that their functioning should not be impacted. 3297 am__obj=conftest.${OBJEXT-o} 3298 am__minus_obj= 3299 ;; 3300 none) break ;; 3301 esac 3302 if depmode=$depmode \ 3303 source=sub/conftest.c object=$am__obj \ 3304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3305 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3306 >/dev/null 2>conftest.err && 3307 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3309 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3311 # icc doesn't choke on unknown options, it will just issue warnings 3312 # or remarks (even with -Werror). So we grep stderr for any message 3313 # that says an option was ignored or not supported. 3314 # When given -MP, icc 7.0 and 7.1 complain thusly: 3315 # icc: Command line warning: ignoring option '-M'; no argument required 3316 # The diagnosis changed in icc 8.0: 3317 # icc: Command line remark: option '-MP' not supported 3318 if (grep 'ignoring option' conftest.err || 3319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3320 am_cv_CXX_dependencies_compiler_type=$depmode 3321 break 3322 fi 3323 fi 3324 done 3325 3326 cd .. 3327 rm -rf conftest.dir 3328 else 3329 am_cv_CXX_dependencies_compiler_type=none 3330 fi 3331 3332 fi 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3334 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3335 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3336 3337 if 3338 test "x$enable_dependency_tracking" != xno \ 3339 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3340 am__fastdepCXX_TRUE= 3341 am__fastdepCXX_FALSE='#' 3342 else 3343 am__fastdepCXX_TRUE='#' 3344 am__fastdepCXX_FALSE= 3345 fi 3346 3347 3348 ac_ext=c 3349 ac_cpp='$CPP $CPPFLAGS' 3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3353 if test -n "$ac_tool_prefix"; then 3354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3355 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3357 $as_echo_n "checking for $ac_word... " >&6; } 3358 if ${ac_cv_prog_CC+:} false; then : 3359 $as_echo_n "(cached) " >&6 3360 else 3361 if test -n "$CC"; then 3362 ac_cv_prog_CC="$CC" # Let the user override the test. 3363 else 3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365 for as_dir in $PATH 3366 do 3367 IFS=$as_save_IFS 3368 test -z "$as_dir" && as_dir=. 3369 for ac_exec_ext in '' $ac_executable_extensions; do 3370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3371 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3373 break 2 3374 fi 3375 done 3376 done 3377 IFS=$as_save_IFS 3378 3379 fi 3380 fi 3381 CC=$ac_cv_prog_CC 3382 if test -n "$CC"; then 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3384 $as_echo "$CC" >&6; } 3385 else 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3387 $as_echo "no" >&6; } 3388 fi 3389 3390 3391 fi 3392 if test -z "$ac_cv_prog_CC"; then 3393 ac_ct_CC=$CC 3394 # Extract the first word of "gcc", so it can be a program name with args. 3395 set dummy gcc; ac_word=$2 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3397 $as_echo_n "checking for $ac_word... " >&6; } 3398 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3399 $as_echo_n "(cached) " >&6 3400 else 3401 if test -n "$ac_ct_CC"; then 3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3403 else 3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3405 for as_dir in $PATH 3406 do 3407 IFS=$as_save_IFS 3408 test -z "$as_dir" && as_dir=. 3409 for ac_exec_ext in '' $ac_executable_extensions; do 3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3411 ac_cv_prog_ac_ct_CC="gcc" 3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3413 break 2 3414 fi 3415 done 3416 done 3417 IFS=$as_save_IFS 3418 3419 fi 3420 fi 3421 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3422 if test -n "$ac_ct_CC"; then 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3424 $as_echo "$ac_ct_CC" >&6; } 3425 else 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3427 $as_echo "no" >&6; } 3428 fi 3429 3430 if test "x$ac_ct_CC" = x; then 3431 CC="" 3432 else 3433 case $cross_compiling:$ac_tool_warned in 3434 yes:) 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3437 ac_tool_warned=yes ;; 3438 esac 3439 CC=$ac_ct_CC 3440 fi 3441 else 3442 CC="$ac_cv_prog_CC" 3443 fi 3444 3445 if test -z "$CC"; then 3446 if test -n "$ac_tool_prefix"; then 3447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3448 set dummy ${ac_tool_prefix}cc; ac_word=$2 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3450 $as_echo_n "checking for $ac_word... " >&6; } 3451 if ${ac_cv_prog_CC+:} false; then : 3452 $as_echo_n "(cached) " >&6 3453 else 3454 if test -n "$CC"; then 3455 ac_cv_prog_CC="$CC" # Let the user override the test. 3456 else 3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3458 for as_dir in $PATH 3459 do 3460 IFS=$as_save_IFS 3461 test -z "$as_dir" && as_dir=. 3462 for ac_exec_ext in '' $ac_executable_extensions; do 3463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3464 ac_cv_prog_CC="${ac_tool_prefix}cc" 3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3466 break 2 3467 fi 3468 done 3469 done 3470 IFS=$as_save_IFS 3471 3472 fi 3473 fi 3474 CC=$ac_cv_prog_CC 3475 if test -n "$CC"; then 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3477 $as_echo "$CC" >&6; } 3478 else 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3480 $as_echo "no" >&6; } 3481 fi 3482 3483 3484 fi 3485 fi 3486 if test -z "$CC"; then 3487 # Extract the first word of "cc", so it can be a program name with args. 3488 set dummy cc; ac_word=$2 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3490 $as_echo_n "checking for $ac_word... " >&6; } 3491 if ${ac_cv_prog_CC+:} false; then : 3492 $as_echo_n "(cached) " >&6 3493 else 3494 if test -n "$CC"; then 3495 ac_cv_prog_CC="$CC" # Let the user override the test. 3496 else 3497 ac_prog_rejected=no 3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3499 for as_dir in $PATH 3500 do 3501 IFS=$as_save_IFS 3502 test -z "$as_dir" && as_dir=. 3503 for ac_exec_ext in '' $ac_executable_extensions; do 3504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3506 ac_prog_rejected=yes 3507 continue 3508 fi 3509 ac_cv_prog_CC="cc" 3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3511 break 2 3512 fi 3513 done 3514 done 3515 IFS=$as_save_IFS 3516 3517 if test $ac_prog_rejected = yes; then 3518 # We found a bogon in the path, so make sure we never use it. 3519 set dummy $ac_cv_prog_CC 3520 shift 3521 if test $# != 0; then 3522 # We chose a different compiler from the bogus one. 3523 # However, it has the same basename, so the bogon will be chosen 3524 # first if we set CC to just the basename; use the full file name. 3525 shift 3526 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3527 fi 3528 fi 3529 fi 3530 fi 3531 CC=$ac_cv_prog_CC 3532 if test -n "$CC"; then 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3534 $as_echo "$CC" >&6; } 3535 else 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3537 $as_echo "no" >&6; } 3538 fi 3539 3540 3541 fi 3542 if test -z "$CC"; then 3543 if test -n "$ac_tool_prefix"; then 3544 for ac_prog in cl.exe 3545 do 3546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3549 $as_echo_n "checking for $ac_word... " >&6; } 3550 if ${ac_cv_prog_CC+:} false; then : 3551 $as_echo_n "(cached) " >&6 3552 else 3553 if test -n "$CC"; then 3554 ac_cv_prog_CC="$CC" # Let the user override the test. 3555 else 3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3557 for as_dir in $PATH 3558 do 3559 IFS=$as_save_IFS 3560 test -z "$as_dir" && as_dir=. 3561 for ac_exec_ext in '' $ac_executable_extensions; do 3562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3565 break 2 3566 fi 3567 done 3568 done 3569 IFS=$as_save_IFS 3570 3571 fi 3572 fi 3573 CC=$ac_cv_prog_CC 3574 if test -n "$CC"; then 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3576 $as_echo "$CC" >&6; } 3577 else 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3579 $as_echo "no" >&6; } 3580 fi 3581 3582 3583 test -n "$CC" && break 3584 done 3585 fi 3586 if test -z "$CC"; then 3587 ac_ct_CC=$CC 3588 for ac_prog in cl.exe 3589 do 3590 # Extract the first word of "$ac_prog", so it can be a program name with args. 3591 set dummy $ac_prog; ac_word=$2 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3593 $as_echo_n "checking for $ac_word... " >&6; } 3594 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3595 $as_echo_n "(cached) " >&6 3596 else 3597 if test -n "$ac_ct_CC"; then 3598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3599 else 3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3601 for as_dir in $PATH 3602 do 3603 IFS=$as_save_IFS 3604 test -z "$as_dir" && as_dir=. 3605 for ac_exec_ext in '' $ac_executable_extensions; do 3606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3607 ac_cv_prog_ac_ct_CC="$ac_prog" 3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3609 break 2 3610 fi 3611 done 3612 done 3613 IFS=$as_save_IFS 3614 3615 fi 3616 fi 3617 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3618 if test -n "$ac_ct_CC"; then 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3620 $as_echo "$ac_ct_CC" >&6; } 3621 else 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3623 $as_echo "no" >&6; } 3624 fi 3625 3626 3627 test -n "$ac_ct_CC" && break 3628 done 3629 3630 if test "x$ac_ct_CC" = x; then 3631 CC="" 3632 else 3633 case $cross_compiling:$ac_tool_warned in 3634 yes:) 3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3637 ac_tool_warned=yes ;; 3638 esac 3639 CC=$ac_ct_CC 3640 fi 3641 fi 3642 3643 fi 3644 3645 3646 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3648 as_fn_error $? "no acceptable C compiler found in \$PATH 3649 See \`config.log' for more details" "$LINENO" 5; } 3650 3651 # Provide some information about the compiler. 3652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3653 set X $ac_compile 3654 ac_compiler=$2 3655 for ac_option in --version -v -V -qversion; do 3656 { { ac_try="$ac_compiler $ac_option >&5" 3657 case "(($ac_try" in 3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3659 *) ac_try_echo=$ac_try;; 3660 esac 3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3662 $as_echo "$ac_try_echo"; } >&5 3663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3664 ac_status=$? 3665 if test -s conftest.err; then 3666 sed '10a\ 3667 ... rest of stderr output deleted ... 3668 10q' conftest.err >conftest.er1 3669 cat conftest.er1 >&5 3670 fi 3671 rm -f conftest.er1 conftest.err 3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3673 test $ac_status = 0; } 3674 done 3675 3878 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3879 3677 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } … … 4274 4072 4275 4073 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&54277 $as_echo_n "checking for a sed that does not truncate output... " >&6; }4278 if ${ac_cv_path_SED+:} false; then :4279 $as_echo_n "(cached) " >&64280 else4281 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/4282 for ac_i in 1 2 3 4 5 6 7; do4283 ac_script="$ac_script$as_nl$ac_script"4284 done4285 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed4286 { ac_script=; unset ac_script;}4287 if test -z "$SED"; then4288 ac_path_SED_found=false4289 # Loop through the user's path and test for each of PROGNAME-LIST4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4291 for as_dir in $PATH4292 do4293 IFS=$as_save_IFS4294 test -z "$as_dir" && as_dir=.4295 for ac_prog in sed gsed; do4296 for ac_exec_ext in '' $ac_executable_extensions; do4297 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"4298 as_fn_executable_p "$ac_path_SED" || continue4299 # Check for GNU ac_path_SED and select it if it is found.4300 # Check for GNU $ac_path_SED4301 case `"$ac_path_SED" --version 2>&1` in4302 *GNU*)4303 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;4304 *)4305 ac_count=04306 $as_echo_n 0123456789 >"conftest.in"4307 while :4308 do4309 cat "conftest.in" "conftest.in" >"conftest.tmp"4310 mv "conftest.tmp" "conftest.in"4311 cp "conftest.in" "conftest.nl"4312 $as_echo '' >> "conftest.nl"4313 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break4314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4315 as_fn_arith $ac_count + 1 && ac_count=$as_val4316 if test $ac_count -gt ${ac_path_SED_max-0}; then4317 # Best one so far, save it but keep looking for a better one4318 ac_cv_path_SED="$ac_path_SED"4319 ac_path_SED_max=$ac_count4320 fi4321 # 10*(2^10) chars as input seems more than enough4322 test $ac_count -gt 10 && break4323 done4324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4325 esac4326 4327 $ac_path_SED_found && break 34328 done4329 done4330 done4331 IFS=$as_save_IFS4332 if test -z "$ac_cv_path_SED"; then4333 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 54334 fi4335 else4336 ac_cv_path_SED=$SED4337 fi4338 4339 fi4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&54341 $as_echo "$ac_cv_path_SED" >&6; }4342 SED="$ac_cv_path_SED"4343 rm -f conftest.sed4344 4345 test -z "$SED" && SED=sed4346 Xsed="$SED -e 1s/^X//"4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&54359 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }4360 if ${ac_cv_path_GREP+:} false; then :4361 $as_echo_n "(cached) " >&64362 else4363 if test -z "$GREP"; then4364 ac_path_GREP_found=false4365 # Loop through the user's path and test for each of PROGNAME-LIST4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4367 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4368 do4369 IFS=$as_save_IFS4370 test -z "$as_dir" && as_dir=.4371 for ac_prog in grep ggrep; do4372 for ac_exec_ext in '' $ac_executable_extensions; do4373 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"4374 as_fn_executable_p "$ac_path_GREP" || continue4375 # Check for GNU ac_path_GREP and select it if it is found.4376 # Check for GNU $ac_path_GREP4377 case `"$ac_path_GREP" --version 2>&1` in4378 *GNU*)4379 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;4380 *)4381 ac_count=04382 $as_echo_n 0123456789 >"conftest.in"4383 while :4384 do4385 cat "conftest.in" "conftest.in" >"conftest.tmp"4386 mv "conftest.tmp" "conftest.in"4387 cp "conftest.in" "conftest.nl"4388 $as_echo 'GREP' >> "conftest.nl"4389 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break4390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4391 as_fn_arith $ac_count + 1 && ac_count=$as_val4392 if test $ac_count -gt ${ac_path_GREP_max-0}; then4393 # Best one so far, save it but keep looking for a better one4394 ac_cv_path_GREP="$ac_path_GREP"4395 ac_path_GREP_max=$ac_count4396 fi4397 # 10*(2^10) chars as input seems more than enough4398 test $ac_count -gt 10 && break4399 done4400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4401 esac4402 4403 $ac_path_GREP_found && break 34404 done4405 done4406 done4407 IFS=$as_save_IFS4408 if test -z "$ac_cv_path_GREP"; then4409 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54410 fi4411 else4412 ac_cv_path_GREP=$GREP4413 fi4414 4415 fi4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&54417 $as_echo "$ac_cv_path_GREP" >&6; }4418 GREP="$ac_cv_path_GREP"4419 4420 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&54422 $as_echo_n "checking for egrep... " >&6; }4423 if ${ac_cv_path_EGREP+:} false; then :4424 $as_echo_n "(cached) " >&64425 else4426 if echo a | $GREP -E '(a|b)' >/dev/null 2>&14427 then ac_cv_path_EGREP="$GREP -E"4428 else4429 if test -z "$EGREP"; then4430 ac_path_EGREP_found=false4431 # Loop through the user's path and test for each of PROGNAME-LIST4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4434 do4435 IFS=$as_save_IFS4436 test -z "$as_dir" && as_dir=.4437 for ac_prog in egrep; do4438 for ac_exec_ext in '' $ac_executable_extensions; do4439 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"4440 as_fn_executable_p "$ac_path_EGREP" || continue4441 # Check for GNU ac_path_EGREP and select it if it is found.4442 # Check for GNU $ac_path_EGREP4443 case `"$ac_path_EGREP" --version 2>&1` in4444 *GNU*)4445 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;4446 *)4447 ac_count=04448 $as_echo_n 0123456789 >"conftest.in"4449 while :4450 do4451 cat "conftest.in" "conftest.in" >"conftest.tmp"4452 mv "conftest.tmp" "conftest.in"4453 cp "conftest.in" "conftest.nl"4454 $as_echo 'EGREP' >> "conftest.nl"4455 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break4456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4457 as_fn_arith $ac_count + 1 && ac_count=$as_val4458 if test $ac_count -gt ${ac_path_EGREP_max-0}; then4459 # Best one so far, save it but keep looking for a better one4460 ac_cv_path_EGREP="$ac_path_EGREP"4461 ac_path_EGREP_max=$ac_count4462 fi4463 # 10*(2^10) chars as input seems more than enough4464 test $ac_count -gt 10 && break4465 done4466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4467 esac4468 4469 $ac_path_EGREP_found && break 34470 done4471 done4472 done4473 IFS=$as_save_IFS4474 if test -z "$ac_cv_path_EGREP"; then4475 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54476 fi4477 else4478 ac_cv_path_EGREP=$EGREP4479 fi4480 4481 fi4482 fi4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&54484 $as_echo "$ac_cv_path_EGREP" >&6; }4485 EGREP="$ac_cv_path_EGREP"4486 4487 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&54489 $as_echo_n "checking for fgrep... " >&6; }4490 if ${ac_cv_path_FGREP+:} false; then :4491 $as_echo_n "(cached) " >&64492 else4493 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&14494 then ac_cv_path_FGREP="$GREP -F"4495 else4496 if test -z "$FGREP"; then4497 ac_path_FGREP_found=false4498 # Loop through the user's path and test for each of PROGNAME-LIST4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4501 do4502 IFS=$as_save_IFS4503 test -z "$as_dir" && as_dir=.4504 for ac_prog in fgrep; do4505 for ac_exec_ext in '' $ac_executable_extensions; do4506 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"4507 as_fn_executable_p "$ac_path_FGREP" || continue4508 # Check for GNU ac_path_FGREP and select it if it is found.4509 # Check for GNU $ac_path_FGREP4510 case `"$ac_path_FGREP" --version 2>&1` in4511 *GNU*)4512 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;4513 *)4514 ac_count=04515 $as_echo_n 0123456789 >"conftest.in"4516 while :4517 do4518 cat "conftest.in" "conftest.in" >"conftest.tmp"4519 mv "conftest.tmp" "conftest.in"4520 cp "conftest.in" "conftest.nl"4521 $as_echo 'FGREP' >> "conftest.nl"4522 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break4523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4524 as_fn_arith $ac_count + 1 && ac_count=$as_val4525 if test $ac_count -gt ${ac_path_FGREP_max-0}; then4526 # Best one so far, save it but keep looking for a better one4527 ac_cv_path_FGREP="$ac_path_FGREP"4528 ac_path_FGREP_max=$ac_count4529 fi4530 # 10*(2^10) chars as input seems more than enough4531 test $ac_count -gt 10 && break4532 done4533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4534 esac4535 4536 $ac_path_FGREP_found && break 34537 done4538 done4539 done4540 IFS=$as_save_IFS4541 if test -z "$ac_cv_path_FGREP"; then4542 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54543 fi4544 else4545 ac_cv_path_FGREP=$FGREP4546 fi4547 4548 fi4549 fi4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&54551 $as_echo "$ac_cv_path_FGREP" >&6; }4552 FGREP="$ac_cv_path_FGREP"4553 4554 4555 test -z "$GREP" && GREP=grep4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 # Check whether --with-gnu-ld was given.4576 if test "${with_gnu_ld+set}" = set; then :4577 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes4578 else4579 with_gnu_ld=no4580 fi4581 4582 ac_prog=ld4583 if test yes = "$GCC"; then4584 # Check if gcc -print-prog-name=ld gives a path.4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&54586 $as_echo_n "checking for ld used by $CC... " >&6; }4587 case $host in4588 *-*-mingw*)4589 # gcc leaves a trailing carriage return, which upsets mingw4590 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;4591 *)4592 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;4593 esac4594 case $ac_prog in4595 # Accept absolute paths.4596 [\\/]* | ?:[\\/]*)4597 re_direlt='/[^/][^/]*/\.\./'4598 # Canonicalize the pathname of ld4599 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`4600 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do4601 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`4602 done4603 test -z "$LD" && LD=$ac_prog4604 ;;4605 "")4606 # If it fails, then pretend we aren't using GCC.4607 ac_prog=ld4608 ;;4609 *)4610 # If it is relative, then search for the first ld in PATH.4611 with_gnu_ld=unknown4612 ;;4613 esac4614 elif test yes = "$with_gnu_ld"; then4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&54616 $as_echo_n "checking for GNU ld... " >&6; }4617 else4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&54619 $as_echo_n "checking for non-GNU ld... " >&6; }4620 fi4621 if ${lt_cv_path_LD+:} false; then :4622 $as_echo_n "(cached) " >&64623 else4624 if test -z "$LD"; then4625 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR4626 for ac_dir in $PATH; do4627 IFS=$lt_save_ifs4628 test -z "$ac_dir" && ac_dir=.4629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then4630 lt_cv_path_LD=$ac_dir/$ac_prog4631 # Check to see if the program is GNU ld. I'd rather use --version,4632 # but apparently some variants of GNU ld only accept -v.4633 # Break only if it was the GNU/non-GNU ld that we prefer.4634 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in4635 *GNU* | *'with BFD'*)4636 test no != "$with_gnu_ld" && break4637 ;;4638 *)4639 test yes != "$with_gnu_ld" && break4640 ;;4641 esac4642 fi4643 done4644 IFS=$lt_save_ifs4645 else4646 lt_cv_path_LD=$LD # Let the user override the test with a path.4647 fi4648 fi4649 4650 LD=$lt_cv_path_LD4651 if test -n "$LD"; then4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&54653 $as_echo "$LD" >&6; }4654 else4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54656 $as_echo "no" >&6; }4657 fi4658 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 54659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&54660 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }4661 if ${lt_cv_prog_gnu_ld+:} false; then :4662 $as_echo_n "(cached) " >&64663 else4664 # I'd rather use --version here, but apparently some GNU lds only accept -v.4665 case `$LD -v 2>&1 </dev/null` in4666 *GNU* | *'with BFD'*)4667 lt_cv_prog_gnu_ld=yes4668 ;;4669 *)4670 lt_cv_prog_gnu_ld=no4671 ;;4672 esac4673 fi4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&54675 $as_echo "$lt_cv_prog_gnu_ld" >&6; }4676 with_gnu_ld=$lt_cv_prog_gnu_ld4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&54687 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }4688 if ${lt_cv_path_NM+:} false; then :4689 $as_echo_n "(cached) " >&64690 else4691 if test -n "$NM"; then4692 # Let the user override the test.4693 lt_cv_path_NM=$NM4694 else4695 lt_nm_to_check=${ac_tool_prefix}nm4696 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then4697 lt_nm_to_check="$lt_nm_to_check nm"4698 fi4699 for lt_tmp_nm in $lt_nm_to_check; do4700 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR4701 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do4702 IFS=$lt_save_ifs4703 test -z "$ac_dir" && ac_dir=.4704 tmp_nm=$ac_dir/$lt_tmp_nm4705 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then4706 # Check to see if the nm accepts a BSD-compat flag.4707 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:4708 # nm: unknown option "B" ignored4709 # Tru64's nm complains that /dev/null is an invalid object file4710 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty4711 case $build_os in4712 mingw*) lt_bad_file=conftest.nm/nofile ;;4713 *) lt_bad_file=/dev/null ;;4714 esac4715 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in4716 *$lt_bad_file* | *'Invalid file or object type'*)4717 lt_cv_path_NM="$tmp_nm -B"4718 break 24719 ;;4720 *)4721 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in4722 */dev/null*)4723 lt_cv_path_NM="$tmp_nm -p"4724 break 24725 ;;4726 *)4727 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but4728 continue # so that we can try to find one that supports BSD flags4729 ;;4730 esac4731 ;;4732 esac4733 fi4734 done4735 IFS=$lt_save_ifs4736 done4737 : ${lt_cv_path_NM=no}4738 fi4739 fi4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&54741 $as_echo "$lt_cv_path_NM" >&6; }4742 if test no != "$lt_cv_path_NM"; then4743 NM=$lt_cv_path_NM4744 else4745 # Didn't find any BSD compatible name lister, look for dumpbin.4746 if test -n "$DUMPBIN"; then :4747 # Let the user override the test.4748 else4749 if test -n "$ac_tool_prefix"; then4750 for ac_prog in dumpbin "link -dump"4751 do4752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.4753 set dummy $ac_tool_prefix$ac_prog; ac_word=$24754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54755 $as_echo_n "checking for $ac_word... " >&6; }4756 if ${ac_cv_prog_DUMPBIN+:} false; then :4757 $as_echo_n "(cached) " >&64758 else4759 if test -n "$DUMPBIN"; then4760 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.4761 else4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4763 for as_dir in $PATH4764 do4765 IFS=$as_save_IFS4766 test -z "$as_dir" && as_dir=.4767 for ac_exec_ext in '' $ac_executable_extensions; do4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then4769 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54771 break 24772 fi4773 done4774 done4775 IFS=$as_save_IFS4776 4777 fi4778 fi4779 DUMPBIN=$ac_cv_prog_DUMPBIN4780 if test -n "$DUMPBIN"; then4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&54782 $as_echo "$DUMPBIN" >&6; }4783 else4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54785 $as_echo "no" >&6; }4786 fi4787 4788 4789 test -n "$DUMPBIN" && break4790 done4791 fi4792 if test -z "$DUMPBIN"; then4793 ac_ct_DUMPBIN=$DUMPBIN4794 for ac_prog in dumpbin "link -dump"4795 do4796 # Extract the first word of "$ac_prog", so it can be a program name with args.4797 set dummy $ac_prog; ac_word=$24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54799 $as_echo_n "checking for $ac_word... " >&6; }4800 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :4801 $as_echo_n "(cached) " >&64802 else4803 if test -n "$ac_ct_DUMPBIN"; then4804 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.4805 else4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4807 for as_dir in $PATH4808 do4809 IFS=$as_save_IFS4810 test -z "$as_dir" && as_dir=.4811 for ac_exec_ext in '' $ac_executable_extensions; do4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then4813 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54815 break 24816 fi4817 done4818 done4819 IFS=$as_save_IFS4820 4821 fi4822 fi4823 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN4824 if test -n "$ac_ct_DUMPBIN"; then4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&54826 $as_echo "$ac_ct_DUMPBIN" >&6; }4827 else4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54829 $as_echo "no" >&6; }4830 fi4831 4832 4833 test -n "$ac_ct_DUMPBIN" && break4834 done4835 4836 if test "x$ac_ct_DUMPBIN" = x; then4837 DUMPBIN=":"4838 else4839 case $cross_compiling:$ac_tool_warned in4840 yes:)4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&54842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}4843 ac_tool_warned=yes ;;4844 esac4845 DUMPBIN=$ac_ct_DUMPBIN4846 fi4847 fi4848 4849 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in4850 *COFF*)4851 DUMPBIN="$DUMPBIN -symbols -headers"4852 ;;4853 *)4854 DUMPBIN=:4855 ;;4856 esac4857 fi4858 4859 if test : != "$DUMPBIN"; then4860 NM=$DUMPBIN4861 fi4862 fi4863 test -z "$NM" && NM=nm4864 4865 4866 4867 4868 4869 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&54871 $as_echo_n "checking the name lister ($NM) interface... " >&6; }4872 if ${lt_cv_nm_interface+:} false; then :4873 $as_echo_n "(cached) " >&64874 else4875 lt_cv_nm_interface="BSD nm"4876 echo "int some_variable = 0;" > conftest.$ac_ext4877 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)4878 (eval "$ac_compile" 2>conftest.err)4879 cat conftest.err >&54880 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)4881 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)4882 cat conftest.err >&54883 (eval echo "\"\$as_me:$LINENO: output\"" >&5)4884 cat conftest.out >&54885 if $GREP 'External.*some_variable' conftest.out > /dev/null; then4886 lt_cv_nm_interface="MS dumpbin"4887 fi4888 rm -f conftest*4889 fi4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&54891 $as_echo "$lt_cv_nm_interface" >&6; }4892 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&54894 $as_echo_n "checking whether ln -s works... " >&6; }4895 LN_S=$as_ln_s4896 if test "$LN_S" = "ln -s"; then4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&54898 $as_echo "yes" >&6; }4899 else4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&54901 $as_echo "no, using $LN_S" >&6; }4902 fi4903 4904 # find the maximum length of command line arguments4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&54906 $as_echo_n "checking the maximum length of command line arguments... " >&6; }4907 if ${lt_cv_sys_max_cmd_len+:} false; then :4908 $as_echo_n "(cached) " >&64909 else4910 i=04911 teststring=ABCD4912 4913 case $build_os in4914 msdosdjgpp*)4915 # On DJGPP, this test can blow up pretty badly due to problems in libc4916 # (any single argument exceeding 2000 bytes causes a buffer overrun4917 # during glob expansion). Even if it were fixed, the result of this4918 # check would be larger than it should be.4919 lt_cv_sys_max_cmd_len=12288; # 12K is about right4920 ;;4921 4922 gnu*)4923 # Under GNU Hurd, this test is not required because there is4924 # no limit to the length of command line arguments.4925 # Libtool will interpret -1 as no limit whatsoever4926 lt_cv_sys_max_cmd_len=-1;4927 ;;4928 4929 cygwin* | mingw* | cegcc*)4930 # On Win9x/ME, this test blows up -- it succeeds, but takes4931 # about 5 minutes as the teststring grows exponentially.4932 # Worse, since 9x/ME are not pre-emptively multitasking,4933 # you end up with a "frozen" computer, even though with patience4934 # the test eventually succeeds (with a max line length of 256k).4935 # Instead, let's just punt: use the minimum linelength reported by4936 # all of the supported platforms: 8192 (on NT/2K/XP).4937 lt_cv_sys_max_cmd_len=8192;4938 ;;4939 4940 mint*)4941 # On MiNT this can take a long time and run out of memory.4942 lt_cv_sys_max_cmd_len=8192;4943 ;;4944 4945 amigaos*)4946 # On AmigaOS with pdksh, this test takes hours, literally.4947 # So we just punt and use a minimum line length of 8192.4948 lt_cv_sys_max_cmd_len=8192;4949 ;;4950 4951 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)4952 # This has been around since 386BSD, at least. Likely further.4953 if test -x /sbin/sysctl; then4954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`4955 elif test -x /usr/sbin/sysctl; then4956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`4957 else4958 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs4959 fi4960 # And add a safety zone4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`4962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`4963 ;;4964 4965 interix*)4966 # We know the value 262144 and hardcode it with a safety zone (like BSD)4967 lt_cv_sys_max_cmd_len=1966084968 ;;4969 4970 os2*)4971 # The test takes a long time on OS/2.4972 lt_cv_sys_max_cmd_len=81924973 ;;4974 4975 osf*)4976 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure4977 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not4978 # nice to cause kernel panics so lets avoid the loop below.4979 # First set a reasonable default.4980 lt_cv_sys_max_cmd_len=163844981 #4982 if test -x /sbin/sysconfig; then4983 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in4984 *1*) lt_cv_sys_max_cmd_len=-1 ;;4985 esac4986 fi4987 ;;4988 sco3.2v5*)4989 lt_cv_sys_max_cmd_len=1024004990 ;;4991 sysv5* | sco5v6* | sysv4.2uw2*)4992 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`4993 if test -n "$kargmax"; then4994 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`4995 else4996 lt_cv_sys_max_cmd_len=327684997 fi4998 ;;4999 *)5000 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`5001 if test -n "$lt_cv_sys_max_cmd_len" && \5002 test undefined != "$lt_cv_sys_max_cmd_len"; then5003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`5004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`5005 else5006 # Make teststring a little bigger before we do anything with it.5007 # a 1K string should be a reasonable start.5008 for i in 1 2 3 4 5 6 7 8; do5009 teststring=$teststring$teststring5010 done5011 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}5012 # If test is not a shell built-in, we'll probably end up computing a5013 # maximum length that is only half of the actual maximum length, but5014 # we can't tell.5015 while { test X`env echo "$teststring$teststring" 2>/dev/null` \5016 = "X$teststring$teststring"; } >/dev/null 2>&1 &&5017 test 17 != "$i" # 1/2 MB should be enough5018 do5019 i=`expr $i + 1`5020 teststring=$teststring$teststring5021 done5022 # Only check the string length outside the loop.5023 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`5024 teststring=5025 # Add a significant safety factor because C++ compilers can tack on5026 # massive amounts of additional arguments before passing them to the5027 # linker. It appears as though 1/2 is a usable value.5028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`5029 fi5030 ;;5031 esac5032 5033 fi5034 5035 if test -n "$lt_cv_sys_max_cmd_len"; then5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&55037 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }5038 else5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&55040 $as_echo "none" >&6; }5041 fi5042 max_cmd_len=$lt_cv_sys_max_cmd_len5043 5044 5045 5046 5047 5048 5049 : ${CP="cp -f"}5050 : ${MV="mv -f"}5051 : ${RM="rm -f"}5052 5053 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then5054 lt_unset=unset5055 else5056 lt_unset=false5057 fi5058 5059 5060 5061 5062 5063 # test EBCDIC or ASCII5064 case `echo X|tr X '\101'` in5065 A) # ASCII based system5066 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr5067 lt_SP2NL='tr \040 \012'5068 lt_NL2SP='tr \015\012 \040\040'5069 ;;5070 *) # EBCDIC based system5071 lt_SP2NL='tr \100 \n'5072 lt_NL2SP='tr \r\n \100\100'5073 ;;5074 esac5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&55085 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }5086 if ${lt_cv_to_host_file_cmd+:} false; then :5087 $as_echo_n "(cached) " >&65088 else5089 case $host in5090 *-*-mingw* )5091 case $build in5092 *-*-mingw* ) # actually msys5093 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w325094 ;;5095 *-*-cygwin* )5096 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w325097 ;;5098 * ) # otherwise, assume *nix5099 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w325100 ;;5101 esac5102 ;;5103 *-*-cygwin* )5104 case $build in5105 *-*-mingw* ) # actually msys5106 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin5107 ;;5108 *-*-cygwin* )5109 lt_cv_to_host_file_cmd=func_convert_file_noop5110 ;;5111 * ) # otherwise, assume *nix5112 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin5113 ;;5114 esac5115 ;;5116 * ) # unhandled hosts (and "normal" native builds)5117 lt_cv_to_host_file_cmd=func_convert_file_noop5118 ;;5119 esac5120 5121 fi5122 5123 to_host_file_cmd=$lt_cv_to_host_file_cmd5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&55125 $as_echo "$lt_cv_to_host_file_cmd" >&6; }5126 5127 5128 5129 5130 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&55132 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }5133 if ${lt_cv_to_tool_file_cmd+:} false; then :5134 $as_echo_n "(cached) " >&65135 else5136 #assume ordinary cross tools, or native build.5137 lt_cv_to_tool_file_cmd=func_convert_file_noop5138 case $host in5139 *-*-mingw* )5140 case $build in5141 *-*-mingw* ) # actually msys5142 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w325143 ;;5144 esac5145 ;;5146 esac5147 5148 fi5149 5150 to_tool_file_cmd=$lt_cv_to_tool_file_cmd5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&55152 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }5153 5154 5155 5156 5157 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&55159 $as_echo_n "checking for $LD option to reload object files... " >&6; }5160 if ${lt_cv_ld_reload_flag+:} false; then :5161 $as_echo_n "(cached) " >&65162 else5163 lt_cv_ld_reload_flag='-r'5164 fi5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&55166 $as_echo "$lt_cv_ld_reload_flag" >&6; }5167 reload_flag=$lt_cv_ld_reload_flag5168 case $reload_flag in5169 "" | " "*) ;;5170 *) reload_flag=" $reload_flag" ;;5171 esac5172 reload_cmds='$LD$reload_flag -o $output$reload_objs'5173 case $host_os in5174 cygwin* | mingw* | pw32* | cegcc*)5175 if test yes != "$GCC"; then5176 reload_cmds=false5177 fi5178 ;;5179 darwin*)5180 if test yes = "$GCC"; then5181 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'5182 else5183 reload_cmds='$LD$reload_flag -o $output$reload_objs'5184 fi5185 ;;5186 esac5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 if test -n "$ac_tool_prefix"; then5197 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.5198 set dummy ${ac_tool_prefix}objdump; ac_word=$25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55200 $as_echo_n "checking for $ac_word... " >&6; }5201 if ${ac_cv_prog_OBJDUMP+:} false; then :5202 $as_echo_n "(cached) " >&65203 else5204 if test -n "$OBJDUMP"; then5205 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.5206 else5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5208 for as_dir in $PATH5209 do5210 IFS=$as_save_IFS5211 test -z "$as_dir" && as_dir=.5212 for ac_exec_ext in '' $ac_executable_extensions; do5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5214 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55216 break 25217 fi5218 done5219 done5220 IFS=$as_save_IFS5221 5222 fi5223 fi5224 OBJDUMP=$ac_cv_prog_OBJDUMP5225 if test -n "$OBJDUMP"; then5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&55227 $as_echo "$OBJDUMP" >&6; }5228 else5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55230 $as_echo "no" >&6; }5231 fi5232 5233 5234 fi5235 if test -z "$ac_cv_prog_OBJDUMP"; then5236 ac_ct_OBJDUMP=$OBJDUMP5237 # Extract the first word of "objdump", so it can be a program name with args.5238 set dummy objdump; ac_word=$25239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55240 $as_echo_n "checking for $ac_word... " >&6; }5241 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :5242 $as_echo_n "(cached) " >&65243 else5244 if test -n "$ac_ct_OBJDUMP"; then5245 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.5246 else5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5248 for as_dir in $PATH5249 do5250 IFS=$as_save_IFS5251 test -z "$as_dir" && as_dir=.5252 for ac_exec_ext in '' $ac_executable_extensions; do5253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5254 ac_cv_prog_ac_ct_OBJDUMP="objdump"5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55256 break 25257 fi5258 done5259 done5260 IFS=$as_save_IFS5261 5262 fi5263 fi5264 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP5265 if test -n "$ac_ct_OBJDUMP"; then5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&55267 $as_echo "$ac_ct_OBJDUMP" >&6; }5268 else5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55270 $as_echo "no" >&6; }5271 fi5272 5273 if test "x$ac_ct_OBJDUMP" = x; then5274 OBJDUMP="false"5275 else5276 case $cross_compiling:$ac_tool_warned in5277 yes:)5278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5280 ac_tool_warned=yes ;;5281 esac5282 OBJDUMP=$ac_ct_OBJDUMP5283 fi5284 else5285 OBJDUMP="$ac_cv_prog_OBJDUMP"5286 fi5287 5288 test -z "$OBJDUMP" && OBJDUMP=objdump5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&55299 $as_echo_n "checking how to recognize dependent libraries... " >&6; }5300 if ${lt_cv_deplibs_check_method+:} false; then :5301 $as_echo_n "(cached) " >&65302 else5303 lt_cv_file_magic_cmd='$MAGIC_CMD'5304 lt_cv_file_magic_test_file=5305 lt_cv_deplibs_check_method='unknown'5306 # Need to set the preceding variable on all platforms that support5307 # interlibrary dependencies.5308 # 'none' -- dependencies not supported.5309 # 'unknown' -- same as none, but documents that we really don't know.5310 # 'pass_all' -- all dependencies passed with no checks.5311 # 'test_compile' -- check by making test program.5312 # 'file_magic [[regex]]' -- check by looking for files in library path5313 # that responds to the $file_magic_cmd with a given extended regex.5314 # If you have 'file' or equivalent on your system and you're not sure5315 # whether 'pass_all' will *always* work, you probably want this one.5316 5317 case $host_os in5318 aix[4-9]*)5319 lt_cv_deplibs_check_method=pass_all5320 ;;5321 5322 beos*)5323 lt_cv_deplibs_check_method=pass_all5324 ;;5325 5326 bsdi[45]*)5327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'5328 lt_cv_file_magic_cmd='/usr/bin/file -L'5329 lt_cv_file_magic_test_file=/shlib/libc.so5330 ;;5331 5332 cygwin*)5333 # func_win32_libid is a shell function defined in ltmain.sh5334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'5335 lt_cv_file_magic_cmd='func_win32_libid'5336 ;;5337 5338 mingw* | pw32*)5339 # Base MSYS/MinGW do not provide the 'file' command needed by5340 # func_win32_libid shell function, so use a weaker test based on 'objdump',5341 # unless we find 'file', for example because we are cross-compiling.5342 if ( file / ) >/dev/null 2>&1; then5343 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'5344 lt_cv_file_magic_cmd='func_win32_libid'5345 else5346 # Keep this pattern in sync with the one in func_win32_libid.5347 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'5348 lt_cv_file_magic_cmd='$OBJDUMP -f'5349 fi5350 ;;5351 5352 cegcc*)5353 # use the weaker test based on 'objdump'. See mingw*.5354 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'5355 lt_cv_file_magic_cmd='$OBJDUMP -f'5356 ;;5357 5358 darwin* | rhapsody*)5359 lt_cv_deplibs_check_method=pass_all5360 ;;5361 5362 freebsd* | dragonfly*)5363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then5364 case $host_cpu in5365 i*86 )5366 # Not sure whether the presence of OpenBSD here was a mistake.5367 # Let's accept both of them until this is cleared up.5368 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'5369 lt_cv_file_magic_cmd=/usr/bin/file5370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`5371 ;;5372 esac5373 else5374 lt_cv_deplibs_check_method=pass_all5375 fi5376 ;;5377 5378 haiku*)5379 lt_cv_deplibs_check_method=pass_all5380 ;;5381 5382 hpux10.20* | hpux11*)5383 lt_cv_file_magic_cmd=/usr/bin/file5384 case $host_cpu in5385 ia64*)5386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'5387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so5388 ;;5389 hppa*64*)5390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'5391 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl5392 ;;5393 *)5394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'5395 lt_cv_file_magic_test_file=/usr/lib/libc.sl5396 ;;5397 esac5398 ;;5399 5400 interix[3-9]*)5401 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here5402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'5403 ;;5404 5405 irix5* | irix6* | nonstopux*)5406 case $LD in5407 *-32|*"-32 ") libmagic=32-bit;;5408 *-n32|*"-n32 ") libmagic=N32;;5409 *-64|*"-64 ") libmagic=64-bit;;5410 *) libmagic=never-match;;5411 esac5412 lt_cv_deplibs_check_method=pass_all5413 ;;5414 5415 # This must be glibc/ELF.5416 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)5417 lt_cv_deplibs_check_method=pass_all5418 ;;5419 5420 netbsd* | netbsdelf*-gnu)5421 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then5422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'5423 else5424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'5425 fi5426 ;;5427 5428 newos6*)5429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'5430 lt_cv_file_magic_cmd=/usr/bin/file5431 lt_cv_file_magic_test_file=/usr/lib/libnls.so5432 ;;5433 5434 *nto* | *qnx*)5435 lt_cv_deplibs_check_method=pass_all5436 ;;5437 5438 openbsd* | bitrig*)5439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then5440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'5441 else5442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'5443 fi5444 ;;5445 5446 osf3* | osf4* | osf5*)5447 lt_cv_deplibs_check_method=pass_all5448 ;;5449 5450 rdos*)5451 lt_cv_deplibs_check_method=pass_all5452 ;;5453 5454 solaris*)5455 lt_cv_deplibs_check_method=pass_all5456 ;;5457 5458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)5459 lt_cv_deplibs_check_method=pass_all5460 ;;5461 5462 sysv4 | sysv4.3*)5463 case $host_vendor in5464 motorola)5465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'5466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`5467 ;;5468 ncr)5469 lt_cv_deplibs_check_method=pass_all5470 ;;5471 sequent)5472 lt_cv_file_magic_cmd='/bin/file'5473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'5474 ;;5475 sni)5476 lt_cv_file_magic_cmd='/bin/file'5477 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"5478 lt_cv_file_magic_test_file=/lib/libc.so5479 ;;5480 siemens)5481 lt_cv_deplibs_check_method=pass_all5482 ;;5483 pc)5484 lt_cv_deplibs_check_method=pass_all5485 ;;5486 esac5487 ;;5488 5489 tpf*)5490 lt_cv_deplibs_check_method=pass_all5491 ;;5492 os2*)5493 lt_cv_deplibs_check_method=pass_all5494 ;;5495 esac5496 5497 fi5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&55499 $as_echo "$lt_cv_deplibs_check_method" >&6; }5500 5501 file_magic_glob=5502 want_nocaseglob=no5503 if test "$build" = "$host"; then5504 case $host_os in5505 mingw* | pw32*)5506 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then5507 want_nocaseglob=yes5508 else5509 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`5510 fi5511 ;;5512 esac5513 fi5514 5515 file_magic_cmd=$lt_cv_file_magic_cmd5516 deplibs_check_method=$lt_cv_deplibs_check_method5517 test -z "$deplibs_check_method" && deplibs_check_method=unknown5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 if test -n "$ac_tool_prefix"; then5541 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.5542 set dummy ${ac_tool_prefix}dlltool; ac_word=$25543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55544 $as_echo_n "checking for $ac_word... " >&6; }5545 if ${ac_cv_prog_DLLTOOL+:} false; then :5546 $as_echo_n "(cached) " >&65547 else5548 if test -n "$DLLTOOL"; then5549 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.5550 else5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5552 for as_dir in $PATH5553 do5554 IFS=$as_save_IFS5555 test -z "$as_dir" && as_dir=.5556 for ac_exec_ext in '' $ac_executable_extensions; do5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5558 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55560 break 25561 fi5562 done5563 done5564 IFS=$as_save_IFS5565 5566 fi5567 fi5568 DLLTOOL=$ac_cv_prog_DLLTOOL5569 if test -n "$DLLTOOL"; then5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&55571 $as_echo "$DLLTOOL" >&6; }5572 else5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55574 $as_echo "no" >&6; }5575 fi5576 5577 5578 fi5579 if test -z "$ac_cv_prog_DLLTOOL"; then5580 ac_ct_DLLTOOL=$DLLTOOL5581 # Extract the first word of "dlltool", so it can be a program name with args.5582 set dummy dlltool; ac_word=$25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55584 $as_echo_n "checking for $ac_word... " >&6; }5585 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :5586 $as_echo_n "(cached) " >&65587 else5588 if test -n "$ac_ct_DLLTOOL"; then5589 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.5590 else5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5592 for as_dir in $PATH5593 do5594 IFS=$as_save_IFS5595 test -z "$as_dir" && as_dir=.5596 for ac_exec_ext in '' $ac_executable_extensions; do5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5598 ac_cv_prog_ac_ct_DLLTOOL="dlltool"5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55600 break 25601 fi5602 done5603 done5604 IFS=$as_save_IFS5605 5606 fi5607 fi5608 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL5609 if test -n "$ac_ct_DLLTOOL"; then5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&55611 $as_echo "$ac_ct_DLLTOOL" >&6; }5612 else5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55614 $as_echo "no" >&6; }5615 fi5616 5617 if test "x$ac_ct_DLLTOOL" = x; then5618 DLLTOOL="false"5619 else5620 case $cross_compiling:$ac_tool_warned in5621 yes:)5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5624 ac_tool_warned=yes ;;5625 esac5626 DLLTOOL=$ac_ct_DLLTOOL5627 fi5628 else5629 DLLTOOL="$ac_cv_prog_DLLTOOL"5630 fi5631 5632 test -z "$DLLTOOL" && DLLTOOL=dlltool5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&55644 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }5645 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :5646 $as_echo_n "(cached) " >&65647 else5648 lt_cv_sharedlib_from_linklib_cmd='unknown'5649 5650 case $host_os in5651 cygwin* | mingw* | pw32* | cegcc*)5652 # two different shell functions defined in ltmain.sh;5653 # decide which one to use based on capabilities of $DLLTOOL5654 case `$DLLTOOL --help 2>&1` in5655 *--identify-strict*)5656 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib5657 ;;5658 *)5659 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback5660 ;;5661 esac5662 ;;5663 *)5664 # fallback: assume linklib IS sharedlib5665 lt_cv_sharedlib_from_linklib_cmd=$ECHO5666 ;;5667 esac5668 5669 fi5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&55671 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }5672 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd5673 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO5674 5675 5676 5677 5678 5679 5680 5681 5682 if test -n "$ac_tool_prefix"; then5683 for ac_prog in ar5684 do5685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.5686 set dummy $ac_tool_prefix$ac_prog; ac_word=$25687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55688 $as_echo_n "checking for $ac_word... " >&6; }5689 if ${ac_cv_prog_AR+:} false; then :5690 $as_echo_n "(cached) " >&65691 else5692 if test -n "$AR"; then5693 ac_cv_prog_AR="$AR" # Let the user override the test.5694 else5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5696 for as_dir in $PATH5697 do5698 IFS=$as_save_IFS5699 test -z "$as_dir" && as_dir=.5700 for ac_exec_ext in '' $ac_executable_extensions; do5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5702 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55704 break 25705 fi5706 done5707 done5708 IFS=$as_save_IFS5709 5710 fi5711 fi5712 AR=$ac_cv_prog_AR5713 if test -n "$AR"; then5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&55715 $as_echo "$AR" >&6; }5716 else5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55718 $as_echo "no" >&6; }5719 fi5720 5721 5722 test -n "$AR" && break5723 done5724 fi5725 if test -z "$AR"; then5726 ac_ct_AR=$AR5727 for ac_prog in ar5728 do5729 # Extract the first word of "$ac_prog", so it can be a program name with args.5730 set dummy $ac_prog; ac_word=$25731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55732 $as_echo_n "checking for $ac_word... " >&6; }5733 if ${ac_cv_prog_ac_ct_AR+:} false; then :5734 $as_echo_n "(cached) " >&65735 else5736 if test -n "$ac_ct_AR"; then5737 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.5738 else5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5740 for as_dir in $PATH5741 do5742 IFS=$as_save_IFS5743 test -z "$as_dir" && as_dir=.5744 for ac_exec_ext in '' $ac_executable_extensions; do5745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5746 ac_cv_prog_ac_ct_AR="$ac_prog"5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55748 break 25749 fi5750 done5751 done5752 IFS=$as_save_IFS5753 5754 fi5755 fi5756 ac_ct_AR=$ac_cv_prog_ac_ct_AR5757 if test -n "$ac_ct_AR"; then5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&55759 $as_echo "$ac_ct_AR" >&6; }5760 else5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55762 $as_echo "no" >&6; }5763 fi5764 5765 5766 test -n "$ac_ct_AR" && break5767 done5768 5769 if test "x$ac_ct_AR" = x; then5770 AR="false"5771 else5772 case $cross_compiling:$ac_tool_warned in5773 yes:)5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5776 ac_tool_warned=yes ;;5777 esac5778 AR=$ac_ct_AR5779 fi5780 fi5781 5782 : ${AR=ar}5783 : ${AR_FLAGS=cru}5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&55796 $as_echo_n "checking for archiver @FILE support... " >&6; }5797 if ${lt_cv_ar_at_file+:} false; then :5798 $as_echo_n "(cached) " >&65799 else5800 lt_cv_ar_at_file=no5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext5802 /* end confdefs.h. */5803 5804 int5805 main ()5806 {5807 5808 ;5809 return 0;5810 }5811 _ACEOF5812 if ac_fn_c_try_compile "$LINENO"; then :5813 echo conftest.$ac_objext > conftest.lst5814 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'5815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&55816 (eval $lt_ar_try) 2>&55817 ac_status=$?5818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&55819 test $ac_status = 0; }5820 if test 0 -eq "$ac_status"; then5821 # Ensure the archiver fails upon bogus file names.5822 rm -f conftest.$ac_objext libconftest.a5823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&55824 (eval $lt_ar_try) 2>&55825 ac_status=$?5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&55827 test $ac_status = 0; }5828 if test 0 -ne "$ac_status"; then5829 lt_cv_ar_at_file=@5830 fi5831 fi5832 rm -f conftest.* libconftest.a5833 5834 fi5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext5836 5837 fi5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&55839 $as_echo "$lt_cv_ar_at_file" >&6; }5840 5841 if test no = "$lt_cv_ar_at_file"; then5842 archiver_list_spec=5843 else5844 archiver_list_spec=$lt_cv_ar_at_file5845 fi5846 5847 5848 5849 5850 5851 5852 5853 if test -n "$ac_tool_prefix"; then5854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.5855 set dummy ${ac_tool_prefix}strip; ac_word=$25856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55857 $as_echo_n "checking for $ac_word... " >&6; }5858 if ${ac_cv_prog_STRIP+:} false; then :5859 $as_echo_n "(cached) " >&65860 else5861 if test -n "$STRIP"; then5862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.5863 else5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5865 for as_dir in $PATH5866 do5867 IFS=$as_save_IFS5868 test -z "$as_dir" && as_dir=.5869 for ac_exec_ext in '' $ac_executable_extensions; do5870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5871 ac_cv_prog_STRIP="${ac_tool_prefix}strip"5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55873 break 25874 fi5875 done5876 done5877 IFS=$as_save_IFS5878 5879 fi5880 fi5881 STRIP=$ac_cv_prog_STRIP5882 if test -n "$STRIP"; then5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&55884 $as_echo "$STRIP" >&6; }5885 else5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55887 $as_echo "no" >&6; }5888 fi5889 5890 5891 fi5892 if test -z "$ac_cv_prog_STRIP"; then5893 ac_ct_STRIP=$STRIP5894 # Extract the first word of "strip", so it can be a program name with args.5895 set dummy strip; ac_word=$25896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55897 $as_echo_n "checking for $ac_word... " >&6; }5898 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :5899 $as_echo_n "(cached) " >&65900 else5901 if test -n "$ac_ct_STRIP"; then5902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.5903 else5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5905 for as_dir in $PATH5906 do5907 IFS=$as_save_IFS5908 test -z "$as_dir" && as_dir=.5909 for ac_exec_ext in '' $ac_executable_extensions; do5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5911 ac_cv_prog_ac_ct_STRIP="strip"5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55913 break 25914 fi5915 done5916 done5917 IFS=$as_save_IFS5918 5919 fi5920 fi5921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP5922 if test -n "$ac_ct_STRIP"; then5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&55924 $as_echo "$ac_ct_STRIP" >&6; }5925 else5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55927 $as_echo "no" >&6; }5928 fi5929 5930 if test "x$ac_ct_STRIP" = x; then5931 STRIP=":"5932 else5933 case $cross_compiling:$ac_tool_warned in5934 yes:)5935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5937 ac_tool_warned=yes ;;5938 esac5939 STRIP=$ac_ct_STRIP5940 fi5941 else5942 STRIP="$ac_cv_prog_STRIP"5943 fi5944 5945 test -z "$STRIP" && STRIP=:5946 5947 5948 5949 5950 5951 5952 if test -n "$ac_tool_prefix"; then5953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.5954 set dummy ${ac_tool_prefix}ranlib; ac_word=$25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55956 $as_echo_n "checking for $ac_word... " >&6; }5957 if ${ac_cv_prog_RANLIB+:} false; then :5958 $as_echo_n "(cached) " >&65959 else5960 if test -n "$RANLIB"; then5961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.5962 else5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5964 for as_dir in $PATH5965 do5966 IFS=$as_save_IFS5967 test -z "$as_dir" && as_dir=.5968 for ac_exec_ext in '' $ac_executable_extensions; do5969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55972 break 25973 fi5974 done5975 done5976 IFS=$as_save_IFS5977 5978 fi5979 fi5980 RANLIB=$ac_cv_prog_RANLIB5981 if test -n "$RANLIB"; then5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&55983 $as_echo "$RANLIB" >&6; }5984 else5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55986 $as_echo "no" >&6; }5987 fi5988 5989 5990 fi5991 if test -z "$ac_cv_prog_RANLIB"; then5992 ac_ct_RANLIB=$RANLIB5993 # Extract the first word of "ranlib", so it can be a program name with args.5994 set dummy ranlib; ac_word=$25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55996 $as_echo_n "checking for $ac_word... " >&6; }5997 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :5998 $as_echo_n "(cached) " >&65999 else6000 if test -n "$ac_ct_RANLIB"; then6001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.6002 else6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6004 for as_dir in $PATH6005 do6006 IFS=$as_save_IFS6007 test -z "$as_dir" && as_dir=.6008 for ac_exec_ext in '' $ac_executable_extensions; do6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6010 ac_cv_prog_ac_ct_RANLIB="ranlib"6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56012 break 26013 fi6014 done6015 done6016 IFS=$as_save_IFS6017 6018 fi6019 fi6020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB6021 if test -n "$ac_ct_RANLIB"; then6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&56023 $as_echo "$ac_ct_RANLIB" >&6; }6024 else6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56026 $as_echo "no" >&6; }6027 fi6028 6029 if test "x$ac_ct_RANLIB" = x; then6030 RANLIB=":"6031 else6032 case $cross_compiling:$ac_tool_warned in6033 yes:)6034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6036 ac_tool_warned=yes ;;6037 esac6038 RANLIB=$ac_ct_RANLIB6039 fi6040 else6041 RANLIB="$ac_cv_prog_RANLIB"6042 fi6043 6044 test -z "$RANLIB" && RANLIB=:6045 6046 6047 6048 6049 6050 6051 # Determine commands to create old-style static archives.6052 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'6053 old_postinstall_cmds='chmod 644 $oldlib'6054 old_postuninstall_cmds=6055 6056 if test -n "$RANLIB"; then6057 case $host_os in6058 bitrig* | openbsd*)6059 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"6060 ;;6061 *)6062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"6063 ;;6064 esac6065 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"6066 fi6067 6068 case $host_os in6069 darwin*)6070 lock_old_archive_extraction=yes ;;6071 *)6072 lock_old_archive_extraction=no ;;6073 esac6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 # If no C compiler was specified, use CC.6114 LTCC=${LTCC-"$CC"}6115 6116 # If no C compiler flags were specified, use CFLAGS.6117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}6118 6119 # Allow CC to be a program name with arguments.6120 compiler=$CC6121 6122 6123 # Check for command to grab the raw symbol name followed by C symbol from nm.6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&56125 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }6126 if ${lt_cv_sys_global_symbol_pipe+:} false; then :6127 $as_echo_n "(cached) " >&66128 else6129 6130 # These are sane defaults that work on at least a few old systems.6131 # [They come from Ultrix. What could be older than Ultrix?!! ;)]6132 6133 # Character class describing NM global symbol codes.6134 symcode='[BCDEGRST]'6135 6136 # Regexp to match symbols that can be accessed directly from C.6137 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'6138 6139 # Define system-specific variables.6140 case $host_os in6141 aix*)6142 symcode='[BCDT]'6143 ;;6144 cygwin* | mingw* | pw32* | cegcc*)6145 symcode='[ABCDGISTW]'6146 ;;6147 hpux*)6148 if test ia64 = "$host_cpu"; then6149 symcode='[ABCDEGRST]'6150 fi6151 ;;6152 irix* | nonstopux*)6153 symcode='[BCDEGRST]'6154 ;;6155 osf*)6156 symcode='[BCDEGQRST]'6157 ;;6158 solaris*)6159 symcode='[BDRT]'6160 ;;6161 sco3.2v5*)6162 symcode='[DT]'6163 ;;6164 sysv4.2uw2*)6165 symcode='[DT]'6166 ;;6167 sysv5* | sco5v6* | unixware* | OpenUNIX*)6168 symcode='[ABDT]'6169 ;;6170 sysv4)6171 symcode='[DFNSTU]'6172 ;;6173 esac6174 6175 # If we're using GNU nm, then use its standard symbol codes.6176 case `$NM -V 2>&1` in6177 *GNU* | *'with BFD'*)6178 symcode='[ABCDGIRSTW]' ;;6179 esac6180 6181 if test "$lt_cv_nm_interface" = "MS dumpbin"; then6182 # Gets list of data symbols to import.6183 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"6184 # Adjust the below global symbol transforms to fixup imported variables.6185 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"6186 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"6187 lt_c_name_lib_hook="\6188 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\6189 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"6190 else6191 # Disable hooks by default.6192 lt_cv_sys_global_symbol_to_import=6193 lt_cdecl_hook=6194 lt_c_name_hook=6195 lt_c_name_lib_hook=6196 fi6197 6198 # Transform an extracted symbol line into a proper C declaration.6199 # Some systems (esp. on ia64) link data and code symbols differently,6200 # so use this general approach.6201 lt_cv_sys_global_symbol_to_cdecl="sed -n"\6202 $lt_cdecl_hook\6203 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\6204 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"6205 6206 # Transform an extracted symbol line into symbol name and symbol address6207 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\6208 $lt_c_name_hook\6209 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\6210 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"6211 6212 # Transform an extracted symbol line into symbol name with lib prefix and6213 # symbol address.6214 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\6215 $lt_c_name_lib_hook\6216 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\6217 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\6218 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"6219 6220 # Handle CRLF in mingw tool chain6221 opt_cr=6222 case $build_os in6223 mingw*)6224 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp6225 ;;6226 esac6227 6228 # Try without a prefix underscore, then with it.6229 for ac_symprfx in "" "_"; do6230 6231 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.6232 symxfrm="\\1 $ac_symprfx\\2 \\2"6233 6234 # Write the raw and C identifiers.6235 if test "$lt_cv_nm_interface" = "MS dumpbin"; then6236 # Fake it for dumpbin and say T for any non-static function,6237 # D for any global variable and I for any imported variable.6238 # Also find C++ and __fastcall symbols from MSVC++,6239 # which start with @ or ?.6240 lt_cv_sys_global_symbol_pipe="$AWK '"\6241 " {last_section=section; section=\$ 3};"\6242 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\6243 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\6244 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\6245 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\6246 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\6247 " \$ 0!~/External *\|/{next};"\6248 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\6249 " {if(hide[section]) next};"\6250 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\6251 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\6252 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\6253 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\6254 " ' prfx=^$ac_symprfx"6255 else6256 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"6257 fi6258 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"6259 6260 # Check to see that the pipe works correctly.6261 pipe_works=no6262 6263 rm -f conftest*6264 cat > conftest.$ac_ext <<_LT_EOF6265 #ifdef __cplusplus6266 extern "C" {6267 #endif6268 char nm_test_var;6269 void nm_test_func(void);6270 void nm_test_func(void){}6271 #ifdef __cplusplus6272 }6273 #endif6274 int main(){nm_test_var='a';nm_test_func();return(0);}6275 _LT_EOF6276 6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56278 (eval $ac_compile) 2>&56279 ac_status=$?6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56281 test $ac_status = 0; }; then6282 # Now try to grab the symbols.6283 nlist=conftest.nm6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&56285 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&56286 ac_status=$?6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56288 test $ac_status = 0; } && test -s "$nlist"; then6289 # Try sorting and uniquifying the output.6290 if sort "$nlist" | uniq > "$nlist"T; then6291 mv -f "$nlist"T "$nlist"6292 else6293 rm -f "$nlist"T6294 fi6295 6296 # Make sure that we snagged all the symbols we need.6297 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then6298 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then6299 cat <<_LT_EOF > conftest.$ac_ext6300 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */6301 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE6302 /* DATA imports from DLLs on WIN32 can't be const, because runtime6303 relocations are performed -- see ld's documentation on pseudo-relocs. */6304 # define LT_DLSYM_CONST6305 #elif defined __osf__6306 /* This system does not cope well with relocations in const data. */6307 # define LT_DLSYM_CONST6308 #else6309 # define LT_DLSYM_CONST const6310 #endif6311 6312 #ifdef __cplusplus6313 extern "C" {6314 #endif6315 6316 _LT_EOF6317 # Now generate the symbol file.6318 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'6319 6320 cat <<_LT_EOF >> conftest.$ac_ext6321 6322 /* The mapping between symbol names and symbols. */6323 LT_DLSYM_CONST struct {6324 const char *name;6325 void *address;6326 }6327 lt__PROGRAM__LTX_preloaded_symbols[] =6328 {6329 { "@PROGRAM@", (void *) 0 },6330 _LT_EOF6331 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext6332 cat <<\_LT_EOF >> conftest.$ac_ext6333 {0, (void *) 0}6334 };6335 6336 /* This works around a problem in FreeBSD linker */6337 #ifdef FREEBSD_WORKAROUND6338 static const void *lt_preloaded_setup() {6339 return lt__PROGRAM__LTX_preloaded_symbols;6340 }6341 #endif6342 6343 #ifdef __cplusplus6344 }6345 #endif6346 _LT_EOF6347 # Now try linking the two files.6348 mv conftest.$ac_objext conftstm.$ac_objext6349 lt_globsym_save_LIBS=$LIBS6350 lt_globsym_save_CFLAGS=$CFLAGS6351 LIBS=conftstm.$ac_objext6352 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"6353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&56354 (eval $ac_link) 2>&56355 ac_status=$?6356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56357 test $ac_status = 0; } && test -s conftest$ac_exeext; then6358 pipe_works=yes6359 fi6360 LIBS=$lt_globsym_save_LIBS6361 CFLAGS=$lt_globsym_save_CFLAGS6362 else6363 echo "cannot find nm_test_func in $nlist" >&56364 fi6365 else6366 echo "cannot find nm_test_var in $nlist" >&56367 fi6368 else6369 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&56370 fi6371 else6372 echo "$progname: failed program was:" >&56373 cat conftest.$ac_ext >&56374 fi6375 rm -rf conftest* conftst*6376 6377 # Do not use the global_symbol_pipe unless it works.6378 if test yes = "$pipe_works"; then6379 break6380 else6381 lt_cv_sys_global_symbol_pipe=6382 fi6383 done6384 6385 fi6386 6387 if test -z "$lt_cv_sys_global_symbol_pipe"; then6388 lt_cv_sys_global_symbol_to_cdecl=6389 fi6390 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&56392 $as_echo "failed" >&6; }6393 else6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&56395 $as_echo "ok" >&6; }6396 fi6397 6398 # Response file support.6399 if test "$lt_cv_nm_interface" = "MS dumpbin"; then6400 nm_file_list_spec='@'6401 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then6402 nm_file_list_spec='@'6403 fi6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&56442 $as_echo_n "checking for sysroot... " >&6; }6443 6444 # Check whether --with-sysroot was given.6445 if test "${with_sysroot+set}" = set; then :6446 withval=$with_sysroot;6447 else6448 with_sysroot=no6449 fi6450 6451 6452 lt_sysroot=6453 case $with_sysroot in #(6454 yes)6455 if test yes = "$GCC"; then6456 lt_sysroot=`$CC --print-sysroot 2>/dev/null`6457 fi6458 ;; #(6459 /*)6460 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`6461 ;; #(6462 no|'')6463 ;; #(6464 *)6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&56466 $as_echo "$with_sysroot" >&6; }6467 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 56468 ;;6469 esac6470 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&56472 $as_echo "${lt_sysroot:-no}" >&6; }6473 6474 6475 6476 6477 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&56479 $as_echo_n "checking for a working dd... " >&6; }6480 if ${ac_cv_path_lt_DD+:} false; then :6481 $as_echo_n "(cached) " >&66482 else6483 printf 0123456789abcdef0123456789abcdef >conftest.i6484 cat conftest.i conftest.i >conftest2.i6485 : ${lt_DD:=$DD}6486 if test -z "$lt_DD"; then6487 ac_path_lt_DD_found=false6488 # Loop through the user's path and test for each of PROGNAME-LIST6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6490 for as_dir in $PATH6491 do6492 IFS=$as_save_IFS6493 test -z "$as_dir" && as_dir=.6494 for ac_prog in dd; do6495 for ac_exec_ext in '' $ac_executable_extensions; do6496 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"6497 as_fn_executable_p "$ac_path_lt_DD" || continue6498 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then6499 cmp -s conftest.i conftest.out \6500 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:6501 fi6502 $ac_path_lt_DD_found && break 36503 done6504 done6505 done6506 IFS=$as_save_IFS6507 if test -z "$ac_cv_path_lt_DD"; then6508 :6509 fi6510 else6511 ac_cv_path_lt_DD=$lt_DD6512 fi6513 6514 rm -f conftest.i conftest2.i conftest.out6515 fi6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&56517 $as_echo "$ac_cv_path_lt_DD" >&6; }6518 6519 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&56521 $as_echo_n "checking how to truncate binary pipes... " >&6; }6522 if ${lt_cv_truncate_bin+:} false; then :6523 $as_echo_n "(cached) " >&66524 else6525 printf 0123456789abcdef0123456789abcdef >conftest.i6526 cat conftest.i conftest.i >conftest2.i6527 lt_cv_truncate_bin=6528 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then6529 cmp -s conftest.i conftest.out \6530 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"6531 fi6532 rm -f conftest.i conftest2.i conftest.out6533 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"6534 fi6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&56536 $as_echo "$lt_cv_truncate_bin" >&6; }6537 6538 6539 6540 6541 6542 6543 6544 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.6545 func_cc_basename ()6546 {6547 for cc_temp in $*""; do6548 case $cc_temp in6549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;6550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;6551 \-*) ;;6552 *) break;;6553 esac6554 done6555 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`6556 }6557 6558 # Check whether --enable-libtool-lock was given.6559 if test "${enable_libtool_lock+set}" = set; then :6560 enableval=$enable_libtool_lock;6561 fi6562 6563 test no = "$enable_libtool_lock" || enable_libtool_lock=yes6564 6565 # Some flags need to be propagated to the compiler or linker for good6566 # libtool support.6567 case $host in6568 ia64-*-hpux*)6569 # Find out what ABI is being produced by ac_compile, and set mode6570 # options accordingly.6571 echo 'int i;' > conftest.$ac_ext6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56573 (eval $ac_compile) 2>&56574 ac_status=$?6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56576 test $ac_status = 0; }; then6577 case `/usr/bin/file conftest.$ac_objext` in6578 *ELF-32*)6579 HPUX_IA64_MODE=326580 ;;6581 *ELF-64*)6582 HPUX_IA64_MODE=646583 ;;6584 esac6585 fi6586 rm -rf conftest*6587 ;;6588 *-*-irix6*)6589 # Find out what ABI is being produced by ac_compile, and set linker6590 # options accordingly.6591 echo '#line '$LINENO' "configure"' > conftest.$ac_ext6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56593 (eval $ac_compile) 2>&56594 ac_status=$?6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56596 test $ac_status = 0; }; then6597 if test yes = "$lt_cv_prog_gnu_ld"; then6598 case `/usr/bin/file conftest.$ac_objext` in6599 *32-bit*)6600 LD="${LD-ld} -melf32bsmip"6601 ;;6602 *N32*)6603 LD="${LD-ld} -melf32bmipn32"6604 ;;6605 *64-bit*)6606 LD="${LD-ld} -melf64bmip"6607 ;;6608 esac6609 else6610 case `/usr/bin/file conftest.$ac_objext` in6611 *32-bit*)6612 LD="${LD-ld} -32"6613 ;;6614 *N32*)6615 LD="${LD-ld} -n32"6616 ;;6617 *64-bit*)6618 LD="${LD-ld} -64"6619 ;;6620 esac6621 fi6622 fi6623 rm -rf conftest*6624 ;;6625 6626 mips64*-*linux*)6627 # Find out what ABI is being produced by ac_compile, and set linker6628 # options accordingly.6629 echo '#line '$LINENO' "configure"' > conftest.$ac_ext6630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56631 (eval $ac_compile) 2>&56632 ac_status=$?6633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56634 test $ac_status = 0; }; then6635 emul=elf6636 case `/usr/bin/file conftest.$ac_objext` in6637 *32-bit*)6638 emul="${emul}32"6639 ;;6640 *64-bit*)6641 emul="${emul}64"6642 ;;6643 esac6644 case `/usr/bin/file conftest.$ac_objext` in6645 *MSB*)6646 emul="${emul}btsmip"6647 ;;6648 *LSB*)6649 emul="${emul}ltsmip"6650 ;;6651 esac6652 case `/usr/bin/file conftest.$ac_objext` in6653 *N32*)6654 emul="${emul}n32"6655 ;;6656 esac6657 LD="${LD-ld} -m $emul"6658 fi6659 rm -rf conftest*6660 ;;6661 6662 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \6663 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)6664 # Find out what ABI is being produced by ac_compile, and set linker6665 # options accordingly. Note that the listed cases only cover the6666 # situations where additional linker options are needed (such as when6667 # doing 32-bit compilation for a host where ld defaults to 64-bit, or6668 # vice versa); the common cases where no linker options are needed do6669 # not appear in the list.6670 echo 'int i;' > conftest.$ac_ext6671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56672 (eval $ac_compile) 2>&56673 ac_status=$?6674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56675 test $ac_status = 0; }; then6676 case `/usr/bin/file conftest.o` in6677 *32-bit*)6678 case $host in6679 x86_64-*kfreebsd*-gnu)6680 LD="${LD-ld} -m elf_i386_fbsd"6681 ;;6682 x86_64-*linux*)6683 case `/usr/bin/file conftest.o` in6684 *x86-64*)6685 LD="${LD-ld} -m elf32_x86_64"6686 ;;6687 *)6688 LD="${LD-ld} -m elf_i386"6689 ;;6690 esac6691 ;;6692 powerpc64le-*linux*)6693 LD="${LD-ld} -m elf32lppclinux"6694 ;;6695 powerpc64-*linux*)6696 LD="${LD-ld} -m elf32ppclinux"6697 ;;6698 s390x-*linux*)6699 LD="${LD-ld} -m elf_s390"6700 ;;6701 sparc64-*linux*)6702 LD="${LD-ld} -m elf32_sparc"6703 ;;6704 esac6705 ;;6706 *64-bit*)6707 case $host in6708 x86_64-*kfreebsd*-gnu)6709 LD="${LD-ld} -m elf_x86_64_fbsd"6710 ;;6711 x86_64-*linux*)6712 LD="${LD-ld} -m elf_x86_64"6713 ;;6714 powerpcle-*linux*)6715 LD="${LD-ld} -m elf64lppc"6716 ;;6717 powerpc-*linux*)6718 LD="${LD-ld} -m elf64ppc"6719 ;;6720 s390*-*linux*|s390*-*tpf*)6721 LD="${LD-ld} -m elf64_s390"6722 ;;6723 sparc*-*linux*)6724 LD="${LD-ld} -m elf64_sparc"6725 ;;6726 esac6727 ;;6728 esac6729 fi6730 rm -rf conftest*6731 ;;6732 6733 *-*-sco3.2v5*)6734 # On SCO OpenServer 5, we need -belf to get full-featured binaries.6735 SAVE_CFLAGS=$CFLAGS6736 CFLAGS="$CFLAGS -belf"6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&56738 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }6739 if ${lt_cv_cc_needs_belf+:} false; then :6740 $as_echo_n "(cached) " >&66741 else6742 ac_ext=c6743 ac_cpp='$CPP $CPPFLAGS'6744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'6745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'6746 ac_compiler_gnu=$ac_cv_c_compiler_gnu6747 6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext6749 /* end confdefs.h. */6750 6751 int6752 main ()6753 {6754 6755 ;6756 return 0;6757 }6758 _ACEOF6759 if ac_fn_c_try_link "$LINENO"; then :6760 lt_cv_cc_needs_belf=yes6761 else6762 lt_cv_cc_needs_belf=no6763 fi6764 rm -f core conftest.err conftest.$ac_objext \6765 conftest$ac_exeext conftest.$ac_ext6766 ac_ext=c6767 ac_cpp='$CPP $CPPFLAGS'6768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'6769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'6770 ac_compiler_gnu=$ac_cv_c_compiler_gnu6771 6772 fi6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&56774 $as_echo "$lt_cv_cc_needs_belf" >&6; }6775 if test yes != "$lt_cv_cc_needs_belf"; then6776 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf6777 CFLAGS=$SAVE_CFLAGS6778 fi6779 ;;6780 *-*solaris*)6781 # Find out what ABI is being produced by ac_compile, and set linker6782 # options accordingly.6783 echo 'int i;' > conftest.$ac_ext6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56785 (eval $ac_compile) 2>&56786 ac_status=$?6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56788 test $ac_status = 0; }; then6789 case `/usr/bin/file conftest.o` in6790 *64-bit*)6791 case $lt_cv_prog_gnu_ld in6792 yes*)6793 case $host in6794 i?86-*-solaris*|x86_64-*-solaris*)6795 LD="${LD-ld} -m elf_x86_64"6796 ;;6797 sparc*-*-solaris*)6798 LD="${LD-ld} -m elf64_sparc"6799 ;;6800 esac6801 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.6802 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then6803 LD=${LD-ld}_sol26804 fi6805 ;;6806 *)6807 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then6808 LD="${LD-ld} -64"6809 fi6810 ;;6811 esac6812 ;;6813 esac6814 fi6815 rm -rf conftest*6816 ;;6817 esac6818 6819 need_locks=$enable_libtool_lock6820 6821 if test -n "$ac_tool_prefix"; then6822 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.6823 set dummy ${ac_tool_prefix}mt; ac_word=$26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56825 $as_echo_n "checking for $ac_word... " >&6; }6826 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :6827 $as_echo_n "(cached) " >&66828 else6829 if test -n "$MANIFEST_TOOL"; then6830 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.6831 else6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6833 for as_dir in $PATH6834 do6835 IFS=$as_save_IFS6836 test -z "$as_dir" && as_dir=.6837 for ac_exec_ext in '' $ac_executable_extensions; do6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6839 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56841 break 26842 fi6843 done6844 done6845 IFS=$as_save_IFS6846 6847 fi6848 fi6849 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL6850 if test -n "$MANIFEST_TOOL"; then6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&56852 $as_echo "$MANIFEST_TOOL" >&6; }6853 else6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56855 $as_echo "no" >&6; }6856 fi6857 6858 6859 fi6860 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then6861 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL6862 # Extract the first word of "mt", so it can be a program name with args.6863 set dummy mt; ac_word=$26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56865 $as_echo_n "checking for $ac_word... " >&6; }6866 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :6867 $as_echo_n "(cached) " >&66868 else6869 if test -n "$ac_ct_MANIFEST_TOOL"; then6870 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.6871 else6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6873 for as_dir in $PATH6874 do6875 IFS=$as_save_IFS6876 test -z "$as_dir" && as_dir=.6877 for ac_exec_ext in '' $ac_executable_extensions; do6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6879 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56881 break 26882 fi6883 done6884 done6885 IFS=$as_save_IFS6886 6887 fi6888 fi6889 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL6890 if test -n "$ac_ct_MANIFEST_TOOL"; then6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&56892 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }6893 else6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56895 $as_echo "no" >&6; }6896 fi6897 6898 if test "x$ac_ct_MANIFEST_TOOL" = x; then6899 MANIFEST_TOOL=":"6900 else6901 case $cross_compiling:$ac_tool_warned in6902 yes:)6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6905 ac_tool_warned=yes ;;6906 esac6907 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL6908 fi6909 else6910 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"6911 fi6912 6913 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&56915 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }6916 if ${lt_cv_path_mainfest_tool+:} false; then :6917 $as_echo_n "(cached) " >&66918 else6919 lt_cv_path_mainfest_tool=no6920 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&56921 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out6922 cat conftest.err >&56923 if $GREP 'Manifest Tool' conftest.out > /dev/null; then6924 lt_cv_path_mainfest_tool=yes6925 fi6926 rm -f conftest*6927 fi6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&56929 $as_echo "$lt_cv_path_mainfest_tool" >&6; }6930 if test yes != "$lt_cv_path_mainfest_tool"; then6931 MANIFEST_TOOL=:6932 fi6933 6934 6935 6936 6937 6938 6939 case $host_os in6940 rhapsody* | darwin*)6941 if test -n "$ac_tool_prefix"; then6942 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.6943 set dummy ${ac_tool_prefix}dsymutil; ac_word=$26944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56945 $as_echo_n "checking for $ac_word... " >&6; }6946 if ${ac_cv_prog_DSYMUTIL+:} false; then :6947 $as_echo_n "(cached) " >&66948 else6949 if test -n "$DSYMUTIL"; then6950 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.6951 else6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6953 for as_dir in $PATH6954 do6955 IFS=$as_save_IFS6956 test -z "$as_dir" && as_dir=.6957 for ac_exec_ext in '' $ac_executable_extensions; do6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6959 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56961 break 26962 fi6963 done6964 done6965 IFS=$as_save_IFS6966 6967 fi6968 fi6969 DSYMUTIL=$ac_cv_prog_DSYMUTIL6970 if test -n "$DSYMUTIL"; then6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&56972 $as_echo "$DSYMUTIL" >&6; }6973 else6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56975 $as_echo "no" >&6; }6976 fi6977 6978 6979 fi6980 if test -z "$ac_cv_prog_DSYMUTIL"; then6981 ac_ct_DSYMUTIL=$DSYMUTIL6982 # Extract the first word of "dsymutil", so it can be a program name with args.6983 set dummy dsymutil; ac_word=$26984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56985 $as_echo_n "checking for $ac_word... " >&6; }6986 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :6987 $as_echo_n "(cached) " >&66988 else6989 if test -n "$ac_ct_DSYMUTIL"; then6990 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.6991 else6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6993 for as_dir in $PATH6994 do6995 IFS=$as_save_IFS6996 test -z "$as_dir" && as_dir=.6997 for ac_exec_ext in '' $ac_executable_extensions; do6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6999 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57001 break 27002 fi7003 done7004 done7005 IFS=$as_save_IFS7006 7007 fi7008 fi7009 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL7010 if test -n "$ac_ct_DSYMUTIL"; then7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&57012 $as_echo "$ac_ct_DSYMUTIL" >&6; }7013 else7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57015 $as_echo "no" >&6; }7016 fi7017 7018 if test "x$ac_ct_DSYMUTIL" = x; then7019 DSYMUTIL=":"7020 else7021 case $cross_compiling:$ac_tool_warned in7022 yes:)7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7025 ac_tool_warned=yes ;;7026 esac7027 DSYMUTIL=$ac_ct_DSYMUTIL7028 fi7029 else7030 DSYMUTIL="$ac_cv_prog_DSYMUTIL"7031 fi7032 7033 if test -n "$ac_tool_prefix"; then7034 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.7035 set dummy ${ac_tool_prefix}nmedit; ac_word=$27036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57037 $as_echo_n "checking for $ac_word... " >&6; }7038 if ${ac_cv_prog_NMEDIT+:} false; then :7039 $as_echo_n "(cached) " >&67040 else7041 if test -n "$NMEDIT"; then7042 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.7043 else7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7045 for as_dir in $PATH7046 do7047 IFS=$as_save_IFS7048 test -z "$as_dir" && as_dir=.7049 for ac_exec_ext in '' $ac_executable_extensions; do7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7051 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57053 break 27054 fi7055 done7056 done7057 IFS=$as_save_IFS7058 7059 fi7060 fi7061 NMEDIT=$ac_cv_prog_NMEDIT7062 if test -n "$NMEDIT"; then7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&57064 $as_echo "$NMEDIT" >&6; }7065 else7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57067 $as_echo "no" >&6; }7068 fi7069 7070 7071 fi7072 if test -z "$ac_cv_prog_NMEDIT"; then7073 ac_ct_NMEDIT=$NMEDIT7074 # Extract the first word of "nmedit", so it can be a program name with args.7075 set dummy nmedit; ac_word=$27076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57077 $as_echo_n "checking for $ac_word... " >&6; }7078 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :7079 $as_echo_n "(cached) " >&67080 else7081 if test -n "$ac_ct_NMEDIT"; then7082 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.7083 else7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7085 for as_dir in $PATH7086 do7087 IFS=$as_save_IFS7088 test -z "$as_dir" && as_dir=.7089 for ac_exec_ext in '' $ac_executable_extensions; do7090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7091 ac_cv_prog_ac_ct_NMEDIT="nmedit"7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57093 break 27094 fi7095 done7096 done7097 IFS=$as_save_IFS7098 7099 fi7100 fi7101 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT7102 if test -n "$ac_ct_NMEDIT"; then7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&57104 $as_echo "$ac_ct_NMEDIT" >&6; }7105 else7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57107 $as_echo "no" >&6; }7108 fi7109 7110 if test "x$ac_ct_NMEDIT" = x; then7111 NMEDIT=":"7112 else7113 case $cross_compiling:$ac_tool_warned in7114 yes:)7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7117 ac_tool_warned=yes ;;7118 esac7119 NMEDIT=$ac_ct_NMEDIT7120 fi7121 else7122 NMEDIT="$ac_cv_prog_NMEDIT"7123 fi7124 7125 if test -n "$ac_tool_prefix"; then7126 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.7127 set dummy ${ac_tool_prefix}lipo; ac_word=$27128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57129 $as_echo_n "checking for $ac_word... " >&6; }7130 if ${ac_cv_prog_LIPO+:} false; then :7131 $as_echo_n "(cached) " >&67132 else7133 if test -n "$LIPO"; then7134 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.7135 else7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7137 for as_dir in $PATH7138 do7139 IFS=$as_save_IFS7140 test -z "$as_dir" && as_dir=.7141 for ac_exec_ext in '' $ac_executable_extensions; do7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7143 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57145 break 27146 fi7147 done7148 done7149 IFS=$as_save_IFS7150 7151 fi7152 fi7153 LIPO=$ac_cv_prog_LIPO7154 if test -n "$LIPO"; then7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&57156 $as_echo "$LIPO" >&6; }7157 else7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57159 $as_echo "no" >&6; }7160 fi7161 7162 7163 fi7164 if test -z "$ac_cv_prog_LIPO"; then7165 ac_ct_LIPO=$LIPO7166 # Extract the first word of "lipo", so it can be a program name with args.7167 set dummy lipo; ac_word=$27168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57169 $as_echo_n "checking for $ac_word... " >&6; }7170 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :7171 $as_echo_n "(cached) " >&67172 else7173 if test -n "$ac_ct_LIPO"; then7174 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.7175 else7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7177 for as_dir in $PATH7178 do7179 IFS=$as_save_IFS7180 test -z "$as_dir" && as_dir=.7181 for ac_exec_ext in '' $ac_executable_extensions; do7182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7183 ac_cv_prog_ac_ct_LIPO="lipo"7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57185 break 27186 fi7187 done7188 done7189 IFS=$as_save_IFS7190 7191 fi7192 fi7193 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO7194 if test -n "$ac_ct_LIPO"; then7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&57196 $as_echo "$ac_ct_LIPO" >&6; }7197 else7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57199 $as_echo "no" >&6; }7200 fi7201 7202 if test "x$ac_ct_LIPO" = x; then7203 LIPO=":"7204 else7205 case $cross_compiling:$ac_tool_warned in7206 yes:)7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7209 ac_tool_warned=yes ;;7210 esac7211 LIPO=$ac_ct_LIPO7212 fi7213 else7214 LIPO="$ac_cv_prog_LIPO"7215 fi7216 7217 if test -n "$ac_tool_prefix"; then7218 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.7219 set dummy ${ac_tool_prefix}otool; ac_word=$27220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57221 $as_echo_n "checking for $ac_word... " >&6; }7222 if ${ac_cv_prog_OTOOL+:} false; then :7223 $as_echo_n "(cached) " >&67224 else7225 if test -n "$OTOOL"; then7226 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.7227 else7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7229 for as_dir in $PATH7230 do7231 IFS=$as_save_IFS7232 test -z "$as_dir" && as_dir=.7233 for ac_exec_ext in '' $ac_executable_extensions; do7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7235 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57237 break 27238 fi7239 done7240 done7241 IFS=$as_save_IFS7242 7243 fi7244 fi7245 OTOOL=$ac_cv_prog_OTOOL7246 if test -n "$OTOOL"; then7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&57248 $as_echo "$OTOOL" >&6; }7249 else7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57251 $as_echo "no" >&6; }7252 fi7253 7254 7255 fi7256 if test -z "$ac_cv_prog_OTOOL"; then7257 ac_ct_OTOOL=$OTOOL7258 # Extract the first word of "otool", so it can be a program name with args.7259 set dummy otool; ac_word=$27260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57261 $as_echo_n "checking for $ac_word... " >&6; }7262 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :7263 $as_echo_n "(cached) " >&67264 else7265 if test -n "$ac_ct_OTOOL"; then7266 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.7267 else7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7269 for as_dir in $PATH7270 do7271 IFS=$as_save_IFS7272 test -z "$as_dir" && as_dir=.7273 for ac_exec_ext in '' $ac_executable_extensions; do7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7275 ac_cv_prog_ac_ct_OTOOL="otool"7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57277 break 27278 fi7279 done7280 done7281 IFS=$as_save_IFS7282 7283 fi7284 fi7285 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL7286 if test -n "$ac_ct_OTOOL"; then7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&57288 $as_echo "$ac_ct_OTOOL" >&6; }7289 else7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57291 $as_echo "no" >&6; }7292 fi7293 7294 if test "x$ac_ct_OTOOL" = x; then7295 OTOOL=":"7296 else7297 case $cross_compiling:$ac_tool_warned in7298 yes:)7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7301 ac_tool_warned=yes ;;7302 esac7303 OTOOL=$ac_ct_OTOOL7304 fi7305 else7306 OTOOL="$ac_cv_prog_OTOOL"7307 fi7308 7309 if test -n "$ac_tool_prefix"; then7310 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.7311 set dummy ${ac_tool_prefix}otool64; ac_word=$27312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57313 $as_echo_n "checking for $ac_word... " >&6; }7314 if ${ac_cv_prog_OTOOL64+:} false; then :7315 $as_echo_n "(cached) " >&67316 else7317 if test -n "$OTOOL64"; then7318 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.7319 else7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7321 for as_dir in $PATH7322 do7323 IFS=$as_save_IFS7324 test -z "$as_dir" && as_dir=.7325 for ac_exec_ext in '' $ac_executable_extensions; do7326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7327 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57329 break 27330 fi7331 done7332 done7333 IFS=$as_save_IFS7334 7335 fi7336 fi7337 OTOOL64=$ac_cv_prog_OTOOL647338 if test -n "$OTOOL64"; then7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&57340 $as_echo "$OTOOL64" >&6; }7341 else7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57343 $as_echo "no" >&6; }7344 fi7345 7346 7347 fi7348 if test -z "$ac_cv_prog_OTOOL64"; then7349 ac_ct_OTOOL64=$OTOOL647350 # Extract the first word of "otool64", so it can be a program name with args.7351 set dummy otool64; ac_word=$27352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57353 $as_echo_n "checking for $ac_word... " >&6; }7354 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :7355 $as_echo_n "(cached) " >&67356 else7357 if test -n "$ac_ct_OTOOL64"; then7358 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.7359 else7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7361 for as_dir in $PATH7362 do7363 IFS=$as_save_IFS7364 test -z "$as_dir" && as_dir=.7365 for ac_exec_ext in '' $ac_executable_extensions; do7366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7367 ac_cv_prog_ac_ct_OTOOL64="otool64"7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57369 break 27370 fi7371 done7372 done7373 IFS=$as_save_IFS7374 7375 fi7376 fi7377 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL647378 if test -n "$ac_ct_OTOOL64"; then7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&57380 $as_echo "$ac_ct_OTOOL64" >&6; }7381 else7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57383 $as_echo "no" >&6; }7384 fi7385 7386 if test "x$ac_ct_OTOOL64" = x; then7387 OTOOL64=":"7388 else7389 case $cross_compiling:$ac_tool_warned in7390 yes:)7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7393 ac_tool_warned=yes ;;7394 esac7395 OTOOL64=$ac_ct_OTOOL647396 fi7397 else7398 OTOOL64="$ac_cv_prog_OTOOL64"7399 fi7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&57428 $as_echo_n "checking for -single_module linker flag... " >&6; }7429 if ${lt_cv_apple_cc_single_mod+:} false; then :7430 $as_echo_n "(cached) " >&67431 else7432 lt_cv_apple_cc_single_mod=no7433 if test -z "$LT_MULTI_MODULE"; then7434 # By default we will add the -single_module flag. You can override7435 # by either setting the environment variable LT_MULTI_MODULE7436 # non-empty at configure time, or by adding -multi_module to the7437 # link flags.7438 rm -rf libconftest.dylib*7439 echo "int foo(void){return 1;}" > conftest.c7440 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \7441 -dynamiclib -Wl,-single_module conftest.c" >&57442 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \7443 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err7444 _lt_result=$?7445 # If there is a non-empty error log, and "single_module"7446 # appears in it, assume the flag caused a linker warning7447 if test -s conftest.err && $GREP single_module conftest.err; then7448 cat conftest.err >&57449 # Otherwise, if the output was created with a 0 exit code from7450 # the compiler, it worked.7451 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then7452 lt_cv_apple_cc_single_mod=yes7453 else7454 cat conftest.err >&57455 fi7456 rm -rf libconftest.dylib*7457 rm -f conftest.*7458 fi7459 fi7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&57461 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }7462 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&57464 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }7465 if ${lt_cv_ld_exported_symbols_list+:} false; then :7466 $as_echo_n "(cached) " >&67467 else7468 lt_cv_ld_exported_symbols_list=no7469 save_LDFLAGS=$LDFLAGS7470 echo "_main" > conftest.sym7471 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7473 /* end confdefs.h. */7474 7475 int7476 main ()7477 {7478 7479 ;7480 return 0;7481 }7482 _ACEOF7483 if ac_fn_c_try_link "$LINENO"; then :7484 lt_cv_ld_exported_symbols_list=yes7485 else7486 lt_cv_ld_exported_symbols_list=no7487 fi7488 rm -f core conftest.err conftest.$ac_objext \7489 conftest$ac_exeext conftest.$ac_ext7490 LDFLAGS=$save_LDFLAGS7491 7492 fi7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&57494 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }7495 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&57497 $as_echo_n "checking for -force_load linker flag... " >&6; }7498 if ${lt_cv_ld_force_load+:} false; then :7499 $as_echo_n "(cached) " >&67500 else7501 lt_cv_ld_force_load=no7502 cat > conftest.c << _LT_EOF7503 int forced_loaded() { return 2;}7504 _LT_EOF7505 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&57506 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&57507 echo "$AR cru libconftest.a conftest.o" >&57508 $AR cru libconftest.a conftest.o 2>&57509 echo "$RANLIB libconftest.a" >&57510 $RANLIB libconftest.a 2>&57511 cat > conftest.c << _LT_EOF7512 int main() { return 0;}7513 _LT_EOF7514 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&57515 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err7516 _lt_result=$?7517 if test -s conftest.err && $GREP force_load conftest.err; then7518 cat conftest.err >&57519 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then7520 lt_cv_ld_force_load=yes7521 else7522 cat conftest.err >&57523 fi7524 rm -f conftest.err libconftest.a conftest conftest.c7525 rm -rf conftest.dSYM7526 7527 fi7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&57529 $as_echo "$lt_cv_ld_force_load" >&6; }7530 case $host_os in7531 rhapsody* | darwin1.[012])7532 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;7533 darwin1.*)7534 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;7535 darwin*) # darwin 5.x on7536 # if running on 10.5 or later, the deployment target defaults7537 # to the OS version, if on x86, and 10.4, the deployment7538 # target defaults to 10.4. Don't you love it?7539 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in7540 10.0,*86*-darwin8*|10.0,*-darwin[91]*)7541 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;7542 10.[012][,.]*)7543 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;7544 10.*)7545 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;7546 esac7547 ;;7548 esac7549 if test yes = "$lt_cv_apple_cc_single_mod"; then7550 _lt_dar_single_mod='$single_module'7551 fi7552 if test yes = "$lt_cv_ld_exported_symbols_list"; then7553 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'7554 else7555 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'7556 fi7557 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then7558 _lt_dsymutil='~$DSYMUTIL $lib || :'7559 else7560 _lt_dsymutil=7561 fi7562 ;;7563 esac7564 7565 # func_munge_path_list VARIABLE PATH7566 # -----------------------------------7567 # VARIABLE is name of variable containing _space_ separated list of7568 # directories to be munged by the contents of PATH, which is string7569 # having a format:7570 # "DIR[:DIR]:"7571 # string "DIR[ DIR]" will be prepended to VARIABLE7572 # ":DIR[:DIR]"7573 # string "DIR[ DIR]" will be appended to VARIABLE7574 # "DIRP[:DIRP]::[DIRA:]DIRA"7575 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string7576 # "DIRA[ DIRA]" will be appended to VARIABLE7577 # "DIR[:DIR]"7578 # VARIABLE will be replaced by "DIR[ DIR]"7579 func_munge_path_list ()7580 {7581 case x$2 in7582 x)7583 ;;7584 *:)7585 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"7586 ;;7587 x:*)7588 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"7589 ;;7590 *::*)7591 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"7592 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"7593 ;;7594 *)7595 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"7596 ;;7597 esac7598 }7599 7600 ac_ext=c7601 ac_cpp='$CPP $CPPFLAGS'7602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'7603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'7604 ac_compiler_gnu=$ac_cv_c_compiler_gnu7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&57606 $as_echo_n "checking how to run the C preprocessor... " >&6; }7607 # On Suns, sometimes $CPP names a directory.7608 if test -n "$CPP" && test -d "$CPP"; then7609 CPP=7610 fi7611 if test -z "$CPP"; then7612 if ${ac_cv_prog_CPP+:} false; then :7613 $as_echo_n "(cached) " >&67614 else7615 # Double quotes because CPP needs to be expanded7616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"7617 do7618 ac_preproc_ok=false7619 for ac_c_preproc_warn_flag in '' yes7620 do7621 # Use a header file that comes with gcc, so configuring glibc7622 # with a fresh cross-compiler works.7623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since7624 # <limits.h> exists even on freestanding compilers.7625 # On the NeXT, cc -E runs the code through the compiler's parser,7626 # not just through cpp. "Syntax error" is here to catch this case.7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7628 /* end confdefs.h. */7629 #ifdef __STDC__7630 # include <limits.h>7631 #else7632 # include <assert.h>7633 #endif7634 Syntax error7635 _ACEOF7636 if ac_fn_c_try_cpp "$LINENO"; then :7637 7638 else7639 # Broken: fails on valid input.7640 continue7641 fi7642 rm -f conftest.err conftest.i conftest.$ac_ext7643 7644 # OK, works on sane cases. Now check whether nonexistent headers7645 # can be detected and how.7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7647 /* end confdefs.h. */7648 #include <ac_nonexistent.h>7649 _ACEOF7650 if ac_fn_c_try_cpp "$LINENO"; then :7651 # Broken: success on invalid input.7652 continue7653 else7654 # Passes both tests.7655 ac_preproc_ok=:7656 break7657 fi7658 rm -f conftest.err conftest.i conftest.$ac_ext7659 7660 done7661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.7662 rm -f conftest.i conftest.err conftest.$ac_ext7663 if $ac_preproc_ok; then :7664 break7665 fi7666 7667 done7668 ac_cv_prog_CPP=$CPP7669 7670 fi7671 CPP=$ac_cv_prog_CPP7672 else7673 ac_cv_prog_CPP=$CPP7674 fi7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&57676 $as_echo "$CPP" >&6; }7677 ac_preproc_ok=false7678 for ac_c_preproc_warn_flag in '' yes7679 do7680 # Use a header file that comes with gcc, so configuring glibc7681 # with a fresh cross-compiler works.7682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since7683 # <limits.h> exists even on freestanding compilers.7684 # On the NeXT, cc -E runs the code through the compiler's parser,7685 # not just through cpp. "Syntax error" is here to catch this case.7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7687 /* end confdefs.h. */7688 #ifdef __STDC__7689 # include <limits.h>7690 #else7691 # include <assert.h>7692 #endif7693 Syntax error7694 _ACEOF7695 if ac_fn_c_try_cpp "$LINENO"; then :7696 7697 else7698 # Broken: fails on valid input.7699 continue7700 fi7701 rm -f conftest.err conftest.i conftest.$ac_ext7702 7703 # OK, works on sane cases. Now check whether nonexistent headers7704 # can be detected and how.7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7706 /* end confdefs.h. */7707 #include <ac_nonexistent.h>7708 _ACEOF7709 if ac_fn_c_try_cpp "$LINENO"; then :7710 # Broken: success on invalid input.7711 continue7712 else7713 # Passes both tests.7714 ac_preproc_ok=:7715 break7716 fi7717 rm -f conftest.err conftest.i conftest.$ac_ext7718 7719 done7720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.7721 rm -f conftest.i conftest.err conftest.$ac_ext7722 if $ac_preproc_ok; then :7723 7724 else7725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&57726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}7727 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check7728 See \`config.log' for more details" "$LINENO" 5; }7729 fi7730 7731 ac_ext=c7732 ac_cpp='$CPP $CPPFLAGS'7733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'7734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'7735 ac_compiler_gnu=$ac_cv_c_compiler_gnu7736 7737 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&57739 $as_echo_n "checking for ANSI C header files... " >&6; }7740 if ${ac_cv_header_stdc+:} false; then :7741 $as_echo_n "(cached) " >&67742 else7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7744 /* end confdefs.h. */7745 #include <stdlib.h>7746 #include <stdarg.h>7747 #include <string.h>7748 #include <float.h>7749 7750 int7751 main ()7752 {7753 7754 ;7755 return 0;7756 }7757 _ACEOF7758 if ac_fn_c_try_compile "$LINENO"; then :7759 ac_cv_header_stdc=yes7760 else7761 ac_cv_header_stdc=no7762 fi7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext7764 7765 if test $ac_cv_header_stdc = yes; then7766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7768 /* end confdefs.h. */7769 #include <string.h>7770 7771 _ACEOF7772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |7773 $EGREP "memchr" >/dev/null 2>&1; then :7774 7775 else7776 ac_cv_header_stdc=no7777 fi7778 rm -f conftest*7779 7780 fi7781 7782 if test $ac_cv_header_stdc = yes; then7783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7785 /* end confdefs.h. */7786 #include <stdlib.h>7787 7788 _ACEOF7789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |7790 $EGREP "free" >/dev/null 2>&1; then :7791 7792 else7793 ac_cv_header_stdc=no7794 fi7795 rm -f conftest*7796 7797 fi7798 7799 if test $ac_cv_header_stdc = yes; then7800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.7801 if test "$cross_compiling" = yes; then :7802 :7803 else7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7805 /* end confdefs.h. */7806 #include <ctype.h>7807 #include <stdlib.h>7808 #if ((' ' & 0x0FF) == 0x020)7809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')7810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))7811 #else7812 # define ISLOWER(c) \7813 (('a' <= (c) && (c) <= 'i') \7814 || ('j' <= (c) && (c) <= 'r') \7815 || ('s' <= (c) && (c) <= 'z'))7816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))7817 #endif7818 7819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))7820 int7821 main ()7822 {7823 int i;7824 for (i = 0; i < 256; i++)7825 if (XOR (islower (i), ISLOWER (i))7826 || toupper (i) != TOUPPER (i))7827 return 2;7828 return 0;7829 }7830 _ACEOF7831 if ac_fn_c_try_run "$LINENO"; then :7832 7833 else7834 ac_cv_header_stdc=no7835 fi7836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \7837 conftest.$ac_objext conftest.beam conftest.$ac_ext7838 fi7839 7840 fi7841 fi7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&57843 $as_echo "$ac_cv_header_stdc" >&6; }7844 if test $ac_cv_header_stdc = yes; then7845 7846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h7847 7848 fi7849 7850 # On IRIX 5.3, sys/types and inttypes.h are conflicting.7851 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \7852 inttypes.h stdint.h unistd.h7853 do :7854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`7855 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default7856 "7857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :7858 cat >>confdefs.h <<_ACEOF7859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 17860 _ACEOF7861 7862 fi7863 7864 done7865 7866 7867 for ac_header in dlfcn.h7868 do :7869 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default7870 "7871 if test "x$ac_cv_header_dlfcn_h" = xyes; then :7872 cat >>confdefs.h <<_ACEOF7873 #define HAVE_DLFCN_H 17874 _ACEOF7875 7876 fi7877 7878 done7879 7880 7881 7882 7883 7884 # Set options7885 7886 7887 7888 enable_dlopen=no7889 7890 7891 enable_win32_dll=no7892 7893 7894 # Check whether --enable-shared was given.7895 if test "${enable_shared+set}" = set; then :7896 enableval=$enable_shared; p=${PACKAGE-default}7897 case $enableval in7898 yes) enable_shared=yes ;;7899 no) enable_shared=no ;;7900 *)7901 enable_shared=no7902 # Look at the argument we got. We use all the common list separators.7903 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7904 for pkg in $enableval; do7905 IFS=$lt_save_ifs7906 if test "X$pkg" = "X$p"; then7907 enable_shared=yes7908 fi7909 done7910 IFS=$lt_save_ifs7911 ;;7912 esac7913 else7914 enable_shared=yes7915 fi7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 # Check whether --enable-static was given.7926 if test "${enable_static+set}" = set; then :7927 enableval=$enable_static; p=${PACKAGE-default}7928 case $enableval in7929 yes) enable_static=yes ;;7930 no) enable_static=no ;;7931 *)7932 enable_static=no7933 # Look at the argument we got. We use all the common list separators.7934 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7935 for pkg in $enableval; do7936 IFS=$lt_save_ifs7937 if test "X$pkg" = "X$p"; then7938 enable_static=yes7939 fi7940 done7941 IFS=$lt_save_ifs7942 ;;7943 esac7944 else7945 enable_static=yes7946 fi7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 # Check whether --with-pic was given.7958 if test "${with_pic+set}" = set; then :7959 withval=$with_pic; lt_p=${PACKAGE-default}7960 case $withval in7961 yes|no) pic_mode=$withval ;;7962 *)7963 pic_mode=default7964 # Look at the argument we got. We use all the common list separators.7965 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7966 for lt_pkg in $withval; do7967 IFS=$lt_save_ifs7968 if test "X$lt_pkg" = "X$lt_p"; then7969 pic_mode=yes7970 fi7971 done7972 IFS=$lt_save_ifs7973 ;;7974 esac7975 else7976 pic_mode=default7977 fi7978 7979 7980 7981 7982 7983 7984 7985 7986 # Check whether --enable-fast-install was given.7987 if test "${enable_fast_install+set}" = set; then :7988 enableval=$enable_fast_install; p=${PACKAGE-default}7989 case $enableval in7990 yes) enable_fast_install=yes ;;7991 no) enable_fast_install=no ;;7992 *)7993 enable_fast_install=no7994 # Look at the argument we got. We use all the common list separators.7995 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7996 for pkg in $enableval; do7997 IFS=$lt_save_ifs7998 if test "X$pkg" = "X$p"; then7999 enable_fast_install=yes8000 fi8001 done8002 IFS=$lt_save_ifs8003 ;;8004 esac8005 else8006 enable_fast_install=yes8007 fi8008 8009 8010 8011 8012 8013 8014 8015 8016 shared_archive_member_spec=8017 case $host,$enable_shared in8018 power*-*-aix[5-9]*,yes)8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&58020 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }8021 8022 # Check whether --with-aix-soname was given.8023 if test "${with_aix_soname+set}" = set; then :8024 withval=$with_aix_soname; case $withval in8025 aix|svr4|both)8026 ;;8027 *)8028 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 58029 ;;8030 esac8031 lt_cv_with_aix_soname=$with_aix_soname8032 else8033 if ${lt_cv_with_aix_soname+:} false; then :8034 $as_echo_n "(cached) " >&68035 else8036 lt_cv_with_aix_soname=aix8037 fi8038 8039 with_aix_soname=$lt_cv_with_aix_soname8040 fi8041 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&58043 $as_echo "$with_aix_soname" >&6; }8044 if test aix != "$with_aix_soname"; then8045 # For the AIX way of multilib, we name the shared archive member8046 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',8047 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.8048 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,8049 # the AIX toolchain works better with OBJECT_MODE set (default 32).8050 if test 64 = "${OBJECT_MODE-32}"; then8051 shared_archive_member_spec=shr_648052 else8053 shared_archive_member_spec=shr8054 fi8055 fi8056 ;;8057 *)8058 with_aix_soname=aix8059 ;;8060 esac8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 # This can be used to rebuild libtool when needed8072 LIBTOOL_DEPS=$ltmain8073 8074 # Always use our own libtool.8075 LIBTOOL='$(SHELL) $(top_builddir)/libtool'8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 test -z "$LN_S" && LN_S="ln -s"8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 if test -n "${ZSH_VERSION+set}"; then8122 setopt NO_GLOB_SUBST8123 fi8124 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&58126 $as_echo_n "checking for objdir... " >&6; }8127 if ${lt_cv_objdir+:} false; then :8128 $as_echo_n "(cached) " >&68129 else8130 rm -f .libs 2>/dev/null8131 mkdir .libs 2>/dev/null8132 if test -d .libs; then8133 lt_cv_objdir=.libs8134 else8135 # MS-DOS does not allow filenames that begin with a dot.8136 lt_cv_objdir=_libs8137 fi8138 rmdir .libs 2>/dev/null8139 fi8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&58141 $as_echo "$lt_cv_objdir" >&6; }8142 objdir=$lt_cv_objdir8143 8144 8145 8146 8147 8148 cat >>confdefs.h <<_ACEOF8149 #define LT_OBJDIR "$lt_cv_objdir/"8150 _ACEOF8151 8152 8153 8154 8155 case $host_os in8156 aix3*)8157 # AIX sometimes has problems with the GCC collect2 program. For some8158 # reason, if we set the COLLECT_NAMES environment variable, the problems8159 # vanish in a puff of smoke.8160 if test set != "${COLLECT_NAMES+set}"; then8161 COLLECT_NAMES=8162 export COLLECT_NAMES8163 fi8164 ;;8165 esac8166 8167 # Global variables:8168 ofile=libtool8169 can_build_shared=yes8170 8171 # All known linkers require a '.a' archive for static linking (except MSVC,8172 # which needs '.lib').8173 libext=a8174 8175 with_gnu_ld=$lt_cv_prog_gnu_ld8176 8177 old_CC=$CC8178 old_CFLAGS=$CFLAGS8179 8180 # Set sane defaults for various variables8181 test -z "$CC" && CC=cc8182 test -z "$LTCC" && LTCC=$CC8183 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS8184 test -z "$LD" && LD=ld8185 test -z "$ac_objext" && ac_objext=o8186 8187 func_cc_basename $compiler8188 cc_basename=$func_cc_basename_result8189 8190 8191 # Only perform the check for file, if the check method requires it8192 test -z "$MAGIC_CMD" && MAGIC_CMD=file8193 case $deplibs_check_method in8194 file_magic*)8195 if test "$file_magic_cmd" = '$MAGIC_CMD'; then8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&58197 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }8198 if ${lt_cv_path_MAGIC_CMD+:} false; then :8199 $as_echo_n "(cached) " >&68200 else8201 case $MAGIC_CMD in8202 [\\/*] | ?:[\\/]*)8203 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.8204 ;;8205 *)8206 lt_save_MAGIC_CMD=$MAGIC_CMD8207 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR8208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"8209 for ac_dir in $ac_dummy; do8210 IFS=$lt_save_ifs8211 test -z "$ac_dir" && ac_dir=.8212 if test -f "$ac_dir/${ac_tool_prefix}file"; then8213 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"8214 if test -n "$file_magic_test_file"; then8215 case $deplibs_check_method in8216 "file_magic "*)8217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`8218 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |8220 $EGREP "$file_magic_regex" > /dev/null; then8221 :8222 else8223 cat <<_LT_EOF 1>&28224 8225 *** Warning: the command libtool uses to detect shared libraries,8226 *** $file_magic_cmd, produces output that libtool cannot recognize.8227 *** The result is that libtool may fail to recognize shared libraries8228 *** as such. This will affect the creation of libtool libraries that8229 *** depend on shared libraries, but programs linked with such libtool8230 *** libraries will work regardless of this problem. Nevertheless, you8231 *** may want to report the problem to your system manager and/or to8232 *** bug-libtool@gnu.org8233 8234 _LT_EOF8235 fi ;;8236 esac8237 fi8238 break8239 fi8240 done8241 IFS=$lt_save_ifs8242 MAGIC_CMD=$lt_save_MAGIC_CMD8243 ;;8244 esac8245 fi8246 8247 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8248 if test -n "$MAGIC_CMD"; then8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&58250 $as_echo "$MAGIC_CMD" >&6; }8251 else8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58253 $as_echo "no" >&6; }8254 fi8255 8256 8257 8258 8259 8260 if test -z "$lt_cv_path_MAGIC_CMD"; then8261 if test -n "$ac_tool_prefix"; then8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&58263 $as_echo_n "checking for file... " >&6; }8264 if ${lt_cv_path_MAGIC_CMD+:} false; then :8265 $as_echo_n "(cached) " >&68266 else8267 case $MAGIC_CMD in8268 [\\/*] | ?:[\\/]*)8269 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.8270 ;;8271 *)8272 lt_save_MAGIC_CMD=$MAGIC_CMD8273 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR8274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"8275 for ac_dir in $ac_dummy; do8276 IFS=$lt_save_ifs8277 test -z "$ac_dir" && ac_dir=.8278 if test -f "$ac_dir/file"; then8279 lt_cv_path_MAGIC_CMD=$ac_dir/"file"8280 if test -n "$file_magic_test_file"; then8281 case $deplibs_check_method in8282 "file_magic "*)8283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`8284 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |8286 $EGREP "$file_magic_regex" > /dev/null; then8287 :8288 else8289 cat <<_LT_EOF 1>&28290 8291 *** Warning: the command libtool uses to detect shared libraries,8292 *** $file_magic_cmd, produces output that libtool cannot recognize.8293 *** The result is that libtool may fail to recognize shared libraries8294 *** as such. This will affect the creation of libtool libraries that8295 *** depend on shared libraries, but programs linked with such libtool8296 *** libraries will work regardless of this problem. Nevertheless, you8297 *** may want to report the problem to your system manager and/or to8298 *** bug-libtool@gnu.org8299 8300 _LT_EOF8301 fi ;;8302 esac8303 fi8304 break8305 fi8306 done8307 IFS=$lt_save_ifs8308 MAGIC_CMD=$lt_save_MAGIC_CMD8309 ;;8310 esac8311 fi8312 8313 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8314 if test -n "$MAGIC_CMD"; then8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&58316 $as_echo "$MAGIC_CMD" >&6; }8317 else8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58319 $as_echo "no" >&6; }8320 fi8321 8322 8323 else8324 MAGIC_CMD=:8325 fi8326 fi8327 8328 fi8329 ;;8330 esac8331 8332 # Use C for the default configuration in the libtool script8333 8334 lt_save_CC=$CC8335 ac_ext=c8336 ac_cpp='$CPP $CPPFLAGS'8337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'8338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'8339 ac_compiler_gnu=$ac_cv_c_compiler_gnu8340 8341 8342 # Source file extension for C test sources.8343 ac_ext=c8344 8345 # Object file extension for compiled C test sources.8346 objext=o8347 objext=$objext8348 8349 # Code to be used in simple compile tests8350 lt_simple_compile_test_code="int some_variable = 0;"8351 8352 # Code to be used in simple link tests8353 lt_simple_link_test_code='int main(){return(0);}'8354 8355 8356 8357 8358 8359 8360 8361 # If no C compiler was specified, use CC.8362 LTCC=${LTCC-"$CC"}8363 8364 # If no C compiler flags were specified, use CFLAGS.8365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}8366 8367 # Allow CC to be a program name with arguments.8368 compiler=$CC8369 8370 # Save the default compiler, since it gets overwritten when the other8371 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.8372 compiler_DEFAULT=$CC8373 8374 # save warnings/boilerplate of simple test code8375 ac_outfile=conftest.$ac_objext8376 echo "$lt_simple_compile_test_code" >conftest.$ac_ext8377 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err8378 _lt_compiler_boilerplate=`cat conftest.err`8379 $RM conftest*8380 8381 ac_outfile=conftest.$ac_objext8382 echo "$lt_simple_link_test_code" >conftest.$ac_ext8383 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err8384 _lt_linker_boilerplate=`cat conftest.err`8385 $RM -r conftest*8386 8387 8388 ## CAVEAT EMPTOR:8389 ## There is no encapsulation within the following macros, do not change8390 ## the running order or otherwise move them around unless you know exactly8391 ## what you are doing...8392 if test -n "$compiler"; then8393 8394 lt_prog_compiler_no_builtin_flag=8395 8396 if test yes = "$GCC"; then8397 case $cc_basename in8398 nvcc*)8399 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;8400 *)8401 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;8402 esac8403 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&58405 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }8406 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :8407 $as_echo_n "(cached) " >&68408 else8409 lt_cv_prog_compiler_rtti_exceptions=no8410 ac_outfile=conftest.$ac_objext8411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8412 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment8413 # Insert the option either (1) after the last *FLAGS variable, or8414 # (2) before a word containing "conftest.", or (3) at the end.8415 # Note that $ac_compile itself does not contain backslashes and begins8416 # with a dollar sign (not a hyphen), so the echo should work correctly.8417 # The option is referenced via a variable to avoid confusing sed.8418 lt_compile=`echo "$ac_compile" | $SED \8419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8421 -e 's:$: $lt_compiler_flag:'`8422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8423 (eval "$lt_compile" 2>conftest.err)8424 ac_status=$?8425 cat conftest.err >&58426 echo "$as_me:$LINENO: \$? = $ac_status" >&58427 if (exit $ac_status) && test -s "$ac_outfile"; then8428 # The compiler can only warn and ignore the option if not recognized8429 # So say no if there are warnings other than the usual output.8430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp8431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er28432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then8433 lt_cv_prog_compiler_rtti_exceptions=yes8434 fi8435 fi8436 $RM conftest*8437 8438 fi8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&58440 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }8441 8442 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then8443 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"8444 else8445 :8446 fi8447 8448 fi8449 8450 8451 8452 8453 8454 8455 lt_prog_compiler_wl=8456 lt_prog_compiler_pic=8457 lt_prog_compiler_static=8458 8459 8460 if test yes = "$GCC"; then8461 lt_prog_compiler_wl='-Wl,'8462 lt_prog_compiler_static='-static'8463 8464 case $host_os in8465 aix*)8466 # All AIX code is PIC.8467 if test ia64 = "$host_cpu"; then8468 # AIX 5 now supports IA64 processor8469 lt_prog_compiler_static='-Bstatic'8470 fi8471 lt_prog_compiler_pic='-fPIC'8472 ;;8473 8474 amigaos*)8475 case $host_cpu in8476 powerpc)8477 # see comment about AmigaOS4 .so support8478 lt_prog_compiler_pic='-fPIC'8479 ;;8480 m68k)8481 # FIXME: we need at least 68020 code to build shared libraries, but8482 # adding the '-m68020' flag to GCC prevents building anything better,8483 # like '-m68040'.8484 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'8485 ;;8486 esac8487 ;;8488 8489 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)8490 # PIC is the default for these OSes.8491 ;;8492 8493 mingw* | cygwin* | pw32* | os2* | cegcc*)8494 # This hack is so that the source file can tell whether it is being8495 # built for inclusion in a dll (and should export symbols for example).8496 # Although the cygwin gcc ignores -fPIC, still need this for old-style8497 # (--disable-auto-import) libraries8498 lt_prog_compiler_pic='-DDLL_EXPORT'8499 case $host_os in8500 os2*)8501 lt_prog_compiler_static='$wl-static'8502 ;;8503 esac8504 ;;8505 8506 darwin* | rhapsody*)8507 # PIC is the default on this platform8508 # Common symbols not allowed in MH_DYLIB files8509 lt_prog_compiler_pic='-fno-common'8510 ;;8511 8512 haiku*)8513 # PIC is the default for Haiku.8514 # The "-static" flag exists, but is broken.8515 lt_prog_compiler_static=8516 ;;8517 8518 hpux*)8519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit8520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag8521 # sets the default TLS model and affects inlining.8522 case $host_cpu in8523 hppa*64*)8524 # +Z the default8525 ;;8526 *)8527 lt_prog_compiler_pic='-fPIC'8528 ;;8529 esac8530 ;;8531 8532 interix[3-9]*)8533 # Interix 3.x gcc -fpic/-fPIC options generate broken code.8534 # Instead, we relocate shared libraries at runtime.8535 ;;8536 8537 msdosdjgpp*)8538 # Just because we use GCC doesn't mean we suddenly get shared libraries8539 # on systems that don't support them.8540 lt_prog_compiler_can_build_shared=no8541 enable_shared=no8542 ;;8543 8544 *nto* | *qnx*)8545 # QNX uses GNU C++, but need to define -shared option too, otherwise8546 # it will coredump.8547 lt_prog_compiler_pic='-fPIC -shared'8548 ;;8549 8550 sysv4*MP*)8551 if test -d /usr/nec; then8552 lt_prog_compiler_pic=-Kconform_pic8553 fi8554 ;;8555 8556 *)8557 lt_prog_compiler_pic='-fPIC'8558 ;;8559 esac8560 8561 case $cc_basename in8562 nvcc*) # Cuda Compiler Driver 2.28563 lt_prog_compiler_wl='-Xlinker '8564 if test -n "$lt_prog_compiler_pic"; then8565 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"8566 fi8567 ;;8568 esac8569 else8570 # PORTME Check for flag to pass linker flags through the system compiler.8571 case $host_os in8572 aix*)8573 lt_prog_compiler_wl='-Wl,'8574 if test ia64 = "$host_cpu"; then8575 # AIX 5 now supports IA64 processor8576 lt_prog_compiler_static='-Bstatic'8577 else8578 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'8579 fi8580 ;;8581 8582 darwin* | rhapsody*)8583 # PIC is the default on this platform8584 # Common symbols not allowed in MH_DYLIB files8585 lt_prog_compiler_pic='-fno-common'8586 case $cc_basename in8587 nagfor*)8588 # NAG Fortran compiler8589 lt_prog_compiler_wl='-Wl,-Wl,,'8590 lt_prog_compiler_pic='-PIC'8591 lt_prog_compiler_static='-Bstatic'8592 ;;8593 esac8594 ;;8595 8596 mingw* | cygwin* | pw32* | os2* | cegcc*)8597 # This hack is so that the source file can tell whether it is being8598 # built for inclusion in a dll (and should export symbols for example).8599 lt_prog_compiler_pic='-DDLL_EXPORT'8600 case $host_os in8601 os2*)8602 lt_prog_compiler_static='$wl-static'8603 ;;8604 esac8605 ;;8606 8607 hpux9* | hpux10* | hpux11*)8608 lt_prog_compiler_wl='-Wl,'8609 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but8610 # not for PA HP-UX.8611 case $host_cpu in8612 hppa*64*|ia64*)8613 # +Z the default8614 ;;8615 *)8616 lt_prog_compiler_pic='+Z'8617 ;;8618 esac8619 # Is there a better lt_prog_compiler_static that works with the bundled CC?8620 lt_prog_compiler_static='$wl-a ${wl}archive'8621 ;;8622 8623 irix5* | irix6* | nonstopux*)8624 lt_prog_compiler_wl='-Wl,'8625 # PIC (with -KPIC) is the default.8626 lt_prog_compiler_static='-non_shared'8627 ;;8628 8629 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)8630 case $cc_basename in8631 # old Intel for x86_64, which still supported -KPIC.8632 ecc*)8633 lt_prog_compiler_wl='-Wl,'8634 lt_prog_compiler_pic='-KPIC'8635 lt_prog_compiler_static='-static'8636 ;;8637 # icc used to be incompatible with GCC.8638 # ICC 10 doesn't accept -KPIC any more.8639 icc* | ifort*)8640 lt_prog_compiler_wl='-Wl,'8641 lt_prog_compiler_pic='-fPIC'8642 lt_prog_compiler_static='-static'8643 ;;8644 # Lahey Fortran 8.1.8645 lf95*)8646 lt_prog_compiler_wl='-Wl,'8647 lt_prog_compiler_pic='--shared'8648 lt_prog_compiler_static='--static'8649 ;;8650 nagfor*)8651 # NAG Fortran compiler8652 lt_prog_compiler_wl='-Wl,-Wl,,'8653 lt_prog_compiler_pic='-PIC'8654 lt_prog_compiler_static='-Bstatic'8655 ;;8656 tcc*)8657 # Fabrice Bellard et al's Tiny C Compiler8658 lt_prog_compiler_wl='-Wl,'8659 lt_prog_compiler_pic='-fPIC'8660 lt_prog_compiler_static='-static'8661 ;;8662 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)8663 # Portland Group compilers (*not* the Pentium gcc compiler,8664 # which looks to be a dead project)8665 lt_prog_compiler_wl='-Wl,'8666 lt_prog_compiler_pic='-fpic'8667 lt_prog_compiler_static='-Bstatic'8668 ;;8669 ccc*)8670 lt_prog_compiler_wl='-Wl,'8671 # All Alpha code is PIC.8672 lt_prog_compiler_static='-non_shared'8673 ;;8674 xl* | bgxl* | bgf* | mpixl*)8675 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene8676 lt_prog_compiler_wl='-Wl,'8677 lt_prog_compiler_pic='-qpic'8678 lt_prog_compiler_static='-qstaticlink'8679 ;;8680 *)8681 case `$CC -V 2>&1 | sed 5q` in8682 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)8683 # Sun Fortran 8.3 passes all unrecognized flags to the linker8684 lt_prog_compiler_pic='-KPIC'8685 lt_prog_compiler_static='-Bstatic'8686 lt_prog_compiler_wl=''8687 ;;8688 *Sun\ F* | *Sun*Fortran*)8689 lt_prog_compiler_pic='-KPIC'8690 lt_prog_compiler_static='-Bstatic'8691 lt_prog_compiler_wl='-Qoption ld '8692 ;;8693 *Sun\ C*)8694 # Sun C 5.98695 lt_prog_compiler_pic='-KPIC'8696 lt_prog_compiler_static='-Bstatic'8697 lt_prog_compiler_wl='-Wl,'8698 ;;8699 *Intel*\ [CF]*Compiler*)8700 lt_prog_compiler_wl='-Wl,'8701 lt_prog_compiler_pic='-fPIC'8702 lt_prog_compiler_static='-static'8703 ;;8704 *Portland\ Group*)8705 lt_prog_compiler_wl='-Wl,'8706 lt_prog_compiler_pic='-fpic'8707 lt_prog_compiler_static='-Bstatic'8708 ;;8709 esac8710 ;;8711 esac8712 ;;8713 8714 newsos6)8715 lt_prog_compiler_pic='-KPIC'8716 lt_prog_compiler_static='-Bstatic'8717 ;;8718 8719 *nto* | *qnx*)8720 # QNX uses GNU C++, but need to define -shared option too, otherwise8721 # it will coredump.8722 lt_prog_compiler_pic='-fPIC -shared'8723 ;;8724 8725 osf3* | osf4* | osf5*)8726 lt_prog_compiler_wl='-Wl,'8727 # All OSF/1 code is PIC.8728 lt_prog_compiler_static='-non_shared'8729 ;;8730 8731 rdos*)8732 lt_prog_compiler_static='-non_shared'8733 ;;8734 8735 solaris*)8736 lt_prog_compiler_pic='-KPIC'8737 lt_prog_compiler_static='-Bstatic'8738 case $cc_basename in8739 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)8740 lt_prog_compiler_wl='-Qoption ld ';;8741 *)8742 lt_prog_compiler_wl='-Wl,';;8743 esac8744 ;;8745 8746 sunos4*)8747 lt_prog_compiler_wl='-Qoption ld '8748 lt_prog_compiler_pic='-PIC'8749 lt_prog_compiler_static='-Bstatic'8750 ;;8751 8752 sysv4 | sysv4.2uw2* | sysv4.3*)8753 lt_prog_compiler_wl='-Wl,'8754 lt_prog_compiler_pic='-KPIC'8755 lt_prog_compiler_static='-Bstatic'8756 ;;8757 8758 sysv4*MP*)8759 if test -d /usr/nec; then8760 lt_prog_compiler_pic='-Kconform_pic'8761 lt_prog_compiler_static='-Bstatic'8762 fi8763 ;;8764 8765 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)8766 lt_prog_compiler_wl='-Wl,'8767 lt_prog_compiler_pic='-KPIC'8768 lt_prog_compiler_static='-Bstatic'8769 ;;8770 8771 unicos*)8772 lt_prog_compiler_wl='-Wl,'8773 lt_prog_compiler_can_build_shared=no8774 ;;8775 8776 uts4*)8777 lt_prog_compiler_pic='-pic'8778 lt_prog_compiler_static='-Bstatic'8779 ;;8780 8781 *)8782 lt_prog_compiler_can_build_shared=no8783 ;;8784 esac8785 fi8786 8787 case $host_os in8788 # For platforms that do not support PIC, -DPIC is meaningless:8789 *djgpp*)8790 lt_prog_compiler_pic=8791 ;;8792 *)8793 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"8794 ;;8795 esac8796 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&58798 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }8799 if ${lt_cv_prog_compiler_pic+:} false; then :8800 $as_echo_n "(cached) " >&68801 else8802 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic8803 fi8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&58805 $as_echo "$lt_cv_prog_compiler_pic" >&6; }8806 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic8807 8808 #8809 # Check to make sure the PIC flag actually works.8810 #8811 if test -n "$lt_prog_compiler_pic"; then8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&58813 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }8814 if ${lt_cv_prog_compiler_pic_works+:} false; then :8815 $as_echo_n "(cached) " >&68816 else8817 lt_cv_prog_compiler_pic_works=no8818 ac_outfile=conftest.$ac_objext8819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8820 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment8821 # Insert the option either (1) after the last *FLAGS variable, or8822 # (2) before a word containing "conftest.", or (3) at the end.8823 # Note that $ac_compile itself does not contain backslashes and begins8824 # with a dollar sign (not a hyphen), so the echo should work correctly.8825 # The option is referenced via a variable to avoid confusing sed.8826 lt_compile=`echo "$ac_compile" | $SED \8827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8829 -e 's:$: $lt_compiler_flag:'`8830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8831 (eval "$lt_compile" 2>conftest.err)8832 ac_status=$?8833 cat conftest.err >&58834 echo "$as_me:$LINENO: \$? = $ac_status" >&58835 if (exit $ac_status) && test -s "$ac_outfile"; then8836 # The compiler can only warn and ignore the option if not recognized8837 # So say no if there are warnings other than the usual output.8838 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp8839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er28840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then8841 lt_cv_prog_compiler_pic_works=yes8842 fi8843 fi8844 $RM conftest*8845 8846 fi8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&58848 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }8849 8850 if test yes = "$lt_cv_prog_compiler_pic_works"; then8851 case $lt_prog_compiler_pic in8852 "" | " "*) ;;8853 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;8854 esac8855 else8856 lt_prog_compiler_pic=8857 lt_prog_compiler_can_build_shared=no8858 fi8859 8860 fi8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 #8873 # Check to make sure the static flag actually works.8874 #8875 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&58877 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }8878 if ${lt_cv_prog_compiler_static_works+:} false; then :8879 $as_echo_n "(cached) " >&68880 else8881 lt_cv_prog_compiler_static_works=no8882 save_LDFLAGS=$LDFLAGS8883 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"8884 echo "$lt_simple_link_test_code" > conftest.$ac_ext8885 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then8886 # The linker can only warn and ignore the option if not recognized8887 # So say no if there are warnings8888 if test -s conftest.err; then8889 # Append any errors to the config.log.8890 cat conftest.err 1>&58891 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp8892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er28893 if diff conftest.exp conftest.er2 >/dev/null; then8894 lt_cv_prog_compiler_static_works=yes8895 fi8896 else8897 lt_cv_prog_compiler_static_works=yes8898 fi8899 fi8900 $RM -r conftest*8901 LDFLAGS=$save_LDFLAGS8902 8903 fi8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&58905 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }8906 8907 if test yes = "$lt_cv_prog_compiler_static_works"; then8908 :8909 else8910 lt_prog_compiler_static=8911 fi8912 8913 8914 8915 8916 8917 8918 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&58920 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }8921 if ${lt_cv_prog_compiler_c_o+:} false; then :8922 $as_echo_n "(cached) " >&68923 else8924 lt_cv_prog_compiler_c_o=no8925 $RM -r conftest 2>/dev/null8926 mkdir conftest8927 cd conftest8928 mkdir out8929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8930 8931 lt_compiler_flag="-o out/conftest2.$ac_objext"8932 # Insert the option either (1) after the last *FLAGS variable, or8933 # (2) before a word containing "conftest.", or (3) at the end.8934 # Note that $ac_compile itself does not contain backslashes and begins8935 # with a dollar sign (not a hyphen), so the echo should work correctly.8936 lt_compile=`echo "$ac_compile" | $SED \8937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8939 -e 's:$: $lt_compiler_flag:'`8940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8941 (eval "$lt_compile" 2>out/conftest.err)8942 ac_status=$?8943 cat out/conftest.err >&58944 echo "$as_me:$LINENO: \$? = $ac_status" >&58945 if (exit $ac_status) && test -s out/conftest2.$ac_objext8946 then8947 # The compiler can only warn and ignore the option if not recognized8948 # So say no if there are warnings8949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp8950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er28951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then8952 lt_cv_prog_compiler_c_o=yes8953 fi8954 fi8955 chmod u+w . 2>&58956 $RM conftest*8957 # SGI C++ compiler will create directory out/ii_files/ for8958 # template instantiation8959 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files8960 $RM out/* && rmdir out8961 cd ..8962 $RM -r conftest8963 $RM conftest*8964 8965 fi8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&58967 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }8968 8969 8970 8971 8972 8973 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&58975 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }8976 if ${lt_cv_prog_compiler_c_o+:} false; then :8977 $as_echo_n "(cached) " >&68978 else8979 lt_cv_prog_compiler_c_o=no8980 $RM -r conftest 2>/dev/null8981 mkdir conftest8982 cd conftest8983 mkdir out8984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8985 8986 lt_compiler_flag="-o out/conftest2.$ac_objext"8987 # Insert the option either (1) after the last *FLAGS variable, or8988 # (2) before a word containing "conftest.", or (3) at the end.8989 # Note that $ac_compile itself does not contain backslashes and begins8990 # with a dollar sign (not a hyphen), so the echo should work correctly.8991 lt_compile=`echo "$ac_compile" | $SED \8992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8994 -e 's:$: $lt_compiler_flag:'`8995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8996 (eval "$lt_compile" 2>out/conftest.err)8997 ac_status=$?8998 cat out/conftest.err >&58999 echo "$as_me:$LINENO: \$? = $ac_status" >&59000 if (exit $ac_status) && test -s out/conftest2.$ac_objext9001 then9002 # The compiler can only warn and ignore the option if not recognized9003 # So say no if there are warnings9004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp9005 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er29006 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then9007 lt_cv_prog_compiler_c_o=yes9008 fi9009 fi9010 chmod u+w . 2>&59011 $RM conftest*9012 # SGI C++ compiler will create directory out/ii_files/ for9013 # template instantiation9014 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files9015 $RM out/* && rmdir out9016 cd ..9017 $RM -r conftest9018 $RM conftest*9019 9020 fi9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&59022 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }9023 9024 9025 9026 9027 hard_links=nottested9028 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then9029 # do not overwrite the value of need_locks provided by the user9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&59031 $as_echo_n "checking if we can lock with hard links... " >&6; }9032 hard_links=yes9033 $RM conftest*9034 ln conftest.a conftest.b 2>/dev/null && hard_links=no9035 touch conftest.a9036 ln conftest.a conftest.b 2>&5 || hard_links=no9037 ln conftest.a conftest.b 2>/dev/null && hard_links=no9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&59039 $as_echo "$hard_links" >&6; }9040 if test no = "$hard_links"; then9041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&59042 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}9043 need_locks=warn9044 fi9045 else9046 need_locks=no9047 fi9048 9049 9050 9051 9052 9053 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&59055 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }9056 9057 runpath_var=9058 allow_undefined_flag=9059 always_export_symbols=no9060 archive_cmds=9061 archive_expsym_cmds=9062 compiler_needs_object=no9063 enable_shared_with_static_runtimes=no9064 export_dynamic_flag_spec=9065 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'9066 hardcode_automatic=no9067 hardcode_direct=no9068 hardcode_direct_absolute=no9069 hardcode_libdir_flag_spec=9070 hardcode_libdir_separator=9071 hardcode_minus_L=no9072 hardcode_shlibpath_var=unsupported9073 inherit_rpath=no9074 link_all_deplibs=unknown9075 module_cmds=9076 module_expsym_cmds=9077 old_archive_from_new_cmds=9078 old_archive_from_expsyms_cmds=9079 thread_safe_flag_spec=9080 whole_archive_flag_spec=9081 # include_expsyms should be a list of space-separated symbols to be *always*9082 # included in the symbol list9083 include_expsyms=9084 # exclude_expsyms can be an extended regexp of symbols to exclude9085 # it will be wrapped by ' (' and ')$', so one must not match beginning or9086 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',9087 # as well as any symbol that contains 'd'.9088 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'9089 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out9090 # platforms (ab)use it in PIC code, but their linkers get confused if9091 # the symbol is explicitly referenced. Since portable code cannot9092 # rely on this symbol name, it's probably fine to never include it in9093 # preloaded symbol tables.9094 # Exclude shared library initialization/finalization symbols.9095 extract_expsyms_cmds=9096 9097 case $host_os in9098 cygwin* | mingw* | pw32* | cegcc*)9099 # FIXME: the MSVC++ port hasn't been tested in a loooong time9100 # When not using gcc, we currently assume that we are using9101 # Microsoft Visual C++.9102 if test yes != "$GCC"; then9103 with_gnu_ld=no9104 fi9105 ;;9106 interix*)9107 # we just hope/assume this is gcc and not c89 (= MSVC++)9108 with_gnu_ld=yes9109 ;;9110 openbsd* | bitrig*)9111 with_gnu_ld=no9112 ;;9113 linux* | k*bsd*-gnu | gnu*)9114 link_all_deplibs=no9115 ;;9116 esac9117 9118 ld_shlibs=yes9119 9120 # On some targets, GNU ld is compatible enough with the native linker9121 # that we're better off using the native interface for both.9122 lt_use_gnu_ld_interface=no9123 if test yes = "$with_gnu_ld"; then9124 case $host_os in9125 aix*)9126 # The AIX port of GNU ld has always aspired to compatibility9127 # with the native linker. However, as the warning in the GNU ld9128 # block says, versions before 2.19.5* couldn't really create working9129 # shared libraries, regardless of the interface used.9130 case `$LD -v 2>&1` in9131 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;9132 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;9133 *\ \(GNU\ Binutils\)\ [3-9]*) ;;9134 *)9135 lt_use_gnu_ld_interface=yes9136 ;;9137 esac9138 ;;9139 *)9140 lt_use_gnu_ld_interface=yes9141 ;;9142 esac9143 fi9144 9145 if test yes = "$lt_use_gnu_ld_interface"; then9146 # If archive_cmds runs LD, not CC, wlarc should be empty9147 wlarc='$wl'9148 9149 # Set some defaults for GNU ld with shared library support. These9150 # are reset later if shared libraries are not supported. Putting them9151 # here allows them to be overridden if necessary.9152 runpath_var=LD_RUN_PATH9153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'9154 export_dynamic_flag_spec='$wl--export-dynamic'9155 # ancient GNU ld didn't support --whole-archive et. al.9156 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then9157 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'9158 else9159 whole_archive_flag_spec=9160 fi9161 supports_anon_versioning=no9162 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in9163 *GNU\ gold*) supports_anon_versioning=yes ;;9164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.119165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...9166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...9167 *\ 2.11.*) ;; # other 2.11 versions9168 *) supports_anon_versioning=yes ;;9169 esac9170 9171 # See if GNU ld supports shared libraries.9172 case $host_os in9173 aix[3-9]*)9174 # On AIX/PPC, the GNU linker is very broken9175 if test ia64 != "$host_cpu"; then9176 ld_shlibs=no9177 cat <<_LT_EOF 1>&29178 9179 *** Warning: the GNU linker, at least up to release 2.19, is reported9180 *** to be unable to reliably create shared libraries on AIX.9181 *** Therefore, libtool is disabling shared libraries support. If you9182 *** really care for shared libraries, you may want to install binutils9183 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.9184 *** You will then need to restart the configuration process.9185 9186 _LT_EOF9187 fi9188 ;;9189 9190 amigaos*)9191 case $host_cpu in9192 powerpc)9193 # see comment about AmigaOS4 .so support9194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9195 archive_expsym_cmds=''9196 ;;9197 m68k)9198 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)'9199 hardcode_libdir_flag_spec='-L$libdir'9200 hardcode_minus_L=yes9201 ;;9202 esac9203 ;;9204 9205 beos*)9206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9207 allow_undefined_flag=unsupported9208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc9209 # support --undefined. This deserves some investigation. FIXME9210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9211 else9212 ld_shlibs=no9213 fi9214 ;;9215 9216 cygwin* | mingw* | pw32* | cegcc*)9217 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,9218 # as there is no search path for DLLs.9219 hardcode_libdir_flag_spec='-L$libdir'9220 export_dynamic_flag_spec='$wl--export-all-symbols'9221 allow_undefined_flag=unsupported9222 always_export_symbols=no9223 enable_shared_with_static_runtimes=yes9224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'9225 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'9226 9227 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then9228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'9229 # If the export-symbols file already is a .def file, use it as9230 # is; otherwise, prepend EXPORTS...9231 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then9232 cp $export_symbols $output_objdir/$soname.def;9233 else9234 echo EXPORTS > $output_objdir/$soname.def;9235 cat $export_symbols >> $output_objdir/$soname.def;9236 fi~9237 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'9238 else9239 ld_shlibs=no9240 fi9241 ;;9242 9243 haiku*)9244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9245 link_all_deplibs=yes9246 ;;9247 9248 os2*)9249 hardcode_libdir_flag_spec='-L$libdir'9250 hardcode_minus_L=yes9251 allow_undefined_flag=unsupported9252 shrext_cmds=.dll9253 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~9254 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~9255 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~9256 $ECHO EXPORTS >> $output_objdir/$libname.def~9257 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~9258 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~9259 emximp -o $lib $output_objdir/$libname.def'9260 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~9261 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~9262 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~9263 $ECHO EXPORTS >> $output_objdir/$libname.def~9264 prefix_cmds="$SED"~9265 if test EXPORTS = "`$SED 1q $export_symbols`"; then9266 prefix_cmds="$prefix_cmds -e 1d";9267 fi~9268 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~9269 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~9270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~9271 emximp -o $lib $output_objdir/$libname.def'9272 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'9273 enable_shared_with_static_runtimes=yes9274 ;;9275 9276 interix[3-9]*)9277 hardcode_direct=no9278 hardcode_shlibpath_var=no9279 hardcode_libdir_flag_spec='$wl-rpath,$libdir'9280 export_dynamic_flag_spec='$wl-E'9281 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.9282 # Instead, shared libraries are loaded at an image base (0x10000000 by9283 # default) and relocated if they conflict, which is a slow very memory9284 # consuming and fragmenting process. To avoid this, we pick a random,9285 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link9286 # time. Moving up from 0x10000000 also allows more sbrk(2) space.9287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'9288 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'9289 ;;9290 9291 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)9292 tmp_diet=no9293 if test linux-dietlibc = "$host_os"; then9294 case $cc_basename in9295 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)9296 esac9297 fi9298 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \9299 && test no = "$tmp_diet"9300 then9301 tmp_addflag=' $pic_flag'9302 tmp_sharedflag='-shared'9303 case $cc_basename,$host_cpu in9304 pgcc*) # Portland Group C compiler9305 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'9306 tmp_addflag=' $pic_flag'9307 ;;9308 pgf77* | pgf90* | pgf95* | pgfortran*)9309 # Portland Group f77 and f90 compilers9310 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'9311 tmp_addflag=' $pic_flag -Mnomain' ;;9312 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia649313 tmp_addflag=' -i_dynamic' ;;9314 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia649315 tmp_addflag=' -i_dynamic -nofor_main' ;;9316 ifc* | ifort*) # Intel Fortran compiler9317 tmp_addflag=' -nofor_main' ;;9318 lf95*) # Lahey Fortran 8.19319 whole_archive_flag_spec=9320 tmp_sharedflag='--shared' ;;9321 nagfor*) # NAGFOR 5.39322 tmp_sharedflag='-Wl,-shared' ;;9323 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)9324 tmp_sharedflag='-qmkshrobj'9325 tmp_addflag= ;;9326 nvcc*) # Cuda Compiler Driver 2.29327 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'9328 compiler_needs_object=yes9329 ;;9330 esac9331 case `$CC -V 2>&1 | sed 5q` in9332 *Sun\ C*) # Sun C 5.99333 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'9334 compiler_needs_object=yes9335 tmp_sharedflag='-G' ;;9336 *Sun\ F*) # Sun Fortran 8.39337 tmp_sharedflag='-G' ;;9338 esac9339 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9340 9341 if test yes = "$supports_anon_versioning"; then9342 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~9343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~9344 echo "local: *; };" >> $output_objdir/$libname.ver~9345 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'9346 fi9347 9348 case $cc_basename in9349 tcc*)9350 export_dynamic_flag_spec='-rdynamic'9351 ;;9352 xlf* | bgf* | bgxlf* | mpixlf*)9353 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself9354 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'9355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'9356 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'9357 if test yes = "$supports_anon_versioning"; then9358 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~9359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~9360 echo "local: *; };" >> $output_objdir/$libname.ver~9361 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'9362 fi9363 ;;9364 esac9365 else9366 ld_shlibs=no9367 fi9368 ;;9369 9370 netbsd* | netbsdelf*-gnu)9371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then9372 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'9373 wlarc=9374 else9375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9376 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9377 fi9378 ;;9379 9380 solaris*)9381 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then9382 ld_shlibs=no9383 cat <<_LT_EOF 1>&29384 9385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably9386 *** create shared libraries on Solaris systems. Therefore, libtool9387 *** is disabling shared libraries support. We urge you to upgrade GNU9388 *** binutils to release 2.9.1 or newer. Another option is to modify9389 *** your PATH or compiler configuration so that the native linker is9390 *** used, and then restart.9391 9392 _LT_EOF9393 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9394 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9395 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9396 else9397 ld_shlibs=no9398 fi9399 ;;9400 9401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)9402 case `$LD -v 2>&1` in9403 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)9404 ld_shlibs=no9405 cat <<_LT_EOF 1>&29406 9407 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot9408 *** reliably create shared libraries on SCO systems. Therefore, libtool9409 *** is disabling shared libraries support. We urge you to upgrade GNU9410 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify9411 *** your PATH or compiler configuration so that the native linker is9412 *** used, and then restart.9413 9414 _LT_EOF9415 ;;9416 *)9417 # For security reasons, it is highly recommended that you always9418 # use absolute paths for naming shared libraries, and exclude the9419 # DT_RUNPATH tag from executables and libraries. But doing so9420 # requires that you compile everything twice, which is a pain.9421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9422 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9425 else9426 ld_shlibs=no9427 fi9428 ;;9429 esac9430 ;;9431 9432 sunos4*)9433 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'9434 wlarc=9435 hardcode_direct=yes9436 hardcode_shlibpath_var=no9437 ;;9438 9439 *)9440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9441 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9442 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9443 else9444 ld_shlibs=no9445 fi9446 ;;9447 esac9448 9449 if test no = "$ld_shlibs"; then9450 runpath_var=9451 hardcode_libdir_flag_spec=9452 export_dynamic_flag_spec=9453 whole_archive_flag_spec=9454 fi9455 else9456 # PORTME fill in a description of your system's linker (not GNU ld)9457 case $host_os in9458 aix3*)9459 allow_undefined_flag=unsupported9460 always_export_symbols=yes9461 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'9462 # Note: this linker hardcodes the directories in LIBPATH if there9463 # are no directories specified by -L.9464 hardcode_minus_L=yes9465 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then9466 # Neither direct hardcoding nor static linking is supported with a9467 # broken collect2.9468 hardcode_direct=unsupported9469 fi9470 ;;9471 9472 aix[4-9]*)9473 if test ia64 = "$host_cpu"; then9474 # On IA64, the linker does run time linking by default, so we don't9475 # have to do anything special.9476 aix_use_runtimelinking=no9477 exp_sym_flag='-Bexport'9478 no_entry_flag=9479 else9480 # If we're using GNU nm, then we don't want the "-C" option.9481 # -C means demangle to GNU nm, but means don't demangle to AIX nm.9482 # Without the "-l" option, or with the "-B" option, AIX nm treats9483 # weak defined symbols like other global defined symbols, whereas9484 # GNU nm marks them as "W".9485 # While the 'weak' keyword is ignored in the Export File, we need9486 # it in the Import File for the 'aix-soname' feature, so we have9487 # to replace the "-B" option with "-P" for AIX nm.9488 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then9489 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'9490 else9491 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'9492 fi9493 aix_use_runtimelinking=no9494 9495 # Test if we are trying to use run time linking or normal9496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we9497 # have runtime linking enabled, and use it for executables.9498 # For shared libraries, we enable/disable runtime linking9499 # depending on the kind of the shared library created -9500 # when "with_aix_soname,aix_use_runtimelinking" is:9501 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables9502 # "aix,yes" lib.so shared, rtl:yes, for executables9503 # lib.a static archive9504 # "both,no" lib.so.V(shr.o) shared, rtl:yes9505 # lib.a(lib.so.V) shared, rtl:no, for executables9506 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables9507 # lib.a(lib.so.V) shared, rtl:no9508 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables9509 # lib.a static archive9510 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)9511 for ld_flag in $LDFLAGS; do9512 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then9513 aix_use_runtimelinking=yes9514 break9515 fi9516 done9517 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then9518 # With aix-soname=svr4, we create the lib.so.V shared archives only,9519 # so we don't have lib.a shared libs to link our executables.9520 # We have to force runtime linking in this case.9521 aix_use_runtimelinking=yes9522 LDFLAGS="$LDFLAGS -Wl,-brtl"9523 fi9524 ;;9525 esac9526 9527 exp_sym_flag='-bexport'9528 no_entry_flag='-bnoentry'9529 fi9530 9531 # When large executables or shared objects are built, AIX ld can9532 # have problems creating the table of contents. If linking a library9533 # or program results in "error TOC overflow" add -mminimal-toc to9534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not9535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.9536 9537 archive_cmds=''9538 hardcode_direct=yes9539 hardcode_direct_absolute=yes9540 hardcode_libdir_separator=':'9541 link_all_deplibs=yes9542 file_list_spec='$wl-f,'9543 case $with_aix_soname,$aix_use_runtimelinking in9544 aix,*) ;; # traditional, no import file9545 svr4,* | *,yes) # use import file9546 # The Import File defines what to hardcode.9547 hardcode_direct=no9548 hardcode_direct_absolute=no9549 ;;9550 esac9551 9552 if test yes = "$GCC"; then9553 case $host_os in aix4.[012]|aix4.[012].*)9554 # We only want to do this on AIX 4.2 and lower, the check9555 # below for broken collect2 doesn't work under 4.3+9556 collect2name=`$CC -print-prog-name=collect2`9557 if test -f "$collect2name" &&9558 strings "$collect2name" | $GREP resolve_lib_name >/dev/null9559 then9560 # We have reworked collect29561 :9562 else9563 # We have old collect29564 hardcode_direct=unsupported9565 # It fails to find uninstalled libraries when the uninstalled9566 # path is not listed in the libpath. Setting hardcode_minus_L9567 # to unsupported forces relinking9568 hardcode_minus_L=yes9569 hardcode_libdir_flag_spec='-L$libdir'9570 hardcode_libdir_separator=9571 fi9572 ;;9573 esac9574 shared_flag='-shared'9575 if test yes = "$aix_use_runtimelinking"; then9576 shared_flag="$shared_flag "'$wl-G'9577 fi9578 # Need to ensure runtime linking is disabled for the traditional9579 # shared library, or the linker may eventually find shared libraries9580 # /with/ Import File - we do not want to mix them.9581 shared_flag_aix='-shared'9582 shared_flag_svr4='-shared $wl-G'9583 else9584 # not using gcc9585 if test ia64 = "$host_cpu"; then9586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release9587 # chokes on -Wl,-G. The following line is correct:9588 shared_flag='-G'9589 else9590 if test yes = "$aix_use_runtimelinking"; then9591 shared_flag='$wl-G'9592 else9593 shared_flag='$wl-bM:SRE'9594 fi9595 shared_flag_aix='$wl-bM:SRE'9596 shared_flag_svr4='$wl-G'9597 fi9598 fi9599 9600 export_dynamic_flag_spec='$wl-bexpall'9601 # It seems that -bexpall does not export symbols beginning with9602 # underscore (_), so it is better to generate a list of symbols to export.9603 always_export_symbols=yes9604 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then9605 # Warning - without using the other runtime loading flags (-brtl),9606 # -berok will link without error, but may produce a broken library.9607 allow_undefined_flag='-berok'9608 # Determine the default libpath from the value encoded in an9609 # empty executable.9610 if test set = "${lt_cv_aix_libpath+set}"; then9611 aix_libpath=$lt_cv_aix_libpath9612 else9613 if ${lt_cv_aix_libpath_+:} false; then :9614 $as_echo_n "(cached) " >&69615 else9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9617 /* end confdefs.h. */9618 9619 int9620 main ()9621 {9622 9623 ;9624 return 0;9625 }9626 _ACEOF9627 if ac_fn_c_try_link "$LINENO"; then :9628 9629 lt_aix_libpath_sed='9630 /Import File Strings/,/^$/ {9631 /^0/ {9632 s/^0 *\([^ ]*\) *$/\1/9633 p9634 }9635 }'9636 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9637 # Check for a 64-bit object if we didn't find anything.9638 if test -z "$lt_cv_aix_libpath_"; then9639 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9640 fi9641 fi9642 rm -f core conftest.err conftest.$ac_objext \9643 conftest$ac_exeext conftest.$ac_ext9644 if test -z "$lt_cv_aix_libpath_"; then9645 lt_cv_aix_libpath_=/usr/lib:/lib9646 fi9647 9648 fi9649 9650 aix_libpath=$lt_cv_aix_libpath_9651 fi9652 9653 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"9654 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag9655 else9656 if test ia64 = "$host_cpu"; then9657 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'9658 allow_undefined_flag="-z nodefs"9659 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"9660 else9661 # Determine the default libpath from the value encoded in an9662 # empty executable.9663 if test set = "${lt_cv_aix_libpath+set}"; then9664 aix_libpath=$lt_cv_aix_libpath9665 else9666 if ${lt_cv_aix_libpath_+:} false; then :9667 $as_echo_n "(cached) " >&69668 else9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9670 /* end confdefs.h. */9671 9672 int9673 main ()9674 {9675 9676 ;9677 return 0;9678 }9679 _ACEOF9680 if ac_fn_c_try_link "$LINENO"; then :9681 9682 lt_aix_libpath_sed='9683 /Import File Strings/,/^$/ {9684 /^0/ {9685 s/^0 *\([^ ]*\) *$/\1/9686 p9687 }9688 }'9689 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9690 # Check for a 64-bit object if we didn't find anything.9691 if test -z "$lt_cv_aix_libpath_"; then9692 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9693 fi9694 fi9695 rm -f core conftest.err conftest.$ac_objext \9696 conftest$ac_exeext conftest.$ac_ext9697 if test -z "$lt_cv_aix_libpath_"; then9698 lt_cv_aix_libpath_=/usr/lib:/lib9699 fi9700 9701 fi9702 9703 aix_libpath=$lt_cv_aix_libpath_9704 fi9705 9706 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"9707 # Warning - without using the other run time loading flags,9708 # -berok will link without error, but may produce a broken library.9709 no_undefined_flag=' $wl-bernotok'9710 allow_undefined_flag=' $wl-berok'9711 if test yes = "$with_gnu_ld"; then9712 # We only use this code for GNU lds that support --whole-archive.9713 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'9714 else9715 # Exported symbols can be pulled into shared objects from archives9716 whole_archive_flag_spec='$convenience'9717 fi9718 archive_cmds_need_lc=yes9719 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'9720 # -brtl affects multiple linker settings, -berok does not and is overridden later9721 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'9722 if test svr4 != "$with_aix_soname"; then9723 # This is similar to how AIX traditionally builds its shared libraries.9724 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'9725 fi9726 if test aix != "$with_aix_soname"; then9727 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'9728 else9729 # used by -dlpreopen to get the symbols9730 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'9731 fi9732 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'9733 fi9734 fi9735 ;;9736 9737 amigaos*)9738 case $host_cpu in9739 powerpc)9740 # see comment about AmigaOS4 .so support9741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9742 archive_expsym_cmds=''9743 ;;9744 m68k)9745 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)'9746 hardcode_libdir_flag_spec='-L$libdir'9747 hardcode_minus_L=yes9748 ;;9749 esac9750 ;;9751 9752 bsdi[45]*)9753 export_dynamic_flag_spec=-rdynamic9754 ;;9755 9756 cygwin* | mingw* | pw32* | cegcc*)9757 # When not using gcc, we currently assume that we are using9758 # Microsoft Visual C++.9759 # hardcode_libdir_flag_spec is actually meaningless, as there is9760 # no search path for DLLs.9761 case $cc_basename in9762 cl*)9763 # Native MSVC9764 hardcode_libdir_flag_spec=' '9765 allow_undefined_flag=unsupported9766 always_export_symbols=yes9767 file_list_spec='@'9768 # Tell ltmain to make .lib files, not .a files.9769 libext=lib9770 # Tell ltmain to make .dll files, not .so files.9771 shrext_cmds=.dll9772 # FIXME: Setting linknames here is a bad hack.9773 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='9774 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then9775 cp "$export_symbols" "$output_objdir/$soname.def";9776 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";9777 else9778 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;9779 fi~9780 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~9781 linknames='9782 # The linker will not automatically build a static lib if we build a DLL.9783 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'9784 enable_shared_with_static_runtimes=yes9785 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'9786 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'9787 # Don't use ranlib9788 old_postinstall_cmds='chmod 644 $oldlib'9789 postlink_cmds='lt_outputfile="@OUTPUT@"~9790 lt_tool_outputfile="@TOOL_OUTPUT@"~9791 case $lt_outputfile in9792 *.exe|*.EXE) ;;9793 *)9794 lt_outputfile=$lt_outputfile.exe9795 lt_tool_outputfile=$lt_tool_outputfile.exe9796 ;;9797 esac~9798 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then9799 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;9800 $RM "$lt_outputfile.manifest";9801 fi'9802 ;;9803 *)9804 # Assume MSVC wrapper9805 hardcode_libdir_flag_spec=' '9806 allow_undefined_flag=unsupported9807 # Tell ltmain to make .lib files, not .a files.9808 libext=lib9809 # Tell ltmain to make .dll files, not .so files.9810 shrext_cmds=.dll9811 # FIXME: Setting linknames here is a bad hack.9812 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='9813 # The linker will automatically build a .lib file if we build a DLL.9814 old_archive_from_new_cmds='true'9815 # FIXME: Should let the user specify the lib program.9816 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'9817 enable_shared_with_static_runtimes=yes9818 ;;9819 esac9820 ;;9821 9822 darwin* | rhapsody*)9823 9824 9825 archive_cmds_need_lc=no9826 hardcode_direct=no9827 hardcode_automatic=yes9828 hardcode_shlibpath_var=unsupported9829 if test yes = "$lt_cv_ld_force_load"; then9830 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'9831 9832 else9833 whole_archive_flag_spec=''9834 fi9835 link_all_deplibs=yes9836 allow_undefined_flag=$_lt_dar_allow_undefined9837 case $cc_basename in9838 ifort*|nagfor*) _lt_dar_can_shared=yes ;;9839 *) _lt_dar_can_shared=$GCC ;;9840 esac9841 if test yes = "$_lt_dar_can_shared"; then9842 output_verbose_link_cmd=func_echo_all9843 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"9844 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"9845 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"9846 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"9847 9848 else9849 ld_shlibs=no9850 fi9851 9852 ;;9853 9854 dgux*)9855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'9856 hardcode_libdir_flag_spec='-L$libdir'9857 hardcode_shlibpath_var=no9858 ;;9859 9860 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor9861 # support. Future versions do this automatically, but an explicit c++rt0.o9862 # does not break anything, and helps significantly (at the cost of a little9863 # extra space).9864 freebsd2.2*)9865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'9866 hardcode_libdir_flag_spec='-R$libdir'9867 hardcode_direct=yes9868 hardcode_shlibpath_var=no9869 ;;9870 9871 # Unfortunately, older versions of FreeBSD 2 do not have this feature.9872 freebsd2.*)9873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'9874 hardcode_direct=yes9875 hardcode_minus_L=yes9876 hardcode_shlibpath_var=no9877 ;;9878 9879 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.9880 freebsd* | dragonfly*)9881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'9882 hardcode_libdir_flag_spec='-R$libdir'9883 hardcode_direct=yes9884 hardcode_shlibpath_var=no9885 ;;9886 9887 hpux9*)9888 if test yes = "$GCC"; then9889 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'9890 else9891 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'9892 fi9893 hardcode_libdir_flag_spec='$wl+b $wl$libdir'9894 hardcode_libdir_separator=:9895 hardcode_direct=yes9896 9897 # hardcode_minus_L: Not really in the search PATH,9898 # but as the default location of the library.9899 hardcode_minus_L=yes9900 export_dynamic_flag_spec='$wl-E'9901 ;;9902 9903 hpux10*)9904 if test yes,no = "$GCC,$with_gnu_ld"; then9905 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9906 else9907 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'9908 fi9909 if test no = "$with_gnu_ld"; then9910 hardcode_libdir_flag_spec='$wl+b $wl$libdir'9911 hardcode_libdir_separator=:9912 hardcode_direct=yes9913 hardcode_direct_absolute=yes9914 export_dynamic_flag_spec='$wl-E'9915 # hardcode_minus_L: Not really in the search PATH,9916 # but as the default location of the library.9917 hardcode_minus_L=yes9918 fi9919 ;;9920 9921 hpux11*)9922 if test yes,no = "$GCC,$with_gnu_ld"; then9923 case $host_cpu in9924 hppa*64*)9925 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'9926 ;;9927 ia64*)9928 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'9929 ;;9930 *)9931 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9932 ;;9933 esac9934 else9935 case $host_cpu in9936 hppa*64*)9937 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'9938 ;;9939 ia64*)9940 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'9941 ;;9942 *)9943 9944 # Older versions of the 11.00 compiler do not understand -b yet9945 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&59947 $as_echo_n "checking if $CC understands -b... " >&6; }9948 if ${lt_cv_prog_compiler__b+:} false; then :9949 $as_echo_n "(cached) " >&69950 else9951 lt_cv_prog_compiler__b=no9952 save_LDFLAGS=$LDFLAGS9953 LDFLAGS="$LDFLAGS -b"9954 echo "$lt_simple_link_test_code" > conftest.$ac_ext9955 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then9956 # The linker can only warn and ignore the option if not recognized9957 # So say no if there are warnings9958 if test -s conftest.err; then9959 # Append any errors to the config.log.9960 cat conftest.err 1>&59961 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp9962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er29963 if diff conftest.exp conftest.er2 >/dev/null; then9964 lt_cv_prog_compiler__b=yes9965 fi9966 else9967 lt_cv_prog_compiler__b=yes9968 fi9969 fi9970 $RM -r conftest*9971 LDFLAGS=$save_LDFLAGS9972 9973 fi9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&59975 $as_echo "$lt_cv_prog_compiler__b" >&6; }9976 9977 if test yes = "$lt_cv_prog_compiler__b"; then9978 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9979 else9980 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'9981 fi9982 9983 ;;9984 esac9985 fi9986 if test no = "$with_gnu_ld"; then9987 hardcode_libdir_flag_spec='$wl+b $wl$libdir'9988 hardcode_libdir_separator=:9989 9990 case $host_cpu in9991 hppa*64*|ia64*)9992 hardcode_direct=no9993 hardcode_shlibpath_var=no9994 ;;9995 *)9996 hardcode_direct=yes9997 hardcode_direct_absolute=yes9998 export_dynamic_flag_spec='$wl-E'9999 10000 # hardcode_minus_L: Not really in the search PATH,10001 # but as the default location of the library.10002 hardcode_minus_L=yes10003 ;;10004 esac10005 fi10006 ;;10007 10008 irix5* | irix6* | nonstopux*)10009 if test yes = "$GCC"; then10010 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'10011 # Try to use the -exported_symbol ld option, if it does not10012 # work, assume that -exports_file does not work either and10013 # implicitly export all symbols.10014 # This should be the same for all languages, so no per-tag cache variable.10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&510016 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }10017 if ${lt_cv_irix_exported_symbol+:} false; then :10018 $as_echo_n "(cached) " >&610019 else10020 save_LDFLAGS=$LDFLAGS10021 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext10023 /* end confdefs.h. */10024 int foo (void) { return 0; }10025 _ACEOF10026 if ac_fn_c_try_link "$LINENO"; then :10027 lt_cv_irix_exported_symbol=yes10028 else10029 lt_cv_irix_exported_symbol=no10030 fi10031 rm -f core conftest.err conftest.$ac_objext \10032 conftest$ac_exeext conftest.$ac_ext10033 LDFLAGS=$save_LDFLAGS10034 fi10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&510036 $as_echo "$lt_cv_irix_exported_symbol" >&6; }10037 if test yes = "$lt_cv_irix_exported_symbol"; then10038 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'10039 fi10040 link_all_deplibs=no10041 else10042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'10043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'10044 fi10045 archive_cmds_need_lc='no'10046 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10047 hardcode_libdir_separator=:10048 inherit_rpath=yes10049 link_all_deplibs=yes10050 ;;10051 10052 linux*)10053 case $cc_basename in10054 tcc*)10055 # Fabrice Bellard et al's Tiny C Compiler10056 ld_shlibs=yes10057 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'10058 ;;10059 esac10060 ;;10061 10062 netbsd* | netbsdelf*-gnu)10063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then10064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out10065 else10066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF10067 fi10068 hardcode_libdir_flag_spec='-R$libdir'10069 hardcode_direct=yes10070 hardcode_shlibpath_var=no10071 ;;10072 10073 newsos6)10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10075 hardcode_direct=yes10076 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10077 hardcode_libdir_separator=:10078 hardcode_shlibpath_var=no10079 ;;10080 10081 *nto* | *qnx*)10082 ;;10083 10084 openbsd* | bitrig*)10085 if test -f /usr/libexec/ld.so; then10086 hardcode_direct=yes10087 hardcode_shlibpath_var=no10088 hardcode_direct_absolute=yes10089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then10090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'10091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'10092 hardcode_libdir_flag_spec='$wl-rpath,$libdir'10093 export_dynamic_flag_spec='$wl-E'10094 else10095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'10096 hardcode_libdir_flag_spec='$wl-rpath,$libdir'10097 fi10098 else10099 ld_shlibs=no10100 fi10101 ;;10102 10103 os2*)10104 hardcode_libdir_flag_spec='-L$libdir'10105 hardcode_minus_L=yes10106 allow_undefined_flag=unsupported10107 shrext_cmds=.dll10108 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~10109 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~10110 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~10111 $ECHO EXPORTS >> $output_objdir/$libname.def~10112 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~10113 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~10114 emximp -o $lib $output_objdir/$libname.def'10115 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~10116 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~10117 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~10118 $ECHO EXPORTS >> $output_objdir/$libname.def~10119 prefix_cmds="$SED"~10120 if test EXPORTS = "`$SED 1q $export_symbols`"; then10121 prefix_cmds="$prefix_cmds -e 1d";10122 fi~10123 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~10124 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~10125 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~10126 emximp -o $lib $output_objdir/$libname.def'10127 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'10128 enable_shared_with_static_runtimes=yes10129 ;;10130 10131 osf3*)10132 if test yes = "$GCC"; then10133 allow_undefined_flag=' $wl-expect_unresolved $wl\*'10134 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'10135 else10136 allow_undefined_flag=' -expect_unresolved \*'10137 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'10138 fi10139 archive_cmds_need_lc='no'10140 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10141 hardcode_libdir_separator=:10142 ;;10143 10144 osf4* | osf5*) # as osf3* with the addition of -msym flag10145 if test yes = "$GCC"; then10146 allow_undefined_flag=' $wl-expect_unresolved $wl\*'10147 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'10148 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10149 else10150 allow_undefined_flag=' -expect_unresolved \*'10151 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'10152 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~10153 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'10154 10155 # Both c and cxx compiler support -rpath directly10156 hardcode_libdir_flag_spec='-rpath $libdir'10157 fi10158 archive_cmds_need_lc='no'10159 hardcode_libdir_separator=:10160 ;;10161 10162 solaris*)10163 no_undefined_flag=' -z defs'10164 if test yes = "$GCC"; then10165 wlarc='$wl'10166 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'10167 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~10168 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'10169 else10170 case `$CC -V 2>&1` in10171 *"Compilers 5.0"*)10172 wlarc=''10173 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'10174 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~10175 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'10176 ;;10177 *)10178 wlarc='$wl'10179 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'10180 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~10181 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'10182 ;;10183 esac10184 fi10185 hardcode_libdir_flag_spec='-R$libdir'10186 hardcode_shlibpath_var=no10187 case $host_os in10188 solaris2.[0-5] | solaris2.[0-5].*) ;;10189 *)10190 # The compiler driver will combine and reorder linker options,10191 # but understands '-z linker_flag'. GCC discards it without '$wl',10192 # but is careful enough not to reorder.10193 # Supported since Solaris 2.6 (maybe 2.5.1?)10194 if test yes = "$GCC"; then10195 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'10196 else10197 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'10198 fi10199 ;;10200 esac10201 link_all_deplibs=yes10202 ;;10203 10204 sunos4*)10205 if test sequent = "$host_vendor"; then10206 # Use $CC to link under sequent, because it throws in some extra .o10207 # files that make .init and .fini sections work.10208 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'10209 else10210 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'10211 fi10212 hardcode_libdir_flag_spec='-L$libdir'10213 hardcode_direct=yes10214 hardcode_minus_L=yes10215 hardcode_shlibpath_var=no10216 ;;10217 10218 sysv4)10219 case $host_vendor in10220 sni)10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10222 hardcode_direct=yes # is this really true???10223 ;;10224 siemens)10225 ## LD is ld it makes a PLAMLIB10226 ## CC just makes a GrossModule.10227 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'10228 reload_cmds='$CC -r -o $output$reload_objs'10229 hardcode_direct=no10230 ;;10231 motorola)10232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10233 hardcode_direct=no #Motorola manual says yes, but my tests say they lie10234 ;;10235 esac10236 runpath_var='LD_RUN_PATH'10237 hardcode_shlibpath_var=no10238 ;;10239 10240 sysv4.3*)10241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10242 hardcode_shlibpath_var=no10243 export_dynamic_flag_spec='-Bexport'10244 ;;10245 10246 sysv4*MP*)10247 if test -d /usr/nec; then10248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10249 hardcode_shlibpath_var=no10250 runpath_var=LD_RUN_PATH10251 hardcode_runpath_var=yes10252 ld_shlibs=yes10253 fi10254 ;;10255 10256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)10257 no_undefined_flag='$wl-z,text'10258 archive_cmds_need_lc=no10259 hardcode_shlibpath_var=no10260 runpath_var='LD_RUN_PATH'10261 10262 if test yes = "$GCC"; then10263 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10264 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10265 else10266 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10267 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10268 fi10269 ;;10270 10271 sysv5* | sco3.2v5* | sco5v6*)10272 # Note: We CANNOT use -z defs as we might desire, because we do not10273 # link with -lc, and that would cause any symbols used from libc to10274 # always be unresolved, which means just about no library would10275 # ever link correctly. If we're not using GNU ld we use -z text10276 # though, which does catch some bad symbols but isn't as heavy-handed10277 # as -z defs.10278 no_undefined_flag='$wl-z,text'10279 allow_undefined_flag='$wl-z,nodefs'10280 archive_cmds_need_lc=no10281 hardcode_shlibpath_var=no10282 hardcode_libdir_flag_spec='$wl-R,$libdir'10283 hardcode_libdir_separator=':'10284 link_all_deplibs=yes10285 export_dynamic_flag_spec='$wl-Bexport'10286 runpath_var='LD_RUN_PATH'10287 10288 if test yes = "$GCC"; then10289 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10290 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10291 else10292 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10293 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10294 fi10295 ;;10296 10297 uts4*)10298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10299 hardcode_libdir_flag_spec='-L$libdir'10300 hardcode_shlibpath_var=no10301 ;;10302 10303 *)10304 ld_shlibs=no10305 ;;10306 esac10307 10308 if test sni = "$host_vendor"; then10309 case $host in10310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)10311 export_dynamic_flag_spec='$wl-Blargedynsym'10312 ;;10313 esac10314 fi10315 fi10316 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&510318 $as_echo "$ld_shlibs" >&6; }10319 test no = "$ld_shlibs" && can_build_shared=no10320 10321 with_gnu_ld=$with_gnu_ld10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 #10338 # Do we need to explicitly link libc?10339 #10340 case "x$archive_cmds_need_lc" in10341 x|xyes)10342 # Assume -lc should be added10343 archive_cmds_need_lc=yes10344 10345 if test yes,yes = "$GCC,$enable_shared"; then10346 case $archive_cmds in10347 *'~'*)10348 # FIXME: we may have to deal with multi-command sequences.10349 ;;10350 '$CC '*)10351 # Test whether the compiler implicitly links with -lc since on some10352 # systems, -lgcc has to come before -lc. If gcc already passes -lc10353 # to ld, don't add -lc before -lgcc.10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&510355 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }10356 if ${lt_cv_archive_cmds_need_lc+:} false; then :10357 $as_echo_n "(cached) " >&610358 else10359 $RM conftest*10360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext10361 10362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&510363 (eval $ac_compile) 2>&510364 ac_status=$?10365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&510366 test $ac_status = 0; } 2>conftest.err; then10367 soname=conftest10368 lib=conftest10369 libobjs=conftest.$ac_objext10370 deplibs=10371 wl=$lt_prog_compiler_wl10372 pic_flag=$lt_prog_compiler_pic10373 compiler_flags=-v10374 linker_flags=-v10375 verstring=10376 output_objdir=.10377 libname=conftest10378 lt_save_allow_undefined_flag=$allow_undefined_flag10379 allow_undefined_flag=10380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&510381 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&510382 ac_status=$?10383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&510384 test $ac_status = 0; }10385 then10386 lt_cv_archive_cmds_need_lc=no10387 else10388 lt_cv_archive_cmds_need_lc=yes10389 fi10390 allow_undefined_flag=$lt_save_allow_undefined_flag10391 else10392 cat conftest.err 1>&510393 fi10394 $RM conftest*10395 10396 fi10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&510398 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }10399 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc10400 ;;10401 esac10402 fi10403 ;;10404 esac10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&510558 $as_echo_n "checking dynamic linker characteristics... " >&6; }10559 10560 if test yes = "$GCC"; then10561 case $host_os in10562 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;10563 *) lt_awk_arg='/^libraries:/' ;;10564 esac10565 case $host_os in10566 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;10567 *) lt_sed_strip_eq='s|=/|/|g' ;;10568 esac10569 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`10570 case $lt_search_path_spec in10571 *\;*)10572 # if the path contains ";" then we assume it to be the separator10573 # otherwise default to the standard path separator (i.e. ":") - it is10574 # assumed that no part of a normal pathname contains ";" but that should10575 # okay in the real world where ";" in dirpaths is itself problematic.10576 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`10577 ;;10578 *)10579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`10580 ;;10581 esac10582 # Ok, now we have the path, separated by spaces, we can step through it10583 # and add multilib dir if necessary...10584 lt_tmp_lt_search_path_spec=10585 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`10586 # ...but if some path component already ends with the multilib dir we assume10587 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).10588 case "$lt_multi_os_dir; $lt_search_path_spec " in10589 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)10590 lt_multi_os_dir=10591 ;;10592 esac10593 for lt_sys_path in $lt_search_path_spec; do10594 if test -d "$lt_sys_path$lt_multi_os_dir"; then10595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"10596 elif test -n "$lt_multi_os_dir"; then10597 test -d "$lt_sys_path" && \10598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"10599 fi10600 done10601 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '10602 BEGIN {RS = " "; FS = "/|\n";} {10603 lt_foo = "";10604 lt_count = 0;10605 for (lt_i = NF; lt_i > 0; lt_i--) {10606 if ($lt_i != "" && $lt_i != ".") {10607 if ($lt_i == "..") {10608 lt_count++;10609 } else {10610 if (lt_count == 0) {10611 lt_foo = "/" $lt_i lt_foo;10612 } else {10613 lt_count--;10614 }10615 }10616 }10617 }10618 if (lt_foo != "") { lt_freq[lt_foo]++; }10619 if (lt_freq[lt_foo] == 1) { print lt_foo; }10620 }'`10621 # AWK program above erroneously prepends '/' to C:/dos/paths10622 # for these hosts.10623 case $host_os in10624 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\10625 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;10626 esac10627 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`10628 else10629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"10630 fi10631 library_names_spec=10632 libname_spec='lib$name'10633 soname_spec=10634 shrext_cmds=.so10635 postinstall_cmds=10636 postuninstall_cmds=10637 finish_cmds=10638 finish_eval=10639 shlibpath_var=10640 shlibpath_overrides_runpath=unknown10641 version_type=none10642 dynamic_linker="$host_os ld.so"10643 sys_lib_dlsearch_path_spec="/lib /usr/lib"10644 need_lib_prefix=unknown10645 hardcode_into_libs=no10646 10647 # when you set need_version to no, make sure it does not cause -set_version10648 # flags to be left without arguments10649 need_version=unknown10650 10651 10652 10653 case $host_os in10654 aix3*)10655 version_type=linux # correct to gnu/linux during the next big refactor10656 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'10657 shlibpath_var=LIBPATH10658 10659 # AIX 3 has no versioning support, so we append a major version to the name.10660 soname_spec='$libname$release$shared_ext$major'10661 ;;10662 10663 aix[4-9]*)10664 version_type=linux # correct to gnu/linux during the next big refactor10665 need_lib_prefix=no10666 need_version=no10667 hardcode_into_libs=yes10668 if test ia64 = "$host_cpu"; then10669 # AIX 5 supports IA6410670 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'10671 shlibpath_var=LD_LIBRARY_PATH10672 else10673 # With GCC up to 2.95.x, collect2 would create an import file10674 # for dependence libraries. The import file would start with10675 # the line '#! .'. This would cause the generated library to10676 # depend on '.', always an invalid library. This was fixed in10677 # development snapshots of GCC prior to 3.0.10678 case $host_os in10679 aix4 | aix4.[01] | aix4.[01].*)10680 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'10681 echo ' yes '10682 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then10683 :10684 else10685 can_build_shared=no10686 fi10687 ;;10688 esac10689 # Using Import Files as archive members, it is possible to support10690 # filename-based versioning of shared library archives on AIX. While10691 # this would work for both with and without runtime linking, it will10692 # prevent static linking of such archives. So we do filename-based10693 # shared library versioning with .so extension only, which is used10694 # when both runtime linking and shared linking is enabled.10695 # Unfortunately, runtime linking may impact performance, so we do10696 # not want this to be the default eventually. Also, we use the10697 # versioned .so libs for executables only if there is the -brtl10698 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.10699 # To allow for filename-based versioning support, we need to create10700 # libNAME.so.V as an archive file, containing:10701 # *) an Import File, referring to the versioned filename of the10702 # archive as well as the shared archive member, telling the10703 # bitwidth (32 or 64) of that shared object, and providing the10704 # list of exported symbols of that shared object, eventually10705 # decorated with the 'weak' keyword10706 # *) the shared object with the F_LOADONLY flag set, to really avoid10707 # it being seen by the linker.10708 # At run time we better use the real file rather than another symlink,10709 # but for link time we create the symlink libNAME.so -> libNAME.so.V10710 10711 case $with_aix_soname,$aix_use_runtimelinking in10712 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct10713 # soname into executable. Probably we can add versioning support to10714 # collect2, so additional links can be useful in future.10715 aix,yes) # traditional libtool10716 dynamic_linker='AIX unversionable lib.so'10717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so10718 # instead of lib<name>.a to let people know that these are not10719 # typical AIX shared libraries.10720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10721 ;;10722 aix,no) # traditional AIX only10723 dynamic_linker='AIX lib.a(lib.so.V)'10724 # We preserve .a as extension for shared libraries through AIX4.210725 # and later when we are not doing run time linking.10726 library_names_spec='$libname$release.a $libname.a'10727 soname_spec='$libname$release$shared_ext$major'10728 ;;10729 svr4,*) # full svr4 only10730 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"10731 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'10732 # We do not specify a path in Import Files, so LIBPATH fires.10733 shlibpath_overrides_runpath=yes10734 ;;10735 *,yes) # both, prefer svr410736 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"10737 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'10738 # unpreferred sharedlib libNAME.a needs extra handling10739 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'10740 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'10741 # We do not specify a path in Import Files, so LIBPATH fires.10742 shlibpath_overrides_runpath=yes10743 ;;10744 *,no) # both, prefer aix10745 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"10746 library_names_spec='$libname$release.a $libname.a'10747 soname_spec='$libname$release$shared_ext$major'10748 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling10749 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'10750 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'10751 ;;10752 esac10753 shlibpath_var=LIBPATH10754 fi10755 ;;10756 10757 amigaos*)10758 case $host_cpu in10759 powerpc)10760 # Since July 2007 AmigaOS4 officially supports .so libraries.10761 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.10762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10763 ;;10764 m68k)10765 library_names_spec='$libname.ixlibrary $libname.a'10766 # Create ${libname}_ixlibrary.a entries in /sys/libs.10767 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'10768 ;;10769 esac10770 ;;10771 10772 beos*)10773 library_names_spec='$libname$shared_ext'10774 dynamic_linker="$host_os ld.so"10775 shlibpath_var=LIBRARY_PATH10776 ;;10777 10778 bsdi[45]*)10779 version_type=linux # correct to gnu/linux during the next big refactor10780 need_version=no10781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10782 soname_spec='$libname$release$shared_ext$major'10783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'10784 shlibpath_var=LD_LIBRARY_PATH10785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"10786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"10787 # the default ld.so.conf also contains /usr/contrib/lib and10788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow10789 # libtool to hard-code these into programs10790 ;;10791 10792 cygwin* | mingw* | pw32* | cegcc*)10793 version_type=windows10794 shrext_cmds=.dll10795 need_version=no10796 need_lib_prefix=no10797 10798 case $GCC,$cc_basename in10799 yes,*)10800 # gcc10801 library_names_spec='$libname.dll.a'10802 # DLL is installed to $(libdir)/../bin by postinstall_cmds10803 postinstall_cmds='base_file=`basename \$file`~10804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~10805 dldir=$destdir/`dirname \$dlpath`~10806 test -d \$dldir || mkdir -p \$dldir~10807 $install_prog $dir/$dlname \$dldir/$dlname~10808 chmod a+x \$dldir/$dlname~10809 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then10810 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;10811 fi'10812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~10813 dlpath=$dir/\$dldll~10814 $RM \$dlpath'10815 shlibpath_overrides_runpath=yes10816 10817 case $host_os in10818 cygwin*)10819 # Cygwin DLLs use 'cyg' prefix rather than 'lib'10820 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10821 10822 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"10823 ;;10824 mingw* | cegcc*)10825 # MinGW DLLs use traditional 'lib' prefix10826 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10827 ;;10828 pw32*)10829 # pw32 DLLs use 'pw' prefix rather than 'lib'10830 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10831 ;;10832 esac10833 dynamic_linker='Win32 ld.exe'10834 ;;10835 10836 *,cl*)10837 # Native MSVC10838 libname_spec='$name'10839 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10840 library_names_spec='$libname.dll.lib'10841 10842 case $build_os in10843 mingw*)10844 sys_lib_search_path_spec=10845 lt_save_ifs=$IFS10846 IFS=';'10847 for lt_path in $LIB10848 do10849 IFS=$lt_save_ifs10850 # Let DOS variable expansion print the short 8.3 style file name.10851 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`10852 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"10853 done10854 IFS=$lt_save_ifs10855 # Convert to MSYS style.10856 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`10857 ;;10858 cygwin*)10859 # Convert to unix form, then to dos form, then back to unix form10860 # but this time dos style (no spaces!) so that the unix form looks10861 # like /cygdrive/c/PROGRA~1:/cygdr...10862 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`10863 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`10864 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`10865 ;;10866 *)10867 sys_lib_search_path_spec=$LIB10868 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then10869 # It is most probably a Windows format PATH.10870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`10871 else10872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`10873 fi10874 # FIXME: find the short name or the path components, as spaces are10875 # common. (e.g. "Program Files" -> "PROGRA~1")10876 ;;10877 esac10878 10879 # DLL is installed to $(libdir)/../bin by postinstall_cmds10880 postinstall_cmds='base_file=`basename \$file`~10881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~10882 dldir=$destdir/`dirname \$dlpath`~10883 test -d \$dldir || mkdir -p \$dldir~10884 $install_prog $dir/$dlname \$dldir/$dlname'10885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~10886 dlpath=$dir/\$dldll~10887 $RM \$dlpath'10888 shlibpath_overrides_runpath=yes10889 dynamic_linker='Win32 link.exe'10890 ;;10891 10892 *)10893 # Assume MSVC wrapper10894 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'10895 dynamic_linker='Win32 ld.exe'10896 ;;10897 esac10898 # FIXME: first we should search . and the directory the executable is in10899 shlibpath_var=PATH10900 ;;10901 10902 darwin* | rhapsody*)10903 dynamic_linker="$host_os dyld"10904 version_type=darwin10905 need_lib_prefix=no10906 need_version=no10907 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'10908 soname_spec='$libname$release$major$shared_ext'10909 shlibpath_overrides_runpath=yes10910 shlibpath_var=DYLD_LIBRARY_PATH10911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'10912 10913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"10914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'10915 ;;10916 10917 dgux*)10918 version_type=linux # correct to gnu/linux during the next big refactor10919 need_lib_prefix=no10920 need_version=no10921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10922 soname_spec='$libname$release$shared_ext$major'10923 shlibpath_var=LD_LIBRARY_PATH10924 ;;10925 10926 freebsd* | dragonfly*)10927 # DragonFly does not have aout. When/if they implement a new10928 # versioning mechanism, adjust this.10929 if test -x /usr/bin/objformat; then10930 objformat=`/usr/bin/objformat`10931 else10932 case $host_os in10933 freebsd[23].*) objformat=aout ;;10934 *) objformat=elf ;;10935 esac10936 fi10937 version_type=freebsd-$objformat10938 case $version_type in10939 freebsd-elf*)10940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10941 soname_spec='$libname$release$shared_ext$major'10942 need_version=no10943 need_lib_prefix=no10944 ;;10945 freebsd-*)10946 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'10947 need_version=yes10948 ;;10949 esac10950 shlibpath_var=LD_LIBRARY_PATH10951 case $host_os in10952 freebsd2.*)10953 shlibpath_overrides_runpath=yes10954 ;;10955 freebsd3.[01]* | freebsdelf3.[01]*)10956 shlibpath_overrides_runpath=yes10957 hardcode_into_libs=yes10958 ;;10959 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \10960 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)10961 shlibpath_overrides_runpath=no10962 hardcode_into_libs=yes10963 ;;10964 *) # from 4.6 on, and DragonFly10965 shlibpath_overrides_runpath=yes10966 hardcode_into_libs=yes10967 ;;10968 esac10969 ;;10970 10971 haiku*)10972 version_type=linux # correct to gnu/linux during the next big refactor10973 need_lib_prefix=no10974 need_version=no10975 dynamic_linker="$host_os runtime_loader"10976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10977 soname_spec='$libname$release$shared_ext$major'10978 shlibpath_var=LIBRARY_PATH10979 shlibpath_overrides_runpath=no10980 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'10981 hardcode_into_libs=yes10982 ;;10983 10984 hpux9* | hpux10* | hpux11*)10985 # Give a soname corresponding to the major version so that dld.sl refuses to10986 # link against other versions.10987 version_type=sunos10988 need_lib_prefix=no10989 need_version=no10990 case $host_cpu in10991 ia64*)10992 shrext_cmds='.so'10993 hardcode_into_libs=yes10994 dynamic_linker="$host_os dld.so"10995 shlibpath_var=LD_LIBRARY_PATH10996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.10997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10998 soname_spec='$libname$release$shared_ext$major'10999 if test 32 = "$HPUX_IA64_MODE"; then11000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"11001 sys_lib_dlsearch_path_spec=/usr/lib/hpux3211002 else11003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"11004 sys_lib_dlsearch_path_spec=/usr/lib/hpux6411005 fi11006 ;;11007 hppa*64*)11008 shrext_cmds='.sl'11009 hardcode_into_libs=yes11010 dynamic_linker="$host_os dld.sl"11011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH11012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.11013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11014 soname_spec='$libname$release$shared_ext$major'11015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"11016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec11017 ;;11018 *)11019 shrext_cmds='.sl'11020 dynamic_linker="$host_os dld.sl"11021 shlibpath_var=SHLIB_PATH11022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH11023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11024 soname_spec='$libname$release$shared_ext$major'11025 ;;11026 esac11027 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...11028 postinstall_cmds='chmod 555 $lib'11029 # or fails outright, so override atomically:11030 install_override_mode=55511031 ;;11032 11033 interix[3-9]*)11034 version_type=linux # correct to gnu/linux during the next big refactor11035 need_lib_prefix=no11036 need_version=no11037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11038 soname_spec='$libname$release$shared_ext$major'11039 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'11040 shlibpath_var=LD_LIBRARY_PATH11041 shlibpath_overrides_runpath=no11042 hardcode_into_libs=yes11043 ;;11044 11045 irix5* | irix6* | nonstopux*)11046 case $host_os in11047 nonstopux*) version_type=nonstopux ;;11048 *)11049 if test yes = "$lt_cv_prog_gnu_ld"; then11050 version_type=linux # correct to gnu/linux during the next big refactor11051 else11052 version_type=irix11053 fi ;;11054 esac11055 need_lib_prefix=no11056 need_version=no11057 soname_spec='$libname$release$shared_ext$major'11058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'11059 case $host_os in11060 irix5* | nonstopux*)11061 libsuff= shlibsuff=11062 ;;11063 *)11064 case $LD in # libtool.m4 will add one of these switches to LD11065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")11066 libsuff= shlibsuff= libmagic=32-bit;;11067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")11068 libsuff=32 shlibsuff=N32 libmagic=N32;;11069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")11070 libsuff=64 shlibsuff=64 libmagic=64-bit;;11071 *) libsuff= shlibsuff= libmagic=never-match;;11072 esac11073 ;;11074 esac11075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH11076 shlibpath_overrides_runpath=no11077 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"11078 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"11079 hardcode_into_libs=yes11080 ;;11081 11082 # No shared lib support for Linux oldld, aout, or coff.11083 linux*oldld* | linux*aout* | linux*coff*)11084 dynamic_linker=no11085 ;;11086 11087 linux*android*)11088 version_type=none # Android doesn't support versioned libraries.11089 need_lib_prefix=no11090 need_version=no11091 library_names_spec='$libname$release$shared_ext'11092 soname_spec='$libname$release$shared_ext'11093 finish_cmds=11094 shlibpath_var=LD_LIBRARY_PATH11095 shlibpath_overrides_runpath=yes11096 11097 # This implies no fast_install, which is unacceptable.11098 # Some rework will be needed to allow for fast_install11099 # before this can be enabled.11100 hardcode_into_libs=yes11101 11102 dynamic_linker='Android linker'11103 # Don't embed -rpath directories since the linker doesn't support them.11104 hardcode_libdir_flag_spec='-L$libdir'11105 ;;11106 11107 # This must be glibc/ELF.11108 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)11109 version_type=linux # correct to gnu/linux during the next big refactor11110 need_lib_prefix=no11111 need_version=no11112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11113 soname_spec='$libname$release$shared_ext$major'11114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'11115 shlibpath_var=LD_LIBRARY_PATH11116 shlibpath_overrides_runpath=no11117 11118 # Some binutils ld are patched to set DT_RUNPATH11119 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :11120 $as_echo_n "(cached) " >&611121 else11122 lt_cv_shlibpath_overrides_runpath=no11123 save_LDFLAGS=$LDFLAGS11124 save_libdir=$libdir11125 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \11126 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11128 /* end confdefs.h. */11129 11130 int11131 main ()11132 {11133 11134 ;11135 return 0;11136 }11137 _ACEOF11138 if ac_fn_c_try_link "$LINENO"; then :11139 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :11140 lt_cv_shlibpath_overrides_runpath=yes11141 fi11142 fi11143 rm -f core conftest.err conftest.$ac_objext \11144 conftest$ac_exeext conftest.$ac_ext11145 LDFLAGS=$save_LDFLAGS11146 libdir=$save_libdir11147 11148 fi11149 11150 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath11151 11152 # This implies no fast_install, which is unacceptable.11153 # Some rework will be needed to allow for fast_install11154 # before this can be enabled.11155 hardcode_into_libs=yes11156 11157 # Ideally, we could use ldconfig to report *all* directores which are11158 # searched for libraries, however this is still not possible. Aside from not11159 # being certain /sbin/ldconfig is available, command11160 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,11161 # even though it is searched at run-time. Try to do the best guess by11162 # appending ld.so.conf contents (and includes) to the search path.11163 if test -f /etc/ld.so.conf; then11164 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`11165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"11166 fi11167 11168 # We used to test for /lib/ld.so.1 and disable shared libraries on11169 # powerpc, because MkLinux only supported shared libraries with the11170 # GNU dynamic linker. Since this was broken with cross compilers,11171 # most powerpc-linux boxes support dynamic linking these days and11172 # people can always --disable-shared, the test was removed, and we11173 # assume the GNU/Linux dynamic linker is in use.11174 dynamic_linker='GNU/Linux ld.so'11175 ;;11176 11177 netbsdelf*-gnu)11178 version_type=linux11179 need_lib_prefix=no11180 need_version=no11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'11182 soname_spec='${libname}${release}${shared_ext}$major'11183 shlibpath_var=LD_LIBRARY_PATH11184 shlibpath_overrides_runpath=no11185 hardcode_into_libs=yes11186 dynamic_linker='NetBSD ld.elf_so'11187 ;;11188 11189 netbsd*)11190 version_type=sunos11191 need_lib_prefix=no11192 need_version=no11193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then11194 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'11195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'11196 dynamic_linker='NetBSD (a.out) ld.so'11197 else11198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11199 soname_spec='$libname$release$shared_ext$major'11200 dynamic_linker='NetBSD ld.elf_so'11201 fi11202 shlibpath_var=LD_LIBRARY_PATH11203 shlibpath_overrides_runpath=yes11204 hardcode_into_libs=yes11205 ;;11206 11207 newsos6)11208 version_type=linux # correct to gnu/linux during the next big refactor11209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11210 shlibpath_var=LD_LIBRARY_PATH11211 shlibpath_overrides_runpath=yes11212 ;;11213 11214 *nto* | *qnx*)11215 version_type=qnx11216 need_lib_prefix=no11217 need_version=no11218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11219 soname_spec='$libname$release$shared_ext$major'11220 shlibpath_var=LD_LIBRARY_PATH11221 shlibpath_overrides_runpath=no11222 hardcode_into_libs=yes11223 dynamic_linker='ldqnx.so'11224 ;;11225 11226 openbsd* | bitrig*)11227 version_type=sunos11228 sys_lib_dlsearch_path_spec=/usr/lib11229 need_lib_prefix=no11230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then11231 need_version=no11232 else11233 need_version=yes11234 fi11235 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'11236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'11237 shlibpath_var=LD_LIBRARY_PATH11238 shlibpath_overrides_runpath=yes11239 ;;11240 11241 os2*)11242 libname_spec='$name'11243 version_type=windows11244 shrext_cmds=.dll11245 need_version=no11246 need_lib_prefix=no11247 # OS/2 can only load a DLL with a base name of 8 characters or less.11248 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";11249 v=$($ECHO $release$versuffix | tr -d .-);11250 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);11251 $ECHO $n$v`$shared_ext'11252 library_names_spec='${libname}_dll.$libext'11253 dynamic_linker='OS/2 ld.exe'11254 shlibpath_var=BEGINLIBPATH11255 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"11256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec11257 postinstall_cmds='base_file=`basename \$file`~11258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~11259 dldir=$destdir/`dirname \$dlpath`~11260 test -d \$dldir || mkdir -p \$dldir~11261 $install_prog $dir/$dlname \$dldir/$dlname~11262 chmod a+x \$dldir/$dlname~11263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then11264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;11265 fi'11266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~11267 dlpath=$dir/\$dldll~11268 $RM \$dlpath'11269 ;;11270 11271 osf3* | osf4* | osf5*)11272 version_type=osf11273 need_lib_prefix=no11274 need_version=no11275 soname_spec='$libname$release$shared_ext$major'11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11277 shlibpath_var=LD_LIBRARY_PATH11278 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"11279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec11280 ;;11281 11282 rdos*)11283 dynamic_linker=no11284 ;;11285 11286 solaris*)11287 version_type=linux # correct to gnu/linux during the next big refactor11288 need_lib_prefix=no11289 need_version=no11290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11291 soname_spec='$libname$release$shared_ext$major'11292 shlibpath_var=LD_LIBRARY_PATH11293 shlibpath_overrides_runpath=yes11294 hardcode_into_libs=yes11295 # ldd complains unless libraries are executable11296 postinstall_cmds='chmod +x $lib'11297 ;;11298 11299 sunos4*)11300 version_type=sunos11301 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'11302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'11303 shlibpath_var=LD_LIBRARY_PATH11304 shlibpath_overrides_runpath=yes11305 if test yes = "$with_gnu_ld"; then11306 need_lib_prefix=no11307 fi11308 need_version=yes11309 ;;11310 11311 sysv4 | sysv4.3*)11312 version_type=linux # correct to gnu/linux during the next big refactor11313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11314 soname_spec='$libname$release$shared_ext$major'11315 shlibpath_var=LD_LIBRARY_PATH11316 case $host_vendor in11317 sni)11318 shlibpath_overrides_runpath=no11319 need_lib_prefix=no11320 runpath_var=LD_RUN_PATH11321 ;;11322 siemens)11323 need_lib_prefix=no11324 ;;11325 motorola)11326 need_lib_prefix=no11327 need_version=no11328 shlibpath_overrides_runpath=no11329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'11330 ;;11331 esac11332 ;;11333 11334 sysv4*MP*)11335 if test -d /usr/nec; then11336 version_type=linux # correct to gnu/linux during the next big refactor11337 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'11338 soname_spec='$libname$shared_ext.$major'11339 shlibpath_var=LD_LIBRARY_PATH11340 fi11341 ;;11342 11343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)11344 version_type=sco11345 need_lib_prefix=no11346 need_version=no11347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'11348 soname_spec='$libname$release$shared_ext$major'11349 shlibpath_var=LD_LIBRARY_PATH11350 shlibpath_overrides_runpath=yes11351 hardcode_into_libs=yes11352 if test yes = "$with_gnu_ld"; then11353 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'11354 else11355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'11356 case $host_os in11357 sco3.2v5*)11358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"11359 ;;11360 esac11361 fi11362 sys_lib_dlsearch_path_spec='/usr/lib'11363 ;;11364 11365 tpf*)11366 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.11367 version_type=linux # correct to gnu/linux during the next big refactor11368 need_lib_prefix=no11369 need_version=no11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11371 shlibpath_var=LD_LIBRARY_PATH11372 shlibpath_overrides_runpath=no11373 hardcode_into_libs=yes11374 ;;11375 11376 uts4*)11377 version_type=linux # correct to gnu/linux during the next big refactor11378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11379 soname_spec='$libname$release$shared_ext$major'11380 shlibpath_var=LD_LIBRARY_PATH11381 ;;11382 11383 *)11384 dynamic_linker=no11385 ;;11386 esac11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&511388 $as_echo "$dynamic_linker" >&6; }11389 test no = "$dynamic_linker" && can_build_shared=no11390 11391 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"11392 if test yes = "$GCC"; then11393 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"11394 fi11395 11396 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then11397 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec11398 fi11399 11400 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then11401 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec11402 fi11403 11404 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...11405 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec11406 11407 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code11408 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"11409 11410 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool11411 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&511510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }11511 hardcode_action=11512 if test -n "$hardcode_libdir_flag_spec" ||11513 test -n "$runpath_var" ||11514 test yes = "$hardcode_automatic"; then11515 11516 # We can hardcode non-existent directories.11517 if test no != "$hardcode_direct" &&11518 # If the only mechanism to avoid hardcoding is shlibpath_var, we11519 # have to relink, otherwise we might link with an installed library11520 # when we should be linking with a yet-to-be-installed one11521 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&11522 test no != "$hardcode_minus_L"; then11523 # Linking always hardcodes the temporary library directory.11524 hardcode_action=relink11525 else11526 # We can link without hardcoding, and we can hardcode nonexisting dirs.11527 hardcode_action=immediate11528 fi11529 else11530 # We cannot hardcode anything, or else we can only hardcode existing11531 # directories.11532 hardcode_action=unsupported11533 fi11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&511535 $as_echo "$hardcode_action" >&6; }11536 11537 if test relink = "$hardcode_action" ||11538 test yes = "$inherit_rpath"; then11539 # Fast installation is not supported11540 enable_fast_install=no11541 elif test yes = "$shlibpath_overrides_runpath" ||11542 test no = "$enable_shared"; then11543 # Fast installation is not necessary11544 enable_fast_install=needless11545 fi11546 11547 11548 11549 11550 11551 11552 if test yes != "$enable_dlopen"; then11553 enable_dlopen=unknown11554 enable_dlopen_self=unknown11555 enable_dlopen_self_static=unknown11556 else11557 lt_cv_dlopen=no11558 lt_cv_dlopen_libs=11559 11560 case $host_os in11561 beos*)11562 lt_cv_dlopen=load_add_on11563 lt_cv_dlopen_libs=11564 lt_cv_dlopen_self=yes11565 ;;11566 11567 mingw* | pw32* | cegcc*)11568 lt_cv_dlopen=LoadLibrary11569 lt_cv_dlopen_libs=11570 ;;11571 11572 cygwin*)11573 lt_cv_dlopen=dlopen11574 lt_cv_dlopen_libs=11575 ;;11576 11577 darwin*)11578 # if libdl is installed we need to link against it11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&511580 $as_echo_n "checking for dlopen in -ldl... " >&6; }11581 if ${ac_cv_lib_dl_dlopen+:} false; then :11582 $as_echo_n "(cached) " >&611583 else11584 ac_check_lib_save_LIBS=$LIBS11585 LIBS="-ldl $LIBS"11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11587 /* end confdefs.h. */11588 11589 /* Override any GCC internal prototype to avoid an error.11590 Use char because int might match the return type of a GCC11591 builtin and then its argument prototype would still apply. */11592 #ifdef __cplusplus11593 extern "C"11594 #endif11595 char dlopen ();11596 int11597 main ()11598 {11599 return dlopen ();11600 ;11601 return 0;11602 }11603 _ACEOF11604 if ac_fn_c_try_link "$LINENO"; then :11605 ac_cv_lib_dl_dlopen=yes11606 else11607 ac_cv_lib_dl_dlopen=no11608 fi11609 rm -f core conftest.err conftest.$ac_objext \11610 conftest$ac_exeext conftest.$ac_ext11611 LIBS=$ac_check_lib_save_LIBS11612 fi11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&511614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }11615 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :11616 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl11617 else11618 11619 lt_cv_dlopen=dyld11620 lt_cv_dlopen_libs=11621 lt_cv_dlopen_self=yes11622 11623 fi11624 11625 ;;11626 11627 tpf*)11628 # Don't try to run any link tests for TPF. We know it's impossible11629 # because TPF is a cross-compiler, and we know how we open DSOs.11630 lt_cv_dlopen=dlopen11631 lt_cv_dlopen_libs=11632 lt_cv_dlopen_self=no11633 ;;11634 11635 *)11636 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"11637 if test "x$ac_cv_func_shl_load" = xyes; then :11638 lt_cv_dlopen=shl_load11639 else11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&511641 $as_echo_n "checking for shl_load in -ldld... " >&6; }11642 if ${ac_cv_lib_dld_shl_load+:} false; then :11643 $as_echo_n "(cached) " >&611644 else11645 ac_check_lib_save_LIBS=$LIBS11646 LIBS="-ldld $LIBS"11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11648 /* end confdefs.h. */11649 11650 /* Override any GCC internal prototype to avoid an error.11651 Use char because int might match the return type of a GCC11652 builtin and then its argument prototype would still apply. */11653 #ifdef __cplusplus11654 extern "C"11655 #endif11656 char shl_load ();11657 int11658 main ()11659 {11660 return shl_load ();11661 ;11662 return 0;11663 }11664 _ACEOF11665 if ac_fn_c_try_link "$LINENO"; then :11666 ac_cv_lib_dld_shl_load=yes11667 else11668 ac_cv_lib_dld_shl_load=no11669 fi11670 rm -f core conftest.err conftest.$ac_objext \11671 conftest$ac_exeext conftest.$ac_ext11672 LIBS=$ac_check_lib_save_LIBS11673 fi11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&511675 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }11676 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :11677 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld11678 else11679 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"11680 if test "x$ac_cv_func_dlopen" = xyes; then :11681 lt_cv_dlopen=dlopen11682 else11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&511684 $as_echo_n "checking for dlopen in -ldl... " >&6; }11685 if ${ac_cv_lib_dl_dlopen+:} false; then :11686 $as_echo_n "(cached) " >&611687 else11688 ac_check_lib_save_LIBS=$LIBS11689 LIBS="-ldl $LIBS"11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11691 /* end confdefs.h. */11692 11693 /* Override any GCC internal prototype to avoid an error.11694 Use char because int might match the return type of a GCC11695 builtin and then its argument prototype would still apply. */11696 #ifdef __cplusplus11697 extern "C"11698 #endif11699 char dlopen ();11700 int11701 main ()11702 {11703 return dlopen ();11704 ;11705 return 0;11706 }11707 _ACEOF11708 if ac_fn_c_try_link "$LINENO"; then :11709 ac_cv_lib_dl_dlopen=yes11710 else11711 ac_cv_lib_dl_dlopen=no11712 fi11713 rm -f core conftest.err conftest.$ac_objext \11714 conftest$ac_exeext conftest.$ac_ext11715 LIBS=$ac_check_lib_save_LIBS11716 fi11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&511718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }11719 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :11720 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl11721 else11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&511723 $as_echo_n "checking for dlopen in -lsvld... " >&6; }11724 if ${ac_cv_lib_svld_dlopen+:} false; then :11725 $as_echo_n "(cached) " >&611726 else11727 ac_check_lib_save_LIBS=$LIBS11728 LIBS="-lsvld $LIBS"11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11730 /* end confdefs.h. */11731 11732 /* Override any GCC internal prototype to avoid an error.11733 Use char because int might match the return type of a GCC11734 builtin and then its argument prototype would still apply. */11735 #ifdef __cplusplus11736 extern "C"11737 #endif11738 char dlopen ();11739 int11740 main ()11741 {11742 return dlopen ();11743 ;11744 return 0;11745 }11746 _ACEOF11747 if ac_fn_c_try_link "$LINENO"; then :11748 ac_cv_lib_svld_dlopen=yes11749 else11750 ac_cv_lib_svld_dlopen=no11751 fi11752 rm -f core conftest.err conftest.$ac_objext \11753 conftest$ac_exeext conftest.$ac_ext11754 LIBS=$ac_check_lib_save_LIBS11755 fi11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&511757 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }11758 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :11759 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld11760 else11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&511762 $as_echo_n "checking for dld_link in -ldld... " >&6; }11763 if ${ac_cv_lib_dld_dld_link+:} false; then :11764 $as_echo_n "(cached) " >&611765 else11766 ac_check_lib_save_LIBS=$LIBS11767 LIBS="-ldld $LIBS"11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11769 /* end confdefs.h. */11770 11771 /* Override any GCC internal prototype to avoid an error.11772 Use char because int might match the return type of a GCC11773 builtin and then its argument prototype would still apply. */11774 #ifdef __cplusplus11775 extern "C"11776 #endif11777 char dld_link ();11778 int11779 main ()11780 {11781 return dld_link ();11782 ;11783 return 0;11784 }11785 _ACEOF11786 if ac_fn_c_try_link "$LINENO"; then :11787 ac_cv_lib_dld_dld_link=yes11788 else11789 ac_cv_lib_dld_dld_link=no11790 fi11791 rm -f core conftest.err conftest.$ac_objext \11792 conftest$ac_exeext conftest.$ac_ext11793 LIBS=$ac_check_lib_save_LIBS11794 fi11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&511796 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }11797 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :11798 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld11799 fi11800 11801 11802 fi11803 11804 11805 fi11806 11807 11808 fi11809 11810 11811 fi11812 11813 11814 fi11815 11816 ;;11817 esac11818 11819 if test no = "$lt_cv_dlopen"; then11820 enable_dlopen=no11821 else11822 enable_dlopen=yes11823 fi11824 11825 case $lt_cv_dlopen in11826 dlopen)11827 save_CPPFLAGS=$CPPFLAGS11828 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"11829 11830 save_LDFLAGS=$LDFLAGS11831 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"11832 11833 save_LIBS=$LIBS11834 LIBS="$lt_cv_dlopen_libs $LIBS"11835 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&511837 $as_echo_n "checking whether a program can dlopen itself... " >&6; }11838 if ${lt_cv_dlopen_self+:} false; then :11839 $as_echo_n "(cached) " >&611840 else11841 if test yes = "$cross_compiling"; then :11842 lt_cv_dlopen_self=cross11843 else11844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=211845 lt_status=$lt_dlunknown11846 cat > conftest.$ac_ext <<_LT_EOF11847 #line $LINENO "configure"11848 #include "confdefs.h"11849 11850 #if HAVE_DLFCN_H11851 #include <dlfcn.h>11852 #endif11853 11854 #include <stdio.h>11855 11856 #ifdef RTLD_GLOBAL11857 # define LT_DLGLOBAL RTLD_GLOBAL11858 #else11859 # ifdef DL_GLOBAL11860 # define LT_DLGLOBAL DL_GLOBAL11861 # else11862 # define LT_DLGLOBAL 011863 # endif11864 #endif11865 11866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we11867 find out it does not work in some platform. */11868 #ifndef LT_DLLAZY_OR_NOW11869 # ifdef RTLD_LAZY11870 # define LT_DLLAZY_OR_NOW RTLD_LAZY11871 # else11872 # ifdef DL_LAZY11873 # define LT_DLLAZY_OR_NOW DL_LAZY11874 # else11875 # ifdef RTLD_NOW11876 # define LT_DLLAZY_OR_NOW RTLD_NOW11877 # else11878 # ifdef DL_NOW11879 # define LT_DLLAZY_OR_NOW DL_NOW11880 # else11881 # define LT_DLLAZY_OR_NOW 011882 # endif11883 # endif11884 # endif11885 # endif11886 #endif11887 11888 /* When -fvisibility=hidden is used, assume the code has been annotated11889 correspondingly for the symbols needed. */11890 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))11891 int fnord () __attribute__((visibility("default")));11892 #endif11893 11894 int fnord () { return 42; }11895 int main ()11896 {11897 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);11898 int status = $lt_dlunknown;11899 11900 if (self)11901 {11902 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;11903 else11904 {11905 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;11906 else puts (dlerror ());11907 }11908 /* dlclose (self); */11909 }11910 else11911 puts (dlerror ());11912 11913 return status;11914 }11915 _LT_EOF11916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&511917 (eval $ac_link) 2>&511918 ac_status=$?11919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511920 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then11921 (./conftest; exit; ) >&5 2>/dev/null11922 lt_status=$?11923 case x$lt_status in11924 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;11925 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;11926 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;11927 esac11928 else :11929 # compilation failed11930 lt_cv_dlopen_self=no11931 fi11932 fi11933 rm -fr conftest*11934 11935 11936 fi11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&511938 $as_echo "$lt_cv_dlopen_self" >&6; }11939 11940 if test yes = "$lt_cv_dlopen_self"; then11941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&511943 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }11944 if ${lt_cv_dlopen_self_static+:} false; then :11945 $as_echo_n "(cached) " >&611946 else11947 if test yes = "$cross_compiling"; then :11948 lt_cv_dlopen_self_static=cross11949 else11950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=211951 lt_status=$lt_dlunknown11952 cat > conftest.$ac_ext <<_LT_EOF11953 #line $LINENO "configure"11954 #include "confdefs.h"11955 11956 #if HAVE_DLFCN_H11957 #include <dlfcn.h>11958 #endif11959 11960 #include <stdio.h>11961 11962 #ifdef RTLD_GLOBAL11963 # define LT_DLGLOBAL RTLD_GLOBAL11964 #else11965 # ifdef DL_GLOBAL11966 # define LT_DLGLOBAL DL_GLOBAL11967 # else11968 # define LT_DLGLOBAL 011969 # endif11970 #endif11971 11972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we11973 find out it does not work in some platform. */11974 #ifndef LT_DLLAZY_OR_NOW11975 # ifdef RTLD_LAZY11976 # define LT_DLLAZY_OR_NOW RTLD_LAZY11977 # else11978 # ifdef DL_LAZY11979 # define LT_DLLAZY_OR_NOW DL_LAZY11980 # else11981 # ifdef RTLD_NOW11982 # define LT_DLLAZY_OR_NOW RTLD_NOW11983 # else11984 # ifdef DL_NOW11985 # define LT_DLLAZY_OR_NOW DL_NOW11986 # else11987 # define LT_DLLAZY_OR_NOW 011988 # endif11989 # endif11990 # endif11991 # endif11992 #endif11993 11994 /* When -fvisibility=hidden is used, assume the code has been annotated11995 correspondingly for the symbols needed. */11996 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))11997 int fnord () __attribute__((visibility("default")));11998 #endif11999 12000 int fnord () { return 42; }12001 int main ()12002 {12003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);12004 int status = $lt_dlunknown;12005 12006 if (self)12007 {12008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;12009 else12010 {12011 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;12012 else puts (dlerror ());12013 }12014 /* dlclose (self); */12015 }12016 else12017 puts (dlerror ());12018 12019 return status;12020 }12021 _LT_EOF12022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&512023 (eval $ac_link) 2>&512024 ac_status=$?12025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&512026 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then12027 (./conftest; exit; ) >&5 2>/dev/null12028 lt_status=$?12029 case x$lt_status in12030 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;12031 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;12032 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;12033 esac12034 else :12035 # compilation failed12036 lt_cv_dlopen_self_static=no12037 fi12038 fi12039 rm -fr conftest*12040 12041 12042 fi12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&512044 $as_echo "$lt_cv_dlopen_self_static" >&6; }12045 fi12046 12047 CPPFLAGS=$save_CPPFLAGS12048 LDFLAGS=$save_LDFLAGS12049 LIBS=$save_LIBS12050 ;;12051 esac12052 12053 case $lt_cv_dlopen_self in12054 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;12055 *) enable_dlopen_self=unknown ;;12056 esac12057 12058 case $lt_cv_dlopen_self_static in12059 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;12060 *) enable_dlopen_self_static=unknown ;;12061 esac12062 fi12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 striplib=12081 old_striplib=12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&512083 $as_echo_n "checking whether stripping libraries is possible... " >&6; }12084 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then12085 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"12086 test -z "$striplib" && striplib="$STRIP --strip-unneeded"12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&512088 $as_echo "yes" >&6; }12089 else12090 # FIXME - insert some real tests, host_os isn't really good enough12091 case $host_os in12092 darwin*)12093 if test -n "$STRIP"; then12094 striplib="$STRIP -x"12095 old_striplib="$STRIP -S"12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&512097 $as_echo "yes" >&6; }12098 else12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512100 $as_echo "no" >&6; }12101 fi12102 ;;12103 *)12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512105 $as_echo "no" >&6; }12106 ;;12107 esac12108 fi12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 # Report what library types will actually be built12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&512123 $as_echo_n "checking if libtool supports shared libraries... " >&6; }12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&512125 $as_echo "$can_build_shared" >&6; }12126 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&512128 $as_echo_n "checking whether to build shared libraries... " >&6; }12129 test no = "$can_build_shared" && enable_shared=no12130 12131 # On AIX, shared libraries and static libraries use the same namespace, and12132 # are all built from PIC.12133 case $host_os in12134 aix3*)12135 test yes = "$enable_shared" && enable_static=no12136 if test -n "$RANLIB"; then12137 archive_cmds="$archive_cmds~\$RANLIB \$lib"12138 postinstall_cmds='$RANLIB $lib'12139 fi12140 ;;12141 12142 aix[4-9]*)12143 if test ia64 != "$host_cpu"; then12144 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in12145 yes,aix,yes) ;; # shared object as lib.so file only12146 yes,svr4,*) ;; # shared object as lib.so archive member only12147 yes,*) enable_static=no ;; # shared object in lib.a archive as well12148 esac12149 fi12150 ;;12151 esac12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&512153 $as_echo "$enable_shared" >&6; }12154 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&512156 $as_echo_n "checking whether to build static libraries... " >&6; }12157 # Make sure either enable_shared or enable_static is yes.12158 test yes = "$enable_shared" || enable_static=yes12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&512160 $as_echo "$enable_static" >&6; }12161 12162 12163 12164 12165 fi12166 ac_ext=c12167 ac_cpp='$CPP $CPPFLAGS'12168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'12169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12170 ac_compiler_gnu=$ac_cv_c_compiler_gnu12171 12172 CC=$lt_save_CC12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 ac_config_commands="$ac_config_commands libtool"12189 12190 12191 12192 12193 # Only expand once:12194 12195 12196 12197 ac_ext=cpp12198 ac_cpp='$CXXCPP $CPPFLAGS'12199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'12200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu12202 if test -z "$CXX"; then12203 if test -n "$CCC"; then12204 CXX=$CCC12205 else12206 if test -n "$ac_tool_prefix"; then12207 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC12208 do12209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.12210 set dummy $ac_tool_prefix$ac_prog; ac_word=$212211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&512212 $as_echo_n "checking for $ac_word... " >&6; }12213 if ${ac_cv_prog_CXX+:} false; then :12214 $as_echo_n "(cached) " >&612215 else12216 if test -n "$CXX"; then12217 ac_cv_prog_CXX="$CXX" # Let the user override the test.12218 else12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR12220 for as_dir in $PATH12221 do12222 IFS=$as_save_IFS12223 test -z "$as_dir" && as_dir=.12224 for ac_exec_ext in '' $ac_executable_extensions; do12225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then12226 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&512228 break 212229 fi12230 done12231 done12232 IFS=$as_save_IFS12233 12234 fi12235 fi12236 CXX=$ac_cv_prog_CXX12237 if test -n "$CXX"; then12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&512239 $as_echo "$CXX" >&6; }12240 else12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512242 $as_echo "no" >&6; }12243 fi12244 12245 12246 test -n "$CXX" && break12247 done12248 fi12249 if test -z "$CXX"; then12250 ac_ct_CXX=$CXX12251 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC12252 do12253 # Extract the first word of "$ac_prog", so it can be a program name with args.12254 set dummy $ac_prog; ac_word=$212255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&512256 $as_echo_n "checking for $ac_word... " >&6; }12257 if ${ac_cv_prog_ac_ct_CXX+:} false; then :12258 $as_echo_n "(cached) " >&612259 else12260 if test -n "$ac_ct_CXX"; then12261 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.12262 else12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR12264 for as_dir in $PATH12265 do12266 IFS=$as_save_IFS12267 test -z "$as_dir" && as_dir=.12268 for ac_exec_ext in '' $ac_executable_extensions; do12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then12270 ac_cv_prog_ac_ct_CXX="$ac_prog"12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&512272 break 212273 fi12274 done12275 done12276 IFS=$as_save_IFS12277 12278 fi12279 fi12280 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX12281 if test -n "$ac_ct_CXX"; then12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&512283 $as_echo "$ac_ct_CXX" >&6; }12284 else12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512286 $as_echo "no" >&6; }12287 fi12288 12289 12290 test -n "$ac_ct_CXX" && break12291 done12292 12293 if test "x$ac_ct_CXX" = x; then12294 CXX="g++"12295 else12296 case $cross_compiling:$ac_tool_warned in12297 yes:)12298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&512299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}12300 ac_tool_warned=yes ;;12301 esac12302 CXX=$ac_ct_CXX12303 fi12304 fi12305 12306 fi12307 fi12308 # Provide some information about the compiler.12309 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&512310 set X $ac_compile12311 ac_compiler=$212312 for ac_option in --version -v -V -qversion; do12313 { { ac_try="$ac_compiler $ac_option >&5"12314 case "(($ac_try" in12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;12316 *) ac_try_echo=$ac_try;;12317 esac12318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""12319 $as_echo "$ac_try_echo"; } >&512320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err12321 ac_status=$?12322 if test -s conftest.err; then12323 sed '10a\12324 ... rest of stderr output deleted ...12325 10q' conftest.err >conftest.er112326 cat conftest.er1 >&512327 fi12328 rm -f conftest.er1 conftest.err12329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&512330 test $ac_status = 0; }12331 done12332 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&512334 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }12335 if ${ac_cv_cxx_compiler_gnu+:} false; then :12336 $as_echo_n "(cached) " >&612337 else12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12339 /* end confdefs.h. */12340 12341 int12342 main ()12343 {12344 #ifndef __GNUC__12345 choke me12346 #endif12347 12348 ;12349 return 0;12350 }12351 _ACEOF12352 if ac_fn_cxx_try_compile "$LINENO"; then :12353 ac_compiler_gnu=yes12354 else12355 ac_compiler_gnu=no12356 fi12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12358 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu12359 12360 fi12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&512362 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }12363 if test $ac_compiler_gnu = yes; then12364 GXX=yes12365 else12366 GXX=12367 fi12368 ac_test_CXXFLAGS=${CXXFLAGS+set}12369 ac_save_CXXFLAGS=$CXXFLAGS12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&512371 $as_echo_n "checking whether $CXX accepts -g... " >&6; }12372 if ${ac_cv_prog_cxx_g+:} false; then :12373 $as_echo_n "(cached) " >&612374 else12375 ac_save_cxx_werror_flag=$ac_cxx_werror_flag12376 ac_cxx_werror_flag=yes12377 ac_cv_prog_cxx_g=no12378 CXXFLAGS="-g"12379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12380 /* end confdefs.h. */12381 12382 int12383 main ()12384 {12385 12386 ;12387 return 0;12388 }12389 _ACEOF12390 if ac_fn_cxx_try_compile "$LINENO"; then :12391 ac_cv_prog_cxx_g=yes12392 else12393 CXXFLAGS=""12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12395 /* end confdefs.h. */12396 12397 int12398 main ()12399 {12400 12401 ;12402 return 0;12403 }12404 _ACEOF12405 if ac_fn_cxx_try_compile "$LINENO"; then :12406 12407 else12408 ac_cxx_werror_flag=$ac_save_cxx_werror_flag12409 CXXFLAGS="-g"12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12411 /* end confdefs.h. */12412 12413 int12414 main ()12415 {12416 12417 ;12418 return 0;12419 }12420 _ACEOF12421 if ac_fn_cxx_try_compile "$LINENO"; then :12422 ac_cv_prog_cxx_g=yes12423 fi12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12425 fi12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12427 fi12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12429 ac_cxx_werror_flag=$ac_save_cxx_werror_flag12430 fi12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&512432 $as_echo "$ac_cv_prog_cxx_g" >&6; }12433 if test "$ac_test_CXXFLAGS" = set; then12434 CXXFLAGS=$ac_save_CXXFLAGS12435 elif test $ac_cv_prog_cxx_g = yes; then12436 if test "$GXX" = yes; then12437 CXXFLAGS="-g -O2"12438 else12439 CXXFLAGS="-g"12440 fi12441 else12442 if test "$GXX" = yes; then12443 CXXFLAGS="-O2"12444 else12445 CXXFLAGS=12446 fi12447 fi12448 ac_ext=c12449 ac_cpp='$CPP $CPPFLAGS'12450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'12451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12452 ac_compiler_gnu=$ac_cv_c_compiler_gnu12453 12454 depcc="$CXX" am_compiler_list=12455 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&512457 $as_echo_n "checking dependency style of $depcc... " >&6; }12458 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :12459 $as_echo_n "(cached) " >&612460 else12461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then12462 # We make a subdir and do the tests there. Otherwise we can end up12463 # making bogus files that we don't know about and never remove. For12464 # instance it was reported that on HP-UX the gcc test will end up12465 # making a dummy file named 'D' -- because '-MD' means "put the output12466 # in D".12467 rm -rf conftest.dir12468 mkdir conftest.dir12469 # Copy depcomp to subdir because otherwise we won't find it if we're12470 # using a relative directory.12471 cp "$am_depcomp" conftest.dir12472 cd conftest.dir12473 # We will build objects and dependencies in a subdirectory because12474 # it helps to detect inapplicable dependency modes. For instance12475 # both Tru64's cc and ICC support -MD to output dependencies as a12476 # side effect of compilation, but ICC will put the dependencies in12477 # the current directory while Tru64 will put them in the object12478 # directory.12479 mkdir sub12480 12481 am_cv_CXX_dependencies_compiler_type=none12482 if test "$am_compiler_list" = ""; then12483 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`12484 fi12485 am__universal=false12486 case " $depcc " in #(12487 *\ -arch\ *\ -arch\ *) am__universal=true ;;12488 esac12489 12490 for depmode in $am_compiler_list; do12491 # Setup a source with many dependencies, because some compilers12492 # like to wrap large dependency lists on column 80 (with \), and12493 # we should not choose a depcomp mode which is confused by this.12494 #12495 # We need to recreate these files for each test, as the compiler may12496 # overwrite some of them when testing with obscure command lines.12497 # This happens at least with the AIX C compiler.12498 : > sub/conftest.c12499 for i in 1 2 3 4 5 6; do12500 echo '#include "conftst'$i'.h"' >> sub/conftest.c12501 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with12502 # Solaris 10 /bin/sh.12503 echo '/* dummy */' > sub/conftst$i.h12504 done12505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf12506 12507 # We check with '-c' and '-o' for the sake of the "dashmstdout"12508 # mode. It turns out that the SunPro C++ compiler does not properly12509 # handle '-M -o', and we need to detect this. Also, some Intel12510 # versions had trouble with output in subdirs.12511 am__obj=sub/conftest.${OBJEXT-o}12512 am__minus_obj="-o $am__obj"12513 case $depmode in12514 gcc)12515 # This depmode causes a compiler race in universal mode.12516 test "$am__universal" = false || continue12517 ;;12518 nosideeffect)12519 # After this tag, mechanisms are not by side-effect, so they'll12520 # only be used when explicitly requested.12521 if test "x$enable_dependency_tracking" = xyes; then12522 continue12523 else12524 break12525 fi12526 ;;12527 msvc7 | msvc7msys | msvisualcpp | msvcmsys)12528 # This compiler won't grok '-c -o', but also, the minuso test has12529 # not run yet. These depmodes are late enough in the game, and12530 # so weak that their functioning should not be impacted.12531 am__obj=conftest.${OBJEXT-o}12532 am__minus_obj=12533 ;;12534 none) break ;;12535 esac12536 if depmode=$depmode \12537 source=sub/conftest.c object=$am__obj \12538 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \12539 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \12540 >/dev/null 2>conftest.err &&12541 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&12542 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&12543 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&12544 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then12545 # icc doesn't choke on unknown options, it will just issue warnings12546 # or remarks (even with -Werror). So we grep stderr for any message12547 # that says an option was ignored or not supported.12548 # When given -MP, icc 7.0 and 7.1 complain thusly:12549 # icc: Command line warning: ignoring option '-M'; no argument required12550 # The diagnosis changed in icc 8.0:12551 # icc: Command line remark: option '-MP' not supported12552 if (grep 'ignoring option' conftest.err ||12553 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else12554 am_cv_CXX_dependencies_compiler_type=$depmode12555 break12556 fi12557 fi12558 done12559 12560 cd ..12561 rm -rf conftest.dir12562 else12563 am_cv_CXX_dependencies_compiler_type=none12564 fi12565 12566 fi12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&512568 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }12569 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type12570 12571 if12572 test "x$enable_dependency_tracking" != xno \12573 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then12574 am__fastdepCXX_TRUE=12575 am__fastdepCXX_FALSE='#'12576 else12577 am__fastdepCXX_TRUE='#'12578 am__fastdepCXX_FALSE=12579 fi12580 12581 12582 12583 12584 func_stripname_cnf ()12585 {12586 case $2 in12587 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;12588 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;12589 esac12590 } # func_stripname_cnf12591 12592 if test -n "$CXX" && ( test no != "$CXX" &&12593 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||12594 (test g++ != "$CXX"))); then12595 ac_ext=cpp12596 ac_cpp='$CXXCPP $CPPFLAGS'12597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'12598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&512601 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }12602 if test -z "$CXXCPP"; then12603 if ${ac_cv_prog_CXXCPP+:} false; then :12604 $as_echo_n "(cached) " >&612605 else12606 # Double quotes because CXXCPP needs to be expanded12607 for CXXCPP in "$CXX -E" "/lib/cpp"12608 do12609 ac_preproc_ok=false12610 for ac_cxx_preproc_warn_flag in '' yes12611 do12612 # Use a header file that comes with gcc, so configuring glibc12613 # with a fresh cross-compiler works.12614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since12615 # <limits.h> exists even on freestanding compilers.12616 # On the NeXT, cc -E runs the code through the compiler's parser,12617 # not just through cpp. "Syntax error" is here to catch this case.12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12619 /* end confdefs.h. */12620 #ifdef __STDC__12621 # include <limits.h>12622 #else12623 # include <assert.h>12624 #endif12625 Syntax error12626 _ACEOF12627 if ac_fn_cxx_try_cpp "$LINENO"; then :12628 12629 else12630 # Broken: fails on valid input.12631 continue12632 fi12633 rm -f conftest.err conftest.i conftest.$ac_ext12634 12635 # OK, works on sane cases. Now check whether nonexistent headers12636 # can be detected and how.12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12638 /* end confdefs.h. */12639 #include <ac_nonexistent.h>12640 _ACEOF12641 if ac_fn_cxx_try_cpp "$LINENO"; then :12642 # Broken: success on invalid input.12643 continue12644 else12645 # Passes both tests.12646 ac_preproc_ok=:12647 break12648 fi12649 rm -f conftest.err conftest.i conftest.$ac_ext12650 12651 done12652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.12653 rm -f conftest.i conftest.err conftest.$ac_ext12654 if $ac_preproc_ok; then :12655 break12656 fi12657 12658 done12659 ac_cv_prog_CXXCPP=$CXXCPP12660 12661 fi12662 CXXCPP=$ac_cv_prog_CXXCPP12663 else12664 ac_cv_prog_CXXCPP=$CXXCPP12665 fi12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&512667 $as_echo "$CXXCPP" >&6; }12668 ac_preproc_ok=false12669 for ac_cxx_preproc_warn_flag in '' yes12670 do12671 # Use a header file that comes with gcc, so configuring glibc12672 # with a fresh cross-compiler works.12673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since12674 # <limits.h> exists even on freestanding compilers.12675 # On the NeXT, cc -E runs the code through the compiler's parser,12676 # not just through cpp. "Syntax error" is here to catch this case.12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12678 /* end confdefs.h. */12679 #ifdef __STDC__12680 # include <limits.h>12681 #else12682 # include <assert.h>12683 #endif12684 Syntax error12685 _ACEOF12686 if ac_fn_cxx_try_cpp "$LINENO"; then :12687 12688 else12689 # Broken: fails on valid input.12690 continue12691 fi12692 rm -f conftest.err conftest.i conftest.$ac_ext12693 12694 # OK, works on sane cases. Now check whether nonexistent headers12695 # can be detected and how.12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12697 /* end confdefs.h. */12698 #include <ac_nonexistent.h>12699 _ACEOF12700 if ac_fn_cxx_try_cpp "$LINENO"; then :12701 # Broken: success on invalid input.12702 continue12703 else12704 # Passes both tests.12705 ac_preproc_ok=:12706 break12707 fi12708 rm -f conftest.err conftest.i conftest.$ac_ext12709 12710 done12711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.12712 rm -f conftest.i conftest.err conftest.$ac_ext12713 if $ac_preproc_ok; then :12714 12715 else12716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&512717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}12718 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check12719 See \`config.log' for more details" "$LINENO" 5; }12720 fi12721 12722 ac_ext=c12723 ac_cpp='$CPP $CPPFLAGS'12724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'12725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12726 ac_compiler_gnu=$ac_cv_c_compiler_gnu12727 12728 else12729 _lt_caught_CXX_error=yes12730 fi12731 12732 ac_ext=cpp12733 ac_cpp='$CXXCPP $CPPFLAGS'12734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'12735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu12737 12738 archive_cmds_need_lc_CXX=no12739 allow_undefined_flag_CXX=12740 always_export_symbols_CXX=no12741 archive_expsym_cmds_CXX=12742 compiler_needs_object_CXX=no12743 export_dynamic_flag_spec_CXX=12744 hardcode_direct_CXX=no12745 hardcode_direct_absolute_CXX=no12746 hardcode_libdir_flag_spec_CXX=12747 hardcode_libdir_separator_CXX=12748 hardcode_minus_L_CXX=no12749 hardcode_shlibpath_var_CXX=unsupported12750 hardcode_automatic_CXX=no12751 inherit_rpath_CXX=no12752 module_cmds_CXX=12753 module_expsym_cmds_CXX=12754 link_all_deplibs_CXX=unknown12755 old_archive_cmds_CXX=$old_archive_cmds12756 reload_flag_CXX=$reload_flag12757 reload_cmds_CXX=$reload_cmds12758 no_undefined_flag_CXX=12759 whole_archive_flag_spec_CXX=12760 enable_shared_with_static_runtimes_CXX=no12761 12762 # Source file extension for C++ test sources.12763 ac_ext=cpp12764 12765 # Object file extension for compiled C++ test sources.12766 objext=o12767 objext_CXX=$objext12768 12769 # No sense in running all these tests if we already determined that12770 # the CXX compiler isn't working. Some variables (like enable_shared)12771 # are currently assumed to apply to all compilers on this platform,12772 # and will be corrupted by setting them based on a non-working compiler.12773 if test yes != "$_lt_caught_CXX_error"; then12774 # Code to be used in simple compile tests12775 lt_simple_compile_test_code="int some_variable = 0;"12776 12777 # Code to be used in simple link tests12778 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'12779 12780 # ltmain only uses $CC for tagged configurations so make sure $CC is set.12781 12782 12783 12784 12785 12786 12787 # If no C compiler was specified, use CC.12788 LTCC=${LTCC-"$CC"}12789 12790 # If no C compiler flags were specified, use CFLAGS.12791 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}12792 12793 # Allow CC to be a program name with arguments.12794 compiler=$CC12795 12796 12797 # save warnings/boilerplate of simple test code12798 ac_outfile=conftest.$ac_objext12799 echo "$lt_simple_compile_test_code" >conftest.$ac_ext12800 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err12801 _lt_compiler_boilerplate=`cat conftest.err`12802 $RM conftest*12803 12804 ac_outfile=conftest.$ac_objext12805 echo "$lt_simple_link_test_code" >conftest.$ac_ext12806 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err12807 _lt_linker_boilerplate=`cat conftest.err`12808 $RM -r conftest*12809 12810 12811 # Allow CC to be a program name with arguments.12812 lt_save_CC=$CC12813 lt_save_CFLAGS=$CFLAGS12814 lt_save_LD=$LD12815 lt_save_GCC=$GCC12816 GCC=$GXX12817 lt_save_with_gnu_ld=$with_gnu_ld12818 lt_save_path_LD=$lt_cv_path_LD12819 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then12820 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx12821 else12822 $as_unset lt_cv_prog_gnu_ld12823 fi12824 if test -n "${lt_cv_path_LDCXX+set}"; then12825 lt_cv_path_LD=$lt_cv_path_LDCXX12826 else12827 $as_unset lt_cv_path_LD12828 fi12829 test -z "${LDCXX+set}" || LD=$LDCXX12830 CC=${CXX-"c++"}12831 CFLAGS=$CXXFLAGS12832 compiler=$CC12833 compiler_CXX=$CC12834 func_cc_basename $compiler12835 cc_basename=$func_cc_basename_result12836 12837 12838 if test -n "$compiler"; then12839 # We don't want -fno-exception when compiling C++ code, so set the12840 # no_builtin_flag separately12841 if test yes = "$GXX"; then12842 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'12843 else12844 lt_prog_compiler_no_builtin_flag_CXX=12845 fi12846 12847 if test yes = "$GXX"; then12848 # Set up default GNU C++ configuration12849 12850 12851 12852 # Check whether --with-gnu-ld was given.12853 if test "${with_gnu_ld+set}" = set; then :12854 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes12855 else12856 with_gnu_ld=no12857 fi12858 12859 ac_prog=ld12860 if test yes = "$GCC"; then12861 # Check if gcc -print-prog-name=ld gives a path.12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&512863 $as_echo_n "checking for ld used by $CC... " >&6; }12864 case $host in12865 *-*-mingw*)12866 # gcc leaves a trailing carriage return, which upsets mingw12867 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;12868 *)12869 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;12870 esac12871 case $ac_prog in12872 # Accept absolute paths.12873 [\\/]* | ?:[\\/]*)12874 re_direlt='/[^/][^/]*/\.\./'12875 # Canonicalize the pathname of ld12876 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`12877 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do12878 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`12879 done12880 test -z "$LD" && LD=$ac_prog12881 ;;12882 "")12883 # If it fails, then pretend we aren't using GCC.12884 ac_prog=ld12885 ;;12886 *)12887 # If it is relative, then search for the first ld in PATH.12888 with_gnu_ld=unknown12889 ;;12890 esac12891 elif test yes = "$with_gnu_ld"; then12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&512893 $as_echo_n "checking for GNU ld... " >&6; }12894 else12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&512896 $as_echo_n "checking for non-GNU ld... " >&6; }12897 fi12898 if ${lt_cv_path_LD+:} false; then :12899 $as_echo_n "(cached) " >&612900 else12901 if test -z "$LD"; then12902 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR12903 for ac_dir in $PATH; do12904 IFS=$lt_save_ifs12905 test -z "$ac_dir" && ac_dir=.12906 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then12907 lt_cv_path_LD=$ac_dir/$ac_prog12908 # Check to see if the program is GNU ld. I'd rather use --version,12909 # but apparently some variants of GNU ld only accept -v.12910 # Break only if it was the GNU/non-GNU ld that we prefer.12911 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in12912 *GNU* | *'with BFD'*)12913 test no != "$with_gnu_ld" && break12914 ;;12915 *)12916 test yes != "$with_gnu_ld" && break12917 ;;12918 esac12919 fi12920 done12921 IFS=$lt_save_ifs12922 else12923 lt_cv_path_LD=$LD # Let the user override the test with a path.12924 fi12925 fi12926 12927 LD=$lt_cv_path_LD12928 if test -n "$LD"; then12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&512930 $as_echo "$LD" >&6; }12931 else12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512933 $as_echo "no" >&6; }12934 fi12935 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 512936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&512937 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }12938 if ${lt_cv_prog_gnu_ld+:} false; then :12939 $as_echo_n "(cached) " >&612940 else12941 # I'd rather use --version here, but apparently some GNU lds only accept -v.12942 case `$LD -v 2>&1 </dev/null` in12943 *GNU* | *'with BFD'*)12944 lt_cv_prog_gnu_ld=yes12945 ;;12946 *)12947 lt_cv_prog_gnu_ld=no12948 ;;12949 esac12950 fi12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&512952 $as_echo "$lt_cv_prog_gnu_ld" >&6; }12953 with_gnu_ld=$lt_cv_prog_gnu_ld12954 12955 12956 12957 12958 12959 12960 12961 # Check if GNU C++ uses GNU ld as the underlying linker, since the12962 # archiving commands below assume that GNU ld is being used.12963 if test yes = "$with_gnu_ld"; then12964 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'12965 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'12966 12967 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'12968 export_dynamic_flag_spec_CXX='$wl--export-dynamic'12969 12970 # If archive_cmds runs LD, not CC, wlarc should be empty12971 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to12972 # investigate it a little bit more. (MM)12973 wlarc='$wl'12974 12975 # ancient GNU ld didn't support --whole-archive et. al.12976 if eval "`$CC -print-prog-name=ld` --help 2>&1" |12977 $GREP 'no-whole-archive' > /dev/null; then12978 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'12979 else12980 whole_archive_flag_spec_CXX=12981 fi12982 else12983 with_gnu_ld=no12984 wlarc=12985 12986 # A generic and very simple default shared library creation12987 # command for GNU C++ for the case where it uses the native12988 # linker, instead of GNU ld. If possible, this setting should12989 # overridden to take advantage of the native linker features on12990 # the platform it is being used on.12991 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'12992 fi12993 12994 # Commands to make compiler produce verbose output that lists12995 # what "hidden" libraries, object files and flags are used when12996 # linking a shared library.12997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'12998 12999 else13000 GXX=no13001 with_gnu_ld=no13002 wlarc=13003 fi13004 13005 # PORTME: fill in a description of your system's C++ link characteristics13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&513007 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }13008 ld_shlibs_CXX=yes13009 case $host_os in13010 aix3*)13011 # FIXME: insert proper C++ library support13012 ld_shlibs_CXX=no13013 ;;13014 aix[4-9]*)13015 if test ia64 = "$host_cpu"; then13016 # On IA64, the linker does run time linking by default, so we don't13017 # have to do anything special.13018 aix_use_runtimelinking=no13019 exp_sym_flag='-Bexport'13020 no_entry_flag=13021 else13022 aix_use_runtimelinking=no13023 13024 # Test if we are trying to use run time linking or normal13025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we13026 # have runtime linking enabled, and use it for executables.13027 # For shared libraries, we enable/disable runtime linking13028 # depending on the kind of the shared library created -13029 # when "with_aix_soname,aix_use_runtimelinking" is:13030 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables13031 # "aix,yes" lib.so shared, rtl:yes, for executables13032 # lib.a static archive13033 # "both,no" lib.so.V(shr.o) shared, rtl:yes13034 # lib.a(lib.so.V) shared, rtl:no, for executables13035 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables13036 # lib.a(lib.so.V) shared, rtl:no13037 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables13038 # lib.a static archive13039 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)13040 for ld_flag in $LDFLAGS; do13041 case $ld_flag in13042 *-brtl*)13043 aix_use_runtimelinking=yes13044 break13045 ;;13046 esac13047 done13048 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then13049 # With aix-soname=svr4, we create the lib.so.V shared archives only,13050 # so we don't have lib.a shared libs to link our executables.13051 # We have to force runtime linking in this case.13052 aix_use_runtimelinking=yes13053 LDFLAGS="$LDFLAGS -Wl,-brtl"13054 fi13055 ;;13056 esac13057 13058 exp_sym_flag='-bexport'13059 no_entry_flag='-bnoentry'13060 fi13061 13062 # When large executables or shared objects are built, AIX ld can13063 # have problems creating the table of contents. If linking a library13064 # or program results in "error TOC overflow" add -mminimal-toc to13065 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not13066 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.13067 13068 archive_cmds_CXX=''13069 hardcode_direct_CXX=yes13070 hardcode_direct_absolute_CXX=yes13071 hardcode_libdir_separator_CXX=':'13072 link_all_deplibs_CXX=yes13073 file_list_spec_CXX='$wl-f,'13074 case $with_aix_soname,$aix_use_runtimelinking in13075 aix,*) ;; # no import file13076 svr4,* | *,yes) # use import file13077 # The Import File defines what to hardcode.13078 hardcode_direct_CXX=no13079 hardcode_direct_absolute_CXX=no13080 ;;13081 esac13082 13083 if test yes = "$GXX"; then13084 case $host_os in aix4.[012]|aix4.[012].*)13085 # We only want to do this on AIX 4.2 and lower, the check13086 # below for broken collect2 doesn't work under 4.3+13087 collect2name=`$CC -print-prog-name=collect2`13088 if test -f "$collect2name" &&13089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null13090 then13091 # We have reworked collect213092 :13093 else13094 # We have old collect213095 hardcode_direct_CXX=unsupported13096 # It fails to find uninstalled libraries when the uninstalled13097 # path is not listed in the libpath. Setting hardcode_minus_L13098 # to unsupported forces relinking13099 hardcode_minus_L_CXX=yes13100 hardcode_libdir_flag_spec_CXX='-L$libdir'13101 hardcode_libdir_separator_CXX=13102 fi13103 esac13104 shared_flag='-shared'13105 if test yes = "$aix_use_runtimelinking"; then13106 shared_flag=$shared_flag' $wl-G'13107 fi13108 # Need to ensure runtime linking is disabled for the traditional13109 # shared library, or the linker may eventually find shared libraries13110 # /with/ Import File - we do not want to mix them.13111 shared_flag_aix='-shared'13112 shared_flag_svr4='-shared $wl-G'13113 else13114 # not using gcc13115 if test ia64 = "$host_cpu"; then13116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release13117 # chokes on -Wl,-G. The following line is correct:13118 shared_flag='-G'13119 else13120 if test yes = "$aix_use_runtimelinking"; then13121 shared_flag='$wl-G'13122 else13123 shared_flag='$wl-bM:SRE'13124 fi13125 shared_flag_aix='$wl-bM:SRE'13126 shared_flag_svr4='$wl-G'13127 fi13128 fi13129 13130 export_dynamic_flag_spec_CXX='$wl-bexpall'13131 # It seems that -bexpall does not export symbols beginning with13132 # underscore (_), so it is better to generate a list of symbols to13133 # export.13134 always_export_symbols_CXX=yes13135 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then13136 # Warning - without using the other runtime loading flags (-brtl),13137 # -berok will link without error, but may produce a broken library.13138 # The "-G" linker flag allows undefined symbols.13139 no_undefined_flag_CXX='-bernotok'13140 # Determine the default libpath from the value encoded in an empty13141 # executable.13142 if test set = "${lt_cv_aix_libpath+set}"; then13143 aix_libpath=$lt_cv_aix_libpath13144 else13145 if ${lt_cv_aix_libpath__CXX+:} false; then :13146 $as_echo_n "(cached) " >&613147 else13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13149 /* end confdefs.h. */13150 13151 int13152 main ()13153 {13154 13155 ;13156 return 0;13157 }13158 _ACEOF13159 if ac_fn_cxx_try_link "$LINENO"; then :13160 13161 lt_aix_libpath_sed='13162 /Import File Strings/,/^$/ {13163 /^0/ {13164 s/^0 *\([^ ]*\) *$/\1/13165 p13166 }13167 }'13168 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13169 # Check for a 64-bit object if we didn't find anything.13170 if test -z "$lt_cv_aix_libpath__CXX"; then13171 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13172 fi13173 fi13174 rm -f core conftest.err conftest.$ac_objext \13175 conftest$ac_exeext conftest.$ac_ext13176 if test -z "$lt_cv_aix_libpath__CXX"; then13177 lt_cv_aix_libpath__CXX=/usr/lib:/lib13178 fi13179 13180 fi13181 13182 aix_libpath=$lt_cv_aix_libpath__CXX13183 fi13184 13185 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"13186 13187 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag13188 else13189 if test ia64 = "$host_cpu"; then13190 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'13191 allow_undefined_flag_CXX="-z nodefs"13192 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"13193 else13194 # Determine the default libpath from the value encoded in an13195 # empty executable.13196 if test set = "${lt_cv_aix_libpath+set}"; then13197 aix_libpath=$lt_cv_aix_libpath13198 else13199 if ${lt_cv_aix_libpath__CXX+:} false; then :13200 $as_echo_n "(cached) " >&613201 else13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13203 /* end confdefs.h. */13204 13205 int13206 main ()13207 {13208 13209 ;13210 return 0;13211 }13212 _ACEOF13213 if ac_fn_cxx_try_link "$LINENO"; then :13214 13215 lt_aix_libpath_sed='13216 /Import File Strings/,/^$/ {13217 /^0/ {13218 s/^0 *\([^ ]*\) *$/\1/13219 p13220 }13221 }'13222 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13223 # Check for a 64-bit object if we didn't find anything.13224 if test -z "$lt_cv_aix_libpath__CXX"; then13225 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13226 fi13227 fi13228 rm -f core conftest.err conftest.$ac_objext \13229 conftest$ac_exeext conftest.$ac_ext13230 if test -z "$lt_cv_aix_libpath__CXX"; then13231 lt_cv_aix_libpath__CXX=/usr/lib:/lib13232 fi13233 13234 fi13235 13236 aix_libpath=$lt_cv_aix_libpath__CXX13237 fi13238 13239 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"13240 # Warning - without using the other run time loading flags,13241 # -berok will link without error, but may produce a broken library.13242 no_undefined_flag_CXX=' $wl-bernotok'13243 allow_undefined_flag_CXX=' $wl-berok'13244 if test yes = "$with_gnu_ld"; then13245 # We only use this code for GNU lds that support --whole-archive.13246 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'13247 else13248 # Exported symbols can be pulled into shared objects from archives13249 whole_archive_flag_spec_CXX='$convenience'13250 fi13251 archive_cmds_need_lc_CXX=yes13252 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'13253 # -brtl affects multiple linker settings, -berok does not and is overridden later13254 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'13255 if test svr4 != "$with_aix_soname"; then13256 # This is similar to how AIX traditionally builds its shared13257 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.13258 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'13259 fi13260 if test aix != "$with_aix_soname"; then13261 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'13262 else13263 # used by -dlpreopen to get the symbols13264 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'13265 fi13266 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'13267 fi13268 fi13269 ;;13270 13271 beos*)13272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then13273 allow_undefined_flag_CXX=unsupported13274 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc13275 # support --undefined. This deserves some investigation. FIXME13276 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13277 else13278 ld_shlibs_CXX=no13279 fi13280 ;;13281 13282 chorus*)13283 case $cc_basename in13284 *)13285 # FIXME: insert proper C++ library support13286 ld_shlibs_CXX=no13287 ;;13288 esac13289 ;;13290 13291 cygwin* | mingw* | pw32* | cegcc*)13292 case $GXX,$cc_basename in13293 ,cl* | no,cl*)13294 # Native MSVC13295 # hardcode_libdir_flag_spec is actually meaningless, as there is13296 # no search path for DLLs.13297 hardcode_libdir_flag_spec_CXX=' '13298 allow_undefined_flag_CXX=unsupported13299 always_export_symbols_CXX=yes13300 file_list_spec_CXX='@'13301 # Tell ltmain to make .lib files, not .a files.13302 libext=lib13303 # Tell ltmain to make .dll files, not .so files.13304 shrext_cmds=.dll13305 # FIXME: Setting linknames here is a bad hack.13306 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='13307 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then13308 cp "$export_symbols" "$output_objdir/$soname.def";13309 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";13310 else13311 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;13312 fi~13313 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~13314 linknames='13315 # The linker will not automatically build a static lib if we build a DLL.13316 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'13317 enable_shared_with_static_runtimes_CXX=yes13318 # Don't use ranlib13319 old_postinstall_cmds_CXX='chmod 644 $oldlib'13320 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~13321 lt_tool_outputfile="@TOOL_OUTPUT@"~13322 case $lt_outputfile in13323 *.exe|*.EXE) ;;13324 *)13325 lt_outputfile=$lt_outputfile.exe13326 lt_tool_outputfile=$lt_tool_outputfile.exe13327 ;;13328 esac~13329 func_to_tool_file "$lt_outputfile"~13330 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then13331 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;13332 $RM "$lt_outputfile.manifest";13333 fi'13334 ;;13335 *)13336 # g++13337 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,13338 # as there is no search path for DLLs.13339 hardcode_libdir_flag_spec_CXX='-L$libdir'13340 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'13341 allow_undefined_flag_CXX=unsupported13342 always_export_symbols_CXX=no13343 enable_shared_with_static_runtimes_CXX=yes13344 13345 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then13346 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'13347 # If the export-symbols file already is a .def file, use it as13348 # is; otherwise, prepend EXPORTS...13349 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then13350 cp $export_symbols $output_objdir/$soname.def;13351 else13352 echo EXPORTS > $output_objdir/$soname.def;13353 cat $export_symbols >> $output_objdir/$soname.def;13354 fi~13355 $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'13356 else13357 ld_shlibs_CXX=no13358 fi13359 ;;13360 esac13361 ;;13362 darwin* | rhapsody*)13363 13364 13365 archive_cmds_need_lc_CXX=no13366 hardcode_direct_CXX=no13367 hardcode_automatic_CXX=yes13368 hardcode_shlibpath_var_CXX=unsupported13369 if test yes = "$lt_cv_ld_force_load"; then13370 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'13371 13372 else13373 whole_archive_flag_spec_CXX=''13374 fi13375 link_all_deplibs_CXX=yes13376 allow_undefined_flag_CXX=$_lt_dar_allow_undefined13377 case $cc_basename in13378 ifort*|nagfor*) _lt_dar_can_shared=yes ;;13379 *) _lt_dar_can_shared=$GCC ;;13380 esac13381 if test yes = "$_lt_dar_can_shared"; then13382 output_verbose_link_cmd=func_echo_all13383 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"13384 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"13385 archive_expsym_cmds_CXX="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"13386 module_expsym_cmds_CXX="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"13387 if test yes != "$lt_cv_apple_cc_single_mod"; then13388 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$_lt_dsymutil"13389 archive_expsym_cmds_CXX="sed '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$_lt_dar_export_syms$_lt_dsymutil"13390 fi13391 13392 else13393 ld_shlibs_CXX=no13394 fi13395 13396 ;;13397 13398 os2*)13399 hardcode_libdir_flag_spec_CXX='-L$libdir'13400 hardcode_minus_L_CXX=yes13401 allow_undefined_flag_CXX=unsupported13402 shrext_cmds=.dll13403 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~13404 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~13405 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~13406 $ECHO EXPORTS >> $output_objdir/$libname.def~13407 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~13408 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~13409 emximp -o $lib $output_objdir/$libname.def'13410 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~13411 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~13412 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~13413 $ECHO EXPORTS >> $output_objdir/$libname.def~13414 prefix_cmds="$SED"~13415 if test EXPORTS = "`$SED 1q $export_symbols`"; then13416 prefix_cmds="$prefix_cmds -e 1d";13417 fi~13418 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~13419 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~13420 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~13421 emximp -o $lib $output_objdir/$libname.def'13422 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'13423 enable_shared_with_static_runtimes_CXX=yes13424 ;;13425 13426 dgux*)13427 case $cc_basename in13428 ec++*)13429 # FIXME: insert proper C++ library support13430 ld_shlibs_CXX=no13431 ;;13432 ghcx*)13433 # Green Hills C++ Compiler13434 # FIXME: insert proper C++ library support13435 ld_shlibs_CXX=no13436 ;;13437 *)13438 # FIXME: insert proper C++ library support13439 ld_shlibs_CXX=no13440 ;;13441 esac13442 ;;13443 13444 freebsd2.*)13445 # C++ shared libraries reported to be fairly broken before13446 # switch to ELF13447 ld_shlibs_CXX=no13448 ;;13449 13450 freebsd-elf*)13451 archive_cmds_need_lc_CXX=no13452 ;;13453 13454 freebsd* | dragonfly*)13455 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF13456 # conventions13457 ld_shlibs_CXX=yes13458 ;;13459 13460 haiku*)13461 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13462 link_all_deplibs_CXX=yes13463 ;;13464 13465 hpux9*)13466 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'13467 hardcode_libdir_separator_CXX=:13468 export_dynamic_flag_spec_CXX='$wl-E'13469 hardcode_direct_CXX=yes13470 hardcode_minus_L_CXX=yes # Not in the search PATH,13471 # but as the default13472 # location of the library.13473 13474 case $cc_basename in13475 CC*)13476 # FIXME: insert proper C++ library support13477 ld_shlibs_CXX=no13478 ;;13479 aCC*)13480 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'13481 # Commands to make compiler produce verbose output that lists13482 # what "hidden" libraries, object files and flags are used when13483 # linking a shared library.13484 #13485 # There doesn't appear to be a way to prevent this compiler from13486 # explicitly linking system object files so we need to strip them13487 # from the output so that they don't get included in the library13488 # dependencies.13489 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'13490 ;;13491 *)13492 if test yes = "$GXX"; then13493 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'13494 else13495 # FIXME: insert proper C++ library support13496 ld_shlibs_CXX=no13497 fi13498 ;;13499 esac13500 ;;13501 13502 hpux10*|hpux11*)13503 if test no = "$with_gnu_ld"; then13504 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'13505 hardcode_libdir_separator_CXX=:13506 13507 case $host_cpu in13508 hppa*64*|ia64*)13509 ;;13510 *)13511 export_dynamic_flag_spec_CXX='$wl-E'13512 ;;13513 esac13514 fi13515 case $host_cpu in13516 hppa*64*|ia64*)13517 hardcode_direct_CXX=no13518 hardcode_shlibpath_var_CXX=no13519 ;;13520 *)13521 hardcode_direct_CXX=yes13522 hardcode_direct_absolute_CXX=yes13523 hardcode_minus_L_CXX=yes # Not in the search PATH,13524 # but as the default13525 # location of the library.13526 ;;13527 esac13528 13529 case $cc_basename in13530 CC*)13531 # FIXME: insert proper C++ library support13532 ld_shlibs_CXX=no13533 ;;13534 aCC*)13535 case $host_cpu in13536 hppa*64*)13537 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13538 ;;13539 ia64*)13540 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13541 ;;13542 *)13543 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13544 ;;13545 esac13546 # Commands to make compiler produce verbose output that lists13547 # what "hidden" libraries, object files and flags are used when13548 # linking a shared library.13549 #13550 # There doesn't appear to be a way to prevent this compiler from13551 # explicitly linking system object files so we need to strip them13552 # from the output so that they don't get included in the library13553 # dependencies.13554 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; func_echo_all "$list"'13555 ;;13556 *)13557 if test yes = "$GXX"; then13558 if test no = "$with_gnu_ld"; then13559 case $host_cpu in13560 hppa*64*)13561 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13562 ;;13563 ia64*)13564 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13565 ;;13566 *)13567 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13568 ;;13569 esac13570 fi13571 else13572 # FIXME: insert proper C++ library support13573 ld_shlibs_CXX=no13574 fi13575 ;;13576 esac13577 ;;13578 13579 interix[3-9]*)13580 hardcode_direct_CXX=no13581 hardcode_shlibpath_var_CXX=no13582 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13583 export_dynamic_flag_spec_CXX='$wl-E'13584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.13585 # Instead, shared libraries are loaded at an image base (0x10000000 by13586 # default) and relocated if they conflict, which is a slow very memory13587 # consuming and fragmenting process. To avoid this, we pick a random,13588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link13589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.13590 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'13591 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'13592 ;;13593 irix5* | irix6*)13594 case $cc_basename in13595 CC*)13596 # SGI C++13597 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'13598 13599 # Archives containing C++ object files must be created using13600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is13601 # necessary to make sure instantiated templates are included13602 # in the archive.13603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'13604 ;;13605 *)13606 if test yes = "$GXX"; then13607 if test no = "$with_gnu_ld"; then13608 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'13609 else13610 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'13611 fi13612 fi13613 link_all_deplibs_CXX=yes13614 ;;13615 esac13616 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13617 hardcode_libdir_separator_CXX=:13618 inherit_rpath_CXX=yes13619 ;;13620 13621 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)13622 case $cc_basename in13623 KCC*)13624 # Kuck and Associates, Inc. (KAI) C++ Compiler13625 13626 # KCC will only create a shared library if the output file13627 # ends with ".so" (or ".sl" for HP-UX), so rename the library13628 # to its proper name (with version) after linking.13629 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'13630 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'13631 # Commands to make compiler produce verbose output that lists13632 # what "hidden" libraries, object files and flags are used when13633 # linking a shared library.13634 #13635 # There doesn't appear to be a way to prevent this compiler from13636 # explicitly linking system object files so we need to strip them13637 # from the output so that they don't get included in the library13638 # dependencies.13639 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; func_echo_all "$list"'13640 13641 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13642 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13643 13644 # Archives containing C++ object files must be created using13645 # "CC -Bstatic", where "CC" is the KAI C++ compiler.13646 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'13647 ;;13648 icpc* | ecpc* )13649 # Intel C++13650 with_gnu_ld=yes13651 # version 8.0 and above of icpc choke on multiply defined symbols13652 # if we add $predep_objects and $postdep_objects, however 7.1 and13653 # earlier do not add the objects themselves.13654 case `$CC -V 2>&1` in13655 *"Version 7."*)13656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13657 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'13658 ;;13659 *) # Version 8.0 or newer13660 tmp_idyn=13661 case $host_cpu in13662 ia64*) tmp_idyn=' -i_dynamic';;13663 esac13664 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13665 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'13666 ;;13667 esac13668 archive_cmds_need_lc_CXX=no13669 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13670 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13671 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'13672 ;;13673 pgCC* | pgcpp*)13674 # Portland Group C++ compiler13675 case `$CC -V` in13676 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)13677 prelink_cmds_CXX='tpldir=Template.dir~13678 rm -rf $tpldir~13679 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~13680 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'13681 old_archive_cmds_CXX='tpldir=Template.dir~13682 rm -rf $tpldir~13683 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~13684 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~13685 $RANLIB $oldlib'13686 archive_cmds_CXX='tpldir=Template.dir~13687 rm -rf $tpldir~13688 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~13689 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13690 archive_expsym_cmds_CXX='tpldir=Template.dir~13691 rm -rf $tpldir~13692 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~13693 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'13694 ;;13695 *) # Version 6 and above use weak symbols13696 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13697 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'13698 ;;13699 esac13700 13701 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'13702 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13703 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'13704 ;;13705 cxx*)13706 # Compaq C++13707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13708 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'13709 13710 runpath_var=LD_RUN_PATH13711 hardcode_libdir_flag_spec_CXX='-rpath $libdir'13712 hardcode_libdir_separator_CXX=:13713 13714 # Commands to make compiler produce verbose output that lists13715 # what "hidden" libraries, object files and flags are used when13716 # linking a shared library.13717 #13718 # There doesn't appear to be a way to prevent this compiler from13719 # explicitly linking system object files so we need to strip them13720 # from the output so that they don't get included in the library13721 # dependencies.13722 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'13723 ;;13724 xl* | mpixl* | bgxl*)13725 # IBM XL 8.0 on PPC, with GNU ld13726 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13727 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13728 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13729 if test yes = "$supports_anon_versioning"; then13730 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~13731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~13732 echo "local: *; };" >> $output_objdir/$libname.ver~13733 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'13734 fi13735 ;;13736 *)13737 case `$CC -V 2>&1 | sed 5q` in13738 *Sun\ C*)13739 # Sun C++ 5.913740 no_undefined_flag_CXX=' -zdefs'13741 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13742 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'13743 hardcode_libdir_flag_spec_CXX='-R$libdir'13744 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'13745 compiler_needs_object_CXX=yes13746 13747 # Not sure whether something based on13748 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&113749 # would be better.13750 output_verbose_link_cmd='func_echo_all'13751 13752 # Archives containing C++ object files must be created using13753 # "CC -xar", where "CC" is the Sun C++ compiler. This is13754 # necessary to make sure instantiated templates are included13755 # in the archive.13756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'13757 ;;13758 esac13759 ;;13760 esac13761 ;;13762 13763 lynxos*)13764 # FIXME: insert proper C++ library support13765 ld_shlibs_CXX=no13766 ;;13767 13768 m88k*)13769 # FIXME: insert proper C++ library support13770 ld_shlibs_CXX=no13771 ;;13772 13773 mvs*)13774 case $cc_basename in13775 cxx*)13776 # FIXME: insert proper C++ library support13777 ld_shlibs_CXX=no13778 ;;13779 *)13780 # FIXME: insert proper C++ library support13781 ld_shlibs_CXX=no13782 ;;13783 esac13784 ;;13785 13786 netbsd*)13787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then13788 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'13789 wlarc=13790 hardcode_libdir_flag_spec_CXX='-R$libdir'13791 hardcode_direct_CXX=yes13792 hardcode_shlibpath_var_CXX=no13793 fi13794 # Workaround some broken pre-1.5 toolchains13795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'13796 ;;13797 13798 *nto* | *qnx*)13799 ld_shlibs_CXX=yes13800 ;;13801 13802 openbsd* | bitrig*)13803 if test -f /usr/libexec/ld.so; then13804 hardcode_direct_CXX=yes13805 hardcode_shlibpath_var_CXX=no13806 hardcode_direct_absolute_CXX=yes13807 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'13808 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then13810 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'13811 export_dynamic_flag_spec_CXX='$wl-E'13812 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'13813 fi13814 output_verbose_link_cmd=func_echo_all13815 else13816 ld_shlibs_CXX=no13817 fi13818 ;;13819 13820 osf3* | osf4* | osf5*)13821 case $cc_basename in13822 KCC*)13823 # Kuck and Associates, Inc. (KAI) C++ Compiler13824 13825 # KCC will only create a shared library if the output file13826 # ends with ".so" (or ".sl" for HP-UX), so rename the library13827 # to its proper name (with version) after linking.13828 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'13829 13830 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13831 hardcode_libdir_separator_CXX=:13832 13833 # Archives containing C++ object files must be created using13834 # the KAI C++ compiler.13835 case $host in13836 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;13837 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;13838 esac13839 ;;13840 RCC*)13841 # Rational C++ 2.4.113842 # FIXME: insert proper C++ library support13843 ld_shlibs_CXX=no13844 ;;13845 cxx*)13846 case $host in13847 osf3*)13848 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'13849 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'13850 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13851 ;;13852 *)13853 allow_undefined_flag_CXX=' -expect_unresolved \*'13854 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'13855 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~13856 echo "-hidden">> $lib.exp~13857 $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~13858 $RM $lib.exp'13859 hardcode_libdir_flag_spec_CXX='-rpath $libdir'13860 ;;13861 esac13862 13863 hardcode_libdir_separator_CXX=:13864 13865 # Commands to make compiler produce verbose output that lists13866 # what "hidden" libraries, object files and flags are used when13867 # linking a shared library.13868 #13869 # There doesn't appear to be a way to prevent this compiler from13870 # explicitly linking system object files so we need to strip them13871 # from the output so that they don't get included in the library13872 # dependencies.13873 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'13874 ;;13875 *)13876 if test yes,no = "$GXX,$with_gnu_ld"; then13877 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'13878 case $host in13879 osf3*)13880 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'13881 ;;13882 *)13883 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'13884 ;;13885 esac13886 13887 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13888 hardcode_libdir_separator_CXX=:13889 13890 # Commands to make compiler produce verbose output that lists13891 # what "hidden" libraries, object files and flags are used when13892 # linking a shared library.13893 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13894 13895 else13896 # FIXME: insert proper C++ library support13897 ld_shlibs_CXX=no13898 fi13899 ;;13900 esac13901 ;;13902 13903 psos*)13904 # FIXME: insert proper C++ library support13905 ld_shlibs_CXX=no13906 ;;13907 13908 sunos4*)13909 case $cc_basename in13910 CC*)13911 # Sun C++ 4.x13912 # FIXME: insert proper C++ library support13913 ld_shlibs_CXX=no13914 ;;13915 lcc*)13916 # Lucid13917 # FIXME: insert proper C++ library support13918 ld_shlibs_CXX=no13919 ;;13920 *)13921 # FIXME: insert proper C++ library support13922 ld_shlibs_CXX=no13923 ;;13924 esac13925 ;;13926 13927 solaris*)13928 case $cc_basename in13929 CC* | sunCC*)13930 # Sun C++ 4.2, 5.x and Centerline C++13931 archive_cmds_need_lc_CXX=yes13932 no_undefined_flag_CXX=' -zdefs'13933 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13934 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~13935 $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'13936 13937 hardcode_libdir_flag_spec_CXX='-R$libdir'13938 hardcode_shlibpath_var_CXX=no13939 case $host_os in13940 solaris2.[0-5] | solaris2.[0-5].*) ;;13941 *)13942 # The compiler driver will combine and reorder linker options,13943 # but understands '-z linker_flag'.13944 # Supported since Solaris 2.6 (maybe 2.5.1?)13945 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'13946 ;;13947 esac13948 link_all_deplibs_CXX=yes13949 13950 output_verbose_link_cmd='func_echo_all'13951 13952 # Archives containing C++ object files must be created using13953 # "CC -xar", where "CC" is the Sun C++ compiler. This is13954 # necessary to make sure instantiated templates are included13955 # in the archive.13956 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'13957 ;;13958 gcx*)13959 # Green Hills C++ Compiler13960 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'13961 13962 # The C++ compiler must be used to create the archive.13963 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'13964 ;;13965 *)13966 # GNU C++ compiler with Solaris linker13967 if test yes,no = "$GXX,$with_gnu_ld"; then13968 no_undefined_flag_CXX=' $wl-z ${wl}defs'13969 if $CC --version | $GREP -v '^2\.7' > /dev/null; then13970 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'13971 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~13972 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'13973 13974 # Commands to make compiler produce verbose output that lists13975 # what "hidden" libraries, object files and flags are used when13976 # linking a shared library.13977 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13978 else13979 # g++ 2.7 appears to require '-G' NOT '-shared' on this13980 # platform.13981 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'13982 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~13983 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'13984 13985 # Commands to make compiler produce verbose output that lists13986 # what "hidden" libraries, object files and flags are used when13987 # linking a shared library.13988 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13989 fi13990 13991 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'13992 case $host_os in13993 solaris2.[0-5] | solaris2.[0-5].*) ;;13994 *)13995 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'13996 ;;13997 esac13998 fi13999 ;;14000 esac14001 ;;14002 14003 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)14004 no_undefined_flag_CXX='$wl-z,text'14005 archive_cmds_need_lc_CXX=no14006 hardcode_shlibpath_var_CXX=no14007 runpath_var='LD_RUN_PATH'14008 14009 case $cc_basename in14010 CC*)14011 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14012 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14013 ;;14014 *)14015 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14016 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14017 ;;14018 esac14019 ;;14020 14021 sysv5* | sco3.2v5* | sco5v6*)14022 # Note: We CANNOT use -z defs as we might desire, because we do not14023 # link with -lc, and that would cause any symbols used from libc to14024 # always be unresolved, which means just about no library would14025 # ever link correctly. If we're not using GNU ld we use -z text14026 # though, which does catch some bad symbols but isn't as heavy-handed14027 # as -z defs.14028 no_undefined_flag_CXX='$wl-z,text'14029 allow_undefined_flag_CXX='$wl-z,nodefs'14030 archive_cmds_need_lc_CXX=no14031 hardcode_shlibpath_var_CXX=no14032 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'14033 hardcode_libdir_separator_CXX=':'14034 link_all_deplibs_CXX=yes14035 export_dynamic_flag_spec_CXX='$wl-Bexport'14036 runpath_var='LD_RUN_PATH'14037 14038 case $cc_basename in14039 CC*)14040 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14041 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14042 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~14043 '"$old_archive_cmds_CXX"14044 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~14045 '"$reload_cmds_CXX"14046 ;;14047 *)14048 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14049 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14050 ;;14051 esac14052 ;;14053 14054 tandem*)14055 case $cc_basename in14056 NCC*)14057 # NonStop-UX NCC 3.2014058 # FIXME: insert proper C++ library support14059 ld_shlibs_CXX=no14060 ;;14061 *)14062 # FIXME: insert proper C++ library support14063 ld_shlibs_CXX=no14064 ;;14065 esac14066 ;;14067 14068 vxworks*)14069 # FIXME: insert proper C++ library support14070 ld_shlibs_CXX=no14071 ;;14072 14073 *)14074 # FIXME: insert proper C++ library support14075 ld_shlibs_CXX=no14076 ;;14077 esac14078 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&514080 $as_echo "$ld_shlibs_CXX" >&6; }14081 test no = "$ld_shlibs_CXX" && can_build_shared=no14082 14083 GCC_CXX=$GXX14084 LD_CXX=$LD14085 14086 ## CAVEAT EMPTOR:14087 ## There is no encapsulation within the following macros, do not change14088 ## the running order or otherwise move them around unless you know exactly14089 ## what you are doing...14090 # Dependencies to place before and after the object being linked:14091 predep_objects_CXX=14092 postdep_objects_CXX=14093 predeps_CXX=14094 postdeps_CXX=14095 compiler_lib_search_path_CXX=14096 14097 cat > conftest.$ac_ext <<_LT_EOF14098 class Foo14099 {14100 public:14101 Foo (void) { a = 0; }14102 private:14103 int a;14104 };14105 _LT_EOF14106 14107 14108 _lt_libdeps_save_CFLAGS=$CFLAGS14109 case "$CC $CFLAGS " in #(14110 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;14111 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;14112 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;14113 esac14114 14115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&514116 (eval $ac_compile) 2>&514117 ac_status=$?14118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514119 test $ac_status = 0; }; then14120 # Parse the compiler output and extract the necessary14121 # objects, libraries and library flags.14122 14123 # Sentinel used to keep track of whether or not we are before14124 # the conftest object file.14125 pre_test_object_deps_done=no14126 14127 for p in `eval "$output_verbose_link_cmd"`; do14128 case $prev$p in14129 14130 -L* | -R* | -l*)14131 # Some compilers place space between "-{L,R}" and the path.14132 # Remove the space.14133 if test x-L = "$p" ||14134 test x-R = "$p"; then14135 prev=$p14136 continue14137 fi14138 14139 # Expand the sysroot to ease extracting the directories later.14140 if test -z "$prev"; then14141 case $p in14142 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;14143 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;14144 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;14145 esac14146 fi14147 case $p in14148 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;14149 esac14150 if test no = "$pre_test_object_deps_done"; then14151 case $prev in14152 -L | -R)14153 # Internal compiler library paths should come after those14154 # provided the user. The postdeps already come after the14155 # user supplied libs so there is no need to process them.14156 if test -z "$compiler_lib_search_path_CXX"; then14157 compiler_lib_search_path_CXX=$prev$p14158 else14159 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"14160 fi14161 ;;14162 # The "-l" case would never come before the object being14163 # linked, so don't bother handling this case.14164 esac14165 else14166 if test -z "$postdeps_CXX"; then14167 postdeps_CXX=$prev$p14168 else14169 postdeps_CXX="${postdeps_CXX} $prev$p"14170 fi14171 fi14172 prev=14173 ;;14174 14175 *.lto.$objext) ;; # Ignore GCC LTO objects14176 *.$objext)14177 # This assumes that the test object file only shows up14178 # once in the compiler output.14179 if test "$p" = "conftest.$objext"; then14180 pre_test_object_deps_done=yes14181 continue14182 fi14183 14184 if test no = "$pre_test_object_deps_done"; then14185 if test -z "$predep_objects_CXX"; then14186 predep_objects_CXX=$p14187 else14188 predep_objects_CXX="$predep_objects_CXX $p"14189 fi14190 else14191 if test -z "$postdep_objects_CXX"; then14192 postdep_objects_CXX=$p14193 else14194 postdep_objects_CXX="$postdep_objects_CXX $p"14195 fi14196 fi14197 ;;14198 14199 *) ;; # Ignore the rest.14200 14201 esac14202 done14203 14204 # Clean up.14205 rm -f a.out a.exe14206 else14207 echo "libtool.m4: error: problem compiling CXX test program"14208 fi14209 14210 $RM -f confest.$objext14211 CFLAGS=$_lt_libdeps_save_CFLAGS14212 14213 # PORTME: override above test on systems where it is broken14214 case $host_os in14215 interix[3-9]*)14216 # Interix 3.5 installs completely hosed .la files for C++, so rather than14217 # hack all around it, let's just trust "g++" to DTRT.14218 predep_objects_CXX=14219 postdep_objects_CXX=14220 postdeps_CXX=14221 ;;14222 esac14223 14224 14225 case " $postdeps_CXX " in14226 *" -lc "*) archive_cmds_need_lc_CXX=no ;;14227 esac14228 compiler_lib_search_dirs_CXX=14229 if test -n "${compiler_lib_search_path_CXX}"; then14230 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`14231 fi14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 lt_prog_compiler_wl_CXX=14264 lt_prog_compiler_pic_CXX=14265 lt_prog_compiler_static_CXX=14266 14267 14268 # C++ specific cases for pic, static, wl, etc.14269 if test yes = "$GXX"; then14270 lt_prog_compiler_wl_CXX='-Wl,'14271 lt_prog_compiler_static_CXX='-static'14272 14273 case $host_os in14274 aix*)14275 # All AIX code is PIC.14276 if test ia64 = "$host_cpu"; then14277 # AIX 5 now supports IA64 processor14278 lt_prog_compiler_static_CXX='-Bstatic'14279 fi14280 lt_prog_compiler_pic_CXX='-fPIC'14281 ;;14282 14283 amigaos*)14284 case $host_cpu in14285 powerpc)14286 # see comment about AmigaOS4 .so support14287 lt_prog_compiler_pic_CXX='-fPIC'14288 ;;14289 m68k)14290 # FIXME: we need at least 68020 code to build shared libraries, but14291 # adding the '-m68020' flag to GCC prevents building anything better,14292 # like '-m68040'.14293 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'14294 ;;14295 esac14296 ;;14297 14298 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)14299 # PIC is the default for these OSes.14300 ;;14301 mingw* | cygwin* | os2* | pw32* | cegcc*)14302 # This hack is so that the source file can tell whether it is being14303 # built for inclusion in a dll (and should export symbols for example).14304 # Although the cygwin gcc ignores -fPIC, still need this for old-style14305 # (--disable-auto-import) libraries14306 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'14307 case $host_os in14308 os2*)14309 lt_prog_compiler_static_CXX='$wl-static'14310 ;;14311 esac14312 ;;14313 darwin* | rhapsody*)14314 # PIC is the default on this platform14315 # Common symbols not allowed in MH_DYLIB files14316 lt_prog_compiler_pic_CXX='-fno-common'14317 ;;14318 *djgpp*)14319 # DJGPP does not support shared libraries at all14320 lt_prog_compiler_pic_CXX=14321 ;;14322 haiku*)14323 # PIC is the default for Haiku.14324 # The "-static" flag exists, but is broken.14325 lt_prog_compiler_static_CXX=14326 ;;14327 interix[3-9]*)14328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.14329 # Instead, we relocate shared libraries at runtime.14330 ;;14331 sysv4*MP*)14332 if test -d /usr/nec; then14333 lt_prog_compiler_pic_CXX=-Kconform_pic14334 fi14335 ;;14336 hpux*)14337 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit14338 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag14339 # sets the default TLS model and affects inlining.14340 case $host_cpu in14341 hppa*64*)14342 ;;14343 *)14344 lt_prog_compiler_pic_CXX='-fPIC'14345 ;;14346 esac14347 ;;14348 *qnx* | *nto*)14349 # QNX uses GNU C++, but need to define -shared option too, otherwise14350 # it will coredump.14351 lt_prog_compiler_pic_CXX='-fPIC -shared'14352 ;;14353 *)14354 lt_prog_compiler_pic_CXX='-fPIC'14355 ;;14356 esac14357 else14358 case $host_os in14359 aix[4-9]*)14360 # All AIX code is PIC.14361 if test ia64 = "$host_cpu"; then14362 # AIX 5 now supports IA64 processor14363 lt_prog_compiler_static_CXX='-Bstatic'14364 else14365 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'14366 fi14367 ;;14368 chorus*)14369 case $cc_basename in14370 cxch68*)14371 # Green Hills C++ Compiler14372 # _LT_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"14373 ;;14374 esac14375 ;;14376 mingw* | cygwin* | os2* | pw32* | cegcc*)14377 # This hack is so that the source file can tell whether it is being14378 # built for inclusion in a dll (and should export symbols for example).14379 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'14380 ;;14381 dgux*)14382 case $cc_basename in14383 ec++*)14384 lt_prog_compiler_pic_CXX='-KPIC'14385 ;;14386 ghcx*)14387 # Green Hills C++ Compiler14388 lt_prog_compiler_pic_CXX='-pic'14389 ;;14390 *)14391 ;;14392 esac14393 ;;14394 freebsd* | dragonfly*)14395 # FreeBSD uses GNU C++14396 ;;14397 hpux9* | hpux10* | hpux11*)14398 case $cc_basename in14399 CC*)14400 lt_prog_compiler_wl_CXX='-Wl,'14401 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'14402 if test ia64 != "$host_cpu"; then14403 lt_prog_compiler_pic_CXX='+Z'14404 fi14405 ;;14406 aCC*)14407 lt_prog_compiler_wl_CXX='-Wl,'14408 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'14409 case $host_cpu in14410 hppa*64*|ia64*)14411 # +Z the default14412 ;;14413 *)14414 lt_prog_compiler_pic_CXX='+Z'14415 ;;14416 esac14417 ;;14418 *)14419 ;;14420 esac14421 ;;14422 interix*)14423 # This is c89, which is MS Visual C++ (no shared libs)14424 # Anyone wants to do a port?14425 ;;14426 irix5* | irix6* | nonstopux*)14427 case $cc_basename in14428 CC*)14429 lt_prog_compiler_wl_CXX='-Wl,'14430 lt_prog_compiler_static_CXX='-non_shared'14431 # CC pic flag -KPIC is the default.14432 ;;14433 *)14434 ;;14435 esac14436 ;;14437 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)14438 case $cc_basename in14439 KCC*)14440 # KAI C++ Compiler14441 lt_prog_compiler_wl_CXX='--backend -Wl,'14442 lt_prog_compiler_pic_CXX='-fPIC'14443 ;;14444 ecpc* )14445 # old Intel C++ for x86_64, which still supported -KPIC.14446 lt_prog_compiler_wl_CXX='-Wl,'14447 lt_prog_compiler_pic_CXX='-KPIC'14448 lt_prog_compiler_static_CXX='-static'14449 ;;14450 icpc* )14451 # Intel C++, used to be incompatible with GCC.14452 # ICC 10 doesn't accept -KPIC any more.14453 lt_prog_compiler_wl_CXX='-Wl,'14454 lt_prog_compiler_pic_CXX='-fPIC'14455 lt_prog_compiler_static_CXX='-static'14456 ;;14457 pgCC* | pgcpp*)14458 # Portland Group C++ compiler14459 lt_prog_compiler_wl_CXX='-Wl,'14460 lt_prog_compiler_pic_CXX='-fpic'14461 lt_prog_compiler_static_CXX='-Bstatic'14462 ;;14463 cxx*)14464 # Compaq C++14465 # Make sure the PIC flag is empty. It appears that all Alpha14466 # Linux and Compaq Tru64 Unix objects are PIC.14467 lt_prog_compiler_pic_CXX=14468 lt_prog_compiler_static_CXX='-non_shared'14469 ;;14470 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)14471 # IBM XL 8.0, 9.0 on PPC and BlueGene14472 lt_prog_compiler_wl_CXX='-Wl,'14473 lt_prog_compiler_pic_CXX='-qpic'14474 lt_prog_compiler_static_CXX='-qstaticlink'14475 ;;14476 *)14477 case `$CC -V 2>&1 | sed 5q` in14478 *Sun\ C*)14479 # Sun C++ 5.914480 lt_prog_compiler_pic_CXX='-KPIC'14481 lt_prog_compiler_static_CXX='-Bstatic'14482 lt_prog_compiler_wl_CXX='-Qoption ld '14483 ;;14484 esac14485 ;;14486 esac14487 ;;14488 lynxos*)14489 ;;14490 m88k*)14491 ;;14492 mvs*)14493 case $cc_basename in14494 cxx*)14495 lt_prog_compiler_pic_CXX='-W c,exportall'14496 ;;14497 *)14498 ;;14499 esac14500 ;;14501 netbsd* | netbsdelf*-gnu)14502 ;;14503 *qnx* | *nto*)14504 # QNX uses GNU C++, but need to define -shared option too, otherwise14505 # it will coredump.14506 lt_prog_compiler_pic_CXX='-fPIC -shared'14507 ;;14508 osf3* | osf4* | osf5*)14509 case $cc_basename in14510 KCC*)14511 lt_prog_compiler_wl_CXX='--backend -Wl,'14512 ;;14513 RCC*)14514 # Rational C++ 2.4.114515 lt_prog_compiler_pic_CXX='-pic'14516 ;;14517 cxx*)14518 # Digital/Compaq C++14519 lt_prog_compiler_wl_CXX='-Wl,'14520 # Make sure the PIC flag is empty. It appears that all Alpha14521 # Linux and Compaq Tru64 Unix objects are PIC.14522 lt_prog_compiler_pic_CXX=14523 lt_prog_compiler_static_CXX='-non_shared'14524 ;;14525 *)14526 ;;14527 esac14528 ;;14529 psos*)14530 ;;14531 solaris*)14532 case $cc_basename in14533 CC* | sunCC*)14534 # Sun C++ 4.2, 5.x and Centerline C++14535 lt_prog_compiler_pic_CXX='-KPIC'14536 lt_prog_compiler_static_CXX='-Bstatic'14537 lt_prog_compiler_wl_CXX='-Qoption ld '14538 ;;14539 gcx*)14540 # Green Hills C++ Compiler14541 lt_prog_compiler_pic_CXX='-PIC'14542 ;;14543 *)14544 ;;14545 esac14546 ;;14547 sunos4*)14548 case $cc_basename in14549 CC*)14550 # Sun C++ 4.x14551 lt_prog_compiler_pic_CXX='-pic'14552 lt_prog_compiler_static_CXX='-Bstatic'14553 ;;14554 lcc*)14555 # Lucid14556 lt_prog_compiler_pic_CXX='-pic'14557 ;;14558 *)14559 ;;14560 esac14561 ;;14562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)14563 case $cc_basename in14564 CC*)14565 lt_prog_compiler_wl_CXX='-Wl,'14566 lt_prog_compiler_pic_CXX='-KPIC'14567 lt_prog_compiler_static_CXX='-Bstatic'14568 ;;14569 esac14570 ;;14571 tandem*)14572 case $cc_basename in14573 NCC*)14574 # NonStop-UX NCC 3.2014575 lt_prog_compiler_pic_CXX='-KPIC'14576 ;;14577 *)14578 ;;14579 esac14580 ;;14581 vxworks*)14582 ;;14583 *)14584 lt_prog_compiler_can_build_shared_CXX=no14585 ;;14586 esac14587 fi14588 14589 case $host_os in14590 # For platforms that do not support PIC, -DPIC is meaningless:14591 *djgpp*)14592 lt_prog_compiler_pic_CXX=14593 ;;14594 *)14595 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"14596 ;;14597 esac14598 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&514600 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }14601 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :14602 $as_echo_n "(cached) " >&614603 else14604 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX14605 fi14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&514607 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }14608 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX14609 14610 #14611 # Check to make sure the PIC flag actually works.14612 #14613 if test -n "$lt_prog_compiler_pic_CXX"; then14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&514615 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }14616 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :14617 $as_echo_n "(cached) " >&614618 else14619 lt_cv_prog_compiler_pic_works_CXX=no14620 ac_outfile=conftest.$ac_objext14621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14622 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment14623 # Insert the option either (1) after the last *FLAGS variable, or14624 # (2) before a word containing "conftest.", or (3) at the end.14625 # Note that $ac_compile itself does not contain backslashes and begins14626 # with a dollar sign (not a hyphen), so the echo should work correctly.14627 # The option is referenced via a variable to avoid confusing sed.14628 lt_compile=`echo "$ac_compile" | $SED \14629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \14631 -e 's:$: $lt_compiler_flag:'`14632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)14633 (eval "$lt_compile" 2>conftest.err)14634 ac_status=$?14635 cat conftest.err >&514636 echo "$as_me:$LINENO: \$? = $ac_status" >&514637 if (exit $ac_status) && test -s "$ac_outfile"; then14638 # The compiler can only warn and ignore the option if not recognized14639 # So say no if there are warnings other than the usual output.14640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp14641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er214642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then14643 lt_cv_prog_compiler_pic_works_CXX=yes14644 fi14645 fi14646 $RM conftest*14647 14648 fi14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&514650 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }14651 14652 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then14653 case $lt_prog_compiler_pic_CXX in14654 "" | " "*) ;;14655 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;14656 esac14657 else14658 lt_prog_compiler_pic_CXX=14659 lt_prog_compiler_can_build_shared_CXX=no14660 fi14661 14662 fi14663 14664 14665 14666 14667 14668 #14669 # Check to make sure the static flag actually works.14670 #14671 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&514673 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }14674 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :14675 $as_echo_n "(cached) " >&614676 else14677 lt_cv_prog_compiler_static_works_CXX=no14678 save_LDFLAGS=$LDFLAGS14679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"14680 echo "$lt_simple_link_test_code" > conftest.$ac_ext14681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then14682 # The linker can only warn and ignore the option if not recognized14683 # So say no if there are warnings14684 if test -s conftest.err; then14685 # Append any errors to the config.log.14686 cat conftest.err 1>&514687 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp14688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er214689 if diff conftest.exp conftest.er2 >/dev/null; then14690 lt_cv_prog_compiler_static_works_CXX=yes14691 fi14692 else14693 lt_cv_prog_compiler_static_works_CXX=yes14694 fi14695 fi14696 $RM -r conftest*14697 LDFLAGS=$save_LDFLAGS14698 14699 fi14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&514701 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }14702 14703 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then14704 :14705 else14706 lt_prog_compiler_static_CXX=14707 fi14708 14709 14710 14711 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&514713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }14714 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :14715 $as_echo_n "(cached) " >&614716 else14717 lt_cv_prog_compiler_c_o_CXX=no14718 $RM -r conftest 2>/dev/null14719 mkdir conftest14720 cd conftest14721 mkdir out14722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14723 14724 lt_compiler_flag="-o out/conftest2.$ac_objext"14725 # Insert the option either (1) after the last *FLAGS variable, or14726 # (2) before a word containing "conftest.", or (3) at the end.14727 # Note that $ac_compile itself does not contain backslashes and begins14728 # with a dollar sign (not a hyphen), so the echo should work correctly.14729 lt_compile=`echo "$ac_compile" | $SED \14730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \14731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \14732 -e 's:$: $lt_compiler_flag:'`14733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)14734 (eval "$lt_compile" 2>out/conftest.err)14735 ac_status=$?14736 cat out/conftest.err >&514737 echo "$as_me:$LINENO: \$? = $ac_status" >&514738 if (exit $ac_status) && test -s out/conftest2.$ac_objext14739 then14740 # The compiler can only warn and ignore the option if not recognized14741 # So say no if there are warnings14742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp14743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er214744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then14745 lt_cv_prog_compiler_c_o_CXX=yes14746 fi14747 fi14748 chmod u+w . 2>&514749 $RM conftest*14750 # SGI C++ compiler will create directory out/ii_files/ for14751 # template instantiation14752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files14753 $RM out/* && rmdir out14754 cd ..14755 $RM -r conftest14756 $RM conftest*14757 14758 fi14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&514760 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }14761 14762 14763 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&514765 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }14766 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :14767 $as_echo_n "(cached) " >&614768 else14769 lt_cv_prog_compiler_c_o_CXX=no14770 $RM -r conftest 2>/dev/null14771 mkdir conftest14772 cd conftest14773 mkdir out14774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14775 14776 lt_compiler_flag="-o out/conftest2.$ac_objext"14777 # Insert the option either (1) after the last *FLAGS variable, or14778 # (2) before a word containing "conftest.", or (3) at the end.14779 # Note that $ac_compile itself does not contain backslashes and begins14780 # with a dollar sign (not a hyphen), so the echo should work correctly.14781 lt_compile=`echo "$ac_compile" | $SED \14782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \14783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \14784 -e 's:$: $lt_compiler_flag:'`14785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)14786 (eval "$lt_compile" 2>out/conftest.err)14787 ac_status=$?14788 cat out/conftest.err >&514789 echo "$as_me:$LINENO: \$? = $ac_status" >&514790 if (exit $ac_status) && test -s out/conftest2.$ac_objext14791 then14792 # The compiler can only warn and ignore the option if not recognized14793 # So say no if there are warnings14794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp14795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er214796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then14797 lt_cv_prog_compiler_c_o_CXX=yes14798 fi14799 fi14800 chmod u+w . 2>&514801 $RM conftest*14802 # SGI C++ compiler will create directory out/ii_files/ for14803 # template instantiation14804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files14805 $RM out/* && rmdir out14806 cd ..14807 $RM -r conftest14808 $RM conftest*14809 14810 fi14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&514812 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }14813 14814 14815 14816 14817 hard_links=nottested14818 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then14819 # do not overwrite the value of need_locks provided by the user14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&514821 $as_echo_n "checking if we can lock with hard links... " >&6; }14822 hard_links=yes14823 $RM conftest*14824 ln conftest.a conftest.b 2>/dev/null && hard_links=no14825 touch conftest.a14826 ln conftest.a conftest.b 2>&5 || hard_links=no14827 ln conftest.a conftest.b 2>/dev/null && hard_links=no14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&514829 $as_echo "$hard_links" >&6; }14830 if test no = "$hard_links"; then14831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&514832 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}14833 need_locks=warn14834 fi14835 else14836 need_locks=no14837 fi14838 14839 14840 14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&514842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }14843 14844 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'14845 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'14846 case $host_os in14847 aix[4-9]*)14848 # If we're using GNU nm, then we don't want the "-C" option.14849 # -C means demangle to GNU nm, but means don't demangle to AIX nm.14850 # Without the "-l" option, or with the "-B" option, AIX nm treats14851 # weak defined symbols like other global defined symbols, whereas14852 # GNU nm marks them as "W".14853 # While the 'weak' keyword is ignored in the Export File, we need14854 # it in the Import File for the 'aix-soname' feature, so we have14855 # to replace the "-B" option with "-P" for AIX nm.14856 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then14857 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'14858 else14859 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'14860 fi14861 ;;14862 pw32*)14863 export_symbols_cmds_CXX=$ltdll_cmds14864 ;;14865 cygwin* | mingw* | cegcc*)14866 case $cc_basename in14867 cl*)14868 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'14869 ;;14870 *)14871 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'14872 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'14873 ;;14874 esac14875 ;;14876 linux* | k*bsd*-gnu | gnu*)14877 link_all_deplibs_CXX=no14878 ;;14879 *)14880 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'14881 ;;14882 esac14883 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&514885 $as_echo "$ld_shlibs_CXX" >&6; }14886 test no = "$ld_shlibs_CXX" && can_build_shared=no14887 14888 with_gnu_ld_CXX=$with_gnu_ld14889 14890 14891 14892 14893 14894 14895 #14896 # Do we need to explicitly link libc?14897 #14898 case "x$archive_cmds_need_lc_CXX" in14899 x|xyes)14900 # Assume -lc should be added14901 archive_cmds_need_lc_CXX=yes14902 14903 if test yes,yes = "$GCC,$enable_shared"; then14904 case $archive_cmds_CXX in14905 *'~'*)14906 # FIXME: we may have to deal with multi-command sequences.14907 ;;14908 '$CC '*)14909 # Test whether the compiler implicitly links with -lc since on some14910 # systems, -lgcc has to come before -lc. If gcc already passes -lc14911 # to ld, don't add -lc before -lgcc.14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&514913 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }14914 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :14915 $as_echo_n "(cached) " >&614916 else14917 $RM conftest*14918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14919 14920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&514921 (eval $ac_compile) 2>&514922 ac_status=$?14923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514924 test $ac_status = 0; } 2>conftest.err; then14925 soname=conftest14926 lib=conftest14927 libobjs=conftest.$ac_objext14928 deplibs=14929 wl=$lt_prog_compiler_wl_CXX14930 pic_flag=$lt_prog_compiler_pic_CXX14931 compiler_flags=-v14932 linker_flags=-v14933 verstring=14934 output_objdir=.14935 libname=conftest14936 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX14937 allow_undefined_flag_CXX=14938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&514939 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&514940 ac_status=$?14941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514942 test $ac_status = 0; }14943 then14944 lt_cv_archive_cmds_need_lc_CXX=no14945 else14946 lt_cv_archive_cmds_need_lc_CXX=yes14947 fi14948 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag14949 else14950 cat conftest.err 1>&514951 fi14952 $RM conftest*14953 14954 fi14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&514956 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }14957 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX14958 ;;14959 esac14960 fi14961 ;;14962 esac14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&515026 $as_echo_n "checking dynamic linker characteristics... " >&6; }15027 15028 library_names_spec=15029 libname_spec='lib$name'15030 soname_spec=15031 shrext_cmds=.so15032 postinstall_cmds=15033 postuninstall_cmds=15034 finish_cmds=15035 finish_eval=15036 shlibpath_var=15037 shlibpath_overrides_runpath=unknown15038 version_type=none15039 dynamic_linker="$host_os ld.so"15040 sys_lib_dlsearch_path_spec="/lib /usr/lib"15041 need_lib_prefix=unknown15042 hardcode_into_libs=no15043 15044 # when you set need_version to no, make sure it does not cause -set_version15045 # flags to be left without arguments15046 need_version=unknown15047 15048 15049 15050 case $host_os in15051 aix3*)15052 version_type=linux # correct to gnu/linux during the next big refactor15053 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'15054 shlibpath_var=LIBPATH15055 15056 # AIX 3 has no versioning support, so we append a major version to the name.15057 soname_spec='$libname$release$shared_ext$major'15058 ;;15059 15060 aix[4-9]*)15061 version_type=linux # correct to gnu/linux during the next big refactor15062 need_lib_prefix=no15063 need_version=no15064 hardcode_into_libs=yes15065 if test ia64 = "$host_cpu"; then15066 # AIX 5 supports IA6415067 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'15068 shlibpath_var=LD_LIBRARY_PATH15069 else15070 # With GCC up to 2.95.x, collect2 would create an import file15071 # for dependence libraries. The import file would start with15072 # the line '#! .'. This would cause the generated library to15073 # depend on '.', always an invalid library. This was fixed in15074 # development snapshots of GCC prior to 3.0.15075 case $host_os in15076 aix4 | aix4.[01] | aix4.[01].*)15077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'15078 echo ' yes '15079 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then15080 :15081 else15082 can_build_shared=no15083 fi15084 ;;15085 esac15086 # Using Import Files as archive members, it is possible to support15087 # filename-based versioning of shared library archives on AIX. While15088 # this would work for both with and without runtime linking, it will15089 # prevent static linking of such archives. So we do filename-based15090 # shared library versioning with .so extension only, which is used15091 # when both runtime linking and shared linking is enabled.15092 # Unfortunately, runtime linking may impact performance, so we do15093 # not want this to be the default eventually. Also, we use the15094 # versioned .so libs for executables only if there is the -brtl15095 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.15096 # To allow for filename-based versioning support, we need to create15097 # libNAME.so.V as an archive file, containing:15098 # *) an Import File, referring to the versioned filename of the15099 # archive as well as the shared archive member, telling the15100 # bitwidth (32 or 64) of that shared object, and providing the15101 # list of exported symbols of that shared object, eventually15102 # decorated with the 'weak' keyword15103 # *) the shared object with the F_LOADONLY flag set, to really avoid15104 # it being seen by the linker.15105 # At run time we better use the real file rather than another symlink,15106 # but for link time we create the symlink libNAME.so -> libNAME.so.V15107 15108 case $with_aix_soname,$aix_use_runtimelinking in15109 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct15110 # soname into executable. Probably we can add versioning support to15111 # collect2, so additional links can be useful in future.15112 aix,yes) # traditional libtool15113 dynamic_linker='AIX unversionable lib.so'15114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so15115 # instead of lib<name>.a to let people know that these are not15116 # typical AIX shared libraries.15117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15118 ;;15119 aix,no) # traditional AIX only15120 dynamic_linker='AIX lib.a(lib.so.V)'15121 # We preserve .a as extension for shared libraries through AIX4.215122 # and later when we are not doing run time linking.15123 library_names_spec='$libname$release.a $libname.a'15124 soname_spec='$libname$release$shared_ext$major'15125 ;;15126 svr4,*) # full svr4 only15127 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"15128 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'15129 # We do not specify a path in Import Files, so LIBPATH fires.15130 shlibpath_overrides_runpath=yes15131 ;;15132 *,yes) # both, prefer svr415133 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"15134 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'15135 # unpreferred sharedlib libNAME.a needs extra handling15136 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'15137 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'15138 # We do not specify a path in Import Files, so LIBPATH fires.15139 shlibpath_overrides_runpath=yes15140 ;;15141 *,no) # both, prefer aix15142 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"15143 library_names_spec='$libname$release.a $libname.a'15144 soname_spec='$libname$release$shared_ext$major'15145 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling15146 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'15147 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'15148 ;;15149 esac15150 shlibpath_var=LIBPATH15151 fi15152 ;;15153 15154 amigaos*)15155 case $host_cpu in15156 powerpc)15157 # Since July 2007 AmigaOS4 officially supports .so libraries.15158 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.15159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15160 ;;15161 m68k)15162 library_names_spec='$libname.ixlibrary $libname.a'15163 # Create ${libname}_ixlibrary.a entries in /sys/libs.15164 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'15165 ;;15166 esac15167 ;;15168 15169 beos*)15170 library_names_spec='$libname$shared_ext'15171 dynamic_linker="$host_os ld.so"15172 shlibpath_var=LIBRARY_PATH15173 ;;15174 15175 bsdi[45]*)15176 version_type=linux # correct to gnu/linux during the next big refactor15177 need_version=no15178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15179 soname_spec='$libname$release$shared_ext$major'15180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'15181 shlibpath_var=LD_LIBRARY_PATH15182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"15183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"15184 # the default ld.so.conf also contains /usr/contrib/lib and15185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow15186 # libtool to hard-code these into programs15187 ;;15188 15189 cygwin* | mingw* | pw32* | cegcc*)15190 version_type=windows15191 shrext_cmds=.dll15192 need_version=no15193 need_lib_prefix=no15194 15195 case $GCC,$cc_basename in15196 yes,*)15197 # gcc15198 library_names_spec='$libname.dll.a'15199 # DLL is installed to $(libdir)/../bin by postinstall_cmds15200 postinstall_cmds='base_file=`basename \$file`~15201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~15202 dldir=$destdir/`dirname \$dlpath`~15203 test -d \$dldir || mkdir -p \$dldir~15204 $install_prog $dir/$dlname \$dldir/$dlname~15205 chmod a+x \$dldir/$dlname~15206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then15207 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;15208 fi'15209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~15210 dlpath=$dir/\$dldll~15211 $RM \$dlpath'15212 shlibpath_overrides_runpath=yes15213 15214 case $host_os in15215 cygwin*)15216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'15217 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15218 15219 ;;15220 mingw* | cegcc*)15221 # MinGW DLLs use traditional 'lib' prefix15222 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15223 ;;15224 pw32*)15225 # pw32 DLLs use 'pw' prefix rather than 'lib'15226 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15227 ;;15228 esac15229 dynamic_linker='Win32 ld.exe'15230 ;;15231 15232 *,cl*)15233 # Native MSVC15234 libname_spec='$name'15235 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15236 library_names_spec='$libname.dll.lib'15237 15238 case $build_os in15239 mingw*)15240 sys_lib_search_path_spec=15241 lt_save_ifs=$IFS15242 IFS=';'15243 for lt_path in $LIB15244 do15245 IFS=$lt_save_ifs15246 # Let DOS variable expansion print the short 8.3 style file name.15247 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`15248 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"15249 done15250 IFS=$lt_save_ifs15251 # Convert to MSYS style.15252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`15253 ;;15254 cygwin*)15255 # Convert to unix form, then to dos form, then back to unix form15256 # but this time dos style (no spaces!) so that the unix form looks15257 # like /cygdrive/c/PROGRA~1:/cygdr...15258 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`15259 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`15260 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`15261 ;;15262 *)15263 sys_lib_search_path_spec=$LIB15264 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then15265 # It is most probably a Windows format PATH.15266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`15267 else15268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`15269 fi15270 # FIXME: find the short name or the path components, as spaces are15271 # common. (e.g. "Program Files" -> "PROGRA~1")15272 ;;15273 esac15274 15275 # DLL is installed to $(libdir)/../bin by postinstall_cmds15276 postinstall_cmds='base_file=`basename \$file`~15277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~15278 dldir=$destdir/`dirname \$dlpath`~15279 test -d \$dldir || mkdir -p \$dldir~15280 $install_prog $dir/$dlname \$dldir/$dlname'15281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~15282 dlpath=$dir/\$dldll~15283 $RM \$dlpath'15284 shlibpath_overrides_runpath=yes15285 dynamic_linker='Win32 link.exe'15286 ;;15287 15288 *)15289 # Assume MSVC wrapper15290 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'15291 dynamic_linker='Win32 ld.exe'15292 ;;15293 esac15294 # FIXME: first we should search . and the directory the executable is in15295 shlibpath_var=PATH15296 ;;15297 15298 darwin* | rhapsody*)15299 dynamic_linker="$host_os dyld"15300 version_type=darwin15301 need_lib_prefix=no15302 need_version=no15303 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'15304 soname_spec='$libname$release$major$shared_ext'15305 shlibpath_overrides_runpath=yes15306 shlibpath_var=DYLD_LIBRARY_PATH15307 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'15308 15309 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'15310 ;;15311 15312 dgux*)15313 version_type=linux # correct to gnu/linux during the next big refactor15314 need_lib_prefix=no15315 need_version=no15316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15317 soname_spec='$libname$release$shared_ext$major'15318 shlibpath_var=LD_LIBRARY_PATH15319 ;;15320 15321 freebsd* | dragonfly*)15322 # DragonFly does not have aout. When/if they implement a new15323 # versioning mechanism, adjust this.15324 if test -x /usr/bin/objformat; then15325 objformat=`/usr/bin/objformat`15326 else15327 case $host_os in15328 freebsd[23].*) objformat=aout ;;15329 *) objformat=elf ;;15330 esac15331 fi15332 version_type=freebsd-$objformat15333 case $version_type in15334 freebsd-elf*)15335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15336 soname_spec='$libname$release$shared_ext$major'15337 need_version=no15338 need_lib_prefix=no15339 ;;15340 freebsd-*)15341 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15342 need_version=yes15343 ;;15344 esac15345 shlibpath_var=LD_LIBRARY_PATH15346 case $host_os in15347 freebsd2.*)15348 shlibpath_overrides_runpath=yes15349 ;;15350 freebsd3.[01]* | freebsdelf3.[01]*)15351 shlibpath_overrides_runpath=yes15352 hardcode_into_libs=yes15353 ;;15354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \15355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)15356 shlibpath_overrides_runpath=no15357 hardcode_into_libs=yes15358 ;;15359 *) # from 4.6 on, and DragonFly15360 shlibpath_overrides_runpath=yes15361 hardcode_into_libs=yes15362 ;;15363 esac15364 ;;15365 15366 haiku*)15367 version_type=linux # correct to gnu/linux during the next big refactor15368 need_lib_prefix=no15369 need_version=no15370 dynamic_linker="$host_os runtime_loader"15371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15372 soname_spec='$libname$release$shared_ext$major'15373 shlibpath_var=LIBRARY_PATH15374 shlibpath_overrides_runpath=no15375 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'15376 hardcode_into_libs=yes15377 ;;15378 15379 hpux9* | hpux10* | hpux11*)15380 # Give a soname corresponding to the major version so that dld.sl refuses to15381 # link against other versions.15382 version_type=sunos15383 need_lib_prefix=no15384 need_version=no15385 case $host_cpu in15386 ia64*)15387 shrext_cmds='.so'15388 hardcode_into_libs=yes15389 dynamic_linker="$host_os dld.so"15390 shlibpath_var=LD_LIBRARY_PATH15391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.15392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15393 soname_spec='$libname$release$shared_ext$major'15394 if test 32 = "$HPUX_IA64_MODE"; then15395 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"15396 sys_lib_dlsearch_path_spec=/usr/lib/hpux3215397 else15398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"15399 sys_lib_dlsearch_path_spec=/usr/lib/hpux6415400 fi15401 ;;15402 hppa*64*)15403 shrext_cmds='.sl'15404 hardcode_into_libs=yes15405 dynamic_linker="$host_os dld.sl"15406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH15407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.15408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15409 soname_spec='$libname$release$shared_ext$major'15410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"15411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec15412 ;;15413 *)15414 shrext_cmds='.sl'15415 dynamic_linker="$host_os dld.sl"15416 shlibpath_var=SHLIB_PATH15417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH15418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15419 soname_spec='$libname$release$shared_ext$major'15420 ;;15421 esac15422 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...15423 postinstall_cmds='chmod 555 $lib'15424 # or fails outright, so override atomically:15425 install_override_mode=55515426 ;;15427 15428 interix[3-9]*)15429 version_type=linux # correct to gnu/linux during the next big refactor15430 need_lib_prefix=no15431 need_version=no15432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15433 soname_spec='$libname$release$shared_ext$major'15434 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'15435 shlibpath_var=LD_LIBRARY_PATH15436 shlibpath_overrides_runpath=no15437 hardcode_into_libs=yes15438 ;;15439 15440 irix5* | irix6* | nonstopux*)15441 case $host_os in15442 nonstopux*) version_type=nonstopux ;;15443 *)15444 if test yes = "$lt_cv_prog_gnu_ld"; then15445 version_type=linux # correct to gnu/linux during the next big refactor15446 else15447 version_type=irix15448 fi ;;15449 esac15450 need_lib_prefix=no15451 need_version=no15452 soname_spec='$libname$release$shared_ext$major'15453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'15454 case $host_os in15455 irix5* | nonstopux*)15456 libsuff= shlibsuff=15457 ;;15458 *)15459 case $LD in # libtool.m4 will add one of these switches to LD15460 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")15461 libsuff= shlibsuff= libmagic=32-bit;;15462 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")15463 libsuff=32 shlibsuff=N32 libmagic=N32;;15464 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")15465 libsuff=64 shlibsuff=64 libmagic=64-bit;;15466 *) libsuff= shlibsuff= libmagic=never-match;;15467 esac15468 ;;15469 esac15470 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH15471 shlibpath_overrides_runpath=no15472 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"15473 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"15474 hardcode_into_libs=yes15475 ;;15476 15477 # No shared lib support for Linux oldld, aout, or coff.15478 linux*oldld* | linux*aout* | linux*coff*)15479 dynamic_linker=no15480 ;;15481 15482 linux*android*)15483 version_type=none # Android doesn't support versioned libraries.15484 need_lib_prefix=no15485 need_version=no15486 library_names_spec='$libname$release$shared_ext'15487 soname_spec='$libname$release$shared_ext'15488 finish_cmds=15489 shlibpath_var=LD_LIBRARY_PATH15490 shlibpath_overrides_runpath=yes15491 15492 # This implies no fast_install, which is unacceptable.15493 # Some rework will be needed to allow for fast_install15494 # before this can be enabled.15495 hardcode_into_libs=yes15496 15497 dynamic_linker='Android linker'15498 # Don't embed -rpath directories since the linker doesn't support them.15499 hardcode_libdir_flag_spec_CXX='-L$libdir'15500 ;;15501 15502 # This must be glibc/ELF.15503 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)15504 version_type=linux # correct to gnu/linux during the next big refactor15505 need_lib_prefix=no15506 need_version=no15507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15508 soname_spec='$libname$release$shared_ext$major'15509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'15510 shlibpath_var=LD_LIBRARY_PATH15511 shlibpath_overrides_runpath=no15512 15513 # Some binutils ld are patched to set DT_RUNPATH15514 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :15515 $as_echo_n "(cached) " >&615516 else15517 lt_cv_shlibpath_overrides_runpath=no15518 save_LDFLAGS=$LDFLAGS15519 save_libdir=$libdir15520 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \15521 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext15523 /* end confdefs.h. */15524 15525 int15526 main ()15527 {15528 15529 ;15530 return 0;15531 }15532 _ACEOF15533 if ac_fn_cxx_try_link "$LINENO"; then :15534 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :15535 lt_cv_shlibpath_overrides_runpath=yes15536 fi15537 fi15538 rm -f core conftest.err conftest.$ac_objext \15539 conftest$ac_exeext conftest.$ac_ext15540 LDFLAGS=$save_LDFLAGS15541 libdir=$save_libdir15542 15543 fi15544 15545 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath15546 15547 # This implies no fast_install, which is unacceptable.15548 # Some rework will be needed to allow for fast_install15549 # before this can be enabled.15550 hardcode_into_libs=yes15551 15552 # Ideally, we could use ldconfig to report *all* directores which are15553 # searched for libraries, however this is still not possible. Aside from not15554 # being certain /sbin/ldconfig is available, command15555 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,15556 # even though it is searched at run-time. Try to do the best guess by15557 # appending ld.so.conf contents (and includes) to the search path.15558 if test -f /etc/ld.so.conf; then15559 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`15560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"15561 fi15562 15563 # We used to test for /lib/ld.so.1 and disable shared libraries on15564 # powerpc, because MkLinux only supported shared libraries with the15565 # GNU dynamic linker. Since this was broken with cross compilers,15566 # most powerpc-linux boxes support dynamic linking these days and15567 # people can always --disable-shared, the test was removed, and we15568 # assume the GNU/Linux dynamic linker is in use.15569 dynamic_linker='GNU/Linux ld.so'15570 ;;15571 15572 netbsdelf*-gnu)15573 version_type=linux15574 need_lib_prefix=no15575 need_version=no15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'15577 soname_spec='${libname}${release}${shared_ext}$major'15578 shlibpath_var=LD_LIBRARY_PATH15579 shlibpath_overrides_runpath=no15580 hardcode_into_libs=yes15581 dynamic_linker='NetBSD ld.elf_so'15582 ;;15583 15584 netbsd*)15585 version_type=sunos15586 need_lib_prefix=no15587 need_version=no15588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then15589 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'15591 dynamic_linker='NetBSD (a.out) ld.so'15592 else15593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15594 soname_spec='$libname$release$shared_ext$major'15595 dynamic_linker='NetBSD ld.elf_so'15596 fi15597 shlibpath_var=LD_LIBRARY_PATH15598 shlibpath_overrides_runpath=yes15599 hardcode_into_libs=yes15600 ;;15601 15602 newsos6)15603 version_type=linux # correct to gnu/linux during the next big refactor15604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15605 shlibpath_var=LD_LIBRARY_PATH15606 shlibpath_overrides_runpath=yes15607 ;;15608 15609 *nto* | *qnx*)15610 version_type=qnx15611 need_lib_prefix=no15612 need_version=no15613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15614 soname_spec='$libname$release$shared_ext$major'15615 shlibpath_var=LD_LIBRARY_PATH15616 shlibpath_overrides_runpath=no15617 hardcode_into_libs=yes15618 dynamic_linker='ldqnx.so'15619 ;;15620 15621 openbsd* | bitrig*)15622 version_type=sunos15623 sys_lib_dlsearch_path_spec=/usr/lib15624 need_lib_prefix=no15625 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then15626 need_version=no15627 else15628 need_version=yes15629 fi15630 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'15632 shlibpath_var=LD_LIBRARY_PATH15633 shlibpath_overrides_runpath=yes15634 ;;15635 15636 os2*)15637 libname_spec='$name'15638 version_type=windows15639 shrext_cmds=.dll15640 need_version=no15641 need_lib_prefix=no15642 # OS/2 can only load a DLL with a base name of 8 characters or less.15643 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";15644 v=$($ECHO $release$versuffix | tr -d .-);15645 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);15646 $ECHO $n$v`$shared_ext'15647 library_names_spec='${libname}_dll.$libext'15648 dynamic_linker='OS/2 ld.exe'15649 shlibpath_var=BEGINLIBPATH15650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"15651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec15652 postinstall_cmds='base_file=`basename \$file`~15653 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~15654 dldir=$destdir/`dirname \$dlpath`~15655 test -d \$dldir || mkdir -p \$dldir~15656 $install_prog $dir/$dlname \$dldir/$dlname~15657 chmod a+x \$dldir/$dlname~15658 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then15659 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;15660 fi'15661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~15662 dlpath=$dir/\$dldll~15663 $RM \$dlpath'15664 ;;15665 15666 osf3* | osf4* | osf5*)15667 version_type=osf15668 need_lib_prefix=no15669 need_version=no15670 soname_spec='$libname$release$shared_ext$major'15671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15672 shlibpath_var=LD_LIBRARY_PATH15673 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"15674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec15675 ;;15676 15677 rdos*)15678 dynamic_linker=no15679 ;;15680 15681 solaris*)15682 version_type=linux # correct to gnu/linux during the next big refactor15683 need_lib_prefix=no15684 need_version=no15685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15686 soname_spec='$libname$release$shared_ext$major'15687 shlibpath_var=LD_LIBRARY_PATH15688 shlibpath_overrides_runpath=yes15689 hardcode_into_libs=yes15690 # ldd complains unless libraries are executable15691 postinstall_cmds='chmod +x $lib'15692 ;;15693 15694 sunos4*)15695 version_type=sunos15696 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15697 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'15698 shlibpath_var=LD_LIBRARY_PATH15699 shlibpath_overrides_runpath=yes15700 if test yes = "$with_gnu_ld"; then15701 need_lib_prefix=no15702 fi15703 need_version=yes15704 ;;15705 15706 sysv4 | sysv4.3*)15707 version_type=linux # correct to gnu/linux during the next big refactor15708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15709 soname_spec='$libname$release$shared_ext$major'15710 shlibpath_var=LD_LIBRARY_PATH15711 case $host_vendor in15712 sni)15713 shlibpath_overrides_runpath=no15714 need_lib_prefix=no15715 runpath_var=LD_RUN_PATH15716 ;;15717 siemens)15718 need_lib_prefix=no15719 ;;15720 motorola)15721 need_lib_prefix=no15722 need_version=no15723 shlibpath_overrides_runpath=no15724 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'15725 ;;15726 esac15727 ;;15728 15729 sysv4*MP*)15730 if test -d /usr/nec; then15731 version_type=linux # correct to gnu/linux during the next big refactor15732 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'15733 soname_spec='$libname$shared_ext.$major'15734 shlibpath_var=LD_LIBRARY_PATH15735 fi15736 ;;15737 15738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)15739 version_type=sco15740 need_lib_prefix=no15741 need_version=no15742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'15743 soname_spec='$libname$release$shared_ext$major'15744 shlibpath_var=LD_LIBRARY_PATH15745 shlibpath_overrides_runpath=yes15746 hardcode_into_libs=yes15747 if test yes = "$with_gnu_ld"; then15748 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'15749 else15750 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'15751 case $host_os in15752 sco3.2v5*)15753 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"15754 ;;15755 esac15756 fi15757 sys_lib_dlsearch_path_spec='/usr/lib'15758 ;;15759 15760 tpf*)15761 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.15762 version_type=linux # correct to gnu/linux during the next big refactor15763 need_lib_prefix=no15764 need_version=no15765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15766 shlibpath_var=LD_LIBRARY_PATH15767 shlibpath_overrides_runpath=no15768 hardcode_into_libs=yes15769 ;;15770 15771 uts4*)15772 version_type=linux # correct to gnu/linux during the next big refactor15773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15774 soname_spec='$libname$release$shared_ext$major'15775 shlibpath_var=LD_LIBRARY_PATH15776 ;;15777 15778 *)15779 dynamic_linker=no15780 ;;15781 esac15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&515783 $as_echo "$dynamic_linker" >&6; }15784 test no = "$dynamic_linker" && can_build_shared=no15785 15786 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"15787 if test yes = "$GCC"; then15788 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"15789 fi15790 15791 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then15792 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec15793 fi15794 15795 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then15796 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec15797 fi15798 15799 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...15800 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec15801 15802 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code15803 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"15804 15805 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool15806 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&515848 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }15849 hardcode_action_CXX=15850 if test -n "$hardcode_libdir_flag_spec_CXX" ||15851 test -n "$runpath_var_CXX" ||15852 test yes = "$hardcode_automatic_CXX"; then15853 15854 # We can hardcode non-existent directories.15855 if test no != "$hardcode_direct_CXX" &&15856 # If the only mechanism to avoid hardcoding is shlibpath_var, we15857 # have to relink, otherwise we might link with an installed library15858 # when we should be linking with a yet-to-be-installed one15859 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&15860 test no != "$hardcode_minus_L_CXX"; then15861 # Linking always hardcodes the temporary library directory.15862 hardcode_action_CXX=relink15863 else15864 # We can link without hardcoding, and we can hardcode nonexisting dirs.15865 hardcode_action_CXX=immediate15866 fi15867 else15868 # We cannot hardcode anything, or else we can only hardcode existing15869 # directories.15870 hardcode_action_CXX=unsupported15871 fi15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&515873 $as_echo "$hardcode_action_CXX" >&6; }15874 15875 if test relink = "$hardcode_action_CXX" ||15876 test yes = "$inherit_rpath_CXX"; then15877 # Fast installation is not supported15878 enable_fast_install=no15879 elif test yes = "$shlibpath_overrides_runpath" ||15880 test no = "$enable_shared"; then15881 # Fast installation is not necessary15882 enable_fast_install=needless15883 fi15884 15885 15886 15887 15888 15889 15890 15891 fi # test -n "$compiler"15892 15893 CC=$lt_save_CC15894 CFLAGS=$lt_save_CFLAGS15895 LDCXX=$LD15896 LD=$lt_save_LD15897 GCC=$lt_save_GCC15898 with_gnu_ld=$lt_save_with_gnu_ld15899 lt_cv_path_LDCXX=$lt_cv_path_LD15900 lt_cv_path_LD=$lt_save_path_LD15901 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld15902 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld15903 fi # test yes != "$_lt_caught_CXX_error"15904 15905 ac_ext=c15906 ac_cpp='$CPP $CPPFLAGS'15907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'15908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'15909 ac_compiler_gnu=$ac_cv_c_compiler_gnu15910 15911 15912 ac_ext=c15913 ac_cpp='$CPP $CPPFLAGS'15914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'15915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'15916 ac_compiler_gnu=$ac_cv_c_compiler_gnu15917 if test -n "$ac_tool_prefix"; then15918 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.15919 set dummy ${ac_tool_prefix}gcc; ac_word=$215920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&515921 $as_echo_n "checking for $ac_word... " >&6; }15922 if ${ac_cv_prog_CC+:} false; then :15923 $as_echo_n "(cached) " >&615924 else15925 if test -n "$CC"; then15926 ac_cv_prog_CC="$CC" # Let the user override the test.15927 else15928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR15929 for as_dir in $PATH15930 do15931 IFS=$as_save_IFS15932 test -z "$as_dir" && as_dir=.15933 for ac_exec_ext in '' $ac_executable_extensions; do15934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then15935 ac_cv_prog_CC="${ac_tool_prefix}gcc"15936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&515937 break 215938 fi15939 done15940 done15941 IFS=$as_save_IFS15942 15943 fi15944 fi15945 CC=$ac_cv_prog_CC15946 if test -n "$CC"; then15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&515948 $as_echo "$CC" >&6; }15949 else15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&515951 $as_echo "no" >&6; }15952 fi15953 15954 15955 fi15956 if test -z "$ac_cv_prog_CC"; then15957 ac_ct_CC=$CC15958 # Extract the first word of "gcc", so it can be a program name with args.15959 set dummy gcc; ac_word=$215960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&515961 $as_echo_n "checking for $ac_word... " >&6; }15962 if ${ac_cv_prog_ac_ct_CC+:} false; then :15963 $as_echo_n "(cached) " >&615964 else15965 if test -n "$ac_ct_CC"; then15966 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.15967 else15968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR15969 for as_dir in $PATH15970 do15971 IFS=$as_save_IFS15972 test -z "$as_dir" && as_dir=.15973 for ac_exec_ext in '' $ac_executable_extensions; do15974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then15975 ac_cv_prog_ac_ct_CC="gcc"15976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&515977 break 215978 fi15979 done15980 done15981 IFS=$as_save_IFS15982 15983 fi15984 fi15985 ac_ct_CC=$ac_cv_prog_ac_ct_CC15986 if test -n "$ac_ct_CC"; then15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&515988 $as_echo "$ac_ct_CC" >&6; }15989 else15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&515991 $as_echo "no" >&6; }15992 fi15993 15994 if test "x$ac_ct_CC" = x; then15995 CC=""15996 else15997 case $cross_compiling:$ac_tool_warned in15998 yes:)15999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&516000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}16001 ac_tool_warned=yes ;;16002 esac16003 CC=$ac_ct_CC16004 fi16005 else16006 CC="$ac_cv_prog_CC"16007 fi16008 16009 if test -z "$CC"; then16010 if test -n "$ac_tool_prefix"; then16011 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.16012 set dummy ${ac_tool_prefix}cc; ac_word=$216013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516014 $as_echo_n "checking for $ac_word... " >&6; }16015 if ${ac_cv_prog_CC+:} false; then :16016 $as_echo_n "(cached) " >&616017 else16018 if test -n "$CC"; then16019 ac_cv_prog_CC="$CC" # Let the user override the test.16020 else16021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16022 for as_dir in $PATH16023 do16024 IFS=$as_save_IFS16025 test -z "$as_dir" && as_dir=.16026 for ac_exec_ext in '' $ac_executable_extensions; do16027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16028 ac_cv_prog_CC="${ac_tool_prefix}cc"16029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516030 break 216031 fi16032 done16033 done16034 IFS=$as_save_IFS16035 16036 fi16037 fi16038 CC=$ac_cv_prog_CC16039 if test -n "$CC"; then16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&516041 $as_echo "$CC" >&6; }16042 else16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516044 $as_echo "no" >&6; }16045 fi16046 16047 16048 fi16049 fi16050 if test -z "$CC"; then16051 # Extract the first word of "cc", so it can be a program name with args.16052 set dummy cc; ac_word=$216053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516054 $as_echo_n "checking for $ac_word... " >&6; }16055 if ${ac_cv_prog_CC+:} false; then :16056 $as_echo_n "(cached) " >&616057 else16058 if test -n "$CC"; then16059 ac_cv_prog_CC="$CC" # Let the user override the test.16060 else16061 ac_prog_rejected=no16062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16063 for as_dir in $PATH16064 do16065 IFS=$as_save_IFS16066 test -z "$as_dir" && as_dir=.16067 for ac_exec_ext in '' $ac_executable_extensions; do16068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16069 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then16070 ac_prog_rejected=yes16071 continue16072 fi16073 ac_cv_prog_CC="cc"16074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516075 break 216076 fi16077 done16078 done16079 IFS=$as_save_IFS16080 16081 if test $ac_prog_rejected = yes; then16082 # We found a bogon in the path, so make sure we never use it.16083 set dummy $ac_cv_prog_CC16084 shift16085 if test $# != 0; then16086 # We chose a different compiler from the bogus one.16087 # However, it has the same basename, so the bogon will be chosen16088 # first if we set CC to just the basename; use the full file name.16089 shift16090 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"16091 fi16092 fi16093 fi16094 fi16095 CC=$ac_cv_prog_CC16096 if test -n "$CC"; then16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&516098 $as_echo "$CC" >&6; }16099 else16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516101 $as_echo "no" >&6; }16102 fi16103 16104 16105 fi16106 if test -z "$CC"; then16107 if test -n "$ac_tool_prefix"; then16108 for ac_prog in cl.exe16109 do16110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.16111 set dummy $ac_tool_prefix$ac_prog; ac_word=$216112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516113 $as_echo_n "checking for $ac_word... " >&6; }16114 if ${ac_cv_prog_CC+:} false; then :16115 $as_echo_n "(cached) " >&616116 else16117 if test -n "$CC"; then16118 ac_cv_prog_CC="$CC" # Let the user override the test.16119 else16120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16121 for as_dir in $PATH16122 do16123 IFS=$as_save_IFS16124 test -z "$as_dir" && as_dir=.16125 for ac_exec_ext in '' $ac_executable_extensions; do16126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"16128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516129 break 216130 fi16131 done16132 done16133 IFS=$as_save_IFS16134 16135 fi16136 fi16137 CC=$ac_cv_prog_CC16138 if test -n "$CC"; then16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&516140 $as_echo "$CC" >&6; }16141 else16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516143 $as_echo "no" >&6; }16144 fi16145 16146 16147 test -n "$CC" && break16148 done16149 fi16150 if test -z "$CC"; then16151 ac_ct_CC=$CC16152 for ac_prog in cl.exe16153 do16154 # Extract the first word of "$ac_prog", so it can be a program name with args.16155 set dummy $ac_prog; ac_word=$216156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516157 $as_echo_n "checking for $ac_word... " >&6; }16158 if ${ac_cv_prog_ac_ct_CC+:} false; then :16159 $as_echo_n "(cached) " >&616160 else16161 if test -n "$ac_ct_CC"; then16162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.16163 else16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16165 for as_dir in $PATH16166 do16167 IFS=$as_save_IFS16168 test -z "$as_dir" && as_dir=.16169 for ac_exec_ext in '' $ac_executable_extensions; do16170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16171 ac_cv_prog_ac_ct_CC="$ac_prog"16172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516173 break 216174 fi16175 done16176 done16177 IFS=$as_save_IFS16178 16179 fi16180 fi16181 ac_ct_CC=$ac_cv_prog_ac_ct_CC16182 if test -n "$ac_ct_CC"; then16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&516184 $as_echo "$ac_ct_CC" >&6; }16185 else16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516187 $as_echo "no" >&6; }16188 fi16189 16190 16191 test -n "$ac_ct_CC" && break16192 done16193 16194 if test "x$ac_ct_CC" = x; then16195 CC=""16196 else16197 case $cross_compiling:$ac_tool_warned in16198 yes:)16199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&516200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}16201 ac_tool_warned=yes ;;16202 esac16203 CC=$ac_ct_CC16204 fi16205 fi16206 16207 fi16208 16209 16210 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&516211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}16212 as_fn_error $? "no acceptable C compiler found in \$PATH16213 See \`config.log' for more details" "$LINENO" 5; }16214 16215 # Provide some information about the compiler.16216 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&516217 set X $ac_compile16218 ac_compiler=$216219 for ac_option in --version -v -V -qversion; do16220 { { ac_try="$ac_compiler $ac_option >&5"16221 case "(($ac_try" in16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16223 *) ac_try_echo=$ac_try;;16224 esac16225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""16226 $as_echo "$ac_try_echo"; } >&516227 (eval "$ac_compiler $ac_option >&5") 2>conftest.err16228 ac_status=$?16229 if test -s conftest.err; then16230 sed '10a\16231 ... rest of stderr output deleted ...16232 10q' conftest.err >conftest.er116233 cat conftest.er1 >&516234 fi16235 rm -f conftest.er1 conftest.err16236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&516237 test $ac_status = 0; }16238 done16239 16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&516241 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }16242 if ${ac_cv_c_compiler_gnu+:} false; then :16243 $as_echo_n "(cached) " >&616244 else16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16246 /* end confdefs.h. */16247 16248 int16249 main ()16250 {16251 #ifndef __GNUC__16252 choke me16253 #endif16254 16255 ;16256 return 0;16257 }16258 _ACEOF16259 if ac_fn_c_try_compile "$LINENO"; then :16260 ac_compiler_gnu=yes16261 else16262 ac_compiler_gnu=no16263 fi16264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16265 ac_cv_c_compiler_gnu=$ac_compiler_gnu16266 16267 fi16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&516269 $as_echo "$ac_cv_c_compiler_gnu" >&6; }16270 if test $ac_compiler_gnu = yes; then16271 GCC=yes16272 else16273 GCC=16274 fi16275 ac_test_CFLAGS=${CFLAGS+set}16276 ac_save_CFLAGS=$CFLAGS16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&516278 $as_echo_n "checking whether $CC accepts -g... " >&6; }16279 if ${ac_cv_prog_cc_g+:} false; then :16280 $as_echo_n "(cached) " >&616281 else16282 ac_save_c_werror_flag=$ac_c_werror_flag16283 ac_c_werror_flag=yes16284 ac_cv_prog_cc_g=no16285 CFLAGS="-g"16286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16287 /* end confdefs.h. */16288 16289 int16290 main ()16291 {16292 16293 ;16294 return 0;16295 }16296 _ACEOF16297 if ac_fn_c_try_compile "$LINENO"; then :16298 ac_cv_prog_cc_g=yes16299 else16300 CFLAGS=""16301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16302 /* end confdefs.h. */16303 16304 int16305 main ()16306 {16307 16308 ;16309 return 0;16310 }16311 _ACEOF16312 if ac_fn_c_try_compile "$LINENO"; then :16313 16314 else16315 ac_c_werror_flag=$ac_save_c_werror_flag16316 CFLAGS="-g"16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16318 /* end confdefs.h. */16319 16320 int16321 main ()16322 {16323 16324 ;16325 return 0;16326 }16327 _ACEOF16328 if ac_fn_c_try_compile "$LINENO"; then :16329 ac_cv_prog_cc_g=yes16330 fi16331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16332 fi16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16334 fi16335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16336 ac_c_werror_flag=$ac_save_c_werror_flag16337 fi16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&516339 $as_echo "$ac_cv_prog_cc_g" >&6; }16340 if test "$ac_test_CFLAGS" = set; then16341 CFLAGS=$ac_save_CFLAGS16342 elif test $ac_cv_prog_cc_g = yes; then16343 if test "$GCC" = yes; then16344 CFLAGS="-g -O2"16345 else16346 CFLAGS="-g"16347 fi16348 else16349 if test "$GCC" = yes; then16350 CFLAGS="-O2"16351 else16352 CFLAGS=16353 fi16354 fi16355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&516356 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }16357 if ${ac_cv_prog_cc_c89+:} false; then :16358 $as_echo_n "(cached) " >&616359 else16360 ac_cv_prog_cc_c89=no16361 ac_save_CC=$CC16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16363 /* end confdefs.h. */16364 #include <stdarg.h>16365 #include <stdio.h>16366 struct stat;16367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */16368 struct buf { int x; };16369 FILE * (*rcsopen) (struct buf *, struct stat *, int);16370 static char *e (p, i)16371 char **p;16372 int i;16373 {16374 return p[i];16375 }16376 static char *f (char * (*g) (char **, int), char **p, ...)16377 {16378 char *s;16379 va_list v;16380 va_start (v,p);16381 s = g (p, va_arg (v,int));16382 va_end (v);16383 return s;16384 }16385 16386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has16387 function prototypes and stuff, but not '\xHH' hex character constants.16388 These don't provoke an error unfortunately, instead are silently treated16389 as 'x'. The following induces an error, until -std is added to get16390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an16391 array size at least. It's necessary to write '\x00'==0 to get something16392 that's true only with -std. */16393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];16394 16395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters16396 inside strings and character constants. */16397 #define FOO(x) 'x'16398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];16399 16400 int test (int i, double x);16401 struct s1 {int (*f) (int a);};16402 struct s2 {int (*f) (double a);};16403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);16404 int argc;16405 char **argv;16406 int16407 main ()16408 {16409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];16410 ;16411 return 0;16412 }16413 _ACEOF16414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \16415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"16416 do16417 CC="$ac_save_CC $ac_arg"16418 if ac_fn_c_try_compile "$LINENO"; then :16419 ac_cv_prog_cc_c89=$ac_arg16420 fi16421 rm -f core conftest.err conftest.$ac_objext16422 test "x$ac_cv_prog_cc_c89" != "xno" && break16423 done16424 rm -f conftest.$ac_ext16425 CC=$ac_save_CC16426 16427 fi16428 # AC_CACHE_VAL16429 case "x$ac_cv_prog_cc_c89" in16430 x)16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&516432 $as_echo "none needed" >&6; } ;;16433 xno)16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&516435 $as_echo "unsupported" >&6; } ;;16436 *)16437 CC="$CC $ac_cv_prog_cc_c89"16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&516439 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;16440 esac16441 if test "x$ac_cv_prog_cc_c89" != xno; then :16442 16443 fi16444 16445 ac_ext=c16446 ac_cpp='$CPP $CPPFLAGS'16447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16449 ac_compiler_gnu=$ac_cv_c_compiler_gnu16450 16451 ac_ext=c16452 ac_cpp='$CPP $CPPFLAGS'16453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16455 ac_compiler_gnu=$ac_cv_c_compiler_gnu16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&516457 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }16458 if ${am_cv_prog_cc_c_o+:} false; then :16459 $as_echo_n "(cached) " >&616460 else16461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16462 /* end confdefs.h. */16463 16464 int16465 main ()16466 {16467 16468 ;16469 return 0;16470 }16471 _ACEOF16472 # Make sure it works both with $CC and with simple cc.16473 # Following AC_PROG_CC_C_O, we do the test twice because some16474 # compilers refuse to overwrite an existing .o file with -o,16475 # though they will create one.16476 am_cv_prog_cc_c_o=yes16477 for am_i in 1 2; do16478 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&516479 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&516480 ac_status=$?16481 echo "$as_me:$LINENO: \$? = $ac_status" >&516482 (exit $ac_status); } \16483 && test -f conftest2.$ac_objext; then16484 : OK16485 else16486 am_cv_prog_cc_c_o=no16487 break16488 fi16489 done16490 rm -f core conftest*16491 unset am_i16492 fi16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&516494 $as_echo "$am_cv_prog_cc_c_o" >&6; }16495 if test "$am_cv_prog_cc_c_o" != yes; then16496 # Losing compiler, so override with the script.16497 # FIXME: It is wrong to rewrite CC.16498 # But if we don't then we get into trouble of one sort or another.16499 # A longer-term fix would be to have automake use am__CC in this case,16500 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"16501 CC="$am_aux_dir/compile $CC"16502 fi16503 ac_ext=c16504 ac_cpp='$CPP $CPPFLAGS'16505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16507 ac_compiler_gnu=$ac_cv_c_compiler_gnu16508 16509 16510 depcc="$CC" am_compiler_list=16511 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&516513 $as_echo_n "checking dependency style of $depcc... " >&6; }16514 if ${am_cv_CC_dependencies_compiler_type+:} false; then :16515 $as_echo_n "(cached) " >&616516 else16517 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then16518 # We make a subdir and do the tests there. Otherwise we can end up16519 # making bogus files that we don't know about and never remove. For16520 # instance it was reported that on HP-UX the gcc test will end up16521 # making a dummy file named 'D' -- because '-MD' means "put the output16522 # in D".16523 rm -rf conftest.dir16524 mkdir conftest.dir16525 # Copy depcomp to subdir because otherwise we won't find it if we're16526 # using a relative directory.16527 cp "$am_depcomp" conftest.dir16528 cd conftest.dir16529 # We will build objects and dependencies in a subdirectory because16530 # it helps to detect inapplicable dependency modes. For instance16531 # both Tru64's cc and ICC support -MD to output dependencies as a16532 # side effect of compilation, but ICC will put the dependencies in16533 # the current directory while Tru64 will put them in the object16534 # directory.16535 mkdir sub16536 16537 am_cv_CC_dependencies_compiler_type=none16538 if test "$am_compiler_list" = ""; then16539 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`16540 fi16541 am__universal=false16542 case " $depcc " in #(16543 *\ -arch\ *\ -arch\ *) am__universal=true ;;16544 esac16545 16546 for depmode in $am_compiler_list; do16547 # Setup a source with many dependencies, because some compilers16548 # like to wrap large dependency lists on column 80 (with \), and16549 # we should not choose a depcomp mode which is confused by this.16550 #16551 # We need to recreate these files for each test, as the compiler may16552 # overwrite some of them when testing with obscure command lines.16553 # This happens at least with the AIX C compiler.16554 : > sub/conftest.c16555 for i in 1 2 3 4 5 6; do16556 echo '#include "conftst'$i'.h"' >> sub/conftest.c16557 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with16558 # Solaris 10 /bin/sh.16559 echo '/* dummy */' > sub/conftst$i.h16560 done16561 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf16562 16563 # We check with '-c' and '-o' for the sake of the "dashmstdout"16564 # mode. It turns out that the SunPro C++ compiler does not properly16565 # handle '-M -o', and we need to detect this. Also, some Intel16566 # versions had trouble with output in subdirs.16567 am__obj=sub/conftest.${OBJEXT-o}16568 am__minus_obj="-o $am__obj"16569 case $depmode in16570 gcc)16571 # This depmode causes a compiler race in universal mode.16572 test "$am__universal" = false || continue16573 ;;16574 nosideeffect)16575 # After this tag, mechanisms are not by side-effect, so they'll16576 # only be used when explicitly requested.16577 if test "x$enable_dependency_tracking" = xyes; then16578 continue16579 else16580 break16581 fi16582 ;;16583 msvc7 | msvc7msys | msvisualcpp | msvcmsys)16584 # This compiler won't grok '-c -o', but also, the minuso test has16585 # not run yet. These depmodes are late enough in the game, and16586 # so weak that their functioning should not be impacted.16587 am__obj=conftest.${OBJEXT-o}16588 am__minus_obj=16589 ;;16590 none) break ;;16591 esac16592 if depmode=$depmode \16593 source=sub/conftest.c object=$am__obj \16594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \16595 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \16596 >/dev/null 2>conftest.err &&16597 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&16598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&16599 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&16600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then16601 # icc doesn't choke on unknown options, it will just issue warnings16602 # or remarks (even with -Werror). So we grep stderr for any message16603 # that says an option was ignored or not supported.16604 # When given -MP, icc 7.0 and 7.1 complain thusly:16605 # icc: Command line warning: ignoring option '-M'; no argument required16606 # The diagnosis changed in icc 8.0:16607 # icc: Command line remark: option '-MP' not supported16608 if (grep 'ignoring option' conftest.err ||16609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else16610 am_cv_CC_dependencies_compiler_type=$depmode16611 break16612 fi16613 fi16614 done16615 16616 cd ..16617 rm -rf conftest.dir16618 else16619 am_cv_CC_dependencies_compiler_type=none16620 fi16621 16622 fi16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&516624 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }16625 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type16626 16627 if16628 test "x$enable_dependency_tracking" != xno \16629 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then16630 am__fastdepCC_TRUE=16631 am__fastdepCC_FALSE='#'16632 else16633 am__fastdepCC_TRUE='#'16634 am__fastdepCC_FALSE=16635 fi16636 16637 16638 4074 # By default we simply use the C compiler to build assembly code. 16639 4075 … … 16801 4237 fi 16802 4238 4239 if test -n "$ac_tool_prefix"; then 4240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4241 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4243 $as_echo_n "checking for $ac_word... " >&6; } 4244 if ${ac_cv_prog_RANLIB+:} false; then : 4245 $as_echo_n "(cached) " >&6 4246 else 4247 if test -n "$RANLIB"; then 4248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4249 else 4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4251 for as_dir in $PATH 4252 do 4253 IFS=$as_save_IFS 4254 test -z "$as_dir" && as_dir=. 4255 for ac_exec_ext in '' $ac_executable_extensions; do 4256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4257 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4259 break 2 4260 fi 4261 done 4262 done 4263 IFS=$as_save_IFS 4264 4265 fi 4266 fi 4267 RANLIB=$ac_cv_prog_RANLIB 4268 if test -n "$RANLIB"; then 4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4270 $as_echo "$RANLIB" >&6; } 4271 else 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4273 $as_echo "no" >&6; } 4274 fi 4275 4276 4277 fi 4278 if test -z "$ac_cv_prog_RANLIB"; then 4279 ac_ct_RANLIB=$RANLIB 4280 # Extract the first word of "ranlib", so it can be a program name with args. 4281 set dummy ranlib; ac_word=$2 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4283 $as_echo_n "checking for $ac_word... " >&6; } 4284 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4285 $as_echo_n "(cached) " >&6 4286 else 4287 if test -n "$ac_ct_RANLIB"; then 4288 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4289 else 4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4291 for as_dir in $PATH 4292 do 4293 IFS=$as_save_IFS 4294 test -z "$as_dir" && as_dir=. 4295 for ac_exec_ext in '' $ac_executable_extensions; do 4296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4297 ac_cv_prog_ac_ct_RANLIB="ranlib" 4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4299 break 2 4300 fi 4301 done 4302 done 4303 IFS=$as_save_IFS 4304 4305 fi 4306 fi 4307 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4308 if test -n "$ac_ct_RANLIB"; then 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4310 $as_echo "$ac_ct_RANLIB" >&6; } 4311 else 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4313 $as_echo "no" >&6; } 4314 fi 4315 4316 if test "x$ac_ct_RANLIB" = x; then 4317 RANLIB=":" 4318 else 4319 case $cross_compiling:$ac_tool_warned in 4320 yes:) 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4323 ac_tool_warned=yes ;; 4324 esac 4325 RANLIB=$ac_ct_RANLIB 4326 fi 4327 else 4328 RANLIB="$ac_cv_prog_RANLIB" 4329 fi 4330 16803 4331 16804 4332 ac_config_files="$ac_config_files Makefile src/Makefile prelude/Makefile" … … 16974 4502 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16975 4503 fi 16976 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then16977 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.16978 Usually this means the macro was only invoked conditionally." "$LINENO" 516979 fi16980 4504 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16981 4505 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. … … 17554 5078 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17555 5079 17556 17557 # The HP-UX ksh and POSIX shell print the target directory to stdout17558 # if CDPATH is set.17559 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH17560 17561 sed_quote_subst='$sed_quote_subst'17562 double_quote_subst='$double_quote_subst'17563 delay_variable_subst='$delay_variable_subst'17564 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'17565 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'17566 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'17567 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'17568 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'17569 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'17570 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'17571 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'17572 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'17573 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'17574 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'17575 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'17576 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'17577 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'17578 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'17579 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'17580 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'17581 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'17582 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'17583 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'17584 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'17585 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'17586 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'17587 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'17588 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'17589 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'17590 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'17591 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'17592 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'17593 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'17594 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'17595 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'17596 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'17597 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'17598 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'17599 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'17600 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'17601 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'17602 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'17603 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'17604 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'17605 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'17606 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'17607 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'17608 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'17609 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'17610 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'17611 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'17612 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'17613 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'17614 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'17615 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'17616 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'17617 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'17618 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'17619 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'17620 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'17621 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'17622 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'17623 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'17624 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'17625 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'17626 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'17627 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'17628 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'17629 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'17630 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'17631 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'17632 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'17633 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'17634 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'17635 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'17636 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'17637 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'17638 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'17639 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'17640 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'17641 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'17642 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'17643 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'17644 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'17645 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'17646 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'17647 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'17648 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'17649 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'17650 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'17651 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'17652 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'17653 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'17654 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'17655 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'17656 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'17657 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'17658 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'17659 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'17660 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'17661 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'17662 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'17663 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'17664 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'17665 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'17666 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'17667 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'17668 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'17669 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'17670 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'17671 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'17672 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'17673 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'17674 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'17675 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'17676 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'17677 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'17678 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'17679 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'17680 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'17681 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'17682 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'17683 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'17684 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'17685 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'17686 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'17687 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'17688 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'17689 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'17690 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'17691 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'17692 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'17693 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'17694 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'17695 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'17696 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'17697 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'17698 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'17699 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'17700 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'17701 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'17702 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'17703 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'17704 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'17705 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'17706 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'17707 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'17708 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'17709 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'17710 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'17711 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'17712 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'17713 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'17714 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'17715 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'17716 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'17717 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'17718 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'17719 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'17720 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'17721 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'17722 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'17723 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'17724 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'17725 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'17726 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'17727 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'17728 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'17729 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'17730 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'17731 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'17732 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'17733 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'17734 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'17735 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'17736 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'17737 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'17738 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'17739 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'17740 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'17741 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'17742 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'17743 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'17744 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'17745 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'17746 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'17747 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'17748 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'17749 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'17750 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'17751 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'17752 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'17753 17754 LTCC='$LTCC'17755 LTCFLAGS='$LTCFLAGS'17756 compiler='$compiler_DEFAULT'17757 17758 # A function that is used when there is no print builtin or printf.17759 func_fallback_echo ()17760 {17761 eval 'cat <<_LTECHO_EOF17762 \$117763 _LTECHO_EOF'17764 }17765 17766 # Quote evaled strings.17767 for var in SHELL \17768 ECHO \17769 PATH_SEPARATOR \17770 SED \17771 GREP \17772 EGREP \17773 FGREP \17774 LD \17775 NM \17776 LN_S \17777 lt_SP2NL \17778 lt_NL2SP \17779 reload_flag \17780 OBJDUMP \17781 deplibs_check_method \17782 file_magic_cmd \17783 file_magic_glob \17784 want_nocaseglob \17785 DLLTOOL \17786 sharedlib_from_linklib_cmd \17787 AR \17788 AR_FLAGS \17789 archiver_list_spec \17790 STRIP \17791 RANLIB \17792 CC \17793 CFLAGS \17794 compiler \17795 lt_cv_sys_global_symbol_pipe \17796 lt_cv_sys_global_symbol_to_cdecl \17797 lt_cv_sys_global_symbol_to_import \17798 lt_cv_sys_global_symbol_to_c_name_address \17799 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \17800 lt_cv_nm_interface \17801 nm_file_list_spec \17802 lt_cv_truncate_bin \17803 lt_prog_compiler_no_builtin_flag \17804 lt_prog_compiler_pic \17805 lt_prog_compiler_wl \17806 lt_prog_compiler_static \17807 lt_cv_prog_compiler_c_o \17808 need_locks \17809 MANIFEST_TOOL \17810 DSYMUTIL \17811 NMEDIT \17812 LIPO \17813 OTOOL \17814 OTOOL64 \17815 shrext_cmds \17816 export_dynamic_flag_spec \17817 whole_archive_flag_spec \17818 compiler_needs_object \17819 with_gnu_ld \17820 allow_undefined_flag \17821 no_undefined_flag \17822 hardcode_libdir_flag_spec \17823 hardcode_libdir_separator \17824 exclude_expsyms \17825 include_expsyms \17826 file_list_spec \17827 variables_saved_for_relink \17828 libname_spec \17829 library_names_spec \17830 soname_spec \17831 install_override_mode \17832 finish_eval \17833 old_striplib \17834 striplib \17835 compiler_lib_search_dirs \17836 predep_objects \17837 postdep_objects \17838 predeps \17839 postdeps \17840 compiler_lib_search_path \17841 LD_CXX \17842 reload_flag_CXX \17843 compiler_CXX \17844 lt_prog_compiler_no_builtin_flag_CXX \17845 lt_prog_compiler_pic_CXX \17846 lt_prog_compiler_wl_CXX \17847 lt_prog_compiler_static_CXX \17848 lt_cv_prog_compiler_c_o_CXX \17849 export_dynamic_flag_spec_CXX \17850 whole_archive_flag_spec_CXX \17851 compiler_needs_object_CXX \17852 with_gnu_ld_CXX \17853 allow_undefined_flag_CXX \17854 no_undefined_flag_CXX \17855 hardcode_libdir_flag_spec_CXX \17856 hardcode_libdir_separator_CXX \17857 exclude_expsyms_CXX \17858 include_expsyms_CXX \17859 file_list_spec_CXX \17860 compiler_lib_search_dirs_CXX \17861 predep_objects_CXX \17862 postdep_objects_CXX \17863 predeps_CXX \17864 postdeps_CXX \17865 compiler_lib_search_path_CXX; do17866 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in17867 *[\\\\\\\`\\"\\\$]*)17868 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes17869 ;;17870 *)17871 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""17872 ;;17873 esac17874 done17875 17876 # Double-quote double-evaled strings.17877 for var in reload_cmds \17878 old_postinstall_cmds \17879 old_postuninstall_cmds \17880 old_archive_cmds \17881 extract_expsyms_cmds \17882 old_archive_from_new_cmds \17883 old_archive_from_expsyms_cmds \17884 archive_cmds \17885 archive_expsym_cmds \17886 module_cmds \17887 module_expsym_cmds \17888 export_symbols_cmds \17889 prelink_cmds \17890 postlink_cmds \17891 postinstall_cmds \17892 postuninstall_cmds \17893 finish_cmds \17894 sys_lib_search_path_spec \17895 configure_time_dlsearch_path \17896 configure_time_lt_sys_library_path \17897 reload_cmds_CXX \17898 old_archive_cmds_CXX \17899 old_archive_from_new_cmds_CXX \17900 old_archive_from_expsyms_cmds_CXX \17901 archive_cmds_CXX \17902 archive_expsym_cmds_CXX \17903 module_cmds_CXX \17904 module_expsym_cmds_CXX \17905 export_symbols_cmds_CXX \17906 prelink_cmds_CXX \17907 postlink_cmds_CXX; do17908 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in17909 *[\\\\\\\`\\"\\\$]*)17910 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes17911 ;;17912 *)17913 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""17914 ;;17915 esac17916 done17917 17918 ac_aux_dir='$ac_aux_dir'17919 17920 # See if we are running on zsh, and set the options that allow our17921 # commands through without removal of \ escapes INIT.17922 if test -n "\${ZSH_VERSION+set}"; then17923 setopt NO_GLOB_SUBST17924 fi17925 17926 17927 PACKAGE='$PACKAGE'17928 VERSION='$VERSION'17929 RM='$RM'17930 ofile='$ofile'17931 17932 17933 17934 17935 17936 17937 5080 _ACEOF 17938 5081 … … 17944 5087 case $ac_config_target in 17945 5088 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17946 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;17947 5089 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17948 5090 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; … … 18470 5612 } 18471 5613 ;; 18472 "libtool":C)18473 18474 # See if we are running on zsh, and set the options that allow our18475 # commands through without removal of \ escapes.18476 if test -n "${ZSH_VERSION+set}"; then18477 setopt NO_GLOB_SUBST18478 fi18479 18480 cfgfile=${ofile}T18481 trap "$RM \"$cfgfile\"; exit 1" 1 2 1518482 $RM "$cfgfile"18483 18484 cat <<_LT_EOF >> "$cfgfile"18485 #! $SHELL18486 # Generated automatically by $as_me ($PACKAGE) $VERSION18487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:18488 # NOTE: Changes made to this file will be lost: look at ltmain.sh.18489 18490 # Provide generalized library-building support services.18491 # Written by Gordon Matzigkeit, 199618492 18493 # Copyright (C) 2014 Free Software Foundation, Inc.18494 # This is free software; see the source for copying conditions. There is NO18495 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.18496 18497 # GNU Libtool is free software; you can redistribute it and/or modify18498 # it under the terms of the GNU General Public License as published by18499 # the Free Software Foundation; either version 2 of of the License, or18500 # (at your option) any later version.18501 #18502 # As a special exception to the GNU General Public License, if you18503 # distribute this file as part of a program or library that is built18504 # using GNU Libtool, you may include this file under the same18505 # distribution terms that you use for the rest of that program.18506 #18507 # GNU Libtool is distributed in the hope that it will be useful, but18508 # WITHOUT ANY WARRANTY; without even the implied warranty of18509 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18510 # GNU General Public License for more details.18511 #18512 # You should have received a copy of the GNU General Public License18513 # along with this program. If not, see <http://www.gnu.org/licenses/>.18514 18515 18516 # The names of the tagged configurations supported by this script.18517 available_tags='CXX '18518 18519 # Configured defaults for sys_lib_dlsearch_path munging.18520 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}18521 18522 # ### BEGIN LIBTOOL CONFIG18523 18524 # Which release of libtool.m4 was used?18525 macro_version=$macro_version18526 macro_revision=$macro_revision18527 18528 # Whether or not to build shared libraries.18529 build_libtool_libs=$enable_shared18530 18531 # Whether or not to build static libraries.18532 build_old_libs=$enable_static18533 18534 # What type of objects to build.18535 pic_mode=$pic_mode18536 18537 # Whether or not to optimize for fast installation.18538 fast_install=$enable_fast_install18539 18540 # Shared archive member basename,for filename based shared library versioning on AIX.18541 shared_archive_member_spec=$shared_archive_member_spec18542 18543 # Shell to use when invoking shell scripts.18544 SHELL=$lt_SHELL18545 18546 # An echo program that protects backslashes.18547 ECHO=$lt_ECHO18548 18549 # The PATH separator for the build system.18550 PATH_SEPARATOR=$lt_PATH_SEPARATOR18551 18552 # The host system.18553 host_alias=$host_alias18554 host=$host18555 host_os=$host_os18556 18557 # The build system.18558 build_alias=$build_alias18559 build=$build18560 build_os=$build_os18561 18562 # A sed program that does not truncate output.18563 SED=$lt_SED18564 18565 # Sed that helps us avoid accidentally triggering echo(1) options like -n.18566 Xsed="\$SED -e 1s/^X//"18567 18568 # A grep program that handles long lines.18569 GREP=$lt_GREP18570 18571 # An ERE matcher.18572 EGREP=$lt_EGREP18573 18574 # A literal string matcher.18575 FGREP=$lt_FGREP18576 18577 # A BSD- or MS-compatible name lister.18578 NM=$lt_NM18579 18580 # Whether we need soft or hard links.18581 LN_S=$lt_LN_S18582 18583 # What is the maximum length of a command?18584 max_cmd_len=$max_cmd_len18585 18586 # Object file suffix (normally "o").18587 objext=$ac_objext18588 18589 # Executable file suffix (normally "").18590 exeext=$exeext18591 18592 # whether the shell understands "unset".18593 lt_unset=$lt_unset18594 18595 # turn spaces into newlines.18596 SP2NL=$lt_lt_SP2NL18597 18598 # turn newlines into spaces.18599 NL2SP=$lt_lt_NL2SP18600 18601 # convert \$build file names to \$host format.18602 to_host_file_cmd=$lt_cv_to_host_file_cmd18603 18604 # convert \$build files to toolchain format.18605 to_tool_file_cmd=$lt_cv_to_tool_file_cmd18606 18607 # An object symbol dumper.18608 OBJDUMP=$lt_OBJDUMP18609 18610 # Method to check whether dependent libraries are shared objects.18611 deplibs_check_method=$lt_deplibs_check_method18612 18613 # Command to use when deplibs_check_method = "file_magic".18614 file_magic_cmd=$lt_file_magic_cmd18615 18616 # How to find potential files when deplibs_check_method = "file_magic".18617 file_magic_glob=$lt_file_magic_glob18618 18619 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".18620 want_nocaseglob=$lt_want_nocaseglob18621 18622 # DLL creation program.18623 DLLTOOL=$lt_DLLTOOL18624 18625 # Command to associate shared and link libraries.18626 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd18627 18628 # The archiver.18629 AR=$lt_AR18630 18631 # Flags to create an archive.18632 AR_FLAGS=$lt_AR_FLAGS18633 18634 # How to feed a file listing to the archiver.18635 archiver_list_spec=$lt_archiver_list_spec18636 18637 # A symbol stripping program.18638 STRIP=$lt_STRIP18639 18640 # Commands used to install an old-style archive.18641 RANLIB=$lt_RANLIB18642 old_postinstall_cmds=$lt_old_postinstall_cmds18643 old_postuninstall_cmds=$lt_old_postuninstall_cmds18644 18645 # Whether to use a lock for old archive extraction.18646 lock_old_archive_extraction=$lock_old_archive_extraction18647 18648 # A C compiler.18649 LTCC=$lt_CC18650 18651 # LTCC compiler flags.18652 LTCFLAGS=$lt_CFLAGS18653 18654 # Take the output of nm and produce a listing of raw symbols and C names.18655 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe18656 18657 # Transform the output of nm in a proper C declaration.18658 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl18659 18660 # Transform the output of nm into a list of symbols to manually relocate.18661 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import18662 18663 # Transform the output of nm in a C name address pair.18664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address18665 18666 # Transform the output of nm in a C name address pair when lib prefix is needed.18667 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix18668 18669 # The name lister interface.18670 nm_interface=$lt_lt_cv_nm_interface18671 18672 # Specify filename containing input files for \$NM.18673 nm_file_list_spec=$lt_nm_file_list_spec18674 18675 # The root where to search for dependent libraries,and where our libraries should be installed.18676 lt_sysroot=$lt_sysroot18677 18678 # Command to truncate a binary pipe.18679 lt_truncate_bin=$lt_lt_cv_truncate_bin18680 18681 # The name of the directory that contains temporary libtool files.18682 objdir=$objdir18683 18684 # Used to examine libraries when file_magic_cmd begins with "file".18685 MAGIC_CMD=$MAGIC_CMD18686 18687 # Must we lock files when doing compilation?18688 need_locks=$lt_need_locks18689 18690 # Manifest tool.18691 MANIFEST_TOOL=$lt_MANIFEST_TOOL18692 18693 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.18694 DSYMUTIL=$lt_DSYMUTIL18695 18696 # Tool to change global to local symbols on Mac OS X.18697 NMEDIT=$lt_NMEDIT18698 18699 # Tool to manipulate fat objects and archives on Mac OS X.18700 LIPO=$lt_LIPO18701 18702 # ldd/readelf like tool for Mach-O binaries on Mac OS X.18703 OTOOL=$lt_OTOOL18704 18705 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.18706 OTOOL64=$lt_OTOOL6418707 18708 # Old archive suffix (normally "a").18709 libext=$libext18710 18711 # Shared library suffix (normally ".so").18712 shrext_cmds=$lt_shrext_cmds18713 18714 # The commands to extract the exported symbol list from a shared archive.18715 extract_expsyms_cmds=$lt_extract_expsyms_cmds18716 18717 # Variables whose values should be saved in libtool wrapper scripts and18718 # restored at link time.18719 variables_saved_for_relink=$lt_variables_saved_for_relink18720 18721 # Do we need the "lib" prefix for modules?18722 need_lib_prefix=$need_lib_prefix18723 18724 # Do we need a version for libraries?18725 need_version=$need_version18726 18727 # Library versioning type.18728 version_type=$version_type18729 18730 # Shared library runtime path variable.18731 runpath_var=$runpath_var18732 18733 # Shared library path variable.18734 shlibpath_var=$shlibpath_var18735 18736 # Is shlibpath searched before the hard-coded library search path?18737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath18738 18739 # Format of library name prefix.18740 libname_spec=$lt_libname_spec18741 18742 # List of archive names. First name is the real one, the rest are links.18743 # The last name is the one that the linker finds with -lNAME18744 library_names_spec=$lt_library_names_spec18745 18746 # The coded name of the library, if different from the real name.18747 soname_spec=$lt_soname_spec18748 18749 # Permission mode override for installation of shared libraries.18750 install_override_mode=$lt_install_override_mode18751 18752 # Command to use after installation of a shared archive.18753 postinstall_cmds=$lt_postinstall_cmds18754 18755 # Command to use after uninstallation of a shared archive.18756 postuninstall_cmds=$lt_postuninstall_cmds18757 18758 # Commands used to finish a libtool library installation in a directory.18759 finish_cmds=$lt_finish_cmds18760 18761 # As "finish_cmds", except a single script fragment to be evaled but18762 # not shown.18763 finish_eval=$lt_finish_eval18764 18765 # Whether we should hardcode library paths into libraries.18766 hardcode_into_libs=$hardcode_into_libs18767 18768 # Compile-time system search path for libraries.18769 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec18770 18771 # Detected run-time system search path for libraries.18772 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path18773 18774 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.18775 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path18776 18777 # Whether dlopen is supported.18778 dlopen_support=$enable_dlopen18779 18780 # Whether dlopen of programs is supported.18781 dlopen_self=$enable_dlopen_self18782 18783 # Whether dlopen of statically linked programs is supported.18784 dlopen_self_static=$enable_dlopen_self_static18785 18786 # Commands to strip libraries.18787 old_striplib=$lt_old_striplib18788 striplib=$lt_striplib18789 18790 18791 # The linker used to build libraries.18792 LD=$lt_LD18793 18794 # How to create reloadable object files.18795 reload_flag=$lt_reload_flag18796 reload_cmds=$lt_reload_cmds18797 18798 # Commands used to build an old-style archive.18799 old_archive_cmds=$lt_old_archive_cmds18800 18801 # A language specific compiler.18802 CC=$lt_compiler18803 18804 # Is the compiler the GNU compiler?18805 with_gcc=$GCC18806 18807 # Compiler flag to turn off builtin functions.18808 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag18809 18810 # Additional compiler flags for building library objects.18811 pic_flag=$lt_lt_prog_compiler_pic18812 18813 # How to pass a linker flag through the compiler.18814 wl=$lt_lt_prog_compiler_wl18815 18816 # Compiler flag to prevent dynamic linking.18817 link_static_flag=$lt_lt_prog_compiler_static18818 18819 # Does compiler simultaneously support -c and -o options?18820 compiler_c_o=$lt_lt_cv_prog_compiler_c_o18821 18822 # Whether or not to add -lc for building shared libraries.18823 build_libtool_need_lc=$archive_cmds_need_lc18824 18825 # Whether or not to disallow shared libs when runtime libs are static.18826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes18827 18828 # Compiler flag to allow reflexive dlopens.18829 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec18830 18831 # Compiler flag to generate shared objects directly from archives.18832 whole_archive_flag_spec=$lt_whole_archive_flag_spec18833 18834 # Whether the compiler copes with passing no objects directly.18835 compiler_needs_object=$lt_compiler_needs_object18836 18837 # Create an old-style archive from a shared archive.18838 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds18839 18840 # Create a temporary old-style archive to link instead of a shared archive.18841 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds18842 18843 # Commands used to build a shared archive.18844 archive_cmds=$lt_archive_cmds18845 archive_expsym_cmds=$lt_archive_expsym_cmds18846 18847 # Commands used to build a loadable module if different from building18848 # a shared archive.18849 module_cmds=$lt_module_cmds18850 module_expsym_cmds=$lt_module_expsym_cmds18851 18852 # Whether we are building with GNU ld or not.18853 with_gnu_ld=$lt_with_gnu_ld18854 18855 # Flag that allows shared libraries with undefined symbols to be built.18856 allow_undefined_flag=$lt_allow_undefined_flag18857 18858 # Flag that enforces no undefined symbols.18859 no_undefined_flag=$lt_no_undefined_flag18860 18861 # Flag to hardcode \$libdir into a binary during linking.18862 # This must work even if \$libdir does not exist18863 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec18864 18865 # Whether we need a single "-rpath" flag with a separated argument.18866 hardcode_libdir_separator=$lt_hardcode_libdir_separator18867 18868 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes18869 # DIR into the resulting binary.18870 hardcode_direct=$hardcode_direct18871 18872 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes18873 # DIR into the resulting binary and the resulting library dependency is18874 # "absolute",i.e impossible to change by setting \$shlibpath_var if the18875 # library is relocated.18876 hardcode_direct_absolute=$hardcode_direct_absolute18877 18878 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR18879 # into the resulting binary.18880 hardcode_minus_L=$hardcode_minus_L18881 18882 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR18883 # into the resulting binary.18884 hardcode_shlibpath_var=$hardcode_shlibpath_var18885 18886 # Set to "yes" if building a shared library automatically hardcodes DIR18887 # into the library and all subsequent libraries and executables linked18888 # against it.18889 hardcode_automatic=$hardcode_automatic18890 18891 # Set to yes if linker adds runtime paths of dependent libraries18892 # to runtime path list.18893 inherit_rpath=$inherit_rpath18894 18895 # Whether libtool must link a program against all its dependency libraries.18896 link_all_deplibs=$link_all_deplibs18897 18898 # Set to "yes" if exported symbols are required.18899 always_export_symbols=$always_export_symbols18900 18901 # The commands to list exported symbols.18902 export_symbols_cmds=$lt_export_symbols_cmds18903 18904 # Symbols that should not be listed in the preloaded symbols.18905 exclude_expsyms=$lt_exclude_expsyms18906 18907 # Symbols that must always be exported.18908 include_expsyms=$lt_include_expsyms18909 18910 # Commands necessary for linking programs (against libraries) with templates.18911 prelink_cmds=$lt_prelink_cmds18912 18913 # Commands necessary for finishing linking programs.18914 postlink_cmds=$lt_postlink_cmds18915 18916 # Specify filename containing input files.18917 file_list_spec=$lt_file_list_spec18918 18919 # How to hardcode a shared library path into an executable.18920 hardcode_action=$hardcode_action18921 18922 # The directories searched by this compiler when creating a shared library.18923 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs18924 18925 # Dependencies to place before and after the objects being linked to18926 # create a shared library.18927 predep_objects=$lt_predep_objects18928 postdep_objects=$lt_postdep_objects18929 predeps=$lt_predeps18930 postdeps=$lt_postdeps18931 18932 # The library search path used internally by the compiler when linking18933 # a shared library.18934 compiler_lib_search_path=$lt_compiler_lib_search_path18935 18936 # ### END LIBTOOL CONFIG18937 18938 _LT_EOF18939 18940 cat <<'_LT_EOF' >> "$cfgfile"18941 18942 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE18943 18944 # func_munge_path_list VARIABLE PATH18945 # -----------------------------------18946 # VARIABLE is name of variable containing _space_ separated list of18947 # directories to be munged by the contents of PATH, which is string18948 # having a format:18949 # "DIR[:DIR]:"18950 # string "DIR[ DIR]" will be prepended to VARIABLE18951 # ":DIR[:DIR]"18952 # string "DIR[ DIR]" will be appended to VARIABLE18953 # "DIRP[:DIRP]::[DIRA:]DIRA"18954 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string18955 # "DIRA[ DIRA]" will be appended to VARIABLE18956 # "DIR[:DIR]"18957 # VARIABLE will be replaced by "DIR[ DIR]"18958 func_munge_path_list ()18959 {18960 case x$2 in18961 x)18962 ;;18963 *:)18964 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"18965 ;;18966 x:*)18967 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"18968 ;;18969 *::*)18970 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"18971 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"18972 ;;18973 *)18974 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"18975 ;;18976 esac18977 }18978 18979 18980 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.18981 func_cc_basename ()18982 {18983 for cc_temp in $*""; do18984 case $cc_temp in18985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;18986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;18987 \-*) ;;18988 *) break;;18989 esac18990 done18991 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`18992 }18993 18994 18995 # ### END FUNCTIONS SHARED WITH CONFIGURE18996 18997 _LT_EOF18998 18999 case $host_os in19000 aix3*)19001 cat <<\_LT_EOF >> "$cfgfile"19002 # AIX sometimes has problems with the GCC collect2 program. For some19003 # reason, if we set the COLLECT_NAMES environment variable, the problems19004 # vanish in a puff of smoke.19005 if test set != "${COLLECT_NAMES+set}"; then19006 COLLECT_NAMES=19007 export COLLECT_NAMES19008 fi19009 _LT_EOF19010 ;;19011 esac19012 19013 19014 ltmain=$ac_aux_dir/ltmain.sh19015 19016 19017 # We use sed instead of cat because bash on DJGPP gets confused if19018 # if finds mixed CR/LF and LF-only lines. Since sed operates in19019 # text mode, it properly converts lines to CR/LF. This bash problem19020 # is reportedly fixed, but why not run on old versions too?19021 sed '$q' "$ltmain" >> "$cfgfile" \19022 || (rm -f "$cfgfile"; exit 1)19023 19024 mv -f "$cfgfile" "$ofile" ||19025 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")19026 chmod +x "$ofile"19027 19028 19029 cat <<_LT_EOF >> "$ofile"19030 19031 # ### BEGIN LIBTOOL TAG CONFIG: CXX19032 19033 # The linker used to build libraries.19034 LD=$lt_LD_CXX19035 19036 # How to create reloadable object files.19037 reload_flag=$lt_reload_flag_CXX19038 reload_cmds=$lt_reload_cmds_CXX19039 19040 # Commands used to build an old-style archive.19041 old_archive_cmds=$lt_old_archive_cmds_CXX19042 19043 # A language specific compiler.19044 CC=$lt_compiler_CXX19045 19046 # Is the compiler the GNU compiler?19047 with_gcc=$GCC_CXX19048 19049 # Compiler flag to turn off builtin functions.19050 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX19051 19052 # Additional compiler flags for building library objects.19053 pic_flag=$lt_lt_prog_compiler_pic_CXX19054 19055 # How to pass a linker flag through the compiler.19056 wl=$lt_lt_prog_compiler_wl_CXX19057 19058 # Compiler flag to prevent dynamic linking.19059 link_static_flag=$lt_lt_prog_compiler_static_CXX19060 19061 # Does compiler simultaneously support -c and -o options?19062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX19063 19064 # Whether or not to add -lc for building shared libraries.19065 build_libtool_need_lc=$archive_cmds_need_lc_CXX19066 19067 # Whether or not to disallow shared libs when runtime libs are static.19068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX19069 19070 # Compiler flag to allow reflexive dlopens.19071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX19072 19073 # Compiler flag to generate shared objects directly from archives.19074 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX19075 19076 # Whether the compiler copes with passing no objects directly.19077 compiler_needs_object=$lt_compiler_needs_object_CXX19078 19079 # Create an old-style archive from a shared archive.19080 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX19081 19082 # Create a temporary old-style archive to link instead of a shared archive.19083 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX19084 19085 # Commands used to build a shared archive.19086 archive_cmds=$lt_archive_cmds_CXX19087 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX19088 19089 # Commands used to build a loadable module if different from building19090 # a shared archive.19091 module_cmds=$lt_module_cmds_CXX19092 module_expsym_cmds=$lt_module_expsym_cmds_CXX19093 19094 # Whether we are building with GNU ld or not.19095 with_gnu_ld=$lt_with_gnu_ld_CXX19096 19097 # Flag that allows shared libraries with undefined symbols to be built.19098 allow_undefined_flag=$lt_allow_undefined_flag_CXX19099 19100 # Flag that enforces no undefined symbols.19101 no_undefined_flag=$lt_no_undefined_flag_CXX19102 19103 # Flag to hardcode \$libdir into a binary during linking.19104 # This must work even if \$libdir does not exist19105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX19106 19107 # Whether we need a single "-rpath" flag with a separated argument.19108 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX19109 19110 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19111 # DIR into the resulting binary.19112 hardcode_direct=$hardcode_direct_CXX19113 19114 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19115 # DIR into the resulting binary and the resulting library dependency is19116 # "absolute",i.e impossible to change by setting \$shlibpath_var if the19117 # library is relocated.19118 hardcode_direct_absolute=$hardcode_direct_absolute_CXX19119 19120 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR19121 # into the resulting binary.19122 hardcode_minus_L=$hardcode_minus_L_CXX19123 19124 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR19125 # into the resulting binary.19126 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX19127 19128 # Set to "yes" if building a shared library automatically hardcodes DIR19129 # into the library and all subsequent libraries and executables linked19130 # against it.19131 hardcode_automatic=$hardcode_automatic_CXX19132 19133 # Set to yes if linker adds runtime paths of dependent libraries19134 # to runtime path list.19135 inherit_rpath=$inherit_rpath_CXX19136 19137 # Whether libtool must link a program against all its dependency libraries.19138 link_all_deplibs=$link_all_deplibs_CXX19139 19140 # Set to "yes" if exported symbols are required.19141 always_export_symbols=$always_export_symbols_CXX19142 19143 # The commands to list exported symbols.19144 export_symbols_cmds=$lt_export_symbols_cmds_CXX19145 19146 # Symbols that should not be listed in the preloaded symbols.19147 exclude_expsyms=$lt_exclude_expsyms_CXX19148 19149 # Symbols that must always be exported.19150 include_expsyms=$lt_include_expsyms_CXX19151 19152 # Commands necessary for linking programs (against libraries) with templates.19153 prelink_cmds=$lt_prelink_cmds_CXX19154 19155 # Commands necessary for finishing linking programs.19156 postlink_cmds=$lt_postlink_cmds_CXX19157 19158 # Specify filename containing input files.19159 file_list_spec=$lt_file_list_spec_CXX19160 19161 # How to hardcode a shared library path into an executable.19162 hardcode_action=$hardcode_action_CXX19163 19164 # The directories searched by this compiler when creating a shared library.19165 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX19166 19167 # Dependencies to place before and after the objects being linked to19168 # create a shared library.19169 predep_objects=$lt_predep_objects_CXX19170 postdep_objects=$lt_postdep_objects_CXX19171 predeps=$lt_predeps_CXX19172 postdeps=$lt_postdeps_CXX19173 19174 # The library search path used internally by the compiler when linking19175 # a shared library.19176 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX19177 19178 # ### END LIBTOOL TAG CONFIG: CXX19179 _LT_EOF19180 19181 ;;19182 5614 19183 5615 esac
Note:
See TracChangeset
for help on using the changeset viewer.