Changes in configure [274da98:41cca44]
Legend:
- Unmodified
- Added
- Removed
-
configure
r274da98 r41cca44 199 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 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\$ECHO205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO206 PATH=/empty FPATH=/empty; export PATH FPATH207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1209 201 test \$(( 1 + 1 )) = 2 || exit 1" 210 202 if (eval "$as_required") 2>/dev/null; then : … … 565 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 558 567 SHELL=${CONFIG_SHELL-/bin/sh}568 569 559 570 560 test -n "$DJDIR" || exec 7<&0 </dev/null … … 636 626 LTLIBOBJS 637 627 LIBOBJS 638 CFA_BACKEND_CC639 628 ALLOCA 629 EGREP 630 GREP 631 CPP 640 632 WITH_LIBFIBRE_FALSE 641 633 WITH_LIBFIBRE_TRUE 642 CXXCPP643 CPP644 LT_SYS_LIBRARY_PATH645 OTOOL64646 OTOOL647 LIPO648 NMEDIT649 DSYMUTIL650 MANIFEST_TOOL651 634 RANLIB 652 ac_ct_AR653 AR654 DLLTOOL655 OBJDUMP656 LN_S657 NM658 ac_ct_DUMPBIN659 DUMPBIN660 LD661 FGREP662 EGREP663 GREP664 SED665 LIBTOOL666 635 LEXLIB 667 636 LEX_OUTPUT_ROOT … … 718 687 CFA_INCDIR 719 688 CFA_PREFIX 689 CFA_BACKEND_CC 690 BACKEND_CC 720 691 DOendif 721 692 DOifskipcompile … … 792 763 enable_silent_rules 793 764 with_cfa_name 765 with_backend_compiler 794 766 with_target_hosts 795 767 enable_dependency_tracking 796 enable_shared797 enable_static798 with_pic799 enable_fast_install800 with_aix_soname801 with_gnu_ld802 with_sysroot803 enable_libtool_lock804 768 ' 805 769 ac_precious_vars='build_alias … … 818 782 YACC 819 783 YFLAGS 820 LT_SYS_LIBRARY_PATH 821 CPP 822 CXXCPP' 784 CPP' 823 785 824 786 … … 1456 1418 --disable-dependency-tracking 1457 1419 speeds up one-time build 1458 --enable-shared[=PKGS] build shared libraries [default=yes]1459 --enable-static[=PKGS] build static libraries [default=yes]1460 --enable-fast-install[=PKGS]1461 optimize for fast installation [default=yes]1462 --disable-libtool-lock avoid locking (might break parallel builds)1463 1420 1464 1421 Optional Packages: … … 1466 1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1467 1424 --with-cfa-name=NAME NAME too which cfa will be installed 1425 --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) 1468 1426 --with-target-hosts=HOSTS HOSTS comma seperated list of hosts to build for, format ARCH:debug|nodebug|nolib 1469 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use1470 both]1471 --with-aix-soname=aix|svr4|both1472 shared library versioning (aka "SONAME") variant to1473 provide on AIX, [default=aix].1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]1475 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the1476 compiler's sysroot if not specified).1477 1427 1478 1428 Some influential environment variables: … … 1494 1444 This script will default YFLAGS to the empty string to avoid a 1495 1445 default value of `-d' given by some make applications. 1496 LT_SYS_LIBRARY_PATH1497 User-defined run-time library search path.1498 1446 CPP C preprocessor 1499 CXXCPP C++ preprocessor1500 1447 1501 1448 Use these variables to override the choices made by `configure' or to help … … 1701 1648 } # ac_fn_c_try_link 1702 1649 1703 # ac_fn_c_check_ header_compile LINENO HEADERVAR INCLUDES1704 # ------------------------------------------- ------------1705 # Tests whether HEADER exists and can be compiled using the include files in1706 # INCLUDES, setting the cachevariable VAR accordingly.1707 ac_fn_c_check_ header_compile ()1650 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1651 # ------------------------------------------- 1652 # Tests whether TYPE exists after having included INCLUDES, setting cache 1653 # variable VAR accordingly. 1654 ac_fn_c_check_type () 1708 1655 { 1709 1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack … … 1713 1660 $as_echo_n "(cached) " >&6 1714 1661 else 1662 eval "$3=no" 1715 1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1716 1664 /* end confdefs.h. */ 1717 1665 $4 1718 #include <$2> 1666 int 1667 main () 1668 { 1669 if (sizeof ($2)) 1670 return 0; 1671 ; 1672 return 0; 1673 } 1719 1674 _ACEOF 1720 1675 if ac_fn_c_try_compile "$LINENO"; then : 1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1677 /* end confdefs.h. */ 1678 $4 1679 int 1680 main () 1681 { 1682 if (sizeof (($2))) 1683 return 0; 1684 ; 1685 return 0; 1686 } 1687 _ACEOF 1688 if ac_fn_c_try_compile "$LINENO"; then : 1689 1690 else 1721 1691 eval "$3=yes" 1722 else 1723 eval "$3=no" 1692 fi 1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1724 1694 fi 1725 1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext … … 1730 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 1701 1732 } # ac_fn_c_check_ header_compile1702 } # ac_fn_c_check_type 1733 1703 1734 1704 # ac_fn_c_try_cpp LINENO … … 1811 1781 } # ac_fn_c_try_run 1812 1782 1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1784 # ------------------------------------------------------- 1785 # Tests whether HEADER exists and can be compiled using the include files in 1786 # INCLUDES, setting the cache variable VAR accordingly. 1787 ac_fn_c_check_header_compile () 1788 { 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1791 $as_echo_n "checking for $2... " >&6; } 1792 if eval \${$3+:} false; then : 1793 $as_echo_n "(cached) " >&6 1794 else 1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1796 /* end confdefs.h. */ 1797 $4 1798 #include <$2> 1799 _ACEOF 1800 if ac_fn_c_try_compile "$LINENO"; then : 1801 eval "$3=yes" 1802 else 1803 eval "$3=no" 1804 fi 1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1806 fi 1807 eval ac_res=\$$3 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1809 $as_echo "$ac_res" >&6; } 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1811 1812 } # ac_fn_c_check_header_compile 1813 1813 1814 # ac_fn_c_check_func LINENO FUNC VAR 1814 1815 # ---------------------------------- … … 1877 1878 1878 1879 } # ac_fn_c_check_func 1879 1880 # ac_fn_cxx_try_cpp LINENO1881 # ------------------------1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.1883 ac_fn_cxx_try_cpp ()1884 {1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1886 if { { ac_try="$ac_cpp conftest.$ac_ext"1887 case "(($ac_try" in1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1889 *) ac_try_echo=$ac_try;;1890 esac1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1892 $as_echo "$ac_try_echo"; } >&51893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1894 ac_status=$?1895 if test -s conftest.err; then1896 grep -v '^ *+' conftest.err >conftest.er11897 cat conftest.er1 >&51898 mv -f conftest.er1 conftest.err1899 fi1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51901 test $ac_status = 0; } > conftest.i && {1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||1903 test ! -s conftest.err1904 }; then :1905 ac_retval=01906 else1907 $as_echo "$as_me: failed program was:" >&51908 sed 's/^/| /' conftest.$ac_ext >&51909 1910 ac_retval=11911 fi1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1913 as_fn_set_status $ac_retval1914 1915 } # ac_fn_cxx_try_cpp1916 1917 # ac_fn_cxx_try_link LINENO1918 # -------------------------1919 # Try to link conftest.$ac_ext, and return whether this succeeded.1920 ac_fn_cxx_try_link ()1921 {1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1923 rm -f conftest.$ac_objext conftest$ac_exeext1924 if { { ac_try="$ac_link"1925 case "(($ac_try" in1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1927 *) ac_try_echo=$ac_try;;1928 esac1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1930 $as_echo "$ac_try_echo"; } >&51931 (eval "$ac_link") 2>conftest.err1932 ac_status=$?1933 if test -s conftest.err; then1934 grep -v '^ *+' conftest.err >conftest.er11935 cat conftest.er1 >&51936 mv -f conftest.er1 conftest.err1937 fi1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51939 test $ac_status = 0; } && {1940 test -z "$ac_cxx_werror_flag" ||1941 test ! -s conftest.err1942 } && test -s conftest$ac_exeext && {1943 test "$cross_compiling" = yes ||1944 test -x conftest$ac_exeext1945 }; then :1946 ac_retval=01947 else1948 $as_echo "$as_me: failed program was:" >&51949 sed 's/^/| /' conftest.$ac_ext >&51950 1951 ac_retval=11952 fi1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would1955 # interfere with the next link command; also delete a directory that is1956 # left behind by Apple's compiler. We do this before executing the actions.1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1959 as_fn_set_status $ac_retval1960 1961 } # ac_fn_cxx_try_link1962 1963 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES1964 # -------------------------------------------1965 # Tests whether TYPE exists after having included INCLUDES, setting cache1966 # variable VAR accordingly.1967 ac_fn_c_check_type ()1968 {1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51971 $as_echo_n "checking for $2... " >&6; }1972 if eval \${$3+:} false; then :1973 $as_echo_n "(cached) " >&61974 else1975 eval "$3=no"1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1977 /* end confdefs.h. */1978 $41979 int1980 main ()1981 {1982 if (sizeof ($2))1983 return 0;1984 ;1985 return 0;1986 }1987 _ACEOF1988 if ac_fn_c_try_compile "$LINENO"; then :1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1990 /* end confdefs.h. */1991 $41992 int1993 main ()1994 {1995 if (sizeof (($2)))1996 return 0;1997 ;1998 return 0;1999 }2000 _ACEOF2001 if ac_fn_c_try_compile "$LINENO"; then :2002 2003 else2004 eval "$3=yes"2005 fi2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2007 fi2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2009 fi2010 eval ac_res=\$$32011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&52012 $as_echo "$ac_res" >&6; }2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2014 2015 } # ac_fn_c_check_type2016 1880 2017 1881 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES … … 2616 2480 2617 2481 2618 2619 2482 #AC_CONFIG_SRCDIR([src/main.cc]) 2620 2483 ac_config_headers="$ac_config_headers config.h:src/config.h.in" … … 3303 3166 3304 3167 #============================================================================== 3168 # backend compiler implementation 3169 3170 # Check whether --with-backend-compiler was given. 3171 if test "${with_backend_compiler+set}" = set; then : 3172 withval=$with_backend_compiler; backendcompiler=$withval 3173 else 3174 backendcompiler="" 3175 fi 3176 3177 if test "x$backendcompiler" != "x"; then 3178 BACKEND_CC=${backendcompiler} 3179 else 3180 # Extract the first word of "gcc", so it can be a program name with args. 3181 set dummy gcc; ac_word=$2 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3183 $as_echo_n "checking for $ac_word... " >&6; } 3184 if ${ac_cv_path_BACKEND_CC+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186 else 3187 case $BACKEND_CC in 3188 [\\/]* | ?:[\\/]*) 3189 ac_cv_path_BACKEND_CC="$BACKEND_CC" # Let the user override the test with a path. 3190 ;; 3191 *) 3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3193 for as_dir in $PATH 3194 do 3195 IFS=$as_save_IFS 3196 test -z "$as_dir" && as_dir=. 3197 for ac_exec_ext in '' $ac_executable_extensions; do 3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3199 ac_cv_path_BACKEND_CC="$as_dir/$ac_word$ac_exec_ext" 3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3201 break 2 3202 fi 3203 done 3204 done 3205 IFS=$as_save_IFS 3206 3207 ;; 3208 esac 3209 fi 3210 BACKEND_CC=$ac_cv_path_BACKEND_CC 3211 if test -n "$BACKEND_CC"; then 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKEND_CC" >&5 3213 $as_echo "$BACKEND_CC" >&6; } 3214 else 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3216 $as_echo "no" >&6; } 3217 fi 3218 3219 # check gcc installed 3220 if test "x$BACKEND_CC" = "x"; then 3221 as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 3222 exit 1 3223 fi 3224 fi 3225 3226 cat >>confdefs.h <<_ACEOF 3227 #define CFA_BACKEND_CC "${BACKEND_CC}" 3228 _ACEOF 3229 3230 3231 3232 #============================================================================== 3305 3233 # Installation paths 3306 3234 … … 3550 3478 "arm" ) cannon_arch_name="arm";; 3551 3479 "ARM" ) cannon_arch_name="arm";; 3552 "armv7l" ) cannon_arch_name="arm";;3553 3480 *) 3554 3481 >&2 echo "Unkown architecture " $arch_name; … … 3567 3494 echo -n "${LIBCFA_PATHS} " >> ${lib_dir}/config.data 3568 3495 echo -n "ARCHITECTURE=${lib_arch} " >> ${lib_dir}/config.data 3569 echo -n "CONFIGURATION=${lib_config} " >> ${lib_dir}/config.data 3570 echo -n "CFA_VERSION=${ver_major}:${ver_minor}:${ver_patch}" >> ${lib_dir}/config.data 3496 echo -n "CONFIGURATION=${lib_config}" >> ${lib_dir}/config.data 3571 3497 done 3572 3498 … … 3591 3517 "arm" ) cannon_arch_name="arm";; 3592 3518 "ARM" ) cannon_arch_name="arm";; 3593 "armv7l" ) cannon_arch_name="arm";;3594 3519 *) 3595 3520 >&2 echo "Unkown architecture " $arch_name; … … 5390 5315 fi 5391 5316 if test "${LEX}" = "lex" ; then echo "Error: flex required." ; exit 1 ; fi 5392 case `pwd` in 5393 *\ * | *\ *) 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5395 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5317 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5320 set x ${MAKE-make} 5321 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5322 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5323 $as_echo_n "(cached) " >&6 5324 else 5325 cat >conftest.make <<\_ACEOF 5326 SHELL = /bin/sh 5327 all: 5328 @echo '@@@%%%=$(MAKE)=@@@%%%' 5329 _ACEOF 5330 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5331 case `${MAKE-make} -f conftest.make 2>/dev/null` in 5332 *@@@%%%=?*=@@@%%%*) 5333 eval ac_cv_prog_make_${ac_make}_set=yes;; 5334 *) 5335 eval ac_cv_prog_make_${ac_make}_set=no;; 5396 5336 esac 5397 5398 5399 5400 macro_version='2.4.6' 5401 macro_revision='2.4.6' 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 ltmain=$ac_aux_dir/ltmain.sh 5416 5417 # Backslashify metacharacters that are still active within 5418 # double-quoted strings. 5419 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5420 5421 # Same as above, but do not quote variable references. 5422 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5423 5424 # Sed substitution to delay expansion of an escaped shell variable in a 5425 # double_quote_subst'ed string. 5426 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5427 5428 # Sed substitution to delay expansion of an escaped single quote. 5429 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5430 5431 # Sed substitution to avoid accidental globbing in evaled expressions 5432 no_glob_subst='s/\*/\\\*/g' 5433 5434 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5436 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5437 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5439 $as_echo_n "checking how to print strings... " >&6; } 5440 # Test print first, because it will be a builtin if present. 5441 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5442 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5443 ECHO='print -r --' 5444 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5445 ECHO='printf %s\n' 5446 else 5447 # Use this function as a fallback that always works. 5448 func_fallback_echo () 5449 { 5450 eval 'cat <<_LTECHO_EOF 5451 $1 5452 _LTECHO_EOF' 5453 } 5454 ECHO='func_fallback_echo' 5455 fi 5456 5457 # func_echo_all arg... 5458 # Invoke $ECHO with all args, space-separated. 5459 func_echo_all () 5460 { 5461 $ECHO "" 5462 } 5463 5464 case $ECHO in 5465 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5466 $as_echo "printf" >&6; } ;; 5467 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5468 $as_echo "print -r" >&6; } ;; 5469 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5470 $as_echo "cat" >&6; } ;; 5471 esac 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5487 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5488 if ${ac_cv_path_SED+:} false; then : 5337 rm -f conftest.make 5338 fi 5339 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5341 $as_echo "yes" >&6; } 5342 SET_MAKE= 5343 else 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5345 $as_echo "no" >&6; } 5346 SET_MAKE="MAKE=${MAKE-make}" 5347 fi 5348 5349 if test -n "$ac_tool_prefix"; then 5350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5353 $as_echo_n "checking for $ac_word... " >&6; } 5354 if ${ac_cv_prog_RANLIB+:} false; then : 5489 5355 $as_echo_n "(cached) " >&6 5490 5356 else 5491 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5492 for ac_i in 1 2 3 4 5 6 7; do 5493 ac_script="$ac_script$as_nl$ac_script" 5494 done 5495 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5496 { ac_script=; unset ac_script;} 5497 if test -z "$SED"; then 5498 ac_path_SED_found=false 5499 # Loop through the user's path and test for each of PROGNAME-LIST 5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5357 if test -n "$RANLIB"; then 5358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5359 else 5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5501 5361 for as_dir in $PATH 5502 5362 do 5503 5363 IFS=$as_save_IFS 5504 5364 test -z "$as_dir" && as_dir=. 5505 for ac_prog in sed gsed; do5506 5365 for ac_exec_ext in '' $ac_executable_extensions; do 5507 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5508 as_fn_executable_p "$ac_path_SED" || continue 5509 # Check for GNU ac_path_SED and select it if it is found. 5510 # Check for GNU $ac_path_SED 5511 case `"$ac_path_SED" --version 2>&1` in 5512 *GNU*) 5513 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5514 *) 5515 ac_count=0 5516 $as_echo_n 0123456789 >"conftest.in" 5517 while : 5518 do 5519 cat "conftest.in" "conftest.in" >"conftest.tmp" 5520 mv "conftest.tmp" "conftest.in" 5521 cp "conftest.in" "conftest.nl" 5522 $as_echo '' >> "conftest.nl" 5523 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5525 as_fn_arith $ac_count + 1 && ac_count=$as_val 5526 if test $ac_count -gt ${ac_path_SED_max-0}; then 5527 # Best one so far, save it but keep looking for a better one 5528 ac_cv_path_SED="$ac_path_SED" 5529 ac_path_SED_max=$ac_count 5530 fi 5531 # 10*(2^10) chars as input seems more than enough 5532 test $ac_count -gt 10 && break 5533 done 5534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5535 esac 5536 5537 $ac_path_SED_found && break 3 5538 done 5539 done 5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5369 break 2 5370 fi 5371 done 5540 5372 done 5541 5373 IFS=$as_save_IFS 5542 if test -z "$ac_cv_path_SED"; then 5543 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5374 5375 fi 5376 fi 5377 RANLIB=$ac_cv_prog_RANLIB 5378 if test -n "$RANLIB"; then 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5380 $as_echo "$RANLIB" >&6; } 5381 else 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5383 $as_echo "no" >&6; } 5384 fi 5385 5386 5387 fi 5388 if test -z "$ac_cv_prog_RANLIB"; then 5389 ac_ct_RANLIB=$RANLIB 5390 # Extract the first word of "ranlib", so it can be a program name with args. 5391 set dummy ranlib; ac_word=$2 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5393 $as_echo_n "checking for $ac_word... " >&6; } 5394 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396 else 5397 if test -n "$ac_ct_RANLIB"; then 5398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5399 else 5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401 for as_dir in $PATH 5402 do 5403 IFS=$as_save_IFS 5404 test -z "$as_dir" && as_dir=. 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5407 ac_cv_prog_ac_ct_RANLIB="ranlib" 5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5409 break 2 5544 5410 fi 5545 else 5546 ac_cv_path_SED=$SED 5547 fi 5548 5549 fi 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5551 $as_echo "$ac_cv_path_SED" >&6; } 5552 SED="$ac_cv_path_SED" 5553 rm -f conftest.sed 5554 5555 test -z "$SED" && SED=sed 5556 Xsed="$SED -e 1s/^X//" 5557 5558 5559 5560 5561 5562 5563 5564 5565 5411 done 5412 done 5413 IFS=$as_save_IFS 5414 5415 fi 5416 fi 5417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5418 if test -n "$ac_ct_RANLIB"; then 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5420 $as_echo "$ac_ct_RANLIB" >&6; } 5421 else 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423 $as_echo "no" >&6; } 5424 fi 5425 5426 if test "x$ac_ct_RANLIB" = x; then 5427 RANLIB=":" 5428 else 5429 case $cross_compiling:$ac_tool_warned in 5430 yes:) 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5433 ac_tool_warned=yes ;; 5434 esac 5435 RANLIB=$ac_ct_RANLIB 5436 fi 5437 else 5438 RANLIB="$ac_cv_prog_RANLIB" 5439 fi 5440 5441 5442 # Checks for libraries. 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fibre::yield in -lfibre" >&5 5444 $as_echo_n "checking for Fibre::yield in -lfibre... " >&6; } 5445 if ${ac_cv_lib_fibre_Fibre__yield+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447 else 5448 ac_check_lib_save_LIBS=$LIBS 5449 LIBS="-lfibre $LIBS" 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451 /* end confdefs.h. */ 5452 5453 /* Override any GCC internal prototype to avoid an error. 5454 Use char because int might match the return type of a GCC 5455 builtin and then its argument prototype would still apply. */ 5456 #ifdef __cplusplus 5457 extern "C" 5458 #endif 5459 char Fibre::yield (); 5460 int 5461 main () 5462 { 5463 return Fibre::yield (); 5464 ; 5465 return 0; 5466 } 5467 _ACEOF 5468 if ac_fn_c_try_link "$LINENO"; then : 5469 ac_cv_lib_fibre_Fibre__yield=yes 5470 else 5471 ac_cv_lib_fibre_Fibre__yield=no 5472 fi 5473 rm -f core conftest.err conftest.$ac_objext \ 5474 conftest$ac_exeext conftest.$ac_ext 5475 LIBS=$ac_check_lib_save_LIBS 5476 fi 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fibre_Fibre__yield" >&5 5478 $as_echo "$ac_cv_lib_fibre_Fibre__yield" >&6; } 5479 if test "x$ac_cv_lib_fibre_Fibre__yield" = xyes; then : 5480 HAVE_LIBFIBRE=1 5481 else 5482 HAVE_LIBFIBRE=0 5483 fi 5484 5485 if test "$HAVE_LIBFIBRE" -eq 1; then 5486 WITH_LIBFIBRE_TRUE= 5487 WITH_LIBFIBRE_FALSE='#' 5488 else 5489 WITH_LIBFIBRE_TRUE='#' 5490 WITH_LIBFIBRE_FALSE= 5491 fi 5492 5493 5494 # Checks for header files. 5495 ac_ext=c 5496 ac_cpp='$CPP $CPPFLAGS' 5497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5499 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5501 $as_echo_n "checking how to run the C preprocessor... " >&6; } 5502 # On Suns, sometimes $CPP names a directory. 5503 if test -n "$CPP" && test -d "$CPP"; then 5504 CPP= 5505 fi 5506 if test -z "$CPP"; then 5507 if ${ac_cv_prog_CPP+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509 else 5510 # Double quotes because CPP needs to be expanded 5511 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5512 do 5513 ac_preproc_ok=false 5514 for ac_c_preproc_warn_flag in '' yes 5515 do 5516 # Use a header file that comes with gcc, so configuring glibc 5517 # with a fresh cross-compiler works. 5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5519 # <limits.h> exists even on freestanding compilers. 5520 # On the NeXT, cc -E runs the code through the compiler's parser, 5521 # not just through cpp. "Syntax error" is here to catch this case. 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523 /* end confdefs.h. */ 5524 #ifdef __STDC__ 5525 # include <limits.h> 5526 #else 5527 # include <assert.h> 5528 #endif 5529 Syntax error 5530 _ACEOF 5531 if ac_fn_c_try_cpp "$LINENO"; then : 5532 5533 else 5534 # Broken: fails on valid input. 5535 continue 5536 fi 5537 rm -f conftest.err conftest.i conftest.$ac_ext 5538 5539 # OK, works on sane cases. Now check whether nonexistent headers 5540 # can be detected and how. 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542 /* end confdefs.h. */ 5543 #include <ac_nonexistent.h> 5544 _ACEOF 5545 if ac_fn_c_try_cpp "$LINENO"; then : 5546 # Broken: success on invalid input. 5547 continue 5548 else 5549 # Passes both tests. 5550 ac_preproc_ok=: 5551 break 5552 fi 5553 rm -f conftest.err conftest.i conftest.$ac_ext 5554 5555 done 5556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5557 rm -f conftest.i conftest.err conftest.$ac_ext 5558 if $ac_preproc_ok; then : 5559 break 5560 fi 5561 5562 done 5563 ac_cv_prog_CPP=$CPP 5564 5565 fi 5566 CPP=$ac_cv_prog_CPP 5567 else 5568 ac_cv_prog_CPP=$CPP 5569 fi 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5571 $as_echo "$CPP" >&6; } 5572 ac_preproc_ok=false 5573 for ac_c_preproc_warn_flag in '' yes 5574 do 5575 # Use a header file that comes with gcc, so configuring glibc 5576 # with a fresh cross-compiler works. 5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5578 # <limits.h> exists even on freestanding compilers. 5579 # On the NeXT, cc -E runs the code through the compiler's parser, 5580 # not just through cpp. "Syntax error" is here to catch this case. 5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5582 /* end confdefs.h. */ 5583 #ifdef __STDC__ 5584 # include <limits.h> 5585 #else 5586 # include <assert.h> 5587 #endif 5588 Syntax error 5589 _ACEOF 5590 if ac_fn_c_try_cpp "$LINENO"; then : 5591 5592 else 5593 # Broken: fails on valid input. 5594 continue 5595 fi 5596 rm -f conftest.err conftest.i conftest.$ac_ext 5597 5598 # OK, works on sane cases. Now check whether nonexistent headers 5599 # can be detected and how. 5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5601 /* end confdefs.h. */ 5602 #include <ac_nonexistent.h> 5603 _ACEOF 5604 if ac_fn_c_try_cpp "$LINENO"; then : 5605 # Broken: success on invalid input. 5606 continue 5607 else 5608 # Passes both tests. 5609 ac_preproc_ok=: 5610 break 5611 fi 5612 rm -f conftest.err conftest.i conftest.$ac_ext 5613 5614 done 5615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5616 rm -f conftest.i conftest.err conftest.$ac_ext 5617 if $ac_preproc_ok; then : 5618 5619 else 5620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5622 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5623 See \`config.log' for more details" "$LINENO" 5; } 5624 fi 5625 5626 ac_ext=c 5627 ac_cpp='$CPP $CPPFLAGS' 5628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5630 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5566 5631 5567 5632 … … 5696 5761 5697 5762 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&55699 $as_echo_n "checking for fgrep... " >&6; }5700 if ${ac_cv_path_FGREP+:} false; then :5701 $as_echo_n "(cached) " >&65702 else5703 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&15704 then ac_cv_path_FGREP="$GREP -F"5705 else5706 if test -z "$FGREP"; then5707 ac_path_FGREP_found=false5708 # Loop through the user's path and test for each of PROGNAME-LIST5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin5711 do5712 IFS=$as_save_IFS5713 test -z "$as_dir" && as_dir=.5714 for ac_prog in fgrep; do5715 for ac_exec_ext in '' $ac_executable_extensions; do5716 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"5717 as_fn_executable_p "$ac_path_FGREP" || continue5718 # Check for GNU ac_path_FGREP and select it if it is found.5719 # Check for GNU $ac_path_FGREP5720 case `"$ac_path_FGREP" --version 2>&1` in5721 *GNU*)5722 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;5723 *)5724 ac_count=05725 $as_echo_n 0123456789 >"conftest.in"5726 while :5727 do5728 cat "conftest.in" "conftest.in" >"conftest.tmp"5729 mv "conftest.tmp" "conftest.in"5730 cp "conftest.in" "conftest.nl"5731 $as_echo 'FGREP' >> "conftest.nl"5732 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break5733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break5734 as_fn_arith $ac_count + 1 && ac_count=$as_val5735 if test $ac_count -gt ${ac_path_FGREP_max-0}; then5736 # Best one so far, save it but keep looking for a better one5737 ac_cv_path_FGREP="$ac_path_FGREP"5738 ac_path_FGREP_max=$ac_count5739 fi5740 # 10*(2^10) chars as input seems more than enough5741 test $ac_count -gt 10 && break5742 done5743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;5744 esac5745 5746 $ac_path_FGREP_found && break 35747 done5748 done5749 done5750 IFS=$as_save_IFS5751 if test -z "$ac_cv_path_FGREP"; then5752 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 55753 fi5754 else5755 ac_cv_path_FGREP=$FGREP5756 fi5757 5758 fi5759 fi5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&55761 $as_echo "$ac_cv_path_FGREP" >&6; }5762 FGREP="$ac_cv_path_FGREP"5763 5764 5765 test -z "$GREP" && GREP=grep5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 # Check whether --with-gnu-ld was given.5786 if test "${with_gnu_ld+set}" = set; then :5787 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes5788 else5789 with_gnu_ld=no5790 fi5791 5792 ac_prog=ld5793 if test yes = "$GCC"; then5794 # Check if gcc -print-prog-name=ld gives a path.5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&55796 $as_echo_n "checking for ld used by $CC... " >&6; }5797 case $host in5798 *-*-mingw*)5799 # gcc leaves a trailing carriage return, which upsets mingw5800 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;5801 *)5802 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;5803 esac5804 case $ac_prog in5805 # Accept absolute paths.5806 [\\/]* | ?:[\\/]*)5807 re_direlt='/[^/][^/]*/\.\./'5808 # Canonicalize the pathname of ld5809 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`5810 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do5811 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`5812 done5813 test -z "$LD" && LD=$ac_prog5814 ;;5815 "")5816 # If it fails, then pretend we aren't using GCC.5817 ac_prog=ld5818 ;;5819 *)5820 # If it is relative, then search for the first ld in PATH.5821 with_gnu_ld=unknown5822 ;;5823 esac5824 elif test yes = "$with_gnu_ld"; then5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&55826 $as_echo_n "checking for GNU ld... " >&6; }5827 else5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&55829 $as_echo_n "checking for non-GNU ld... " >&6; }5830 fi5831 if ${lt_cv_path_LD+:} false; then :5832 $as_echo_n "(cached) " >&65833 else5834 if test -z "$LD"; then5835 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR5836 for ac_dir in $PATH; do5837 IFS=$lt_save_ifs5838 test -z "$ac_dir" && ac_dir=.5839 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then5840 lt_cv_path_LD=$ac_dir/$ac_prog5841 # Check to see if the program is GNU ld. I'd rather use --version,5842 # but apparently some variants of GNU ld only accept -v.5843 # Break only if it was the GNU/non-GNU ld that we prefer.5844 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in5845 *GNU* | *'with BFD'*)5846 test no != "$with_gnu_ld" && break5847 ;;5848 *)5849 test yes != "$with_gnu_ld" && break5850 ;;5851 esac5852 fi5853 done5854 IFS=$lt_save_ifs5855 else5856 lt_cv_path_LD=$LD # Let the user override the test with a path.5857 fi5858 fi5859 5860 LD=$lt_cv_path_LD5861 if test -n "$LD"; then5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&55863 $as_echo "$LD" >&6; }5864 else5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55866 $as_echo "no" >&6; }5867 fi5868 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 55869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&55870 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }5871 if ${lt_cv_prog_gnu_ld+:} false; then :5872 $as_echo_n "(cached) " >&65873 else5874 # I'd rather use --version here, but apparently some GNU lds only accept -v.5875 case `$LD -v 2>&1 </dev/null` in5876 *GNU* | *'with BFD'*)5877 lt_cv_prog_gnu_ld=yes5878 ;;5879 *)5880 lt_cv_prog_gnu_ld=no5881 ;;5882 esac5883 fi5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&55885 $as_echo "$lt_cv_prog_gnu_ld" >&6; }5886 with_gnu_ld=$lt_cv_prog_gnu_ld5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&55897 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }5898 if ${lt_cv_path_NM+:} false; then :5899 $as_echo_n "(cached) " >&65900 else5901 if test -n "$NM"; then5902 # Let the user override the test.5903 lt_cv_path_NM=$NM5904 else5905 lt_nm_to_check=${ac_tool_prefix}nm5906 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then5907 lt_nm_to_check="$lt_nm_to_check nm"5908 fi5909 for lt_tmp_nm in $lt_nm_to_check; do5910 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR5911 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do5912 IFS=$lt_save_ifs5913 test -z "$ac_dir" && ac_dir=.5914 tmp_nm=$ac_dir/$lt_tmp_nm5915 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then5916 # Check to see if the nm accepts a BSD-compat flag.5917 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:5918 # nm: unknown option "B" ignored5919 # Tru64's nm complains that /dev/null is an invalid object file5920 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty5921 case $build_os in5922 mingw*) lt_bad_file=conftest.nm/nofile ;;5923 *) lt_bad_file=/dev/null ;;5924 esac5925 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in5926 *$lt_bad_file* | *'Invalid file or object type'*)5927 lt_cv_path_NM="$tmp_nm -B"5928 break 25929 ;;5930 *)5931 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in5932 */dev/null*)5933 lt_cv_path_NM="$tmp_nm -p"5934 break 25935 ;;5936 *)5937 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but5938 continue # so that we can try to find one that supports BSD flags5939 ;;5940 esac5941 ;;5942 esac5943 fi5944 done5945 IFS=$lt_save_ifs5946 done5947 : ${lt_cv_path_NM=no}5948 fi5949 fi5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&55951 $as_echo "$lt_cv_path_NM" >&6; }5952 if test no != "$lt_cv_path_NM"; then5953 NM=$lt_cv_path_NM5954 else5955 # Didn't find any BSD compatible name lister, look for dumpbin.5956 if test -n "$DUMPBIN"; then :5957 # Let the user override the test.5958 else5959 if test -n "$ac_tool_prefix"; then5960 for ac_prog in dumpbin "link -dump"5961 do5962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.5963 set dummy $ac_tool_prefix$ac_prog; ac_word=$25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55965 $as_echo_n "checking for $ac_word... " >&6; }5966 if ${ac_cv_prog_DUMPBIN+:} false; then :5967 $as_echo_n "(cached) " >&65968 else5969 if test -n "$DUMPBIN"; then5970 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.5971 else5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5973 for as_dir in $PATH5974 do5975 IFS=$as_save_IFS5976 test -z "$as_dir" && as_dir=.5977 for ac_exec_ext in '' $ac_executable_extensions; do5978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5979 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"5980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55981 break 25982 fi5983 done5984 done5985 IFS=$as_save_IFS5986 5987 fi5988 fi5989 DUMPBIN=$ac_cv_prog_DUMPBIN5990 if test -n "$DUMPBIN"; then5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&55992 $as_echo "$DUMPBIN" >&6; }5993 else5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55995 $as_echo "no" >&6; }5996 fi5997 5998 5999 test -n "$DUMPBIN" && break6000 done6001 fi6002 if test -z "$DUMPBIN"; then6003 ac_ct_DUMPBIN=$DUMPBIN6004 for ac_prog in dumpbin "link -dump"6005 do6006 # Extract the first word of "$ac_prog", so it can be a program name with args.6007 set dummy $ac_prog; ac_word=$26008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56009 $as_echo_n "checking for $ac_word... " >&6; }6010 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :6011 $as_echo_n "(cached) " >&66012 else6013 if test -n "$ac_ct_DUMPBIN"; then6014 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.6015 else6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6017 for as_dir in $PATH6018 do6019 IFS=$as_save_IFS6020 test -z "$as_dir" && as_dir=.6021 for ac_exec_ext in '' $ac_executable_extensions; do6022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6023 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56025 break 26026 fi6027 done6028 done6029 IFS=$as_save_IFS6030 6031 fi6032 fi6033 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN6034 if test -n "$ac_ct_DUMPBIN"; then6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&56036 $as_echo "$ac_ct_DUMPBIN" >&6; }6037 else6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56039 $as_echo "no" >&6; }6040 fi6041 6042 6043 test -n "$ac_ct_DUMPBIN" && break6044 done6045 6046 if test "x$ac_ct_DUMPBIN" = x; then6047 DUMPBIN=":"6048 else6049 case $cross_compiling:$ac_tool_warned in6050 yes:)6051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6053 ac_tool_warned=yes ;;6054 esac6055 DUMPBIN=$ac_ct_DUMPBIN6056 fi6057 fi6058 6059 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in6060 *COFF*)6061 DUMPBIN="$DUMPBIN -symbols -headers"6062 ;;6063 *)6064 DUMPBIN=:6065 ;;6066 esac6067 fi6068 6069 if test : != "$DUMPBIN"; then6070 NM=$DUMPBIN6071 fi6072 fi6073 test -z "$NM" && NM=nm6074 6075 6076 6077 6078 6079 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&56081 $as_echo_n "checking the name lister ($NM) interface... " >&6; }6082 if ${lt_cv_nm_interface+:} false; then :6083 $as_echo_n "(cached) " >&66084 else6085 lt_cv_nm_interface="BSD nm"6086 echo "int some_variable = 0;" > conftest.$ac_ext6087 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)6088 (eval "$ac_compile" 2>conftest.err)6089 cat conftest.err >&56090 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)6091 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)6092 cat conftest.err >&56093 (eval echo "\"\$as_me:$LINENO: output\"" >&5)6094 cat conftest.out >&56095 if $GREP 'External.*some_variable' conftest.out > /dev/null; then6096 lt_cv_nm_interface="MS dumpbin"6097 fi6098 rm -f conftest*6099 fi6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&56101 $as_echo "$lt_cv_nm_interface" >&6; }6102 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&56104 $as_echo_n "checking whether ln -s works... " >&6; }6105 LN_S=$as_ln_s6106 if test "$LN_S" = "ln -s"; then6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&56108 $as_echo "yes" >&6; }6109 else6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&56111 $as_echo "no, using $LN_S" >&6; }6112 fi6113 6114 # find the maximum length of command line arguments6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&56116 $as_echo_n "checking the maximum length of command line arguments... " >&6; }6117 if ${lt_cv_sys_max_cmd_len+:} false; then :6118 $as_echo_n "(cached) " >&66119 else6120 i=06121 teststring=ABCD6122 6123 case $build_os in6124 msdosdjgpp*)6125 # On DJGPP, this test can blow up pretty badly due to problems in libc6126 # (any single argument exceeding 2000 bytes causes a buffer overrun6127 # during glob expansion). Even if it were fixed, the result of this6128 # check would be larger than it should be.6129 lt_cv_sys_max_cmd_len=12288; # 12K is about right6130 ;;6131 6132 gnu*)6133 # Under GNU Hurd, this test is not required because there is6134 # no limit to the length of command line arguments.6135 # Libtool will interpret -1 as no limit whatsoever6136 lt_cv_sys_max_cmd_len=-1;6137 ;;6138 6139 cygwin* | mingw* | cegcc*)6140 # On Win9x/ME, this test blows up -- it succeeds, but takes6141 # about 5 minutes as the teststring grows exponentially.6142 # Worse, since 9x/ME are not pre-emptively multitasking,6143 # you end up with a "frozen" computer, even though with patience6144 # the test eventually succeeds (with a max line length of 256k).6145 # Instead, let's just punt: use the minimum linelength reported by6146 # all of the supported platforms: 8192 (on NT/2K/XP).6147 lt_cv_sys_max_cmd_len=8192;6148 ;;6149 6150 mint*)6151 # On MiNT this can take a long time and run out of memory.6152 lt_cv_sys_max_cmd_len=8192;6153 ;;6154 6155 amigaos*)6156 # On AmigaOS with pdksh, this test takes hours, literally.6157 # So we just punt and use a minimum line length of 8192.6158 lt_cv_sys_max_cmd_len=8192;6159 ;;6160 6161 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)6162 # This has been around since 386BSD, at least. Likely further.6163 if test -x /sbin/sysctl; then6164 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`6165 elif test -x /usr/sbin/sysctl; then6166 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`6167 else6168 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs6169 fi6170 # And add a safety zone6171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`6172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`6173 ;;6174 6175 interix*)6176 # We know the value 262144 and hardcode it with a safety zone (like BSD)6177 lt_cv_sys_max_cmd_len=1966086178 ;;6179 6180 os2*)6181 # The test takes a long time on OS/2.6182 lt_cv_sys_max_cmd_len=81926183 ;;6184 6185 osf*)6186 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure6187 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not6188 # nice to cause kernel panics so lets avoid the loop below.6189 # First set a reasonable default.6190 lt_cv_sys_max_cmd_len=163846191 #6192 if test -x /sbin/sysconfig; then6193 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in6194 *1*) lt_cv_sys_max_cmd_len=-1 ;;6195 esac6196 fi6197 ;;6198 sco3.2v5*)6199 lt_cv_sys_max_cmd_len=1024006200 ;;6201 sysv5* | sco5v6* | sysv4.2uw2*)6202 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`6203 if test -n "$kargmax"; then6204 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`6205 else6206 lt_cv_sys_max_cmd_len=327686207 fi6208 ;;6209 *)6210 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`6211 if test -n "$lt_cv_sys_max_cmd_len" && \6212 test undefined != "$lt_cv_sys_max_cmd_len"; then6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`6215 else6216 # Make teststring a little bigger before we do anything with it.6217 # a 1K string should be a reasonable start.6218 for i in 1 2 3 4 5 6 7 8; do6219 teststring=$teststring$teststring6220 done6221 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}6222 # If test is not a shell built-in, we'll probably end up computing a6223 # maximum length that is only half of the actual maximum length, but6224 # we can't tell.6225 while { test X`env echo "$teststring$teststring" 2>/dev/null` \6226 = "X$teststring$teststring"; } >/dev/null 2>&1 &&6227 test 17 != "$i" # 1/2 MB should be enough6228 do6229 i=`expr $i + 1`6230 teststring=$teststring$teststring6231 done6232 # Only check the string length outside the loop.6233 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`6234 teststring=6235 # Add a significant safety factor because C++ compilers can tack on6236 # massive amounts of additional arguments before passing them to the6237 # linker. It appears as though 1/2 is a usable value.6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`6239 fi6240 ;;6241 esac6242 6243 fi6244 6245 if test -n "$lt_cv_sys_max_cmd_len"; then6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&56247 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }6248 else6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&56250 $as_echo "none" >&6; }6251 fi6252 max_cmd_len=$lt_cv_sys_max_cmd_len6253 6254 6255 6256 6257 6258 6259 : ${CP="cp -f"}6260 : ${MV="mv -f"}6261 : ${RM="rm -f"}6262 6263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then6264 lt_unset=unset6265 else6266 lt_unset=false6267 fi6268 6269 6270 6271 6272 6273 # test EBCDIC or ASCII6274 case `echo X|tr X '\101'` in6275 A) # ASCII based system6276 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr6277 lt_SP2NL='tr \040 \012'6278 lt_NL2SP='tr \015\012 \040\040'6279 ;;6280 *) # EBCDIC based system6281 lt_SP2NL='tr \100 \n'6282 lt_NL2SP='tr \r\n \100\100'6283 ;;6284 esac6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&56295 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }6296 if ${lt_cv_to_host_file_cmd+:} false; then :6297 $as_echo_n "(cached) " >&66298 else6299 case $host in6300 *-*-mingw* )6301 case $build in6302 *-*-mingw* ) # actually msys6303 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w326304 ;;6305 *-*-cygwin* )6306 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w326307 ;;6308 * ) # otherwise, assume *nix6309 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w326310 ;;6311 esac6312 ;;6313 *-*-cygwin* )6314 case $build in6315 *-*-mingw* ) # actually msys6316 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin6317 ;;6318 *-*-cygwin* )6319 lt_cv_to_host_file_cmd=func_convert_file_noop6320 ;;6321 * ) # otherwise, assume *nix6322 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin6323 ;;6324 esac6325 ;;6326 * ) # unhandled hosts (and "normal" native builds)6327 lt_cv_to_host_file_cmd=func_convert_file_noop6328 ;;6329 esac6330 6331 fi6332 6333 to_host_file_cmd=$lt_cv_to_host_file_cmd6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&56335 $as_echo "$lt_cv_to_host_file_cmd" >&6; }6336 6337 6338 6339 6340 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&56342 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }6343 if ${lt_cv_to_tool_file_cmd+:} false; then :6344 $as_echo_n "(cached) " >&66345 else6346 #assume ordinary cross tools, or native build.6347 lt_cv_to_tool_file_cmd=func_convert_file_noop6348 case $host in6349 *-*-mingw* )6350 case $build in6351 *-*-mingw* ) # actually msys6352 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w326353 ;;6354 esac6355 ;;6356 esac6357 6358 fi6359 6360 to_tool_file_cmd=$lt_cv_to_tool_file_cmd6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&56362 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }6363 6364 6365 6366 6367 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&56369 $as_echo_n "checking for $LD option to reload object files... " >&6; }6370 if ${lt_cv_ld_reload_flag+:} false; then :6371 $as_echo_n "(cached) " >&66372 else6373 lt_cv_ld_reload_flag='-r'6374 fi6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&56376 $as_echo "$lt_cv_ld_reload_flag" >&6; }6377 reload_flag=$lt_cv_ld_reload_flag6378 case $reload_flag in6379 "" | " "*) ;;6380 *) reload_flag=" $reload_flag" ;;6381 esac6382 reload_cmds='$LD$reload_flag -o $output$reload_objs'6383 case $host_os in6384 cygwin* | mingw* | pw32* | cegcc*)6385 if test yes != "$GCC"; then6386 reload_cmds=false6387 fi6388 ;;6389 darwin*)6390 if test yes = "$GCC"; then6391 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'6392 else6393 reload_cmds='$LD$reload_flag -o $output$reload_objs'6394 fi6395 ;;6396 esac6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 if test -n "$ac_tool_prefix"; then6407 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.6408 set dummy ${ac_tool_prefix}objdump; ac_word=$26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56410 $as_echo_n "checking for $ac_word... " >&6; }6411 if ${ac_cv_prog_OBJDUMP+:} false; then :6412 $as_echo_n "(cached) " >&66413 else6414 if test -n "$OBJDUMP"; then6415 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.6416 else6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6418 for as_dir in $PATH6419 do6420 IFS=$as_save_IFS6421 test -z "$as_dir" && as_dir=.6422 for ac_exec_ext in '' $ac_executable_extensions; do6423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6424 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56426 break 26427 fi6428 done6429 done6430 IFS=$as_save_IFS6431 6432 fi6433 fi6434 OBJDUMP=$ac_cv_prog_OBJDUMP6435 if test -n "$OBJDUMP"; then6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&56437 $as_echo "$OBJDUMP" >&6; }6438 else6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56440 $as_echo "no" >&6; }6441 fi6442 6443 6444 fi6445 if test -z "$ac_cv_prog_OBJDUMP"; then6446 ac_ct_OBJDUMP=$OBJDUMP6447 # Extract the first word of "objdump", so it can be a program name with args.6448 set dummy objdump; ac_word=$26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56450 $as_echo_n "checking for $ac_word... " >&6; }6451 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :6452 $as_echo_n "(cached) " >&66453 else6454 if test -n "$ac_ct_OBJDUMP"; then6455 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.6456 else6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6458 for as_dir in $PATH6459 do6460 IFS=$as_save_IFS6461 test -z "$as_dir" && as_dir=.6462 for ac_exec_ext in '' $ac_executable_extensions; do6463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6464 ac_cv_prog_ac_ct_OBJDUMP="objdump"6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56466 break 26467 fi6468 done6469 done6470 IFS=$as_save_IFS6471 6472 fi6473 fi6474 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP6475 if test -n "$ac_ct_OBJDUMP"; then6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&56477 $as_echo "$ac_ct_OBJDUMP" >&6; }6478 else6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56480 $as_echo "no" >&6; }6481 fi6482 6483 if test "x$ac_ct_OBJDUMP" = x; then6484 OBJDUMP="false"6485 else6486 case $cross_compiling:$ac_tool_warned in6487 yes:)6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6490 ac_tool_warned=yes ;;6491 esac6492 OBJDUMP=$ac_ct_OBJDUMP6493 fi6494 else6495 OBJDUMP="$ac_cv_prog_OBJDUMP"6496 fi6497 6498 test -z "$OBJDUMP" && OBJDUMP=objdump6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&56509 $as_echo_n "checking how to recognize dependent libraries... " >&6; }6510 if ${lt_cv_deplibs_check_method+:} false; then :6511 $as_echo_n "(cached) " >&66512 else6513 lt_cv_file_magic_cmd='$MAGIC_CMD'6514 lt_cv_file_magic_test_file=6515 lt_cv_deplibs_check_method='unknown'6516 # Need to set the preceding variable on all platforms that support6517 # interlibrary dependencies.6518 # 'none' -- dependencies not supported.6519 # 'unknown' -- same as none, but documents that we really don't know.6520 # 'pass_all' -- all dependencies passed with no checks.6521 # 'test_compile' -- check by making test program.6522 # 'file_magic [[regex]]' -- check by looking for files in library path6523 # that responds to the $file_magic_cmd with a given extended regex.6524 # If you have 'file' or equivalent on your system and you're not sure6525 # whether 'pass_all' will *always* work, you probably want this one.6526 6527 case $host_os in6528 aix[4-9]*)6529 lt_cv_deplibs_check_method=pass_all6530 ;;6531 6532 beos*)6533 lt_cv_deplibs_check_method=pass_all6534 ;;6535 6536 bsdi[45]*)6537 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'6538 lt_cv_file_magic_cmd='/usr/bin/file -L'6539 lt_cv_file_magic_test_file=/shlib/libc.so6540 ;;6541 6542 cygwin*)6543 # func_win32_libid is a shell function defined in ltmain.sh6544 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'6545 lt_cv_file_magic_cmd='func_win32_libid'6546 ;;6547 6548 mingw* | pw32*)6549 # Base MSYS/MinGW do not provide the 'file' command needed by6550 # func_win32_libid shell function, so use a weaker test based on 'objdump',6551 # unless we find 'file', for example because we are cross-compiling.6552 if ( file / ) >/dev/null 2>&1; then6553 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'6554 lt_cv_file_magic_cmd='func_win32_libid'6555 else6556 # Keep this pattern in sync with the one in func_win32_libid.6557 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'6558 lt_cv_file_magic_cmd='$OBJDUMP -f'6559 fi6560 ;;6561 6562 cegcc*)6563 # use the weaker test based on 'objdump'. See mingw*.6564 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'6565 lt_cv_file_magic_cmd='$OBJDUMP -f'6566 ;;6567 6568 darwin* | rhapsody*)6569 lt_cv_deplibs_check_method=pass_all6570 ;;6571 6572 freebsd* | dragonfly*)6573 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then6574 case $host_cpu in6575 i*86 )6576 # Not sure whether the presence of OpenBSD here was a mistake.6577 # Let's accept both of them until this is cleared up.6578 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'6579 lt_cv_file_magic_cmd=/usr/bin/file6580 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`6581 ;;6582 esac6583 else6584 lt_cv_deplibs_check_method=pass_all6585 fi6586 ;;6587 6588 haiku*)6589 lt_cv_deplibs_check_method=pass_all6590 ;;6591 6592 hpux10.20* | hpux11*)6593 lt_cv_file_magic_cmd=/usr/bin/file6594 case $host_cpu in6595 ia64*)6596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'6597 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so6598 ;;6599 hppa*64*)6600 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]'6601 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl6602 ;;6603 *)6604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'6605 lt_cv_file_magic_test_file=/usr/lib/libc.sl6606 ;;6607 esac6608 ;;6609 6610 interix[3-9]*)6611 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here6612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'6613 ;;6614 6615 irix5* | irix6* | nonstopux*)6616 case $LD in6617 *-32|*"-32 ") libmagic=32-bit;;6618 *-n32|*"-n32 ") libmagic=N32;;6619 *-64|*"-64 ") libmagic=64-bit;;6620 *) libmagic=never-match;;6621 esac6622 lt_cv_deplibs_check_method=pass_all6623 ;;6624 6625 # This must be glibc/ELF.6626 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)6627 lt_cv_deplibs_check_method=pass_all6628 ;;6629 6630 netbsd* | netbsdelf*-gnu)6631 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then6632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'6633 else6634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'6635 fi6636 ;;6637 6638 newos6*)6639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'6640 lt_cv_file_magic_cmd=/usr/bin/file6641 lt_cv_file_magic_test_file=/usr/lib/libnls.so6642 ;;6643 6644 *nto* | *qnx*)6645 lt_cv_deplibs_check_method=pass_all6646 ;;6647 6648 openbsd* | bitrig*)6649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then6650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'6651 else6652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'6653 fi6654 ;;6655 6656 osf3* | osf4* | osf5*)6657 lt_cv_deplibs_check_method=pass_all6658 ;;6659 6660 rdos*)6661 lt_cv_deplibs_check_method=pass_all6662 ;;6663 6664 solaris*)6665 lt_cv_deplibs_check_method=pass_all6666 ;;6667 6668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)6669 lt_cv_deplibs_check_method=pass_all6670 ;;6671 6672 sysv4 | sysv4.3*)6673 case $host_vendor in6674 motorola)6675 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]'6676 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`6677 ;;6678 ncr)6679 lt_cv_deplibs_check_method=pass_all6680 ;;6681 sequent)6682 lt_cv_file_magic_cmd='/bin/file'6683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'6684 ;;6685 sni)6686 lt_cv_file_magic_cmd='/bin/file'6687 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"6688 lt_cv_file_magic_test_file=/lib/libc.so6689 ;;6690 siemens)6691 lt_cv_deplibs_check_method=pass_all6692 ;;6693 pc)6694 lt_cv_deplibs_check_method=pass_all6695 ;;6696 esac6697 ;;6698 6699 tpf*)6700 lt_cv_deplibs_check_method=pass_all6701 ;;6702 os2*)6703 lt_cv_deplibs_check_method=pass_all6704 ;;6705 esac6706 6707 fi6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&56709 $as_echo "$lt_cv_deplibs_check_method" >&6; }6710 6711 file_magic_glob=6712 want_nocaseglob=no6713 if test "$build" = "$host"; then6714 case $host_os in6715 mingw* | pw32*)6716 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then6717 want_nocaseglob=yes6718 else6719 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`6720 fi6721 ;;6722 esac6723 fi6724 6725 file_magic_cmd=$lt_cv_file_magic_cmd6726 deplibs_check_method=$lt_cv_deplibs_check_method6727 test -z "$deplibs_check_method" && deplibs_check_method=unknown6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 if test -n "$ac_tool_prefix"; then6751 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.6752 set dummy ${ac_tool_prefix}dlltool; ac_word=$26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56754 $as_echo_n "checking for $ac_word... " >&6; }6755 if ${ac_cv_prog_DLLTOOL+:} false; then :6756 $as_echo_n "(cached) " >&66757 else6758 if test -n "$DLLTOOL"; then6759 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.6760 else6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6762 for as_dir in $PATH6763 do6764 IFS=$as_save_IFS6765 test -z "$as_dir" && as_dir=.6766 for ac_exec_ext in '' $ac_executable_extensions; do6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6768 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56770 break 26771 fi6772 done6773 done6774 IFS=$as_save_IFS6775 6776 fi6777 fi6778 DLLTOOL=$ac_cv_prog_DLLTOOL6779 if test -n "$DLLTOOL"; then6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&56781 $as_echo "$DLLTOOL" >&6; }6782 else6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56784 $as_echo "no" >&6; }6785 fi6786 6787 6788 fi6789 if test -z "$ac_cv_prog_DLLTOOL"; then6790 ac_ct_DLLTOOL=$DLLTOOL6791 # Extract the first word of "dlltool", so it can be a program name with args.6792 set dummy dlltool; ac_word=$26793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56794 $as_echo_n "checking for $ac_word... " >&6; }6795 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :6796 $as_echo_n "(cached) " >&66797 else6798 if test -n "$ac_ct_DLLTOOL"; then6799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.6800 else6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6802 for as_dir in $PATH6803 do6804 IFS=$as_save_IFS6805 test -z "$as_dir" && as_dir=.6806 for ac_exec_ext in '' $ac_executable_extensions; do6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6808 ac_cv_prog_ac_ct_DLLTOOL="dlltool"6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56810 break 26811 fi6812 done6813 done6814 IFS=$as_save_IFS6815 6816 fi6817 fi6818 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL6819 if test -n "$ac_ct_DLLTOOL"; then6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&56821 $as_echo "$ac_ct_DLLTOOL" >&6; }6822 else6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56824 $as_echo "no" >&6; }6825 fi6826 6827 if test "x$ac_ct_DLLTOOL" = x; then6828 DLLTOOL="false"6829 else6830 case $cross_compiling:$ac_tool_warned in6831 yes:)6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6834 ac_tool_warned=yes ;;6835 esac6836 DLLTOOL=$ac_ct_DLLTOOL6837 fi6838 else6839 DLLTOOL="$ac_cv_prog_DLLTOOL"6840 fi6841 6842 test -z "$DLLTOOL" && DLLTOOL=dlltool6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&56854 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }6855 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :6856 $as_echo_n "(cached) " >&66857 else6858 lt_cv_sharedlib_from_linklib_cmd='unknown'6859 6860 case $host_os in6861 cygwin* | mingw* | pw32* | cegcc*)6862 # two different shell functions defined in ltmain.sh;6863 # decide which one to use based on capabilities of $DLLTOOL6864 case `$DLLTOOL --help 2>&1` in6865 *--identify-strict*)6866 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib6867 ;;6868 *)6869 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback6870 ;;6871 esac6872 ;;6873 *)6874 # fallback: assume linklib IS sharedlib6875 lt_cv_sharedlib_from_linklib_cmd=$ECHO6876 ;;6877 esac6878 6879 fi6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&56881 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }6882 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd6883 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO6884 6885 6886 6887 6888 6889 6890 6891 if test -n "$ac_tool_prefix"; then6892 for ac_prog in ar6893 do6894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.6895 set dummy $ac_tool_prefix$ac_prog; ac_word=$26896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56897 $as_echo_n "checking for $ac_word... " >&6; }6898 if ${ac_cv_prog_AR+:} false; then :6899 $as_echo_n "(cached) " >&66900 else6901 if test -n "$AR"; then6902 ac_cv_prog_AR="$AR" # Let the user override the test.6903 else6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6905 for as_dir in $PATH6906 do6907 IFS=$as_save_IFS6908 test -z "$as_dir" && as_dir=.6909 for ac_exec_ext in '' $ac_executable_extensions; do6910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6911 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"6912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56913 break 26914 fi6915 done6916 done6917 IFS=$as_save_IFS6918 6919 fi6920 fi6921 AR=$ac_cv_prog_AR6922 if test -n "$AR"; then6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&56924 $as_echo "$AR" >&6; }6925 else6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56927 $as_echo "no" >&6; }6928 fi6929 6930 6931 test -n "$AR" && break6932 done6933 fi6934 if test -z "$AR"; then6935 ac_ct_AR=$AR6936 for ac_prog in ar6937 do6938 # Extract the first word of "$ac_prog", so it can be a program name with args.6939 set dummy $ac_prog; ac_word=$26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56941 $as_echo_n "checking for $ac_word... " >&6; }6942 if ${ac_cv_prog_ac_ct_AR+:} false; then :6943 $as_echo_n "(cached) " >&66944 else6945 if test -n "$ac_ct_AR"; then6946 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.6947 else6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6949 for as_dir in $PATH6950 do6951 IFS=$as_save_IFS6952 test -z "$as_dir" && as_dir=.6953 for ac_exec_ext in '' $ac_executable_extensions; do6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6955 ac_cv_prog_ac_ct_AR="$ac_prog"6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56957 break 26958 fi6959 done6960 done6961 IFS=$as_save_IFS6962 6963 fi6964 fi6965 ac_ct_AR=$ac_cv_prog_ac_ct_AR6966 if test -n "$ac_ct_AR"; then6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&56968 $as_echo "$ac_ct_AR" >&6; }6969 else6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56971 $as_echo "no" >&6; }6972 fi6973 6974 6975 test -n "$ac_ct_AR" && break6976 done6977 6978 if test "x$ac_ct_AR" = x; then6979 AR="false"6980 else6981 case $cross_compiling:$ac_tool_warned in6982 yes:)6983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6985 ac_tool_warned=yes ;;6986 esac6987 AR=$ac_ct_AR6988 fi6989 fi6990 6991 : ${AR=ar}6992 : ${AR_FLAGS=cru}6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&57005 $as_echo_n "checking for archiver @FILE support... " >&6; }7006 if ${lt_cv_ar_at_file+:} false; then :7007 $as_echo_n "(cached) " >&67008 else7009 lt_cv_ar_at_file=no7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7011 /* end confdefs.h. */7012 7013 int7014 main ()7015 {7016 7017 ;7018 return 0;7019 }7020 _ACEOF7021 if ac_fn_c_try_compile "$LINENO"; then :7022 echo conftest.$ac_objext > conftest.lst7023 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'7024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&57025 (eval $lt_ar_try) 2>&57026 ac_status=$?7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57028 test $ac_status = 0; }7029 if test 0 -eq "$ac_status"; then7030 # Ensure the archiver fails upon bogus file names.7031 rm -f conftest.$ac_objext libconftest.a7032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&57033 (eval $lt_ar_try) 2>&57034 ac_status=$?7035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57036 test $ac_status = 0; }7037 if test 0 -ne "$ac_status"; then7038 lt_cv_ar_at_file=@7039 fi7040 fi7041 rm -f conftest.* libconftest.a7042 7043 fi7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext7045 7046 fi7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&57048 $as_echo "$lt_cv_ar_at_file" >&6; }7049 7050 if test no = "$lt_cv_ar_at_file"; then7051 archiver_list_spec=7052 else7053 archiver_list_spec=$lt_cv_ar_at_file7054 fi7055 7056 7057 7058 7059 7060 7061 7062 if test -n "$ac_tool_prefix"; then7063 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.7064 set dummy ${ac_tool_prefix}strip; ac_word=$27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57066 $as_echo_n "checking for $ac_word... " >&6; }7067 if ${ac_cv_prog_STRIP+:} false; then :7068 $as_echo_n "(cached) " >&67069 else7070 if test -n "$STRIP"; then7071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.7072 else7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7074 for as_dir in $PATH7075 do7076 IFS=$as_save_IFS7077 test -z "$as_dir" && as_dir=.7078 for ac_exec_ext in '' $ac_executable_extensions; do7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7080 ac_cv_prog_STRIP="${ac_tool_prefix}strip"7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57082 break 27083 fi7084 done7085 done7086 IFS=$as_save_IFS7087 7088 fi7089 fi7090 STRIP=$ac_cv_prog_STRIP7091 if test -n "$STRIP"; then7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&57093 $as_echo "$STRIP" >&6; }7094 else7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57096 $as_echo "no" >&6; }7097 fi7098 7099 7100 fi7101 if test -z "$ac_cv_prog_STRIP"; then7102 ac_ct_STRIP=$STRIP7103 # Extract the first word of "strip", so it can be a program name with args.7104 set dummy strip; ac_word=$27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57106 $as_echo_n "checking for $ac_word... " >&6; }7107 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :7108 $as_echo_n "(cached) " >&67109 else7110 if test -n "$ac_ct_STRIP"; then7111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.7112 else7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7114 for as_dir in $PATH7115 do7116 IFS=$as_save_IFS7117 test -z "$as_dir" && as_dir=.7118 for ac_exec_ext in '' $ac_executable_extensions; do7119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7120 ac_cv_prog_ac_ct_STRIP="strip"7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57122 break 27123 fi7124 done7125 done7126 IFS=$as_save_IFS7127 7128 fi7129 fi7130 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP7131 if test -n "$ac_ct_STRIP"; then7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&57133 $as_echo "$ac_ct_STRIP" >&6; }7134 else7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57136 $as_echo "no" >&6; }7137 fi7138 7139 if test "x$ac_ct_STRIP" = x; then7140 STRIP=":"7141 else7142 case $cross_compiling:$ac_tool_warned in7143 yes:)7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7146 ac_tool_warned=yes ;;7147 esac7148 STRIP=$ac_ct_STRIP7149 fi7150 else7151 STRIP="$ac_cv_prog_STRIP"7152 fi7153 7154 test -z "$STRIP" && STRIP=:7155 7156 7157 7158 7159 7160 7161 if test -n "$ac_tool_prefix"; then7162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.7163 set dummy ${ac_tool_prefix}ranlib; ac_word=$27164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57165 $as_echo_n "checking for $ac_word... " >&6; }7166 if ${ac_cv_prog_RANLIB+:} false; then :7167 $as_echo_n "(cached) " >&67168 else7169 if test -n "$RANLIB"; then7170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.7171 else7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7173 for as_dir in $PATH7174 do7175 IFS=$as_save_IFS7176 test -z "$as_dir" && as_dir=.7177 for ac_exec_ext in '' $ac_executable_extensions; do7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57181 break 27182 fi7183 done7184 done7185 IFS=$as_save_IFS7186 7187 fi7188 fi7189 RANLIB=$ac_cv_prog_RANLIB7190 if test -n "$RANLIB"; then7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&57192 $as_echo "$RANLIB" >&6; }7193 else7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57195 $as_echo "no" >&6; }7196 fi7197 7198 7199 fi7200 if test -z "$ac_cv_prog_RANLIB"; then7201 ac_ct_RANLIB=$RANLIB7202 # Extract the first word of "ranlib", so it can be a program name with args.7203 set dummy ranlib; ac_word=$27204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57205 $as_echo_n "checking for $ac_word... " >&6; }7206 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :7207 $as_echo_n "(cached) " >&67208 else7209 if test -n "$ac_ct_RANLIB"; then7210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.7211 else7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7213 for as_dir in $PATH7214 do7215 IFS=$as_save_IFS7216 test -z "$as_dir" && as_dir=.7217 for ac_exec_ext in '' $ac_executable_extensions; do7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7219 ac_cv_prog_ac_ct_RANLIB="ranlib"7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57221 break 27222 fi7223 done7224 done7225 IFS=$as_save_IFS7226 7227 fi7228 fi7229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB7230 if test -n "$ac_ct_RANLIB"; then7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&57232 $as_echo "$ac_ct_RANLIB" >&6; }7233 else7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57235 $as_echo "no" >&6; }7236 fi7237 7238 if test "x$ac_ct_RANLIB" = x; then7239 RANLIB=":"7240 else7241 case $cross_compiling:$ac_tool_warned in7242 yes:)7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7245 ac_tool_warned=yes ;;7246 esac7247 RANLIB=$ac_ct_RANLIB7248 fi7249 else7250 RANLIB="$ac_cv_prog_RANLIB"7251 fi7252 7253 test -z "$RANLIB" && RANLIB=:7254 7255 7256 7257 7258 7259 7260 # Determine commands to create old-style static archives.7261 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'7262 old_postinstall_cmds='chmod 644 $oldlib'7263 old_postuninstall_cmds=7264 7265 if test -n "$RANLIB"; then7266 case $host_os in7267 bitrig* | openbsd*)7268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"7269 ;;7270 *)7271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"7272 ;;7273 esac7274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"7275 fi7276 7277 case $host_os in7278 darwin*)7279 lock_old_archive_extraction=yes ;;7280 *)7281 lock_old_archive_extraction=no ;;7282 esac7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 # If no C compiler was specified, use CC.7323 LTCC=${LTCC-"$CC"}7324 7325 # If no C compiler flags were specified, use CFLAGS.7326 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}7327 7328 # Allow CC to be a program name with arguments.7329 compiler=$CC7330 7331 7332 # Check for command to grab the raw symbol name followed by C symbol from nm.7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&57334 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }7335 if ${lt_cv_sys_global_symbol_pipe+:} false; then :7336 $as_echo_n "(cached) " >&67337 else7338 7339 # These are sane defaults that work on at least a few old systems.7340 # [They come from Ultrix. What could be older than Ultrix?!! ;)]7341 7342 # Character class describing NM global symbol codes.7343 symcode='[BCDEGRST]'7344 7345 # Regexp to match symbols that can be accessed directly from C.7346 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'7347 7348 # Define system-specific variables.7349 case $host_os in7350 aix*)7351 symcode='[BCDT]'7352 ;;7353 cygwin* | mingw* | pw32* | cegcc*)7354 symcode='[ABCDGISTW]'7355 ;;7356 hpux*)7357 if test ia64 = "$host_cpu"; then7358 symcode='[ABCDEGRST]'7359 fi7360 ;;7361 irix* | nonstopux*)7362 symcode='[BCDEGRST]'7363 ;;7364 osf*)7365 symcode='[BCDEGQRST]'7366 ;;7367 solaris*)7368 symcode='[BDRT]'7369 ;;7370 sco3.2v5*)7371 symcode='[DT]'7372 ;;7373 sysv4.2uw2*)7374 symcode='[DT]'7375 ;;7376 sysv5* | sco5v6* | unixware* | OpenUNIX*)7377 symcode='[ABDT]'7378 ;;7379 sysv4)7380 symcode='[DFNSTU]'7381 ;;7382 esac7383 7384 # If we're using GNU nm, then use its standard symbol codes.7385 case `$NM -V 2>&1` in7386 *GNU* | *'with BFD'*)7387 symcode='[ABCDGIRSTW]' ;;7388 esac7389 7390 if test "$lt_cv_nm_interface" = "MS dumpbin"; then7391 # Gets list of data symbols to import.7392 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"7393 # Adjust the below global symbol transforms to fixup imported variables.7394 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"7395 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"7396 lt_c_name_lib_hook="\7397 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\7398 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"7399 else7400 # Disable hooks by default.7401 lt_cv_sys_global_symbol_to_import=7402 lt_cdecl_hook=7403 lt_c_name_hook=7404 lt_c_name_lib_hook=7405 fi7406 7407 # Transform an extracted symbol line into a proper C declaration.7408 # Some systems (esp. on ia64) link data and code symbols differently,7409 # so use this general approach.7410 lt_cv_sys_global_symbol_to_cdecl="sed -n"\7411 $lt_cdecl_hook\7412 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\7413 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"7414 7415 # Transform an extracted symbol line into symbol name and symbol address7416 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\7417 $lt_c_name_hook\7418 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\7419 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"7420 7421 # Transform an extracted symbol line into symbol name with lib prefix and7422 # symbol address.7423 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\7424 $lt_c_name_lib_hook\7425 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\7426 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\7427 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"7428 7429 # Handle CRLF in mingw tool chain7430 opt_cr=7431 case $build_os in7432 mingw*)7433 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp7434 ;;7435 esac7436 7437 # Try without a prefix underscore, then with it.7438 for ac_symprfx in "" "_"; do7439 7440 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.7441 symxfrm="\\1 $ac_symprfx\\2 \\2"7442 7443 # Write the raw and C identifiers.7444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then7445 # Fake it for dumpbin and say T for any non-static function,7446 # D for any global variable and I for any imported variable.7447 # Also find C++ and __fastcall symbols from MSVC++,7448 # which start with @ or ?.7449 lt_cv_sys_global_symbol_pipe="$AWK '"\7450 " {last_section=section; section=\$ 3};"\7451 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\7452 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\7453 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\7454 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\7455 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\7456 " \$ 0!~/External *\|/{next};"\7457 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\7458 " {if(hide[section]) next};"\7459 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\7460 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\7461 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\7462 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\7463 " ' prfx=^$ac_symprfx"7464 else7465 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"7466 fi7467 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"7468 7469 # Check to see that the pipe works correctly.7470 pipe_works=no7471 7472 rm -f conftest*7473 cat > conftest.$ac_ext <<_LT_EOF7474 #ifdef __cplusplus7475 extern "C" {7476 #endif7477 char nm_test_var;7478 void nm_test_func(void);7479 void nm_test_func(void){}7480 #ifdef __cplusplus7481 }7482 #endif7483 int main(){nm_test_var='a';nm_test_func();return(0);}7484 _LT_EOF7485 7486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57487 (eval $ac_compile) 2>&57488 ac_status=$?7489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57490 test $ac_status = 0; }; then7491 # Now try to grab the symbols.7492 nlist=conftest.nm7493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&57494 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&57495 ac_status=$?7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57497 test $ac_status = 0; } && test -s "$nlist"; then7498 # Try sorting and uniquifying the output.7499 if sort "$nlist" | uniq > "$nlist"T; then7500 mv -f "$nlist"T "$nlist"7501 else7502 rm -f "$nlist"T7503 fi7504 7505 # Make sure that we snagged all the symbols we need.7506 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then7507 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then7508 cat <<_LT_EOF > conftest.$ac_ext7509 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */7510 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE7511 /* DATA imports from DLLs on WIN32 can't be const, because runtime7512 relocations are performed -- see ld's documentation on pseudo-relocs. */7513 # define LT_DLSYM_CONST7514 #elif defined __osf__7515 /* This system does not cope well with relocations in const data. */7516 # define LT_DLSYM_CONST7517 #else7518 # define LT_DLSYM_CONST const7519 #endif7520 7521 #ifdef __cplusplus7522 extern "C" {7523 #endif7524 7525 _LT_EOF7526 # Now generate the symbol file.7527 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'7528 7529 cat <<_LT_EOF >> conftest.$ac_ext7530 7531 /* The mapping between symbol names and symbols. */7532 LT_DLSYM_CONST struct {7533 const char *name;7534 void *address;7535 }7536 lt__PROGRAM__LTX_preloaded_symbols[] =7537 {7538 { "@PROGRAM@", (void *) 0 },7539 _LT_EOF7540 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext7541 cat <<\_LT_EOF >> conftest.$ac_ext7542 {0, (void *) 0}7543 };7544 7545 /* This works around a problem in FreeBSD linker */7546 #ifdef FREEBSD_WORKAROUND7547 static const void *lt_preloaded_setup() {7548 return lt__PROGRAM__LTX_preloaded_symbols;7549 }7550 #endif7551 7552 #ifdef __cplusplus7553 }7554 #endif7555 _LT_EOF7556 # Now try linking the two files.7557 mv conftest.$ac_objext conftstm.$ac_objext7558 lt_globsym_save_LIBS=$LIBS7559 lt_globsym_save_CFLAGS=$CFLAGS7560 LIBS=conftstm.$ac_objext7561 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"7562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&57563 (eval $ac_link) 2>&57564 ac_status=$?7565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57566 test $ac_status = 0; } && test -s conftest$ac_exeext; then7567 pipe_works=yes7568 fi7569 LIBS=$lt_globsym_save_LIBS7570 CFLAGS=$lt_globsym_save_CFLAGS7571 else7572 echo "cannot find nm_test_func in $nlist" >&57573 fi7574 else7575 echo "cannot find nm_test_var in $nlist" >&57576 fi7577 else7578 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&57579 fi7580 else7581 echo "$progname: failed program was:" >&57582 cat conftest.$ac_ext >&57583 fi7584 rm -rf conftest* conftst*7585 7586 # Do not use the global_symbol_pipe unless it works.7587 if test yes = "$pipe_works"; then7588 break7589 else7590 lt_cv_sys_global_symbol_pipe=7591 fi7592 done7593 7594 fi7595 7596 if test -z "$lt_cv_sys_global_symbol_pipe"; then7597 lt_cv_sys_global_symbol_to_cdecl=7598 fi7599 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&57601 $as_echo "failed" >&6; }7602 else7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&57604 $as_echo "ok" >&6; }7605 fi7606 7607 # Response file support.7608 if test "$lt_cv_nm_interface" = "MS dumpbin"; then7609 nm_file_list_spec='@'7610 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then7611 nm_file_list_spec='@'7612 fi7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&57651 $as_echo_n "checking for sysroot... " >&6; }7652 7653 # Check whether --with-sysroot was given.7654 if test "${with_sysroot+set}" = set; then :7655 withval=$with_sysroot;7656 else7657 with_sysroot=no7658 fi7659 7660 7661 lt_sysroot=7662 case $with_sysroot in #(7663 yes)7664 if test yes = "$GCC"; then7665 lt_sysroot=`$CC --print-sysroot 2>/dev/null`7666 fi7667 ;; #(7668 /*)7669 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`7670 ;; #(7671 no|'')7672 ;; #(7673 *)7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&57675 $as_echo "$with_sysroot" >&6; }7676 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 57677 ;;7678 esac7679 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&57681 $as_echo "${lt_sysroot:-no}" >&6; }7682 7683 7684 7685 7686 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&57688 $as_echo_n "checking for a working dd... " >&6; }7689 if ${ac_cv_path_lt_DD+:} false; then :7690 $as_echo_n "(cached) " >&67691 else7692 printf 0123456789abcdef0123456789abcdef >conftest.i7693 cat conftest.i conftest.i >conftest2.i7694 : ${lt_DD:=$DD}7695 if test -z "$lt_DD"; then7696 ac_path_lt_DD_found=false7697 # Loop through the user's path and test for each of PROGNAME-LIST7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7699 for as_dir in $PATH7700 do7701 IFS=$as_save_IFS7702 test -z "$as_dir" && as_dir=.7703 for ac_prog in dd; do7704 for ac_exec_ext in '' $ac_executable_extensions; do7705 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"7706 as_fn_executable_p "$ac_path_lt_DD" || continue7707 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then7708 cmp -s conftest.i conftest.out \7709 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:7710 fi7711 $ac_path_lt_DD_found && break 37712 done7713 done7714 done7715 IFS=$as_save_IFS7716 if test -z "$ac_cv_path_lt_DD"; then7717 :7718 fi7719 else7720 ac_cv_path_lt_DD=$lt_DD7721 fi7722 7723 rm -f conftest.i conftest2.i conftest.out7724 fi7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&57726 $as_echo "$ac_cv_path_lt_DD" >&6; }7727 7728 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&57730 $as_echo_n "checking how to truncate binary pipes... " >&6; }7731 if ${lt_cv_truncate_bin+:} false; then :7732 $as_echo_n "(cached) " >&67733 else7734 printf 0123456789abcdef0123456789abcdef >conftest.i7735 cat conftest.i conftest.i >conftest2.i7736 lt_cv_truncate_bin=7737 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then7738 cmp -s conftest.i conftest.out \7739 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"7740 fi7741 rm -f conftest.i conftest2.i conftest.out7742 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"7743 fi7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&57745 $as_echo "$lt_cv_truncate_bin" >&6; }7746 7747 7748 7749 7750 7751 7752 7753 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.7754 func_cc_basename ()7755 {7756 for cc_temp in $*""; do7757 case $cc_temp in7758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;7759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;7760 \-*) ;;7761 *) break;;7762 esac7763 done7764 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`7765 }7766 7767 # Check whether --enable-libtool-lock was given.7768 if test "${enable_libtool_lock+set}" = set; then :7769 enableval=$enable_libtool_lock;7770 fi7771 7772 test no = "$enable_libtool_lock" || enable_libtool_lock=yes7773 7774 # Some flags need to be propagated to the compiler or linker for good7775 # libtool support.7776 case $host in7777 ia64-*-hpux*)7778 # Find out what ABI is being produced by ac_compile, and set mode7779 # options accordingly.7780 echo 'int i;' > conftest.$ac_ext7781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57782 (eval $ac_compile) 2>&57783 ac_status=$?7784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57785 test $ac_status = 0; }; then7786 case `/usr/bin/file conftest.$ac_objext` in7787 *ELF-32*)7788 HPUX_IA64_MODE=327789 ;;7790 *ELF-64*)7791 HPUX_IA64_MODE=647792 ;;7793 esac7794 fi7795 rm -rf conftest*7796 ;;7797 *-*-irix6*)7798 # Find out what ABI is being produced by ac_compile, and set linker7799 # options accordingly.7800 echo '#line '$LINENO' "configure"' > conftest.$ac_ext7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57802 (eval $ac_compile) 2>&57803 ac_status=$?7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57805 test $ac_status = 0; }; then7806 if test yes = "$lt_cv_prog_gnu_ld"; then7807 case `/usr/bin/file conftest.$ac_objext` in7808 *32-bit*)7809 LD="${LD-ld} -melf32bsmip"7810 ;;7811 *N32*)7812 LD="${LD-ld} -melf32bmipn32"7813 ;;7814 *64-bit*)7815 LD="${LD-ld} -melf64bmip"7816 ;;7817 esac7818 else7819 case `/usr/bin/file conftest.$ac_objext` in7820 *32-bit*)7821 LD="${LD-ld} -32"7822 ;;7823 *N32*)7824 LD="${LD-ld} -n32"7825 ;;7826 *64-bit*)7827 LD="${LD-ld} -64"7828 ;;7829 esac7830 fi7831 fi7832 rm -rf conftest*7833 ;;7834 7835 mips64*-*linux*)7836 # Find out what ABI is being produced by ac_compile, and set linker7837 # options accordingly.7838 echo '#line '$LINENO' "configure"' > conftest.$ac_ext7839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57840 (eval $ac_compile) 2>&57841 ac_status=$?7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57843 test $ac_status = 0; }; then7844 emul=elf7845 case `/usr/bin/file conftest.$ac_objext` in7846 *32-bit*)7847 emul="${emul}32"7848 ;;7849 *64-bit*)7850 emul="${emul}64"7851 ;;7852 esac7853 case `/usr/bin/file conftest.$ac_objext` in7854 *MSB*)7855 emul="${emul}btsmip"7856 ;;7857 *LSB*)7858 emul="${emul}ltsmip"7859 ;;7860 esac7861 case `/usr/bin/file conftest.$ac_objext` in7862 *N32*)7863 emul="${emul}n32"7864 ;;7865 esac7866 LD="${LD-ld} -m $emul"7867 fi7868 rm -rf conftest*7869 ;;7870 7871 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \7872 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)7873 # Find out what ABI is being produced by ac_compile, and set linker7874 # options accordingly. Note that the listed cases only cover the7875 # situations where additional linker options are needed (such as when7876 # doing 32-bit compilation for a host where ld defaults to 64-bit, or7877 # vice versa); the common cases where no linker options are needed do7878 # not appear in the list.7879 echo 'int i;' > conftest.$ac_ext7880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57881 (eval $ac_compile) 2>&57882 ac_status=$?7883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57884 test $ac_status = 0; }; then7885 case `/usr/bin/file conftest.o` in7886 *32-bit*)7887 case $host in7888 x86_64-*kfreebsd*-gnu)7889 LD="${LD-ld} -m elf_i386_fbsd"7890 ;;7891 x86_64-*linux*)7892 case `/usr/bin/file conftest.o` in7893 *x86-64*)7894 LD="${LD-ld} -m elf32_x86_64"7895 ;;7896 *)7897 LD="${LD-ld} -m elf_i386"7898 ;;7899 esac7900 ;;7901 powerpc64le-*linux*)7902 LD="${LD-ld} -m elf32lppclinux"7903 ;;7904 powerpc64-*linux*)7905 LD="${LD-ld} -m elf32ppclinux"7906 ;;7907 s390x-*linux*)7908 LD="${LD-ld} -m elf_s390"7909 ;;7910 sparc64-*linux*)7911 LD="${LD-ld} -m elf32_sparc"7912 ;;7913 esac7914 ;;7915 *64-bit*)7916 case $host in7917 x86_64-*kfreebsd*-gnu)7918 LD="${LD-ld} -m elf_x86_64_fbsd"7919 ;;7920 x86_64-*linux*)7921 LD="${LD-ld} -m elf_x86_64"7922 ;;7923 powerpcle-*linux*)7924 LD="${LD-ld} -m elf64lppc"7925 ;;7926 powerpc-*linux*)7927 LD="${LD-ld} -m elf64ppc"7928 ;;7929 s390*-*linux*|s390*-*tpf*)7930 LD="${LD-ld} -m elf64_s390"7931 ;;7932 sparc*-*linux*)7933 LD="${LD-ld} -m elf64_sparc"7934 ;;7935 esac7936 ;;7937 esac7938 fi7939 rm -rf conftest*7940 ;;7941 7942 *-*-sco3.2v5*)7943 # On SCO OpenServer 5, we need -belf to get full-featured binaries.7944 SAVE_CFLAGS=$CFLAGS7945 CFLAGS="$CFLAGS -belf"7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&57947 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }7948 if ${lt_cv_cc_needs_belf+:} false; then :7949 $as_echo_n "(cached) " >&67950 else7951 ac_ext=c7952 ac_cpp='$CPP $CPPFLAGS'7953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'7954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'7955 ac_compiler_gnu=$ac_cv_c_compiler_gnu7956 7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7958 /* end confdefs.h. */7959 7960 int7961 main ()7962 {7963 7964 ;7965 return 0;7966 }7967 _ACEOF7968 if ac_fn_c_try_link "$LINENO"; then :7969 lt_cv_cc_needs_belf=yes7970 else7971 lt_cv_cc_needs_belf=no7972 fi7973 rm -f core conftest.err conftest.$ac_objext \7974 conftest$ac_exeext conftest.$ac_ext7975 ac_ext=c7976 ac_cpp='$CPP $CPPFLAGS'7977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'7978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'7979 ac_compiler_gnu=$ac_cv_c_compiler_gnu7980 7981 fi7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&57983 $as_echo "$lt_cv_cc_needs_belf" >&6; }7984 if test yes != "$lt_cv_cc_needs_belf"; then7985 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf7986 CFLAGS=$SAVE_CFLAGS7987 fi7988 ;;7989 *-*solaris*)7990 # Find out what ABI is being produced by ac_compile, and set linker7991 # options accordingly.7992 echo 'int i;' > conftest.$ac_ext7993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57994 (eval $ac_compile) 2>&57995 ac_status=$?7996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57997 test $ac_status = 0; }; then7998 case `/usr/bin/file conftest.o` in7999 *64-bit*)8000 case $lt_cv_prog_gnu_ld in8001 yes*)8002 case $host in8003 i?86-*-solaris*|x86_64-*-solaris*)8004 LD="${LD-ld} -m elf_x86_64"8005 ;;8006 sparc*-*-solaris*)8007 LD="${LD-ld} -m elf64_sparc"8008 ;;8009 esac8010 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.8011 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then8012 LD=${LD-ld}_sol28013 fi8014 ;;8015 *)8016 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then8017 LD="${LD-ld} -64"8018 fi8019 ;;8020 esac8021 ;;8022 esac8023 fi8024 rm -rf conftest*8025 ;;8026 esac8027 8028 need_locks=$enable_libtool_lock8029 8030 if test -n "$ac_tool_prefix"; then8031 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.8032 set dummy ${ac_tool_prefix}mt; ac_word=$28033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58034 $as_echo_n "checking for $ac_word... " >&6; }8035 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :8036 $as_echo_n "(cached) " >&68037 else8038 if test -n "$MANIFEST_TOOL"; then8039 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.8040 else8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8042 for as_dir in $PATH8043 do8044 IFS=$as_save_IFS8045 test -z "$as_dir" && as_dir=.8046 for ac_exec_ext in '' $ac_executable_extensions; do8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8048 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58050 break 28051 fi8052 done8053 done8054 IFS=$as_save_IFS8055 8056 fi8057 fi8058 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL8059 if test -n "$MANIFEST_TOOL"; then8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&58061 $as_echo "$MANIFEST_TOOL" >&6; }8062 else8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58064 $as_echo "no" >&6; }8065 fi8066 8067 8068 fi8069 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then8070 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL8071 # Extract the first word of "mt", so it can be a program name with args.8072 set dummy mt; ac_word=$28073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58074 $as_echo_n "checking for $ac_word... " >&6; }8075 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :8076 $as_echo_n "(cached) " >&68077 else8078 if test -n "$ac_ct_MANIFEST_TOOL"; then8079 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.8080 else8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8082 for as_dir in $PATH8083 do8084 IFS=$as_save_IFS8085 test -z "$as_dir" && as_dir=.8086 for ac_exec_ext in '' $ac_executable_extensions; do8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8088 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58090 break 28091 fi8092 done8093 done8094 IFS=$as_save_IFS8095 8096 fi8097 fi8098 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL8099 if test -n "$ac_ct_MANIFEST_TOOL"; then8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&58101 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }8102 else8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58104 $as_echo "no" >&6; }8105 fi8106 8107 if test "x$ac_ct_MANIFEST_TOOL" = x; then8108 MANIFEST_TOOL=":"8109 else8110 case $cross_compiling:$ac_tool_warned in8111 yes:)8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8114 ac_tool_warned=yes ;;8115 esac8116 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL8117 fi8118 else8119 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"8120 fi8121 8122 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&58124 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }8125 if ${lt_cv_path_mainfest_tool+:} false; then :8126 $as_echo_n "(cached) " >&68127 else8128 lt_cv_path_mainfest_tool=no8129 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&58130 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out8131 cat conftest.err >&58132 if $GREP 'Manifest Tool' conftest.out > /dev/null; then8133 lt_cv_path_mainfest_tool=yes8134 fi8135 rm -f conftest*8136 fi8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&58138 $as_echo "$lt_cv_path_mainfest_tool" >&6; }8139 if test yes != "$lt_cv_path_mainfest_tool"; then8140 MANIFEST_TOOL=:8141 fi8142 8143 8144 8145 8146 8147 8148 case $host_os in8149 rhapsody* | darwin*)8150 if test -n "$ac_tool_prefix"; then8151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.8152 set dummy ${ac_tool_prefix}dsymutil; ac_word=$28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58154 $as_echo_n "checking for $ac_word... " >&6; }8155 if ${ac_cv_prog_DSYMUTIL+:} false; then :8156 $as_echo_n "(cached) " >&68157 else8158 if test -n "$DSYMUTIL"; then8159 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.8160 else8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8162 for as_dir in $PATH8163 do8164 IFS=$as_save_IFS8165 test -z "$as_dir" && as_dir=.8166 for ac_exec_ext in '' $ac_executable_extensions; do8167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8168 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58170 break 28171 fi8172 done8173 done8174 IFS=$as_save_IFS8175 8176 fi8177 fi8178 DSYMUTIL=$ac_cv_prog_DSYMUTIL8179 if test -n "$DSYMUTIL"; then8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&58181 $as_echo "$DSYMUTIL" >&6; }8182 else8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58184 $as_echo "no" >&6; }8185 fi8186 8187 8188 fi8189 if test -z "$ac_cv_prog_DSYMUTIL"; then8190 ac_ct_DSYMUTIL=$DSYMUTIL8191 # Extract the first word of "dsymutil", so it can be a program name with args.8192 set dummy dsymutil; ac_word=$28193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58194 $as_echo_n "checking for $ac_word... " >&6; }8195 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :8196 $as_echo_n "(cached) " >&68197 else8198 if test -n "$ac_ct_DSYMUTIL"; then8199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.8200 else8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8202 for as_dir in $PATH8203 do8204 IFS=$as_save_IFS8205 test -z "$as_dir" && as_dir=.8206 for ac_exec_ext in '' $ac_executable_extensions; do8207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8208 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58210 break 28211 fi8212 done8213 done8214 IFS=$as_save_IFS8215 8216 fi8217 fi8218 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL8219 if test -n "$ac_ct_DSYMUTIL"; then8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&58221 $as_echo "$ac_ct_DSYMUTIL" >&6; }8222 else8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58224 $as_echo "no" >&6; }8225 fi8226 8227 if test "x$ac_ct_DSYMUTIL" = x; then8228 DSYMUTIL=":"8229 else8230 case $cross_compiling:$ac_tool_warned in8231 yes:)8232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8234 ac_tool_warned=yes ;;8235 esac8236 DSYMUTIL=$ac_ct_DSYMUTIL8237 fi8238 else8239 DSYMUTIL="$ac_cv_prog_DSYMUTIL"8240 fi8241 8242 if test -n "$ac_tool_prefix"; then8243 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.8244 set dummy ${ac_tool_prefix}nmedit; ac_word=$28245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58246 $as_echo_n "checking for $ac_word... " >&6; }8247 if ${ac_cv_prog_NMEDIT+:} false; then :8248 $as_echo_n "(cached) " >&68249 else8250 if test -n "$NMEDIT"; then8251 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.8252 else8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8254 for as_dir in $PATH8255 do8256 IFS=$as_save_IFS8257 test -z "$as_dir" && as_dir=.8258 for ac_exec_ext in '' $ac_executable_extensions; do8259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8260 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58262 break 28263 fi8264 done8265 done8266 IFS=$as_save_IFS8267 8268 fi8269 fi8270 NMEDIT=$ac_cv_prog_NMEDIT8271 if test -n "$NMEDIT"; then8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&58273 $as_echo "$NMEDIT" >&6; }8274 else8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58276 $as_echo "no" >&6; }8277 fi8278 8279 8280 fi8281 if test -z "$ac_cv_prog_NMEDIT"; then8282 ac_ct_NMEDIT=$NMEDIT8283 # Extract the first word of "nmedit", so it can be a program name with args.8284 set dummy nmedit; ac_word=$28285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58286 $as_echo_n "checking for $ac_word... " >&6; }8287 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :8288 $as_echo_n "(cached) " >&68289 else8290 if test -n "$ac_ct_NMEDIT"; then8291 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.8292 else8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8294 for as_dir in $PATH8295 do8296 IFS=$as_save_IFS8297 test -z "$as_dir" && as_dir=.8298 for ac_exec_ext in '' $ac_executable_extensions; do8299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8300 ac_cv_prog_ac_ct_NMEDIT="nmedit"8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58302 break 28303 fi8304 done8305 done8306 IFS=$as_save_IFS8307 8308 fi8309 fi8310 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT8311 if test -n "$ac_ct_NMEDIT"; then8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&58313 $as_echo "$ac_ct_NMEDIT" >&6; }8314 else8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58316 $as_echo "no" >&6; }8317 fi8318 8319 if test "x$ac_ct_NMEDIT" = x; then8320 NMEDIT=":"8321 else8322 case $cross_compiling:$ac_tool_warned in8323 yes:)8324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8326 ac_tool_warned=yes ;;8327 esac8328 NMEDIT=$ac_ct_NMEDIT8329 fi8330 else8331 NMEDIT="$ac_cv_prog_NMEDIT"8332 fi8333 8334 if test -n "$ac_tool_prefix"; then8335 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.8336 set dummy ${ac_tool_prefix}lipo; ac_word=$28337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58338 $as_echo_n "checking for $ac_word... " >&6; }8339 if ${ac_cv_prog_LIPO+:} false; then :8340 $as_echo_n "(cached) " >&68341 else8342 if test -n "$LIPO"; then8343 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.8344 else8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8346 for as_dir in $PATH8347 do8348 IFS=$as_save_IFS8349 test -z "$as_dir" && as_dir=.8350 for ac_exec_ext in '' $ac_executable_extensions; do8351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8352 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58354 break 28355 fi8356 done8357 done8358 IFS=$as_save_IFS8359 8360 fi8361 fi8362 LIPO=$ac_cv_prog_LIPO8363 if test -n "$LIPO"; then8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&58365 $as_echo "$LIPO" >&6; }8366 else8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58368 $as_echo "no" >&6; }8369 fi8370 8371 8372 fi8373 if test -z "$ac_cv_prog_LIPO"; then8374 ac_ct_LIPO=$LIPO8375 # Extract the first word of "lipo", so it can be a program name with args.8376 set dummy lipo; ac_word=$28377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58378 $as_echo_n "checking for $ac_word... " >&6; }8379 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :8380 $as_echo_n "(cached) " >&68381 else8382 if test -n "$ac_ct_LIPO"; then8383 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.8384 else8385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8386 for as_dir in $PATH8387 do8388 IFS=$as_save_IFS8389 test -z "$as_dir" && as_dir=.8390 for ac_exec_ext in '' $ac_executable_extensions; do8391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8392 ac_cv_prog_ac_ct_LIPO="lipo"8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58394 break 28395 fi8396 done8397 done8398 IFS=$as_save_IFS8399 8400 fi8401 fi8402 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO8403 if test -n "$ac_ct_LIPO"; then8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&58405 $as_echo "$ac_ct_LIPO" >&6; }8406 else8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58408 $as_echo "no" >&6; }8409 fi8410 8411 if test "x$ac_ct_LIPO" = x; then8412 LIPO=":"8413 else8414 case $cross_compiling:$ac_tool_warned in8415 yes:)8416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8418 ac_tool_warned=yes ;;8419 esac8420 LIPO=$ac_ct_LIPO8421 fi8422 else8423 LIPO="$ac_cv_prog_LIPO"8424 fi8425 8426 if test -n "$ac_tool_prefix"; then8427 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.8428 set dummy ${ac_tool_prefix}otool; ac_word=$28429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58430 $as_echo_n "checking for $ac_word... " >&6; }8431 if ${ac_cv_prog_OTOOL+:} false; then :8432 $as_echo_n "(cached) " >&68433 else8434 if test -n "$OTOOL"; then8435 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.8436 else8437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8438 for as_dir in $PATH8439 do8440 IFS=$as_save_IFS8441 test -z "$as_dir" && as_dir=.8442 for ac_exec_ext in '' $ac_executable_extensions; do8443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8444 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58446 break 28447 fi8448 done8449 done8450 IFS=$as_save_IFS8451 8452 fi8453 fi8454 OTOOL=$ac_cv_prog_OTOOL8455 if test -n "$OTOOL"; then8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&58457 $as_echo "$OTOOL" >&6; }8458 else8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58460 $as_echo "no" >&6; }8461 fi8462 8463 8464 fi8465 if test -z "$ac_cv_prog_OTOOL"; then8466 ac_ct_OTOOL=$OTOOL8467 # Extract the first word of "otool", so it can be a program name with args.8468 set dummy otool; ac_word=$28469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58470 $as_echo_n "checking for $ac_word... " >&6; }8471 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :8472 $as_echo_n "(cached) " >&68473 else8474 if test -n "$ac_ct_OTOOL"; then8475 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.8476 else8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8478 for as_dir in $PATH8479 do8480 IFS=$as_save_IFS8481 test -z "$as_dir" && as_dir=.8482 for ac_exec_ext in '' $ac_executable_extensions; do8483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8484 ac_cv_prog_ac_ct_OTOOL="otool"8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58486 break 28487 fi8488 done8489 done8490 IFS=$as_save_IFS8491 8492 fi8493 fi8494 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL8495 if test -n "$ac_ct_OTOOL"; then8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&58497 $as_echo "$ac_ct_OTOOL" >&6; }8498 else8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58500 $as_echo "no" >&6; }8501 fi8502 8503 if test "x$ac_ct_OTOOL" = x; then8504 OTOOL=":"8505 else8506 case $cross_compiling:$ac_tool_warned in8507 yes:)8508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8510 ac_tool_warned=yes ;;8511 esac8512 OTOOL=$ac_ct_OTOOL8513 fi8514 else8515 OTOOL="$ac_cv_prog_OTOOL"8516 fi8517 8518 if test -n "$ac_tool_prefix"; then8519 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.8520 set dummy ${ac_tool_prefix}otool64; ac_word=$28521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58522 $as_echo_n "checking for $ac_word... " >&6; }8523 if ${ac_cv_prog_OTOOL64+:} false; then :8524 $as_echo_n "(cached) " >&68525 else8526 if test -n "$OTOOL64"; then8527 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.8528 else8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8530 for as_dir in $PATH8531 do8532 IFS=$as_save_IFS8533 test -z "$as_dir" && as_dir=.8534 for ac_exec_ext in '' $ac_executable_extensions; do8535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8536 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"8537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58538 break 28539 fi8540 done8541 done8542 IFS=$as_save_IFS8543 8544 fi8545 fi8546 OTOOL64=$ac_cv_prog_OTOOL648547 if test -n "$OTOOL64"; then8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&58549 $as_echo "$OTOOL64" >&6; }8550 else8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58552 $as_echo "no" >&6; }8553 fi8554 8555 8556 fi8557 if test -z "$ac_cv_prog_OTOOL64"; then8558 ac_ct_OTOOL64=$OTOOL648559 # Extract the first word of "otool64", so it can be a program name with args.8560 set dummy otool64; ac_word=$28561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58562 $as_echo_n "checking for $ac_word... " >&6; }8563 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :8564 $as_echo_n "(cached) " >&68565 else8566 if test -n "$ac_ct_OTOOL64"; then8567 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.8568 else8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8570 for as_dir in $PATH8571 do8572 IFS=$as_save_IFS8573 test -z "$as_dir" && as_dir=.8574 for ac_exec_ext in '' $ac_executable_extensions; do8575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8576 ac_cv_prog_ac_ct_OTOOL64="otool64"8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58578 break 28579 fi8580 done8581 done8582 IFS=$as_save_IFS8583 8584 fi8585 fi8586 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL648587 if test -n "$ac_ct_OTOOL64"; then8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&58589 $as_echo "$ac_ct_OTOOL64" >&6; }8590 else8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58592 $as_echo "no" >&6; }8593 fi8594 8595 if test "x$ac_ct_OTOOL64" = x; then8596 OTOOL64=":"8597 else8598 case $cross_compiling:$ac_tool_warned in8599 yes:)8600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8602 ac_tool_warned=yes ;;8603 esac8604 OTOOL64=$ac_ct_OTOOL648605 fi8606 else8607 OTOOL64="$ac_cv_prog_OTOOL64"8608 fi8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&58637 $as_echo_n "checking for -single_module linker flag... " >&6; }8638 if ${lt_cv_apple_cc_single_mod+:} false; then :8639 $as_echo_n "(cached) " >&68640 else8641 lt_cv_apple_cc_single_mod=no8642 if test -z "$LT_MULTI_MODULE"; then8643 # By default we will add the -single_module flag. You can override8644 # by either setting the environment variable LT_MULTI_MODULE8645 # non-empty at configure time, or by adding -multi_module to the8646 # link flags.8647 rm -rf libconftest.dylib*8648 echo "int foo(void){return 1;}" > conftest.c8649 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \8650 -dynamiclib -Wl,-single_module conftest.c" >&58651 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \8652 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err8653 _lt_result=$?8654 # If there is a non-empty error log, and "single_module"8655 # appears in it, assume the flag caused a linker warning8656 if test -s conftest.err && $GREP single_module conftest.err; then8657 cat conftest.err >&58658 # Otherwise, if the output was created with a 0 exit code from8659 # the compiler, it worked.8660 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then8661 lt_cv_apple_cc_single_mod=yes8662 else8663 cat conftest.err >&58664 fi8665 rm -rf libconftest.dylib*8666 rm -f conftest.*8667 fi8668 fi8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&58670 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }8671 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&58673 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }8674 if ${lt_cv_ld_exported_symbols_list+:} false; then :8675 $as_echo_n "(cached) " >&68676 else8677 lt_cv_ld_exported_symbols_list=no8678 save_LDFLAGS=$LDFLAGS8679 echo "_main" > conftest.sym8680 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8682 /* end confdefs.h. */8683 8684 int8685 main ()8686 {8687 8688 ;8689 return 0;8690 }8691 _ACEOF8692 if ac_fn_c_try_link "$LINENO"; then :8693 lt_cv_ld_exported_symbols_list=yes8694 else8695 lt_cv_ld_exported_symbols_list=no8696 fi8697 rm -f core conftest.err conftest.$ac_objext \8698 conftest$ac_exeext conftest.$ac_ext8699 LDFLAGS=$save_LDFLAGS8700 8701 fi8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&58703 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }8704 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&58706 $as_echo_n "checking for -force_load linker flag... " >&6; }8707 if ${lt_cv_ld_force_load+:} false; then :8708 $as_echo_n "(cached) " >&68709 else8710 lt_cv_ld_force_load=no8711 cat > conftest.c << _LT_EOF8712 int forced_loaded() { return 2;}8713 _LT_EOF8714 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&58715 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&58716 echo "$AR cru libconftest.a conftest.o" >&58717 $AR cru libconftest.a conftest.o 2>&58718 echo "$RANLIB libconftest.a" >&58719 $RANLIB libconftest.a 2>&58720 cat > conftest.c << _LT_EOF8721 int main() { return 0;}8722 _LT_EOF8723 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&58724 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err8725 _lt_result=$?8726 if test -s conftest.err && $GREP force_load conftest.err; then8727 cat conftest.err >&58728 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then8729 lt_cv_ld_force_load=yes8730 else8731 cat conftest.err >&58732 fi8733 rm -f conftest.err libconftest.a conftest conftest.c8734 rm -rf conftest.dSYM8735 8736 fi8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&58738 $as_echo "$lt_cv_ld_force_load" >&6; }8739 case $host_os in8740 rhapsody* | darwin1.[012])8741 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;8742 darwin1.*)8743 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;8744 darwin*) # darwin 5.x on8745 # if running on 10.5 or later, the deployment target defaults8746 # to the OS version, if on x86, and 10.4, the deployment8747 # target defaults to 10.4. Don't you love it?8748 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in8749 10.0,*86*-darwin8*|10.0,*-darwin[91]*)8750 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;8751 10.[012][,.]*)8752 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;8753 10.*)8754 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;8755 esac8756 ;;8757 esac8758 if test yes = "$lt_cv_apple_cc_single_mod"; then8759 _lt_dar_single_mod='$single_module'8760 fi8761 if test yes = "$lt_cv_ld_exported_symbols_list"; then8762 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'8763 else8764 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'8765 fi8766 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then8767 _lt_dsymutil='~$DSYMUTIL $lib || :'8768 else8769 _lt_dsymutil=8770 fi8771 ;;8772 esac8773 8774 # func_munge_path_list VARIABLE PATH8775 # -----------------------------------8776 # VARIABLE is name of variable containing _space_ separated list of8777 # directories to be munged by the contents of PATH, which is string8778 # having a format:8779 # "DIR[:DIR]:"8780 # string "DIR[ DIR]" will be prepended to VARIABLE8781 # ":DIR[:DIR]"8782 # string "DIR[ DIR]" will be appended to VARIABLE8783 # "DIRP[:DIRP]::[DIRA:]DIRA"8784 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string8785 # "DIRA[ DIRA]" will be appended to VARIABLE8786 # "DIR[:DIR]"8787 # VARIABLE will be replaced by "DIR[ DIR]"8788 func_munge_path_list ()8789 {8790 case x$2 in8791 x)8792 ;;8793 *:)8794 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"8795 ;;8796 x:*)8797 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"8798 ;;8799 *::*)8800 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"8801 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"8802 ;;8803 *)8804 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"8805 ;;8806 esac8807 }8808 8809 ac_ext=c8810 ac_cpp='$CPP $CPPFLAGS'8811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'8812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'8813 ac_compiler_gnu=$ac_cv_c_compiler_gnu8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&58815 $as_echo_n "checking how to run the C preprocessor... " >&6; }8816 # On Suns, sometimes $CPP names a directory.8817 if test -n "$CPP" && test -d "$CPP"; then8818 CPP=8819 fi8820 if test -z "$CPP"; then8821 if ${ac_cv_prog_CPP+:} false; then :8822 $as_echo_n "(cached) " >&68823 else8824 # Double quotes because CPP needs to be expanded8825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"8826 do8827 ac_preproc_ok=false8828 for ac_c_preproc_warn_flag in '' yes8829 do8830 # Use a header file that comes with gcc, so configuring glibc8831 # with a fresh cross-compiler works.8832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since8833 # <limits.h> exists even on freestanding compilers.8834 # On the NeXT, cc -E runs the code through the compiler's parser,8835 # not just through cpp. "Syntax error" is here to catch this case.8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8837 /* end confdefs.h. */8838 #ifdef __STDC__8839 # include <limits.h>8840 #else8841 # include <assert.h>8842 #endif8843 Syntax error8844 _ACEOF8845 if ac_fn_c_try_cpp "$LINENO"; then :8846 8847 else8848 # Broken: fails on valid input.8849 continue8850 fi8851 rm -f conftest.err conftest.i conftest.$ac_ext8852 8853 # OK, works on sane cases. Now check whether nonexistent headers8854 # can be detected and how.8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8856 /* end confdefs.h. */8857 #include <ac_nonexistent.h>8858 _ACEOF8859 if ac_fn_c_try_cpp "$LINENO"; then :8860 # Broken: success on invalid input.8861 continue8862 else8863 # Passes both tests.8864 ac_preproc_ok=:8865 break8866 fi8867 rm -f conftest.err conftest.i conftest.$ac_ext8868 8869 done8870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.8871 rm -f conftest.i conftest.err conftest.$ac_ext8872 if $ac_preproc_ok; then :8873 break8874 fi8875 8876 done8877 ac_cv_prog_CPP=$CPP8878 8879 fi8880 CPP=$ac_cv_prog_CPP8881 else8882 ac_cv_prog_CPP=$CPP8883 fi8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&58885 $as_echo "$CPP" >&6; }8886 ac_preproc_ok=false8887 for ac_c_preproc_warn_flag in '' yes8888 do8889 # Use a header file that comes with gcc, so configuring glibc8890 # with a fresh cross-compiler works.8891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since8892 # <limits.h> exists even on freestanding compilers.8893 # On the NeXT, cc -E runs the code through the compiler's parser,8894 # not just through cpp. "Syntax error" is here to catch this case.8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8896 /* end confdefs.h. */8897 #ifdef __STDC__8898 # include <limits.h>8899 #else8900 # include <assert.h>8901 #endif8902 Syntax error8903 _ACEOF8904 if ac_fn_c_try_cpp "$LINENO"; then :8905 8906 else8907 # Broken: fails on valid input.8908 continue8909 fi8910 rm -f conftest.err conftest.i conftest.$ac_ext8911 8912 # OK, works on sane cases. Now check whether nonexistent headers8913 # can be detected and how.8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8915 /* end confdefs.h. */8916 #include <ac_nonexistent.h>8917 _ACEOF8918 if ac_fn_c_try_cpp "$LINENO"; then :8919 # Broken: success on invalid input.8920 continue8921 else8922 # Passes both tests.8923 ac_preproc_ok=:8924 break8925 fi8926 rm -f conftest.err conftest.i conftest.$ac_ext8927 8928 done8929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.8930 rm -f conftest.i conftest.err conftest.$ac_ext8931 if $ac_preproc_ok; then :8932 8933 else8934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&58935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}8936 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check8937 See \`config.log' for more details" "$LINENO" 5; }8938 fi8939 8940 ac_ext=c8941 ac_cpp='$CPP $CPPFLAGS'8942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'8943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'8944 ac_compiler_gnu=$ac_cv_c_compiler_gnu8945 8946 8947 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8948 5764 $as_echo_n "checking for ANSI C header files... " >&6; } … … 9074 5890 9075 5891 9076 for ac_header in dlfcn.h9077 do :9078 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default9079 "9080 if test "x$ac_cv_header_dlfcn_h" = xyes; then :9081 cat >>confdefs.h <<_ACEOF9082 #define HAVE_DLFCN_H 19083 _ACEOF9084 9085 fi9086 9087 done9088 9089 9090 9091 9092 func_stripname_cnf ()9093 {9094 case $2 in9095 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;9096 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;9097 esac9098 } # func_stripname_cnf9099 9100 9101 9102 9103 9104 # Set options9105 9106 9107 9108 enable_dlopen=no9109 9110 9111 enable_win32_dll=no9112 9113 9114 # Check whether --enable-shared was given.9115 if test "${enable_shared+set}" = set; then :9116 enableval=$enable_shared; p=${PACKAGE-default}9117 case $enableval in9118 yes) enable_shared=yes ;;9119 no) enable_shared=no ;;9120 *)9121 enable_shared=no9122 # Look at the argument we got. We use all the common list separators.9123 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,9124 for pkg in $enableval; do9125 IFS=$lt_save_ifs9126 if test "X$pkg" = "X$p"; then9127 enable_shared=yes9128 fi9129 done9130 IFS=$lt_save_ifs9131 ;;9132 esac9133 else9134 enable_shared=yes9135 fi9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 # Check whether --enable-static was given.9146 if test "${enable_static+set}" = set; then :9147 enableval=$enable_static; p=${PACKAGE-default}9148 case $enableval in9149 yes) enable_static=yes ;;9150 no) enable_static=no ;;9151 *)9152 enable_static=no9153 # Look at the argument we got. We use all the common list separators.9154 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,9155 for pkg in $enableval; do9156 IFS=$lt_save_ifs9157 if test "X$pkg" = "X$p"; then9158 enable_static=yes9159 fi9160 done9161 IFS=$lt_save_ifs9162 ;;9163 esac9164 else9165 enable_static=yes9166 fi9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 # Check whether --with-pic was given.9178 if test "${with_pic+set}" = set; then :9179 withval=$with_pic; lt_p=${PACKAGE-default}9180 case $withval in9181 yes|no) pic_mode=$withval ;;9182 *)9183 pic_mode=default9184 # Look at the argument we got. We use all the common list separators.9185 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,9186 for lt_pkg in $withval; do9187 IFS=$lt_save_ifs9188 if test "X$lt_pkg" = "X$lt_p"; then9189 pic_mode=yes9190 fi9191 done9192 IFS=$lt_save_ifs9193 ;;9194 esac9195 else9196 pic_mode=default9197 fi9198 9199 9200 9201 9202 9203 9204 9205 9206 # Check whether --enable-fast-install was given.9207 if test "${enable_fast_install+set}" = set; then :9208 enableval=$enable_fast_install; p=${PACKAGE-default}9209 case $enableval in9210 yes) enable_fast_install=yes ;;9211 no) enable_fast_install=no ;;9212 *)9213 enable_fast_install=no9214 # Look at the argument we got. We use all the common list separators.9215 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,9216 for pkg in $enableval; do9217 IFS=$lt_save_ifs9218 if test "X$pkg" = "X$p"; then9219 enable_fast_install=yes9220 fi9221 done9222 IFS=$lt_save_ifs9223 ;;9224 esac9225 else9226 enable_fast_install=yes9227 fi9228 9229 9230 9231 9232 9233 9234 9235 9236 shared_archive_member_spec=9237 case $host,$enable_shared in9238 power*-*-aix[5-9]*,yes)9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&59240 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }9241 9242 # Check whether --with-aix-soname was given.9243 if test "${with_aix_soname+set}" = set; then :9244 withval=$with_aix_soname; case $withval in9245 aix|svr4|both)9246 ;;9247 *)9248 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 59249 ;;9250 esac9251 lt_cv_with_aix_soname=$with_aix_soname9252 else9253 if ${lt_cv_with_aix_soname+:} false; then :9254 $as_echo_n "(cached) " >&69255 else9256 lt_cv_with_aix_soname=aix9257 fi9258 9259 with_aix_soname=$lt_cv_with_aix_soname9260 fi9261 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&59263 $as_echo "$with_aix_soname" >&6; }9264 if test aix != "$with_aix_soname"; then9265 # For the AIX way of multilib, we name the shared archive member9266 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',9267 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.9268 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,9269 # the AIX toolchain works better with OBJECT_MODE set (default 32).9270 if test 64 = "${OBJECT_MODE-32}"; then9271 shared_archive_member_spec=shr_649272 else9273 shared_archive_member_spec=shr9274 fi9275 fi9276 ;;9277 *)9278 with_aix_soname=aix9279 ;;9280 esac9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 # This can be used to rebuild libtool when needed9292 LIBTOOL_DEPS=$ltmain9293 9294 # Always use our own libtool.9295 LIBTOOL='$(SHELL) $(top_builddir)/libtool'9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 test -z "$LN_S" && LN_S="ln -s"9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 if test -n "${ZSH_VERSION+set}"; then9342 setopt NO_GLOB_SUBST9343 fi9344 9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&59346 $as_echo_n "checking for objdir... " >&6; }9347 if ${lt_cv_objdir+:} false; then :9348 $as_echo_n "(cached) " >&69349 else9350 rm -f .libs 2>/dev/null9351 mkdir .libs 2>/dev/null9352 if test -d .libs; then9353 lt_cv_objdir=.libs9354 else9355 # MS-DOS does not allow filenames that begin with a dot.9356 lt_cv_objdir=_libs9357 fi9358 rmdir .libs 2>/dev/null9359 fi9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&59361 $as_echo "$lt_cv_objdir" >&6; }9362 objdir=$lt_cv_objdir9363 9364 9365 9366 9367 9368 cat >>confdefs.h <<_ACEOF9369 #define LT_OBJDIR "$lt_cv_objdir/"9370 _ACEOF9371 9372 9373 9374 9375 case $host_os in9376 aix3*)9377 # AIX sometimes has problems with the GCC collect2 program. For some9378 # reason, if we set the COLLECT_NAMES environment variable, the problems9379 # vanish in a puff of smoke.9380 if test set != "${COLLECT_NAMES+set}"; then9381 COLLECT_NAMES=9382 export COLLECT_NAMES9383 fi9384 ;;9385 esac9386 9387 # Global variables:9388 ofile=libtool9389 can_build_shared=yes9390 9391 # All known linkers require a '.a' archive for static linking (except MSVC,9392 # which needs '.lib').9393 libext=a9394 9395 with_gnu_ld=$lt_cv_prog_gnu_ld9396 9397 old_CC=$CC9398 old_CFLAGS=$CFLAGS9399 9400 # Set sane defaults for various variables9401 test -z "$CC" && CC=cc9402 test -z "$LTCC" && LTCC=$CC9403 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS9404 test -z "$LD" && LD=ld9405 test -z "$ac_objext" && ac_objext=o9406 9407 func_cc_basename $compiler9408 cc_basename=$func_cc_basename_result9409 9410 9411 # Only perform the check for file, if the check method requires it9412 test -z "$MAGIC_CMD" && MAGIC_CMD=file9413 case $deplibs_check_method in9414 file_magic*)9415 if test "$file_magic_cmd" = '$MAGIC_CMD'; then9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&59417 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }9418 if ${lt_cv_path_MAGIC_CMD+:} false; then :9419 $as_echo_n "(cached) " >&69420 else9421 case $MAGIC_CMD in9422 [\\/*] | ?:[\\/]*)9423 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.9424 ;;9425 *)9426 lt_save_MAGIC_CMD=$MAGIC_CMD9427 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR9428 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"9429 for ac_dir in $ac_dummy; do9430 IFS=$lt_save_ifs9431 test -z "$ac_dir" && ac_dir=.9432 if test -f "$ac_dir/${ac_tool_prefix}file"; then9433 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"9434 if test -n "$file_magic_test_file"; then9435 case $deplibs_check_method in9436 "file_magic "*)9437 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`9438 MAGIC_CMD=$lt_cv_path_MAGIC_CMD9439 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |9440 $EGREP "$file_magic_regex" > /dev/null; then9441 :9442 else9443 cat <<_LT_EOF 1>&29444 9445 *** Warning: the command libtool uses to detect shared libraries,9446 *** $file_magic_cmd, produces output that libtool cannot recognize.9447 *** The result is that libtool may fail to recognize shared libraries9448 *** as such. This will affect the creation of libtool libraries that9449 *** depend on shared libraries, but programs linked with such libtool9450 *** libraries will work regardless of this problem. Nevertheless, you9451 *** may want to report the problem to your system manager and/or to9452 *** bug-libtool@gnu.org9453 9454 _LT_EOF9455 fi ;;9456 esac9457 fi9458 break9459 fi9460 done9461 IFS=$lt_save_ifs9462 MAGIC_CMD=$lt_save_MAGIC_CMD9463 ;;9464 esac9465 fi9466 9467 MAGIC_CMD=$lt_cv_path_MAGIC_CMD9468 if test -n "$MAGIC_CMD"; then9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&59470 $as_echo "$MAGIC_CMD" >&6; }9471 else9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&59473 $as_echo "no" >&6; }9474 fi9475 9476 9477 9478 9479 9480 if test -z "$lt_cv_path_MAGIC_CMD"; then9481 if test -n "$ac_tool_prefix"; then9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&59483 $as_echo_n "checking for file... " >&6; }9484 if ${lt_cv_path_MAGIC_CMD+:} false; then :9485 $as_echo_n "(cached) " >&69486 else9487 case $MAGIC_CMD in9488 [\\/*] | ?:[\\/]*)9489 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.9490 ;;9491 *)9492 lt_save_MAGIC_CMD=$MAGIC_CMD9493 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR9494 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"9495 for ac_dir in $ac_dummy; do9496 IFS=$lt_save_ifs9497 test -z "$ac_dir" && ac_dir=.9498 if test -f "$ac_dir/file"; then9499 lt_cv_path_MAGIC_CMD=$ac_dir/"file"9500 if test -n "$file_magic_test_file"; then9501 case $deplibs_check_method in9502 "file_magic "*)9503 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`9504 MAGIC_CMD=$lt_cv_path_MAGIC_CMD9505 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |9506 $EGREP "$file_magic_regex" > /dev/null; then9507 :9508 else9509 cat <<_LT_EOF 1>&29510 9511 *** Warning: the command libtool uses to detect shared libraries,9512 *** $file_magic_cmd, produces output that libtool cannot recognize.9513 *** The result is that libtool may fail to recognize shared libraries9514 *** as such. This will affect the creation of libtool libraries that9515 *** depend on shared libraries, but programs linked with such libtool9516 *** libraries will work regardless of this problem. Nevertheless, you9517 *** may want to report the problem to your system manager and/or to9518 *** bug-libtool@gnu.org9519 9520 _LT_EOF9521 fi ;;9522 esac9523 fi9524 break9525 fi9526 done9527 IFS=$lt_save_ifs9528 MAGIC_CMD=$lt_save_MAGIC_CMD9529 ;;9530 esac9531 fi9532 9533 MAGIC_CMD=$lt_cv_path_MAGIC_CMD9534 if test -n "$MAGIC_CMD"; then9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&59536 $as_echo "$MAGIC_CMD" >&6; }9537 else9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&59539 $as_echo "no" >&6; }9540 fi9541 9542 9543 else9544 MAGIC_CMD=:9545 fi9546 fi9547 9548 fi9549 ;;9550 esac9551 9552 # Use C for the default configuration in the libtool script9553 9554 lt_save_CC=$CC9555 ac_ext=c9556 ac_cpp='$CPP $CPPFLAGS'9557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'9558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'9559 ac_compiler_gnu=$ac_cv_c_compiler_gnu9560 9561 9562 # Source file extension for C test sources.9563 ac_ext=c9564 9565 # Object file extension for compiled C test sources.9566 objext=o9567 objext=$objext9568 9569 # Code to be used in simple compile tests9570 lt_simple_compile_test_code="int some_variable = 0;"9571 9572 # Code to be used in simple link tests9573 lt_simple_link_test_code='int main(){return(0);}'9574 9575 9576 9577 9578 9579 9580 9581 # If no C compiler was specified, use CC.9582 LTCC=${LTCC-"$CC"}9583 9584 # If no C compiler flags were specified, use CFLAGS.9585 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}9586 9587 # Allow CC to be a program name with arguments.9588 compiler=$CC9589 9590 # Save the default compiler, since it gets overwritten when the other9591 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.9592 compiler_DEFAULT=$CC9593 9594 # save warnings/boilerplate of simple test code9595 ac_outfile=conftest.$ac_objext9596 echo "$lt_simple_compile_test_code" >conftest.$ac_ext9597 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err9598 _lt_compiler_boilerplate=`cat conftest.err`9599 $RM conftest*9600 9601 ac_outfile=conftest.$ac_objext9602 echo "$lt_simple_link_test_code" >conftest.$ac_ext9603 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err9604 _lt_linker_boilerplate=`cat conftest.err`9605 $RM -r conftest*9606 9607 9608 ## CAVEAT EMPTOR:9609 ## There is no encapsulation within the following macros, do not change9610 ## the running order or otherwise move them around unless you know exactly9611 ## what you are doing...9612 if test -n "$compiler"; then9613 9614 lt_prog_compiler_no_builtin_flag=9615 9616 if test yes = "$GCC"; then9617 case $cc_basename in9618 nvcc*)9619 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;9620 *)9621 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;9622 esac9623 9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&59625 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }9626 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :9627 $as_echo_n "(cached) " >&69628 else9629 lt_cv_prog_compiler_rtti_exceptions=no9630 ac_outfile=conftest.$ac_objext9631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext9632 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment9633 # Insert the option either (1) after the last *FLAGS variable, or9634 # (2) before a word containing "conftest.", or (3) at the end.9635 # Note that $ac_compile itself does not contain backslashes and begins9636 # with a dollar sign (not a hyphen), so the echo should work correctly.9637 # The option is referenced via a variable to avoid confusing sed.9638 lt_compile=`echo "$ac_compile" | $SED \9639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \9640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \9641 -e 's:$: $lt_compiler_flag:'`9642 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)9643 (eval "$lt_compile" 2>conftest.err)9644 ac_status=$?9645 cat conftest.err >&59646 echo "$as_me:$LINENO: \$? = $ac_status" >&59647 if (exit $ac_status) && test -s "$ac_outfile"; then9648 # The compiler can only warn and ignore the option if not recognized9649 # So say no if there are warnings other than the usual output.9650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp9651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er29652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then9653 lt_cv_prog_compiler_rtti_exceptions=yes9654 fi9655 fi9656 $RM conftest*9657 9658 fi9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&59660 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }9661 9662 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then9663 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"9664 else9665 :9666 fi9667 9668 fi9669 9670 9671 9672 9673 9674 9675 lt_prog_compiler_wl=9676 lt_prog_compiler_pic=9677 lt_prog_compiler_static=9678 9679 9680 if test yes = "$GCC"; then9681 lt_prog_compiler_wl='-Wl,'9682 lt_prog_compiler_static='-static'9683 9684 case $host_os in9685 aix*)9686 # All AIX code is PIC.9687 if test ia64 = "$host_cpu"; then9688 # AIX 5 now supports IA64 processor9689 lt_prog_compiler_static='-Bstatic'9690 fi9691 lt_prog_compiler_pic='-fPIC'9692 ;;9693 9694 amigaos*)9695 case $host_cpu in9696 powerpc)9697 # see comment about AmigaOS4 .so support9698 lt_prog_compiler_pic='-fPIC'9699 ;;9700 m68k)9701 # FIXME: we need at least 68020 code to build shared libraries, but9702 # adding the '-m68020' flag to GCC prevents building anything better,9703 # like '-m68040'.9704 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'9705 ;;9706 esac9707 ;;9708 9709 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)9710 # PIC is the default for these OSes.9711 ;;9712 9713 mingw* | cygwin* | pw32* | os2* | cegcc*)9714 # This hack is so that the source file can tell whether it is being9715 # built for inclusion in a dll (and should export symbols for example).9716 # Although the cygwin gcc ignores -fPIC, still need this for old-style9717 # (--disable-auto-import) libraries9718 lt_prog_compiler_pic='-DDLL_EXPORT'9719 case $host_os in9720 os2*)9721 lt_prog_compiler_static='$wl-static'9722 ;;9723 esac9724 ;;9725 9726 darwin* | rhapsody*)9727 # PIC is the default on this platform9728 # Common symbols not allowed in MH_DYLIB files9729 lt_prog_compiler_pic='-fno-common'9730 ;;9731 9732 haiku*)9733 # PIC is the default for Haiku.9734 # The "-static" flag exists, but is broken.9735 lt_prog_compiler_static=9736 ;;9737 9738 hpux*)9739 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit9740 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag9741 # sets the default TLS model and affects inlining.9742 case $host_cpu in9743 hppa*64*)9744 # +Z the default9745 ;;9746 *)9747 lt_prog_compiler_pic='-fPIC'9748 ;;9749 esac9750 ;;9751 9752 interix[3-9]*)9753 # Interix 3.x gcc -fpic/-fPIC options generate broken code.9754 # Instead, we relocate shared libraries at runtime.9755 ;;9756 9757 msdosdjgpp*)9758 # Just because we use GCC doesn't mean we suddenly get shared libraries9759 # on systems that don't support them.9760 lt_prog_compiler_can_build_shared=no9761 enable_shared=no9762 ;;9763 9764 *nto* | *qnx*)9765 # QNX uses GNU C++, but need to define -shared option too, otherwise9766 # it will coredump.9767 lt_prog_compiler_pic='-fPIC -shared'9768 ;;9769 9770 sysv4*MP*)9771 if test -d /usr/nec; then9772 lt_prog_compiler_pic=-Kconform_pic9773 fi9774 ;;9775 9776 *)9777 lt_prog_compiler_pic='-fPIC'9778 ;;9779 esac9780 9781 case $cc_basename in9782 nvcc*) # Cuda Compiler Driver 2.29783 lt_prog_compiler_wl='-Xlinker '9784 if test -n "$lt_prog_compiler_pic"; then9785 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"9786 fi9787 ;;9788 esac9789 else9790 # PORTME Check for flag to pass linker flags through the system compiler.9791 case $host_os in9792 aix*)9793 lt_prog_compiler_wl='-Wl,'9794 if test ia64 = "$host_cpu"; then9795 # AIX 5 now supports IA64 processor9796 lt_prog_compiler_static='-Bstatic'9797 else9798 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'9799 fi9800 ;;9801 9802 darwin* | rhapsody*)9803 # PIC is the default on this platform9804 # Common symbols not allowed in MH_DYLIB files9805 lt_prog_compiler_pic='-fno-common'9806 case $cc_basename in9807 nagfor*)9808 # NAG Fortran compiler9809 lt_prog_compiler_wl='-Wl,-Wl,,'9810 lt_prog_compiler_pic='-PIC'9811 lt_prog_compiler_static='-Bstatic'9812 ;;9813 esac9814 ;;9815 9816 mingw* | cygwin* | pw32* | os2* | cegcc*)9817 # This hack is so that the source file can tell whether it is being9818 # built for inclusion in a dll (and should export symbols for example).9819 lt_prog_compiler_pic='-DDLL_EXPORT'9820 case $host_os in9821 os2*)9822 lt_prog_compiler_static='$wl-static'9823 ;;9824 esac9825 ;;9826 9827 hpux9* | hpux10* | hpux11*)9828 lt_prog_compiler_wl='-Wl,'9829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but9830 # not for PA HP-UX.9831 case $host_cpu in9832 hppa*64*|ia64*)9833 # +Z the default9834 ;;9835 *)9836 lt_prog_compiler_pic='+Z'9837 ;;9838 esac9839 # Is there a better lt_prog_compiler_static that works with the bundled CC?9840 lt_prog_compiler_static='$wl-a ${wl}archive'9841 ;;9842 9843 irix5* | irix6* | nonstopux*)9844 lt_prog_compiler_wl='-Wl,'9845 # PIC (with -KPIC) is the default.9846 lt_prog_compiler_static='-non_shared'9847 ;;9848 9849 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)9850 case $cc_basename in9851 # old Intel for x86_64, which still supported -KPIC.9852 ecc*)9853 lt_prog_compiler_wl='-Wl,'9854 lt_prog_compiler_pic='-KPIC'9855 lt_prog_compiler_static='-static'9856 ;;9857 # icc used to be incompatible with GCC.9858 # ICC 10 doesn't accept -KPIC any more.9859 icc* | ifort*)9860 lt_prog_compiler_wl='-Wl,'9861 lt_prog_compiler_pic='-fPIC'9862 lt_prog_compiler_static='-static'9863 ;;9864 # Lahey Fortran 8.1.9865 lf95*)9866 lt_prog_compiler_wl='-Wl,'9867 lt_prog_compiler_pic='--shared'9868 lt_prog_compiler_static='--static'9869 ;;9870 nagfor*)9871 # NAG Fortran compiler9872 lt_prog_compiler_wl='-Wl,-Wl,,'9873 lt_prog_compiler_pic='-PIC'9874 lt_prog_compiler_static='-Bstatic'9875 ;;9876 tcc*)9877 # Fabrice Bellard et al's Tiny C Compiler9878 lt_prog_compiler_wl='-Wl,'9879 lt_prog_compiler_pic='-fPIC'9880 lt_prog_compiler_static='-static'9881 ;;9882 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)9883 # Portland Group compilers (*not* the Pentium gcc compiler,9884 # which looks to be a dead project)9885 lt_prog_compiler_wl='-Wl,'9886 lt_prog_compiler_pic='-fpic'9887 lt_prog_compiler_static='-Bstatic'9888 ;;9889 ccc*)9890 lt_prog_compiler_wl='-Wl,'9891 # All Alpha code is PIC.9892 lt_prog_compiler_static='-non_shared'9893 ;;9894 xl* | bgxl* | bgf* | mpixl*)9895 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene9896 lt_prog_compiler_wl='-Wl,'9897 lt_prog_compiler_pic='-qpic'9898 lt_prog_compiler_static='-qstaticlink'9899 ;;9900 *)9901 case `$CC -V 2>&1 | sed 5q` in9902 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)9903 # Sun Fortran 8.3 passes all unrecognized flags to the linker9904 lt_prog_compiler_pic='-KPIC'9905 lt_prog_compiler_static='-Bstatic'9906 lt_prog_compiler_wl=''9907 ;;9908 *Sun\ F* | *Sun*Fortran*)9909 lt_prog_compiler_pic='-KPIC'9910 lt_prog_compiler_static='-Bstatic'9911 lt_prog_compiler_wl='-Qoption ld '9912 ;;9913 *Sun\ C*)9914 # Sun C 5.99915 lt_prog_compiler_pic='-KPIC'9916 lt_prog_compiler_static='-Bstatic'9917 lt_prog_compiler_wl='-Wl,'9918 ;;9919 *Intel*\ [CF]*Compiler*)9920 lt_prog_compiler_wl='-Wl,'9921 lt_prog_compiler_pic='-fPIC'9922 lt_prog_compiler_static='-static'9923 ;;9924 *Portland\ Group*)9925 lt_prog_compiler_wl='-Wl,'9926 lt_prog_compiler_pic='-fpic'9927 lt_prog_compiler_static='-Bstatic'9928 ;;9929 esac9930 ;;9931 esac9932 ;;9933 9934 newsos6)9935 lt_prog_compiler_pic='-KPIC'9936 lt_prog_compiler_static='-Bstatic'9937 ;;9938 9939 *nto* | *qnx*)9940 # QNX uses GNU C++, but need to define -shared option too, otherwise9941 # it will coredump.9942 lt_prog_compiler_pic='-fPIC -shared'9943 ;;9944 9945 osf3* | osf4* | osf5*)9946 lt_prog_compiler_wl='-Wl,'9947 # All OSF/1 code is PIC.9948 lt_prog_compiler_static='-non_shared'9949 ;;9950 9951 rdos*)9952 lt_prog_compiler_static='-non_shared'9953 ;;9954 9955 solaris*)9956 lt_prog_compiler_pic='-KPIC'9957 lt_prog_compiler_static='-Bstatic'9958 case $cc_basename in9959 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)9960 lt_prog_compiler_wl='-Qoption ld ';;9961 *)9962 lt_prog_compiler_wl='-Wl,';;9963 esac9964 ;;9965 9966 sunos4*)9967 lt_prog_compiler_wl='-Qoption ld '9968 lt_prog_compiler_pic='-PIC'9969 lt_prog_compiler_static='-Bstatic'9970 ;;9971 9972 sysv4 | sysv4.2uw2* | sysv4.3*)9973 lt_prog_compiler_wl='-Wl,'9974 lt_prog_compiler_pic='-KPIC'9975 lt_prog_compiler_static='-Bstatic'9976 ;;9977 9978 sysv4*MP*)9979 if test -d /usr/nec; then9980 lt_prog_compiler_pic='-Kconform_pic'9981 lt_prog_compiler_static='-Bstatic'9982 fi9983 ;;9984 9985 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)9986 lt_prog_compiler_wl='-Wl,'9987 lt_prog_compiler_pic='-KPIC'9988 lt_prog_compiler_static='-Bstatic'9989 ;;9990 9991 unicos*)9992 lt_prog_compiler_wl='-Wl,'9993 lt_prog_compiler_can_build_shared=no9994 ;;9995 9996 uts4*)9997 lt_prog_compiler_pic='-pic'9998 lt_prog_compiler_static='-Bstatic'9999 ;;10000 10001 *)10002 lt_prog_compiler_can_build_shared=no10003 ;;10004 esac10005 fi10006 10007 case $host_os in10008 # For platforms that do not support PIC, -DPIC is meaningless:10009 *djgpp*)10010 lt_prog_compiler_pic=10011 ;;10012 *)10013 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"10014 ;;10015 esac10016 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&510018 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }10019 if ${lt_cv_prog_compiler_pic+:} false; then :10020 $as_echo_n "(cached) " >&610021 else10022 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic10023 fi10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&510025 $as_echo "$lt_cv_prog_compiler_pic" >&6; }10026 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic10027 10028 #10029 # Check to make sure the PIC flag actually works.10030 #10031 if test -n "$lt_prog_compiler_pic"; then10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&510033 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }10034 if ${lt_cv_prog_compiler_pic_works+:} false; then :10035 $as_echo_n "(cached) " >&610036 else10037 lt_cv_prog_compiler_pic_works=no10038 ac_outfile=conftest.$ac_objext10039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext10040 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment10041 # Insert the option either (1) after the last *FLAGS variable, or10042 # (2) before a word containing "conftest.", or (3) at the end.10043 # Note that $ac_compile itself does not contain backslashes and begins10044 # with a dollar sign (not a hyphen), so the echo should work correctly.10045 # The option is referenced via a variable to avoid confusing sed.10046 lt_compile=`echo "$ac_compile" | $SED \10047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \10048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \10049 -e 's:$: $lt_compiler_flag:'`10050 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)10051 (eval "$lt_compile" 2>conftest.err)10052 ac_status=$?10053 cat conftest.err >&510054 echo "$as_me:$LINENO: \$? = $ac_status" >&510055 if (exit $ac_status) && test -s "$ac_outfile"; then10056 # The compiler can only warn and ignore the option if not recognized10057 # So say no if there are warnings other than the usual output.10058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp10059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er210060 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then10061 lt_cv_prog_compiler_pic_works=yes10062 fi10063 fi10064 $RM conftest*10065 10066 fi10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&510068 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }10069 10070 if test yes = "$lt_cv_prog_compiler_pic_works"; then10071 case $lt_prog_compiler_pic in10072 "" | " "*) ;;10073 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;10074 esac10075 else10076 lt_prog_compiler_pic=10077 lt_prog_compiler_can_build_shared=no10078 fi10079 10080 fi10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 #10093 # Check to make sure the static flag actually works.10094 #10095 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&510097 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }10098 if ${lt_cv_prog_compiler_static_works+:} false; then :10099 $as_echo_n "(cached) " >&610100 else10101 lt_cv_prog_compiler_static_works=no10102 save_LDFLAGS=$LDFLAGS10103 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"10104 echo "$lt_simple_link_test_code" > conftest.$ac_ext10105 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then10106 # The linker can only warn and ignore the option if not recognized10107 # So say no if there are warnings10108 if test -s conftest.err; then10109 # Append any errors to the config.log.10110 cat conftest.err 1>&510111 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp10112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er210113 if diff conftest.exp conftest.er2 >/dev/null; then10114 lt_cv_prog_compiler_static_works=yes10115 fi10116 else10117 lt_cv_prog_compiler_static_works=yes10118 fi10119 fi10120 $RM -r conftest*10121 LDFLAGS=$save_LDFLAGS10122 10123 fi10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&510125 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }10126 10127 if test yes = "$lt_cv_prog_compiler_static_works"; then10128 :10129 else10130 lt_prog_compiler_static=10131 fi10132 10133 10134 10135 10136 10137 10138 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&510140 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }10141 if ${lt_cv_prog_compiler_c_o+:} false; then :10142 $as_echo_n "(cached) " >&610143 else10144 lt_cv_prog_compiler_c_o=no10145 $RM -r conftest 2>/dev/null10146 mkdir conftest10147 cd conftest10148 mkdir out10149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext10150 10151 lt_compiler_flag="-o out/conftest2.$ac_objext"10152 # Insert the option either (1) after the last *FLAGS variable, or10153 # (2) before a word containing "conftest.", or (3) at the end.10154 # Note that $ac_compile itself does not contain backslashes and begins10155 # with a dollar sign (not a hyphen), so the echo should work correctly.10156 lt_compile=`echo "$ac_compile" | $SED \10157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \10158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \10159 -e 's:$: $lt_compiler_flag:'`10160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)10161 (eval "$lt_compile" 2>out/conftest.err)10162 ac_status=$?10163 cat out/conftest.err >&510164 echo "$as_me:$LINENO: \$? = $ac_status" >&510165 if (exit $ac_status) && test -s out/conftest2.$ac_objext10166 then10167 # The compiler can only warn and ignore the option if not recognized10168 # So say no if there are warnings10169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp10170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er210171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then10172 lt_cv_prog_compiler_c_o=yes10173 fi10174 fi10175 chmod u+w . 2>&510176 $RM conftest*10177 # SGI C++ compiler will create directory out/ii_files/ for10178 # template instantiation10179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files10180 $RM out/* && rmdir out10181 cd ..10182 $RM -r conftest10183 $RM conftest*10184 10185 fi10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&510187 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }10188 10189 10190 10191 10192 10193 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&510195 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }10196 if ${lt_cv_prog_compiler_c_o+:} false; then :10197 $as_echo_n "(cached) " >&610198 else10199 lt_cv_prog_compiler_c_o=no10200 $RM -r conftest 2>/dev/null10201 mkdir conftest10202 cd conftest10203 mkdir out10204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext10205 10206 lt_compiler_flag="-o out/conftest2.$ac_objext"10207 # Insert the option either (1) after the last *FLAGS variable, or10208 # (2) before a word containing "conftest.", or (3) at the end.10209 # Note that $ac_compile itself does not contain backslashes and begins10210 # with a dollar sign (not a hyphen), so the echo should work correctly.10211 lt_compile=`echo "$ac_compile" | $SED \10212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \10213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \10214 -e 's:$: $lt_compiler_flag:'`10215 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)10216 (eval "$lt_compile" 2>out/conftest.err)10217 ac_status=$?10218 cat out/conftest.err >&510219 echo "$as_me:$LINENO: \$? = $ac_status" >&510220 if (exit $ac_status) && test -s out/conftest2.$ac_objext10221 then10222 # The compiler can only warn and ignore the option if not recognized10223 # So say no if there are warnings10224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp10225 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er210226 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then10227 lt_cv_prog_compiler_c_o=yes10228 fi10229 fi10230 chmod u+w . 2>&510231 $RM conftest*10232 # SGI C++ compiler will create directory out/ii_files/ for10233 # template instantiation10234 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files10235 $RM out/* && rmdir out10236 cd ..10237 $RM -r conftest10238 $RM conftest*10239 10240 fi10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&510242 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }10243 10244 10245 10246 10247 hard_links=nottested10248 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then10249 # do not overwrite the value of need_locks provided by the user10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&510251 $as_echo_n "checking if we can lock with hard links... " >&6; }10252 hard_links=yes10253 $RM conftest*10254 ln conftest.a conftest.b 2>/dev/null && hard_links=no10255 touch conftest.a10256 ln conftest.a conftest.b 2>&5 || hard_links=no10257 ln conftest.a conftest.b 2>/dev/null && hard_links=no10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&510259 $as_echo "$hard_links" >&6; }10260 if test no = "$hard_links"; then10261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&510262 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}10263 need_locks=warn10264 fi10265 else10266 need_locks=no10267 fi10268 10269 10270 10271 10272 10273 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&510275 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }10276 10277 runpath_var=10278 allow_undefined_flag=10279 always_export_symbols=no10280 archive_cmds=10281 archive_expsym_cmds=10282 compiler_needs_object=no10283 enable_shared_with_static_runtimes=no10284 export_dynamic_flag_spec=10285 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'10286 hardcode_automatic=no10287 hardcode_direct=no10288 hardcode_direct_absolute=no10289 hardcode_libdir_flag_spec=10290 hardcode_libdir_separator=10291 hardcode_minus_L=no10292 hardcode_shlibpath_var=unsupported10293 inherit_rpath=no10294 link_all_deplibs=unknown10295 module_cmds=10296 module_expsym_cmds=10297 old_archive_from_new_cmds=10298 old_archive_from_expsyms_cmds=10299 thread_safe_flag_spec=10300 whole_archive_flag_spec=10301 # include_expsyms should be a list of space-separated symbols to be *always*10302 # included in the symbol list10303 include_expsyms=10304 # exclude_expsyms can be an extended regexp of symbols to exclude10305 # it will be wrapped by ' (' and ')$', so one must not match beginning or10306 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',10307 # as well as any symbol that contains 'd'.10308 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'10309 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out10310 # platforms (ab)use it in PIC code, but their linkers get confused if10311 # the symbol is explicitly referenced. Since portable code cannot10312 # rely on this symbol name, it's probably fine to never include it in10313 # preloaded symbol tables.10314 # Exclude shared library initialization/finalization symbols.10315 extract_expsyms_cmds=10316 10317 case $host_os in10318 cygwin* | mingw* | pw32* | cegcc*)10319 # FIXME: the MSVC++ port hasn't been tested in a loooong time10320 # When not using gcc, we currently assume that we are using10321 # Microsoft Visual C++.10322 if test yes != "$GCC"; then10323 with_gnu_ld=no10324 fi10325 ;;10326 interix*)10327 # we just hope/assume this is gcc and not c89 (= MSVC++)10328 with_gnu_ld=yes10329 ;;10330 openbsd* | bitrig*)10331 with_gnu_ld=no10332 ;;10333 linux* | k*bsd*-gnu | gnu*)10334 link_all_deplibs=no10335 ;;10336 esac10337 10338 ld_shlibs=yes10339 10340 # On some targets, GNU ld is compatible enough with the native linker10341 # that we're better off using the native interface for both.10342 lt_use_gnu_ld_interface=no10343 if test yes = "$with_gnu_ld"; then10344 case $host_os in10345 aix*)10346 # The AIX port of GNU ld has always aspired to compatibility10347 # with the native linker. However, as the warning in the GNU ld10348 # block says, versions before 2.19.5* couldn't really create working10349 # shared libraries, regardless of the interface used.10350 case `$LD -v 2>&1` in10351 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;10352 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;10353 *\ \(GNU\ Binutils\)\ [3-9]*) ;;10354 *)10355 lt_use_gnu_ld_interface=yes10356 ;;10357 esac10358 ;;10359 *)10360 lt_use_gnu_ld_interface=yes10361 ;;10362 esac10363 fi10364 10365 if test yes = "$lt_use_gnu_ld_interface"; then10366 # If archive_cmds runs LD, not CC, wlarc should be empty10367 wlarc='$wl'10368 10369 # Set some defaults for GNU ld with shared library support. These10370 # are reset later if shared libraries are not supported. Putting them10371 # here allows them to be overridden if necessary.10372 runpath_var=LD_RUN_PATH10373 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10374 export_dynamic_flag_spec='$wl--export-dynamic'10375 # ancient GNU ld didn't support --whole-archive et. al.10376 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then10377 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'10378 else10379 whole_archive_flag_spec=10380 fi10381 supports_anon_versioning=no10382 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in10383 *GNU\ gold*) supports_anon_versioning=yes ;;10384 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.1110385 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...10386 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...10387 *\ 2.11.*) ;; # other 2.11 versions10388 *) supports_anon_versioning=yes ;;10389 esac10390 10391 # See if GNU ld supports shared libraries.10392 case $host_os in10393 aix[3-9]*)10394 # On AIX/PPC, the GNU linker is very broken10395 if test ia64 != "$host_cpu"; then10396 ld_shlibs=no10397 cat <<_LT_EOF 1>&210398 10399 *** Warning: the GNU linker, at least up to release 2.19, is reported10400 *** to be unable to reliably create shared libraries on AIX.10401 *** Therefore, libtool is disabling shared libraries support. If you10402 *** really care for shared libraries, you may want to install binutils10403 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.10404 *** You will then need to restart the configuration process.10405 10406 _LT_EOF10407 fi10408 ;;10409 10410 amigaos*)10411 case $host_cpu in10412 powerpc)10413 # see comment about AmigaOS4 .so support10414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10415 archive_expsym_cmds=''10416 ;;10417 m68k)10418 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)'10419 hardcode_libdir_flag_spec='-L$libdir'10420 hardcode_minus_L=yes10421 ;;10422 esac10423 ;;10424 10425 beos*)10426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then10427 allow_undefined_flag=unsupported10428 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc10429 # support --undefined. This deserves some investigation. FIXME10430 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10431 else10432 ld_shlibs=no10433 fi10434 ;;10435 10436 cygwin* | mingw* | pw32* | cegcc*)10437 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,10438 # as there is no search path for DLLs.10439 hardcode_libdir_flag_spec='-L$libdir'10440 export_dynamic_flag_spec='$wl--export-all-symbols'10441 allow_undefined_flag=unsupported10442 always_export_symbols=no10443 enable_shared_with_static_runtimes=yes10444 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'10445 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'10446 10447 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then10448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'10449 # If the export-symbols file already is a .def file, use it as10450 # is; otherwise, prepend EXPORTS...10451 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then10452 cp $export_symbols $output_objdir/$soname.def;10453 else10454 echo EXPORTS > $output_objdir/$soname.def;10455 cat $export_symbols >> $output_objdir/$soname.def;10456 fi~10457 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'10458 else10459 ld_shlibs=no10460 fi10461 ;;10462 10463 haiku*)10464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10465 link_all_deplibs=yes10466 ;;10467 10468 os2*)10469 hardcode_libdir_flag_spec='-L$libdir'10470 hardcode_minus_L=yes10471 allow_undefined_flag=unsupported10472 shrext_cmds=.dll10473 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~10474 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~10475 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~10476 $ECHO EXPORTS >> $output_objdir/$libname.def~10477 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~10478 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~10479 emximp -o $lib $output_objdir/$libname.def'10480 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~10481 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~10482 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~10483 $ECHO EXPORTS >> $output_objdir/$libname.def~10484 prefix_cmds="$SED"~10485 if test EXPORTS = "`$SED 1q $export_symbols`"; then10486 prefix_cmds="$prefix_cmds -e 1d";10487 fi~10488 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~10489 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~10490 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~10491 emximp -o $lib $output_objdir/$libname.def'10492 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'10493 enable_shared_with_static_runtimes=yes10494 ;;10495 10496 interix[3-9]*)10497 hardcode_direct=no10498 hardcode_shlibpath_var=no10499 hardcode_libdir_flag_spec='$wl-rpath,$libdir'10500 export_dynamic_flag_spec='$wl-E'10501 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.10502 # Instead, shared libraries are loaded at an image base (0x10000000 by10503 # default) and relocated if they conflict, which is a slow very memory10504 # consuming and fragmenting process. To avoid this, we pick a random,10505 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link10506 # time. Moving up from 0x10000000 also allows more sbrk(2) space.10507 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'10508 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'10509 ;;10510 10511 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)10512 tmp_diet=no10513 if test linux-dietlibc = "$host_os"; then10514 case $cc_basename in10515 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)10516 esac10517 fi10518 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \10519 && test no = "$tmp_diet"10520 then10521 tmp_addflag=' $pic_flag'10522 tmp_sharedflag='-shared'10523 case $cc_basename,$host_cpu in10524 pgcc*) # Portland Group C compiler10525 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'10526 tmp_addflag=' $pic_flag'10527 ;;10528 pgf77* | pgf90* | pgf95* | pgfortran*)10529 # Portland Group f77 and f90 compilers10530 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'10531 tmp_addflag=' $pic_flag -Mnomain' ;;10532 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia6410533 tmp_addflag=' -i_dynamic' ;;10534 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia6410535 tmp_addflag=' -i_dynamic -nofor_main' ;;10536 ifc* | ifort*) # Intel Fortran compiler10537 tmp_addflag=' -nofor_main' ;;10538 lf95*) # Lahey Fortran 8.110539 whole_archive_flag_spec=10540 tmp_sharedflag='--shared' ;;10541 nagfor*) # NAGFOR 5.310542 tmp_sharedflag='-Wl,-shared' ;;10543 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)10544 tmp_sharedflag='-qmkshrobj'10545 tmp_addflag= ;;10546 nvcc*) # Cuda Compiler Driver 2.210547 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'10548 compiler_needs_object=yes10549 ;;10550 esac10551 case `$CC -V 2>&1 | sed 5q` in10552 *Sun\ C*) # Sun C 5.910553 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'10554 compiler_needs_object=yes10555 tmp_sharedflag='-G' ;;10556 *Sun\ F*) # Sun Fortran 8.310557 tmp_sharedflag='-G' ;;10558 esac10559 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10560 10561 if test yes = "$supports_anon_versioning"; then10562 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~10563 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~10564 echo "local: *; };" >> $output_objdir/$libname.ver~10565 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'10566 fi10567 10568 case $cc_basename in10569 tcc*)10570 export_dynamic_flag_spec='-rdynamic'10571 ;;10572 xlf* | bgf* | bgxlf* | mpixlf*)10573 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself10574 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'10575 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10576 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'10577 if test yes = "$supports_anon_versioning"; then10578 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~10579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~10580 echo "local: *; };" >> $output_objdir/$libname.ver~10581 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'10582 fi10583 ;;10584 esac10585 else10586 ld_shlibs=no10587 fi10588 ;;10589 10590 netbsd* | netbsdelf*-gnu)10591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then10592 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'10593 wlarc=10594 else10595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10596 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'10597 fi10598 ;;10599 10600 solaris*)10601 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then10602 ld_shlibs=no10603 cat <<_LT_EOF 1>&210604 10605 *** Warning: The releases 2.8.* of the GNU linker cannot reliably10606 *** create shared libraries on Solaris systems. Therefore, libtool10607 *** is disabling shared libraries support. We urge you to upgrade GNU10608 *** binutils to release 2.9.1 or newer. Another option is to modify10609 *** your PATH or compiler configuration so that the native linker is10610 *** used, and then restart.10611 10612 _LT_EOF10613 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then10614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10615 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'10616 else10617 ld_shlibs=no10618 fi10619 ;;10620 10621 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)10622 case `$LD -v 2>&1` in10623 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)10624 ld_shlibs=no10625 cat <<_LT_EOF 1>&210626 10627 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot10628 *** reliably create shared libraries on SCO systems. Therefore, libtool10629 *** is disabling shared libraries support. We urge you to upgrade GNU10630 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify10631 *** your PATH or compiler configuration so that the native linker is10632 *** used, and then restart.10633 10634 _LT_EOF10635 ;;10636 *)10637 # For security reasons, it is highly recommended that you always10638 # use absolute paths for naming shared libraries, and exclude the10639 # DT_RUNPATH tag from executables and libraries. But doing so10640 # requires that you compile everything twice, which is a pain.10641 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then10642 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'10645 else10646 ld_shlibs=no10647 fi10648 ;;10649 esac10650 ;;10651 10652 sunos4*)10653 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'10654 wlarc=10655 hardcode_direct=yes10656 hardcode_shlibpath_var=no10657 ;;10658 10659 *)10660 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then10661 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10662 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'10663 else10664 ld_shlibs=no10665 fi10666 ;;10667 esac10668 10669 if test no = "$ld_shlibs"; then10670 runpath_var=10671 hardcode_libdir_flag_spec=10672 export_dynamic_flag_spec=10673 whole_archive_flag_spec=10674 fi10675 else10676 # PORTME fill in a description of your system's linker (not GNU ld)10677 case $host_os in10678 aix3*)10679 allow_undefined_flag=unsupported10680 always_export_symbols=yes10681 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'10682 # Note: this linker hardcodes the directories in LIBPATH if there10683 # are no directories specified by -L.10684 hardcode_minus_L=yes10685 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then10686 # Neither direct hardcoding nor static linking is supported with a10687 # broken collect2.10688 hardcode_direct=unsupported10689 fi10690 ;;10691 10692 aix[4-9]*)10693 if test ia64 = "$host_cpu"; then10694 # On IA64, the linker does run time linking by default, so we don't10695 # have to do anything special.10696 aix_use_runtimelinking=no10697 exp_sym_flag='-Bexport'10698 no_entry_flag=10699 else10700 # If we're using GNU nm, then we don't want the "-C" option.10701 # -C means demangle to GNU nm, but means don't demangle to AIX nm.10702 # Without the "-l" option, or with the "-B" option, AIX nm treats10703 # weak defined symbols like other global defined symbols, whereas10704 # GNU nm marks them as "W".10705 # While the 'weak' keyword is ignored in the Export File, we need10706 # it in the Import File for the 'aix-soname' feature, so we have10707 # to replace the "-B" option with "-P" for AIX nm.10708 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then10709 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'10710 else10711 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'10712 fi10713 aix_use_runtimelinking=no10714 10715 # Test if we are trying to use run time linking or normal10716 # AIX style linking. If -brtl is somewhere in LDFLAGS, we10717 # have runtime linking enabled, and use it for executables.10718 # For shared libraries, we enable/disable runtime linking10719 # depending on the kind of the shared library created -10720 # when "with_aix_soname,aix_use_runtimelinking" is:10721 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables10722 # "aix,yes" lib.so shared, rtl:yes, for executables10723 # lib.a static archive10724 # "both,no" lib.so.V(shr.o) shared, rtl:yes10725 # lib.a(lib.so.V) shared, rtl:no, for executables10726 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables10727 # lib.a(lib.so.V) shared, rtl:no10728 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables10729 # lib.a static archive10730 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)10731 for ld_flag in $LDFLAGS; do10732 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then10733 aix_use_runtimelinking=yes10734 break10735 fi10736 done10737 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then10738 # With aix-soname=svr4, we create the lib.so.V shared archives only,10739 # so we don't have lib.a shared libs to link our executables.10740 # We have to force runtime linking in this case.10741 aix_use_runtimelinking=yes10742 LDFLAGS="$LDFLAGS -Wl,-brtl"10743 fi10744 ;;10745 esac10746 10747 exp_sym_flag='-bexport'10748 no_entry_flag='-bnoentry'10749 fi10750 10751 # When large executables or shared objects are built, AIX ld can10752 # have problems creating the table of contents. If linking a library10753 # or program results in "error TOC overflow" add -mminimal-toc to10754 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not10755 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.10756 10757 archive_cmds=''10758 hardcode_direct=yes10759 hardcode_direct_absolute=yes10760 hardcode_libdir_separator=':'10761 link_all_deplibs=yes10762 file_list_spec='$wl-f,'10763 case $with_aix_soname,$aix_use_runtimelinking in10764 aix,*) ;; # traditional, no import file10765 svr4,* | *,yes) # use import file10766 # The Import File defines what to hardcode.10767 hardcode_direct=no10768 hardcode_direct_absolute=no10769 ;;10770 esac10771 10772 if test yes = "$GCC"; then10773 case $host_os in aix4.[012]|aix4.[012].*)10774 # We only want to do this on AIX 4.2 and lower, the check10775 # below for broken collect2 doesn't work under 4.3+10776 collect2name=`$CC -print-prog-name=collect2`10777 if test -f "$collect2name" &&10778 strings "$collect2name" | $GREP resolve_lib_name >/dev/null10779 then10780 # We have reworked collect210781 :10782 else10783 # We have old collect210784 hardcode_direct=unsupported10785 # It fails to find uninstalled libraries when the uninstalled10786 # path is not listed in the libpath. Setting hardcode_minus_L10787 # to unsupported forces relinking10788 hardcode_minus_L=yes10789 hardcode_libdir_flag_spec='-L$libdir'10790 hardcode_libdir_separator=10791 fi10792 ;;10793 esac10794 shared_flag='-shared'10795 if test yes = "$aix_use_runtimelinking"; then10796 shared_flag="$shared_flag "'$wl-G'10797 fi10798 # Need to ensure runtime linking is disabled for the traditional10799 # shared library, or the linker may eventually find shared libraries10800 # /with/ Import File - we do not want to mix them.10801 shared_flag_aix='-shared'10802 shared_flag_svr4='-shared $wl-G'10803 else10804 # not using gcc10805 if test ia64 = "$host_cpu"; then10806 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release10807 # chokes on -Wl,-G. The following line is correct:10808 shared_flag='-G'10809 else10810 if test yes = "$aix_use_runtimelinking"; then10811 shared_flag='$wl-G'10812 else10813 shared_flag='$wl-bM:SRE'10814 fi10815 shared_flag_aix='$wl-bM:SRE'10816 shared_flag_svr4='$wl-G'10817 fi10818 fi10819 10820 export_dynamic_flag_spec='$wl-bexpall'10821 # It seems that -bexpall does not export symbols beginning with10822 # underscore (_), so it is better to generate a list of symbols to export.10823 always_export_symbols=yes10824 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then10825 # Warning - without using the other runtime loading flags (-brtl),10826 # -berok will link without error, but may produce a broken library.10827 allow_undefined_flag='-berok'10828 # Determine the default libpath from the value encoded in an10829 # empty executable.10830 if test set = "${lt_cv_aix_libpath+set}"; then10831 aix_libpath=$lt_cv_aix_libpath10832 else10833 if ${lt_cv_aix_libpath_+:} false; then :10834 $as_echo_n "(cached) " >&610835 else10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext10837 /* end confdefs.h. */10838 10839 int10840 main ()10841 {10842 10843 ;10844 return 0;10845 }10846 _ACEOF10847 if ac_fn_c_try_link "$LINENO"; then :10848 10849 lt_aix_libpath_sed='10850 /Import File Strings/,/^$/ {10851 /^0/ {10852 s/^0 *\([^ ]*\) *$/\1/10853 p10854 }10855 }'10856 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`10857 # Check for a 64-bit object if we didn't find anything.10858 if test -z "$lt_cv_aix_libpath_"; then10859 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`10860 fi10861 fi10862 rm -f core conftest.err conftest.$ac_objext \10863 conftest$ac_exeext conftest.$ac_ext10864 if test -z "$lt_cv_aix_libpath_"; then10865 lt_cv_aix_libpath_=/usr/lib:/lib10866 fi10867 10868 fi10869 10870 aix_libpath=$lt_cv_aix_libpath_10871 fi10872 10873 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"10874 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_flag10875 else10876 if test ia64 = "$host_cpu"; then10877 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'10878 allow_undefined_flag="-z nodefs"10879 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"10880 else10881 # Determine the default libpath from the value encoded in an10882 # empty executable.10883 if test set = "${lt_cv_aix_libpath+set}"; then10884 aix_libpath=$lt_cv_aix_libpath10885 else10886 if ${lt_cv_aix_libpath_+:} false; then :10887 $as_echo_n "(cached) " >&610888 else10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext10890 /* end confdefs.h. */10891 10892 int10893 main ()10894 {10895 10896 ;10897 return 0;10898 }10899 _ACEOF10900 if ac_fn_c_try_link "$LINENO"; then :10901 10902 lt_aix_libpath_sed='10903 /Import File Strings/,/^$/ {10904 /^0/ {10905 s/^0 *\([^ ]*\) *$/\1/10906 p10907 }10908 }'10909 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`10910 # Check for a 64-bit object if we didn't find anything.10911 if test -z "$lt_cv_aix_libpath_"; then10912 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`10913 fi10914 fi10915 rm -f core conftest.err conftest.$ac_objext \10916 conftest$ac_exeext conftest.$ac_ext10917 if test -z "$lt_cv_aix_libpath_"; then10918 lt_cv_aix_libpath_=/usr/lib:/lib10919 fi10920 10921 fi10922 10923 aix_libpath=$lt_cv_aix_libpath_10924 fi10925 10926 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"10927 # Warning - without using the other run time loading flags,10928 # -berok will link without error, but may produce a broken library.10929 no_undefined_flag=' $wl-bernotok'10930 allow_undefined_flag=' $wl-berok'10931 if test yes = "$with_gnu_ld"; then10932 # We only use this code for GNU lds that support --whole-archive.10933 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'10934 else10935 # Exported symbols can be pulled into shared objects from archives10936 whole_archive_flag_spec='$convenience'10937 fi10938 archive_cmds_need_lc=yes10939 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'10940 # -brtl affects multiple linker settings, -berok does not and is overridden later10941 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'10942 if test svr4 != "$with_aix_soname"; then10943 # This is similar to how AIX traditionally builds its shared libraries.10944 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'10945 fi10946 if test aix != "$with_aix_soname"; then10947 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'10948 else10949 # used by -dlpreopen to get the symbols10950 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'10951 fi10952 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'10953 fi10954 fi10955 ;;10956 10957 amigaos*)10958 case $host_cpu in10959 powerpc)10960 # see comment about AmigaOS4 .so support10961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10962 archive_expsym_cmds=''10963 ;;10964 m68k)10965 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)'10966 hardcode_libdir_flag_spec='-L$libdir'10967 hardcode_minus_L=yes10968 ;;10969 esac10970 ;;10971 10972 bsdi[45]*)10973 export_dynamic_flag_spec=-rdynamic10974 ;;10975 10976 cygwin* | mingw* | pw32* | cegcc*)10977 # When not using gcc, we currently assume that we are using10978 # Microsoft Visual C++.10979 # hardcode_libdir_flag_spec is actually meaningless, as there is10980 # no search path for DLLs.10981 case $cc_basename in10982 cl*)10983 # Native MSVC10984 hardcode_libdir_flag_spec=' '10985 allow_undefined_flag=unsupported10986 always_export_symbols=yes10987 file_list_spec='@'10988 # Tell ltmain to make .lib files, not .a files.10989 libext=lib10990 # Tell ltmain to make .dll files, not .so files.10991 shrext_cmds=.dll10992 # FIXME: Setting linknames here is a bad hack.10993 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='10994 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then10995 cp "$export_symbols" "$output_objdir/$soname.def";10996 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";10997 else10998 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;10999 fi~11000 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~11001 linknames='11002 # The linker will not automatically build a static lib if we build a DLL.11003 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'11004 enable_shared_with_static_runtimes=yes11005 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'11006 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'11007 # Don't use ranlib11008 old_postinstall_cmds='chmod 644 $oldlib'11009 postlink_cmds='lt_outputfile="@OUTPUT@"~11010 lt_tool_outputfile="@TOOL_OUTPUT@"~11011 case $lt_outputfile in11012 *.exe|*.EXE) ;;11013 *)11014 lt_outputfile=$lt_outputfile.exe11015 lt_tool_outputfile=$lt_tool_outputfile.exe11016 ;;11017 esac~11018 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then11019 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;11020 $RM "$lt_outputfile.manifest";11021 fi'11022 ;;11023 *)11024 # Assume MSVC wrapper11025 hardcode_libdir_flag_spec=' '11026 allow_undefined_flag=unsupported11027 # Tell ltmain to make .lib files, not .a files.11028 libext=lib11029 # Tell ltmain to make .dll files, not .so files.11030 shrext_cmds=.dll11031 # FIXME: Setting linknames here is a bad hack.11032 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='11033 # The linker will automatically build a .lib file if we build a DLL.11034 old_archive_from_new_cmds='true'11035 # FIXME: Should let the user specify the lib program.11036 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'11037 enable_shared_with_static_runtimes=yes11038 ;;11039 esac11040 ;;11041 11042 darwin* | rhapsody*)11043 11044 11045 archive_cmds_need_lc=no11046 hardcode_direct=no11047 hardcode_automatic=yes11048 hardcode_shlibpath_var=unsupported11049 if test yes = "$lt_cv_ld_force_load"; then11050 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\"`'11051 11052 else11053 whole_archive_flag_spec=''11054 fi11055 link_all_deplibs=yes11056 allow_undefined_flag=$_lt_dar_allow_undefined11057 case $cc_basename in11058 ifort*|nagfor*) _lt_dar_can_shared=yes ;;11059 *) _lt_dar_can_shared=$GCC ;;11060 esac11061 if test yes = "$_lt_dar_can_shared"; then11062 output_verbose_link_cmd=func_echo_all11063 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"11064 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"11065 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"11066 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"11067 11068 else11069 ld_shlibs=no11070 fi11071 11072 ;;11073 11074 dgux*)11075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11076 hardcode_libdir_flag_spec='-L$libdir'11077 hardcode_shlibpath_var=no11078 ;;11079 11080 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor11081 # support. Future versions do this automatically, but an explicit c++rt0.o11082 # does not break anything, and helps significantly (at the cost of a little11083 # extra space).11084 freebsd2.2*)11085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'11086 hardcode_libdir_flag_spec='-R$libdir'11087 hardcode_direct=yes11088 hardcode_shlibpath_var=no11089 ;;11090 11091 # Unfortunately, older versions of FreeBSD 2 do not have this feature.11092 freebsd2.*)11093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'11094 hardcode_direct=yes11095 hardcode_minus_L=yes11096 hardcode_shlibpath_var=no11097 ;;11098 11099 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.11100 freebsd* | dragonfly*)11101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'11102 hardcode_libdir_flag_spec='-R$libdir'11103 hardcode_direct=yes11104 hardcode_shlibpath_var=no11105 ;;11106 11107 hpux9*)11108 if test yes = "$GCC"; then11109 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'11110 else11111 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'11112 fi11113 hardcode_libdir_flag_spec='$wl+b $wl$libdir'11114 hardcode_libdir_separator=:11115 hardcode_direct=yes11116 11117 # hardcode_minus_L: Not really in the search PATH,11118 # but as the default location of the library.11119 hardcode_minus_L=yes11120 export_dynamic_flag_spec='$wl-E'11121 ;;11122 11123 hpux10*)11124 if test yes,no = "$GCC,$with_gnu_ld"; then11125 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'11126 else11127 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'11128 fi11129 if test no = "$with_gnu_ld"; then11130 hardcode_libdir_flag_spec='$wl+b $wl$libdir'11131 hardcode_libdir_separator=:11132 hardcode_direct=yes11133 hardcode_direct_absolute=yes11134 export_dynamic_flag_spec='$wl-E'11135 # hardcode_minus_L: Not really in the search PATH,11136 # but as the default location of the library.11137 hardcode_minus_L=yes11138 fi11139 ;;11140 11141 hpux11*)11142 if test yes,no = "$GCC,$with_gnu_ld"; then11143 case $host_cpu in11144 hppa*64*)11145 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'11146 ;;11147 ia64*)11148 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'11149 ;;11150 *)11151 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'11152 ;;11153 esac11154 else11155 case $host_cpu in11156 hppa*64*)11157 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'11158 ;;11159 ia64*)11160 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'11161 ;;11162 *)11163 11164 # Older versions of the 11.00 compiler do not understand -b yet11165 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&511167 $as_echo_n "checking if $CC understands -b... " >&6; }11168 if ${lt_cv_prog_compiler__b+:} false; then :11169 $as_echo_n "(cached) " >&611170 else11171 lt_cv_prog_compiler__b=no11172 save_LDFLAGS=$LDFLAGS11173 LDFLAGS="$LDFLAGS -b"11174 echo "$lt_simple_link_test_code" > conftest.$ac_ext11175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then11176 # The linker can only warn and ignore the option if not recognized11177 # So say no if there are warnings11178 if test -s conftest.err; then11179 # Append any errors to the config.log.11180 cat conftest.err 1>&511181 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp11182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er211183 if diff conftest.exp conftest.er2 >/dev/null; then11184 lt_cv_prog_compiler__b=yes11185 fi11186 else11187 lt_cv_prog_compiler__b=yes11188 fi11189 fi11190 $RM -r conftest*11191 LDFLAGS=$save_LDFLAGS11192 11193 fi11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&511195 $as_echo "$lt_cv_prog_compiler__b" >&6; }11196 11197 if test yes = "$lt_cv_prog_compiler__b"; then11198 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'11199 else11200 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'11201 fi11202 11203 ;;11204 esac11205 fi11206 if test no = "$with_gnu_ld"; then11207 hardcode_libdir_flag_spec='$wl+b $wl$libdir'11208 hardcode_libdir_separator=:11209 11210 case $host_cpu in11211 hppa*64*|ia64*)11212 hardcode_direct=no11213 hardcode_shlibpath_var=no11214 ;;11215 *)11216 hardcode_direct=yes11217 hardcode_direct_absolute=yes11218 export_dynamic_flag_spec='$wl-E'11219 11220 # hardcode_minus_L: Not really in the search PATH,11221 # but as the default location of the library.11222 hardcode_minus_L=yes11223 ;;11224 esac11225 fi11226 ;;11227 11228 irix5* | irix6* | nonstopux*)11229 if test yes = "$GCC"; then11230 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'11231 # Try to use the -exported_symbol ld option, if it does not11232 # work, assume that -exports_file does not work either and11233 # implicitly export all symbols.11234 # This should be the same for all languages, so no per-tag cache variable.11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&511236 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }11237 if ${lt_cv_irix_exported_symbol+:} false; then :11238 $as_echo_n "(cached) " >&611239 else11240 save_LDFLAGS=$LDFLAGS11241 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"11242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11243 /* end confdefs.h. */11244 int foo (void) { return 0; }11245 _ACEOF11246 if ac_fn_c_try_link "$LINENO"; then :11247 lt_cv_irix_exported_symbol=yes11248 else11249 lt_cv_irix_exported_symbol=no11250 fi11251 rm -f core conftest.err conftest.$ac_objext \11252 conftest$ac_exeext conftest.$ac_ext11253 LDFLAGS=$save_LDFLAGS11254 fi11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&511256 $as_echo "$lt_cv_irix_exported_symbol" >&6; }11257 if test yes = "$lt_cv_irix_exported_symbol"; then11258 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'11259 fi11260 link_all_deplibs=no11261 else11262 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'11263 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'11264 fi11265 archive_cmds_need_lc='no'11266 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'11267 hardcode_libdir_separator=:11268 inherit_rpath=yes11269 link_all_deplibs=yes11270 ;;11271 11272 linux*)11273 case $cc_basename in11274 tcc*)11275 # Fabrice Bellard et al's Tiny C Compiler11276 ld_shlibs=yes11277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'11278 ;;11279 esac11280 ;;11281 11282 netbsd* | netbsdelf*-gnu)11283 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then11284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out11285 else11286 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF11287 fi11288 hardcode_libdir_flag_spec='-R$libdir'11289 hardcode_direct=yes11290 hardcode_shlibpath_var=no11291 ;;11292 11293 newsos6)11294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11295 hardcode_direct=yes11296 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'11297 hardcode_libdir_separator=:11298 hardcode_shlibpath_var=no11299 ;;11300 11301 *nto* | *qnx*)11302 ;;11303 11304 openbsd* | bitrig*)11305 if test -f /usr/libexec/ld.so; then11306 hardcode_direct=yes11307 hardcode_shlibpath_var=no11308 hardcode_direct_absolute=yes11309 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then11310 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'11311 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'11312 hardcode_libdir_flag_spec='$wl-rpath,$libdir'11313 export_dynamic_flag_spec='$wl-E'11314 else11315 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'11316 hardcode_libdir_flag_spec='$wl-rpath,$libdir'11317 fi11318 else11319 ld_shlibs=no11320 fi11321 ;;11322 11323 os2*)11324 hardcode_libdir_flag_spec='-L$libdir'11325 hardcode_minus_L=yes11326 allow_undefined_flag=unsupported11327 shrext_cmds=.dll11328 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~11329 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~11330 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~11331 $ECHO EXPORTS >> $output_objdir/$libname.def~11332 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~11333 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~11334 emximp -o $lib $output_objdir/$libname.def'11335 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~11336 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~11337 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~11338 $ECHO EXPORTS >> $output_objdir/$libname.def~11339 prefix_cmds="$SED"~11340 if test EXPORTS = "`$SED 1q $export_symbols`"; then11341 prefix_cmds="$prefix_cmds -e 1d";11342 fi~11343 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~11344 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~11345 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~11346 emximp -o $lib $output_objdir/$libname.def'11347 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'11348 enable_shared_with_static_runtimes=yes11349 ;;11350 11351 osf3*)11352 if test yes = "$GCC"; then11353 allow_undefined_flag=' $wl-expect_unresolved $wl\*'11354 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'11355 else11356 allow_undefined_flag=' -expect_unresolved \*'11357 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'11358 fi11359 archive_cmds_need_lc='no'11360 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'11361 hardcode_libdir_separator=:11362 ;;11363 11364 osf4* | osf5*) # as osf3* with the addition of -msym flag11365 if test yes = "$GCC"; then11366 allow_undefined_flag=' $wl-expect_unresolved $wl\*'11367 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'11368 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'11369 else11370 allow_undefined_flag=' -expect_unresolved \*'11371 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'11372 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~11373 $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'11374 11375 # Both c and cxx compiler support -rpath directly11376 hardcode_libdir_flag_spec='-rpath $libdir'11377 fi11378 archive_cmds_need_lc='no'11379 hardcode_libdir_separator=:11380 ;;11381 11382 solaris*)11383 no_undefined_flag=' -z defs'11384 if test yes = "$GCC"; then11385 wlarc='$wl'11386 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'11387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~11388 $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'11389 else11390 case `$CC -V 2>&1` in11391 *"Compilers 5.0"*)11392 wlarc=''11393 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'11394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~11395 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'11396 ;;11397 *)11398 wlarc='$wl'11399 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'11400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~11401 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'11402 ;;11403 esac11404 fi11405 hardcode_libdir_flag_spec='-R$libdir'11406 hardcode_shlibpath_var=no11407 case $host_os in11408 solaris2.[0-5] | solaris2.[0-5].*) ;;11409 *)11410 # The compiler driver will combine and reorder linker options,11411 # but understands '-z linker_flag'. GCC discards it without '$wl',11412 # but is careful enough not to reorder.11413 # Supported since Solaris 2.6 (maybe 2.5.1?)11414 if test yes = "$GCC"; then11415 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'11416 else11417 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'11418 fi11419 ;;11420 esac11421 link_all_deplibs=yes11422 ;;11423 11424 sunos4*)11425 if test sequent = "$host_vendor"; then11426 # Use $CC to link under sequent, because it throws in some extra .o11427 # files that make .init and .fini sections work.11428 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'11429 else11430 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'11431 fi11432 hardcode_libdir_flag_spec='-L$libdir'11433 hardcode_direct=yes11434 hardcode_minus_L=yes11435 hardcode_shlibpath_var=no11436 ;;11437 11438 sysv4)11439 case $host_vendor in11440 sni)11441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11442 hardcode_direct=yes # is this really true???11443 ;;11444 siemens)11445 ## LD is ld it makes a PLAMLIB11446 ## CC just makes a GrossModule.11447 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'11448 reload_cmds='$CC -r -o $output$reload_objs'11449 hardcode_direct=no11450 ;;11451 motorola)11452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11453 hardcode_direct=no #Motorola manual says yes, but my tests say they lie11454 ;;11455 esac11456 runpath_var='LD_RUN_PATH'11457 hardcode_shlibpath_var=no11458 ;;11459 11460 sysv4.3*)11461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11462 hardcode_shlibpath_var=no11463 export_dynamic_flag_spec='-Bexport'11464 ;;11465 11466 sysv4*MP*)11467 if test -d /usr/nec; then11468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11469 hardcode_shlibpath_var=no11470 runpath_var=LD_RUN_PATH11471 hardcode_runpath_var=yes11472 ld_shlibs=yes11473 fi11474 ;;11475 11476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)11477 no_undefined_flag='$wl-z,text'11478 archive_cmds_need_lc=no11479 hardcode_shlibpath_var=no11480 runpath_var='LD_RUN_PATH'11481 11482 if test yes = "$GCC"; then11483 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11484 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11485 else11486 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11487 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11488 fi11489 ;;11490 11491 sysv5* | sco3.2v5* | sco5v6*)11492 # Note: We CANNOT use -z defs as we might desire, because we do not11493 # link with -lc, and that would cause any symbols used from libc to11494 # always be unresolved, which means just about no library would11495 # ever link correctly. If we're not using GNU ld we use -z text11496 # though, which does catch some bad symbols but isn't as heavy-handed11497 # as -z defs.11498 no_undefined_flag='$wl-z,text'11499 allow_undefined_flag='$wl-z,nodefs'11500 archive_cmds_need_lc=no11501 hardcode_shlibpath_var=no11502 hardcode_libdir_flag_spec='$wl-R,$libdir'11503 hardcode_libdir_separator=':'11504 link_all_deplibs=yes11505 export_dynamic_flag_spec='$wl-Bexport'11506 runpath_var='LD_RUN_PATH'11507 11508 if test yes = "$GCC"; then11509 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11510 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11511 else11512 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11513 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11514 fi11515 ;;11516 11517 uts4*)11518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11519 hardcode_libdir_flag_spec='-L$libdir'11520 hardcode_shlibpath_var=no11521 ;;11522 11523 *)11524 ld_shlibs=no11525 ;;11526 esac11527 11528 if test sni = "$host_vendor"; then11529 case $host in11530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)11531 export_dynamic_flag_spec='$wl-Blargedynsym'11532 ;;11533 esac11534 fi11535 fi11536 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&511538 $as_echo "$ld_shlibs" >&6; }11539 test no = "$ld_shlibs" && can_build_shared=no11540 11541 with_gnu_ld=$with_gnu_ld11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 #11558 # Do we need to explicitly link libc?11559 #11560 case "x$archive_cmds_need_lc" in11561 x|xyes)11562 # Assume -lc should be added11563 archive_cmds_need_lc=yes11564 11565 if test yes,yes = "$GCC,$enable_shared"; then11566 case $archive_cmds in11567 *'~'*)11568 # FIXME: we may have to deal with multi-command sequences.11569 ;;11570 '$CC '*)11571 # Test whether the compiler implicitly links with -lc since on some11572 # systems, -lgcc has to come before -lc. If gcc already passes -lc11573 # to ld, don't add -lc before -lgcc.11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&511575 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }11576 if ${lt_cv_archive_cmds_need_lc+:} false; then :11577 $as_echo_n "(cached) " >&611578 else11579 $RM conftest*11580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext11581 11582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&511583 (eval $ac_compile) 2>&511584 ac_status=$?11585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511586 test $ac_status = 0; } 2>conftest.err; then11587 soname=conftest11588 lib=conftest11589 libobjs=conftest.$ac_objext11590 deplibs=11591 wl=$lt_prog_compiler_wl11592 pic_flag=$lt_prog_compiler_pic11593 compiler_flags=-v11594 linker_flags=-v11595 verstring=11596 output_objdir=.11597 libname=conftest11598 lt_save_allow_undefined_flag=$allow_undefined_flag11599 allow_undefined_flag=11600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&511601 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&511602 ac_status=$?11603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511604 test $ac_status = 0; }11605 then11606 lt_cv_archive_cmds_need_lc=no11607 else11608 lt_cv_archive_cmds_need_lc=yes11609 fi11610 allow_undefined_flag=$lt_save_allow_undefined_flag11611 else11612 cat conftest.err 1>&511613 fi11614 $RM conftest*11615 11616 fi11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&511618 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }11619 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc11620 ;;11621 esac11622 fi11623 ;;11624 esac11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&511778 $as_echo_n "checking dynamic linker characteristics... " >&6; }11779 11780 if test yes = "$GCC"; then11781 case $host_os in11782 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;11783 *) lt_awk_arg='/^libraries:/' ;;11784 esac11785 case $host_os in11786 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;11787 *) lt_sed_strip_eq='s|=/|/|g' ;;11788 esac11789 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`11790 case $lt_search_path_spec in11791 *\;*)11792 # if the path contains ";" then we assume it to be the separator11793 # otherwise default to the standard path separator (i.e. ":") - it is11794 # assumed that no part of a normal pathname contains ";" but that should11795 # okay in the real world where ";" in dirpaths is itself problematic.11796 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`11797 ;;11798 *)11799 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`11800 ;;11801 esac11802 # Ok, now we have the path, separated by spaces, we can step through it11803 # and add multilib dir if necessary...11804 lt_tmp_lt_search_path_spec=11805 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`11806 # ...but if some path component already ends with the multilib dir we assume11807 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).11808 case "$lt_multi_os_dir; $lt_search_path_spec " in11809 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)11810 lt_multi_os_dir=11811 ;;11812 esac11813 for lt_sys_path in $lt_search_path_spec; do11814 if test -d "$lt_sys_path$lt_multi_os_dir"; then11815 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"11816 elif test -n "$lt_multi_os_dir"; then11817 test -d "$lt_sys_path" && \11818 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"11819 fi11820 done11821 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '11822 BEGIN {RS = " "; FS = "/|\n";} {11823 lt_foo = "";11824 lt_count = 0;11825 for (lt_i = NF; lt_i > 0; lt_i--) {11826 if ($lt_i != "" && $lt_i != ".") {11827 if ($lt_i == "..") {11828 lt_count++;11829 } else {11830 if (lt_count == 0) {11831 lt_foo = "/" $lt_i lt_foo;11832 } else {11833 lt_count--;11834 }11835 }11836 }11837 }11838 if (lt_foo != "") { lt_freq[lt_foo]++; }11839 if (lt_freq[lt_foo] == 1) { print lt_foo; }11840 }'`11841 # AWK program above erroneously prepends '/' to C:/dos/paths11842 # for these hosts.11843 case $host_os in11844 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\11845 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;11846 esac11847 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`11848 else11849 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"11850 fi11851 library_names_spec=11852 libname_spec='lib$name'11853 soname_spec=11854 shrext_cmds=.so11855 postinstall_cmds=11856 postuninstall_cmds=11857 finish_cmds=11858 finish_eval=11859 shlibpath_var=11860 shlibpath_overrides_runpath=unknown11861 version_type=none11862 dynamic_linker="$host_os ld.so"11863 sys_lib_dlsearch_path_spec="/lib /usr/lib"11864 need_lib_prefix=unknown11865 hardcode_into_libs=no11866 11867 # when you set need_version to no, make sure it does not cause -set_version11868 # flags to be left without arguments11869 need_version=unknown11870 11871 11872 11873 case $host_os in11874 aix3*)11875 version_type=linux # correct to gnu/linux during the next big refactor11876 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'11877 shlibpath_var=LIBPATH11878 11879 # AIX 3 has no versioning support, so we append a major version to the name.11880 soname_spec='$libname$release$shared_ext$major'11881 ;;11882 11883 aix[4-9]*)11884 version_type=linux # correct to gnu/linux during the next big refactor11885 need_lib_prefix=no11886 need_version=no11887 hardcode_into_libs=yes11888 if test ia64 = "$host_cpu"; then11889 # AIX 5 supports IA6411890 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'11891 shlibpath_var=LD_LIBRARY_PATH11892 else11893 # With GCC up to 2.95.x, collect2 would create an import file11894 # for dependence libraries. The import file would start with11895 # the line '#! .'. This would cause the generated library to11896 # depend on '.', always an invalid library. This was fixed in11897 # development snapshots of GCC prior to 3.0.11898 case $host_os in11899 aix4 | aix4.[01] | aix4.[01].*)11900 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'11901 echo ' yes '11902 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then11903 :11904 else11905 can_build_shared=no11906 fi11907 ;;11908 esac11909 # Using Import Files as archive members, it is possible to support11910 # filename-based versioning of shared library archives on AIX. While11911 # this would work for both with and without runtime linking, it will11912 # prevent static linking of such archives. So we do filename-based11913 # shared library versioning with .so extension only, which is used11914 # when both runtime linking and shared linking is enabled.11915 # Unfortunately, runtime linking may impact performance, so we do11916 # not want this to be the default eventually. Also, we use the11917 # versioned .so libs for executables only if there is the -brtl11918 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.11919 # To allow for filename-based versioning support, we need to create11920 # libNAME.so.V as an archive file, containing:11921 # *) an Import File, referring to the versioned filename of the11922 # archive as well as the shared archive member, telling the11923 # bitwidth (32 or 64) of that shared object, and providing the11924 # list of exported symbols of that shared object, eventually11925 # decorated with the 'weak' keyword11926 # *) the shared object with the F_LOADONLY flag set, to really avoid11927 # it being seen by the linker.11928 # At run time we better use the real file rather than another symlink,11929 # but for link time we create the symlink libNAME.so -> libNAME.so.V11930 11931 case $with_aix_soname,$aix_use_runtimelinking in11932 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct11933 # soname into executable. Probably we can add versioning support to11934 # collect2, so additional links can be useful in future.11935 aix,yes) # traditional libtool11936 dynamic_linker='AIX unversionable lib.so'11937 # If using run time linking (on AIX 4.2 or later) use lib<name>.so11938 # instead of lib<name>.a to let people know that these are not11939 # typical AIX shared libraries.11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11941 ;;11942 aix,no) # traditional AIX only11943 dynamic_linker='AIX lib.a(lib.so.V)'11944 # We preserve .a as extension for shared libraries through AIX4.211945 # and later when we are not doing run time linking.11946 library_names_spec='$libname$release.a $libname.a'11947 soname_spec='$libname$release$shared_ext$major'11948 ;;11949 svr4,*) # full svr4 only11950 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"11951 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'11952 # We do not specify a path in Import Files, so LIBPATH fires.11953 shlibpath_overrides_runpath=yes11954 ;;11955 *,yes) # both, prefer svr411956 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"11957 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'11958 # unpreferred sharedlib libNAME.a needs extra handling11959 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"'11960 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"'11961 # We do not specify a path in Import Files, so LIBPATH fires.11962 shlibpath_overrides_runpath=yes11963 ;;11964 *,no) # both, prefer aix11965 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"11966 library_names_spec='$libname$release.a $libname.a'11967 soname_spec='$libname$release$shared_ext$major'11968 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling11969 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)'11970 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"'11971 ;;11972 esac11973 shlibpath_var=LIBPATH11974 fi11975 ;;11976 11977 amigaos*)11978 case $host_cpu in11979 powerpc)11980 # Since July 2007 AmigaOS4 officially supports .so libraries.11981 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11983 ;;11984 m68k)11985 library_names_spec='$libname.ixlibrary $libname.a'11986 # Create ${libname}_ixlibrary.a entries in /sys/libs.11987 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'11988 ;;11989 esac11990 ;;11991 11992 beos*)11993 library_names_spec='$libname$shared_ext'11994 dynamic_linker="$host_os ld.so"11995 shlibpath_var=LIBRARY_PATH11996 ;;11997 11998 bsdi[45]*)11999 version_type=linux # correct to gnu/linux during the next big refactor12000 need_version=no12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12002 soname_spec='$libname$release$shared_ext$major'12003 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'12004 shlibpath_var=LD_LIBRARY_PATH12005 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"12006 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"12007 # the default ld.so.conf also contains /usr/contrib/lib and12008 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow12009 # libtool to hard-code these into programs12010 ;;12011 12012 cygwin* | mingw* | pw32* | cegcc*)12013 version_type=windows12014 shrext_cmds=.dll12015 need_version=no12016 need_lib_prefix=no12017 12018 case $GCC,$cc_basename in12019 yes,*)12020 # gcc12021 library_names_spec='$libname.dll.a'12022 # DLL is installed to $(libdir)/../bin by postinstall_cmds12023 postinstall_cmds='base_file=`basename \$file`~12024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~12025 dldir=$destdir/`dirname \$dlpath`~12026 test -d \$dldir || mkdir -p \$dldir~12027 $install_prog $dir/$dlname \$dldir/$dlname~12028 chmod a+x \$dldir/$dlname~12029 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then12030 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;12031 fi'12032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~12033 dlpath=$dir/\$dldll~12034 $RM \$dlpath'12035 shlibpath_overrides_runpath=yes12036 12037 case $host_os in12038 cygwin*)12039 # Cygwin DLLs use 'cyg' prefix rather than 'lib'12040 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'12041 12042 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"12043 ;;12044 mingw* | cegcc*)12045 # MinGW DLLs use traditional 'lib' prefix12046 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'12047 ;;12048 pw32*)12049 # pw32 DLLs use 'pw' prefix rather than 'lib'12050 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'12051 ;;12052 esac12053 dynamic_linker='Win32 ld.exe'12054 ;;12055 12056 *,cl*)12057 # Native MSVC12058 libname_spec='$name'12059 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'12060 library_names_spec='$libname.dll.lib'12061 12062 case $build_os in12063 mingw*)12064 sys_lib_search_path_spec=12065 lt_save_ifs=$IFS12066 IFS=';'12067 for lt_path in $LIB12068 do12069 IFS=$lt_save_ifs12070 # Let DOS variable expansion print the short 8.3 style file name.12071 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`12072 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"12073 done12074 IFS=$lt_save_ifs12075 # Convert to MSYS style.12076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`12077 ;;12078 cygwin*)12079 # Convert to unix form, then to dos form, then back to unix form12080 # but this time dos style (no spaces!) so that the unix form looks12081 # like /cygdrive/c/PROGRA~1:/cygdr...12082 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`12083 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`12084 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`12085 ;;12086 *)12087 sys_lib_search_path_spec=$LIB12088 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then12089 # It is most probably a Windows format PATH.12090 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`12091 else12092 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`12093 fi12094 # FIXME: find the short name or the path components, as spaces are12095 # common. (e.g. "Program Files" -> "PROGRA~1")12096 ;;12097 esac12098 12099 # DLL is installed to $(libdir)/../bin by postinstall_cmds12100 postinstall_cmds='base_file=`basename \$file`~12101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~12102 dldir=$destdir/`dirname \$dlpath`~12103 test -d \$dldir || mkdir -p \$dldir~12104 $install_prog $dir/$dlname \$dldir/$dlname'12105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~12106 dlpath=$dir/\$dldll~12107 $RM \$dlpath'12108 shlibpath_overrides_runpath=yes12109 dynamic_linker='Win32 link.exe'12110 ;;12111 12112 *)12113 # Assume MSVC wrapper12114 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'12115 dynamic_linker='Win32 ld.exe'12116 ;;12117 esac12118 # FIXME: first we should search . and the directory the executable is in12119 shlibpath_var=PATH12120 ;;12121 12122 darwin* | rhapsody*)12123 dynamic_linker="$host_os dyld"12124 version_type=darwin12125 need_lib_prefix=no12126 need_version=no12127 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'12128 soname_spec='$libname$release$major$shared_ext'12129 shlibpath_overrides_runpath=yes12130 shlibpath_var=DYLD_LIBRARY_PATH12131 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'12132 12133 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"12134 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'12135 ;;12136 12137 dgux*)12138 version_type=linux # correct to gnu/linux during the next big refactor12139 need_lib_prefix=no12140 need_version=no12141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12142 soname_spec='$libname$release$shared_ext$major'12143 shlibpath_var=LD_LIBRARY_PATH12144 ;;12145 12146 freebsd* | dragonfly*)12147 # DragonFly does not have aout. When/if they implement a new12148 # versioning mechanism, adjust this.12149 if test -x /usr/bin/objformat; then12150 objformat=`/usr/bin/objformat`12151 else12152 case $host_os in12153 freebsd[23].*) objformat=aout ;;12154 *) objformat=elf ;;12155 esac12156 fi12157 version_type=freebsd-$objformat12158 case $version_type in12159 freebsd-elf*)12160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12161 soname_spec='$libname$release$shared_ext$major'12162 need_version=no12163 need_lib_prefix=no12164 ;;12165 freebsd-*)12166 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'12167 need_version=yes12168 ;;12169 esac12170 shlibpath_var=LD_LIBRARY_PATH12171 case $host_os in12172 freebsd2.*)12173 shlibpath_overrides_runpath=yes12174 ;;12175 freebsd3.[01]* | freebsdelf3.[01]*)12176 shlibpath_overrides_runpath=yes12177 hardcode_into_libs=yes12178 ;;12179 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \12180 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)12181 shlibpath_overrides_runpath=no12182 hardcode_into_libs=yes12183 ;;12184 *) # from 4.6 on, and DragonFly12185 shlibpath_overrides_runpath=yes12186 hardcode_into_libs=yes12187 ;;12188 esac12189 ;;12190 12191 haiku*)12192 version_type=linux # correct to gnu/linux during the next big refactor12193 need_lib_prefix=no12194 need_version=no12195 dynamic_linker="$host_os runtime_loader"12196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12197 soname_spec='$libname$release$shared_ext$major'12198 shlibpath_var=LIBRARY_PATH12199 shlibpath_overrides_runpath=no12200 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'12201 hardcode_into_libs=yes12202 ;;12203 12204 hpux9* | hpux10* | hpux11*)12205 # Give a soname corresponding to the major version so that dld.sl refuses to12206 # link against other versions.12207 version_type=sunos12208 need_lib_prefix=no12209 need_version=no12210 case $host_cpu in12211 ia64*)12212 shrext_cmds='.so'12213 hardcode_into_libs=yes12214 dynamic_linker="$host_os dld.so"12215 shlibpath_var=LD_LIBRARY_PATH12216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.12217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12218 soname_spec='$libname$release$shared_ext$major'12219 if test 32 = "$HPUX_IA64_MODE"; then12220 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"12221 sys_lib_dlsearch_path_spec=/usr/lib/hpux3212222 else12223 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"12224 sys_lib_dlsearch_path_spec=/usr/lib/hpux6412225 fi12226 ;;12227 hppa*64*)12228 shrext_cmds='.sl'12229 hardcode_into_libs=yes12230 dynamic_linker="$host_os dld.sl"12231 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH12232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.12233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12234 soname_spec='$libname$release$shared_ext$major'12235 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"12236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec12237 ;;12238 *)12239 shrext_cmds='.sl'12240 dynamic_linker="$host_os dld.sl"12241 shlibpath_var=SHLIB_PATH12242 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH12243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12244 soname_spec='$libname$release$shared_ext$major'12245 ;;12246 esac12247 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...12248 postinstall_cmds='chmod 555 $lib'12249 # or fails outright, so override atomically:12250 install_override_mode=55512251 ;;12252 12253 interix[3-9]*)12254 version_type=linux # correct to gnu/linux during the next big refactor12255 need_lib_prefix=no12256 need_version=no12257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12258 soname_spec='$libname$release$shared_ext$major'12259 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'12260 shlibpath_var=LD_LIBRARY_PATH12261 shlibpath_overrides_runpath=no12262 hardcode_into_libs=yes12263 ;;12264 12265 irix5* | irix6* | nonstopux*)12266 case $host_os in12267 nonstopux*) version_type=nonstopux ;;12268 *)12269 if test yes = "$lt_cv_prog_gnu_ld"; then12270 version_type=linux # correct to gnu/linux during the next big refactor12271 else12272 version_type=irix12273 fi ;;12274 esac12275 need_lib_prefix=no12276 need_version=no12277 soname_spec='$libname$release$shared_ext$major'12278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'12279 case $host_os in12280 irix5* | nonstopux*)12281 libsuff= shlibsuff=12282 ;;12283 *)12284 case $LD in # libtool.m4 will add one of these switches to LD12285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")12286 libsuff= shlibsuff= libmagic=32-bit;;12287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")12288 libsuff=32 shlibsuff=N32 libmagic=N32;;12289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")12290 libsuff=64 shlibsuff=64 libmagic=64-bit;;12291 *) libsuff= shlibsuff= libmagic=never-match;;12292 esac12293 ;;12294 esac12295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH12296 shlibpath_overrides_runpath=no12297 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"12298 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"12299 hardcode_into_libs=yes12300 ;;12301 12302 # No shared lib support for Linux oldld, aout, or coff.12303 linux*oldld* | linux*aout* | linux*coff*)12304 dynamic_linker=no12305 ;;12306 12307 linux*android*)12308 version_type=none # Android doesn't support versioned libraries.12309 need_lib_prefix=no12310 need_version=no12311 library_names_spec='$libname$release$shared_ext'12312 soname_spec='$libname$release$shared_ext'12313 finish_cmds=12314 shlibpath_var=LD_LIBRARY_PATH12315 shlibpath_overrides_runpath=yes12316 12317 # This implies no fast_install, which is unacceptable.12318 # Some rework will be needed to allow for fast_install12319 # before this can be enabled.12320 hardcode_into_libs=yes12321 12322 dynamic_linker='Android linker'12323 # Don't embed -rpath directories since the linker doesn't support them.12324 hardcode_libdir_flag_spec='-L$libdir'12325 ;;12326 12327 # This must be glibc/ELF.12328 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)12329 version_type=linux # correct to gnu/linux during the next big refactor12330 need_lib_prefix=no12331 need_version=no12332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12333 soname_spec='$libname$release$shared_ext$major'12334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'12335 shlibpath_var=LD_LIBRARY_PATH12336 shlibpath_overrides_runpath=no12337 12338 # Some binutils ld are patched to set DT_RUNPATH12339 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :12340 $as_echo_n "(cached) " >&612341 else12342 lt_cv_shlibpath_overrides_runpath=no12343 save_LDFLAGS=$LDFLAGS12344 save_libdir=$libdir12345 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \12346 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12348 /* end confdefs.h. */12349 12350 int12351 main ()12352 {12353 12354 ;12355 return 0;12356 }12357 _ACEOF12358 if ac_fn_c_try_link "$LINENO"; then :12359 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :12360 lt_cv_shlibpath_overrides_runpath=yes12361 fi12362 fi12363 rm -f core conftest.err conftest.$ac_objext \12364 conftest$ac_exeext conftest.$ac_ext12365 LDFLAGS=$save_LDFLAGS12366 libdir=$save_libdir12367 12368 fi12369 12370 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath12371 12372 # This implies no fast_install, which is unacceptable.12373 # Some rework will be needed to allow for fast_install12374 # before this can be enabled.12375 hardcode_into_libs=yes12376 12377 # Ideally, we could use ldconfig to report *all* directores which are12378 # searched for libraries, however this is still not possible. Aside from not12379 # being certain /sbin/ldconfig is available, command12380 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,12381 # even though it is searched at run-time. Try to do the best guess by12382 # appending ld.so.conf contents (and includes) to the search path.12383 if test -f /etc/ld.so.conf; then12384 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' ' '`12385 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"12386 fi12387 12388 # We used to test for /lib/ld.so.1 and disable shared libraries on12389 # powerpc, because MkLinux only supported shared libraries with the12390 # GNU dynamic linker. Since this was broken with cross compilers,12391 # most powerpc-linux boxes support dynamic linking these days and12392 # people can always --disable-shared, the test was removed, and we12393 # assume the GNU/Linux dynamic linker is in use.12394 dynamic_linker='GNU/Linux ld.so'12395 ;;12396 12397 netbsdelf*-gnu)12398 version_type=linux12399 need_lib_prefix=no12400 need_version=no12401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'12402 soname_spec='${libname}${release}${shared_ext}$major'12403 shlibpath_var=LD_LIBRARY_PATH12404 shlibpath_overrides_runpath=no12405 hardcode_into_libs=yes12406 dynamic_linker='NetBSD ld.elf_so'12407 ;;12408 12409 netbsd*)12410 version_type=sunos12411 need_lib_prefix=no12412 need_version=no12413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then12414 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'12415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'12416 dynamic_linker='NetBSD (a.out) ld.so'12417 else12418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12419 soname_spec='$libname$release$shared_ext$major'12420 dynamic_linker='NetBSD ld.elf_so'12421 fi12422 shlibpath_var=LD_LIBRARY_PATH12423 shlibpath_overrides_runpath=yes12424 hardcode_into_libs=yes12425 ;;12426 12427 newsos6)12428 version_type=linux # correct to gnu/linux during the next big refactor12429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12430 shlibpath_var=LD_LIBRARY_PATH12431 shlibpath_overrides_runpath=yes12432 ;;12433 12434 *nto* | *qnx*)12435 version_type=qnx12436 need_lib_prefix=no12437 need_version=no12438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12439 soname_spec='$libname$release$shared_ext$major'12440 shlibpath_var=LD_LIBRARY_PATH12441 shlibpath_overrides_runpath=no12442 hardcode_into_libs=yes12443 dynamic_linker='ldqnx.so'12444 ;;12445 12446 openbsd* | bitrig*)12447 version_type=sunos12448 sys_lib_dlsearch_path_spec=/usr/lib12449 need_lib_prefix=no12450 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then12451 need_version=no12452 else12453 need_version=yes12454 fi12455 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'12456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'12457 shlibpath_var=LD_LIBRARY_PATH12458 shlibpath_overrides_runpath=yes12459 ;;12460 12461 os2*)12462 libname_spec='$name'12463 version_type=windows12464 shrext_cmds=.dll12465 need_version=no12466 need_lib_prefix=no12467 # OS/2 can only load a DLL with a base name of 8 characters or less.12468 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";12469 v=$($ECHO $release$versuffix | tr -d .-);12470 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);12471 $ECHO $n$v`$shared_ext'12472 library_names_spec='${libname}_dll.$libext'12473 dynamic_linker='OS/2 ld.exe'12474 shlibpath_var=BEGINLIBPATH12475 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"12476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec12477 postinstall_cmds='base_file=`basename \$file`~12478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~12479 dldir=$destdir/`dirname \$dlpath`~12480 test -d \$dldir || mkdir -p \$dldir~12481 $install_prog $dir/$dlname \$dldir/$dlname~12482 chmod a+x \$dldir/$dlname~12483 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then12484 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;12485 fi'12486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~12487 dlpath=$dir/\$dldll~12488 $RM \$dlpath'12489 ;;12490 12491 osf3* | osf4* | osf5*)12492 version_type=osf12493 need_lib_prefix=no12494 need_version=no12495 soname_spec='$libname$release$shared_ext$major'12496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12497 shlibpath_var=LD_LIBRARY_PATH12498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"12499 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec12500 ;;12501 12502 rdos*)12503 dynamic_linker=no12504 ;;12505 12506 solaris*)12507 version_type=linux # correct to gnu/linux during the next big refactor12508 need_lib_prefix=no12509 need_version=no12510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12511 soname_spec='$libname$release$shared_ext$major'12512 shlibpath_var=LD_LIBRARY_PATH12513 shlibpath_overrides_runpath=yes12514 hardcode_into_libs=yes12515 # ldd complains unless libraries are executable12516 postinstall_cmds='chmod +x $lib'12517 ;;12518 12519 sunos4*)12520 version_type=sunos12521 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'12522 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'12523 shlibpath_var=LD_LIBRARY_PATH12524 shlibpath_overrides_runpath=yes12525 if test yes = "$with_gnu_ld"; then12526 need_lib_prefix=no12527 fi12528 need_version=yes12529 ;;12530 12531 sysv4 | sysv4.3*)12532 version_type=linux # correct to gnu/linux during the next big refactor12533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12534 soname_spec='$libname$release$shared_ext$major'12535 shlibpath_var=LD_LIBRARY_PATH12536 case $host_vendor in12537 sni)12538 shlibpath_overrides_runpath=no12539 need_lib_prefix=no12540 runpath_var=LD_RUN_PATH12541 ;;12542 siemens)12543 need_lib_prefix=no12544 ;;12545 motorola)12546 need_lib_prefix=no12547 need_version=no12548 shlibpath_overrides_runpath=no12549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'12550 ;;12551 esac12552 ;;12553 12554 sysv4*MP*)12555 if test -d /usr/nec; then12556 version_type=linux # correct to gnu/linux during the next big refactor12557 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'12558 soname_spec='$libname$shared_ext.$major'12559 shlibpath_var=LD_LIBRARY_PATH12560 fi12561 ;;12562 12563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)12564 version_type=sco12565 need_lib_prefix=no12566 need_version=no12567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'12568 soname_spec='$libname$release$shared_ext$major'12569 shlibpath_var=LD_LIBRARY_PATH12570 shlibpath_overrides_runpath=yes12571 hardcode_into_libs=yes12572 if test yes = "$with_gnu_ld"; then12573 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'12574 else12575 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'12576 case $host_os in12577 sco3.2v5*)12578 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"12579 ;;12580 esac12581 fi12582 sys_lib_dlsearch_path_spec='/usr/lib'12583 ;;12584 12585 tpf*)12586 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.12587 version_type=linux # correct to gnu/linux during the next big refactor12588 need_lib_prefix=no12589 need_version=no12590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12591 shlibpath_var=LD_LIBRARY_PATH12592 shlibpath_overrides_runpath=no12593 hardcode_into_libs=yes12594 ;;12595 12596 uts4*)12597 version_type=linux # correct to gnu/linux during the next big refactor12598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12599 soname_spec='$libname$release$shared_ext$major'12600 shlibpath_var=LD_LIBRARY_PATH12601 ;;12602 12603 *)12604 dynamic_linker=no12605 ;;12606 esac12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&512608 $as_echo "$dynamic_linker" >&6; }12609 test no = "$dynamic_linker" && can_build_shared=no12610 12611 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"12612 if test yes = "$GCC"; then12613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"12614 fi12615 12616 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then12617 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec12618 fi12619 12620 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then12621 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec12622 fi12623 12624 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...12625 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec12626 12627 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code12628 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"12629 12630 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool12631 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&512730 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }12731 hardcode_action=12732 if test -n "$hardcode_libdir_flag_spec" ||12733 test -n "$runpath_var" ||12734 test yes = "$hardcode_automatic"; then12735 12736 # We can hardcode non-existent directories.12737 if test no != "$hardcode_direct" &&12738 # If the only mechanism to avoid hardcoding is shlibpath_var, we12739 # have to relink, otherwise we might link with an installed library12740 # when we should be linking with a yet-to-be-installed one12741 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&12742 test no != "$hardcode_minus_L"; then12743 # Linking always hardcodes the temporary library directory.12744 hardcode_action=relink12745 else12746 # We can link without hardcoding, and we can hardcode nonexisting dirs.12747 hardcode_action=immediate12748 fi12749 else12750 # We cannot hardcode anything, or else we can only hardcode existing12751 # directories.12752 hardcode_action=unsupported12753 fi12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&512755 $as_echo "$hardcode_action" >&6; }12756 12757 if test relink = "$hardcode_action" ||12758 test yes = "$inherit_rpath"; then12759 # Fast installation is not supported12760 enable_fast_install=no12761 elif test yes = "$shlibpath_overrides_runpath" ||12762 test no = "$enable_shared"; then12763 # Fast installation is not necessary12764 enable_fast_install=needless12765 fi12766 12767 12768 12769 12770 12771 12772 if test yes != "$enable_dlopen"; then12773 enable_dlopen=unknown12774 enable_dlopen_self=unknown12775 enable_dlopen_self_static=unknown12776 else12777 lt_cv_dlopen=no12778 lt_cv_dlopen_libs=12779 12780 case $host_os in12781 beos*)12782 lt_cv_dlopen=load_add_on12783 lt_cv_dlopen_libs=12784 lt_cv_dlopen_self=yes12785 ;;12786 12787 mingw* | pw32* | cegcc*)12788 lt_cv_dlopen=LoadLibrary12789 lt_cv_dlopen_libs=12790 ;;12791 12792 cygwin*)12793 lt_cv_dlopen=dlopen12794 lt_cv_dlopen_libs=12795 ;;12796 12797 darwin*)12798 # if libdl is installed we need to link against it12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&512800 $as_echo_n "checking for dlopen in -ldl... " >&6; }12801 if ${ac_cv_lib_dl_dlopen+:} false; then :12802 $as_echo_n "(cached) " >&612803 else12804 ac_check_lib_save_LIBS=$LIBS12805 LIBS="-ldl $LIBS"12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12807 /* end confdefs.h. */12808 12809 /* Override any GCC internal prototype to avoid an error.12810 Use char because int might match the return type of a GCC12811 builtin and then its argument prototype would still apply. */12812 #ifdef __cplusplus12813 extern "C"12814 #endif12815 char dlopen ();12816 int12817 main ()12818 {12819 return dlopen ();12820 ;12821 return 0;12822 }12823 _ACEOF12824 if ac_fn_c_try_link "$LINENO"; then :12825 ac_cv_lib_dl_dlopen=yes12826 else12827 ac_cv_lib_dl_dlopen=no12828 fi12829 rm -f core conftest.err conftest.$ac_objext \12830 conftest$ac_exeext conftest.$ac_ext12831 LIBS=$ac_check_lib_save_LIBS12832 fi12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&512834 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }12835 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :12836 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl12837 else12838 12839 lt_cv_dlopen=dyld12840 lt_cv_dlopen_libs=12841 lt_cv_dlopen_self=yes12842 12843 fi12844 12845 ;;12846 12847 tpf*)12848 # Don't try to run any link tests for TPF. We know it's impossible12849 # because TPF is a cross-compiler, and we know how we open DSOs.12850 lt_cv_dlopen=dlopen12851 lt_cv_dlopen_libs=12852 lt_cv_dlopen_self=no12853 ;;12854 12855 *)12856 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"12857 if test "x$ac_cv_func_shl_load" = xyes; then :12858 lt_cv_dlopen=shl_load12859 else12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&512861 $as_echo_n "checking for shl_load in -ldld... " >&6; }12862 if ${ac_cv_lib_dld_shl_load+:} false; then :12863 $as_echo_n "(cached) " >&612864 else12865 ac_check_lib_save_LIBS=$LIBS12866 LIBS="-ldld $LIBS"12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12868 /* end confdefs.h. */12869 12870 /* Override any GCC internal prototype to avoid an error.12871 Use char because int might match the return type of a GCC12872 builtin and then its argument prototype would still apply. */12873 #ifdef __cplusplus12874 extern "C"12875 #endif12876 char shl_load ();12877 int12878 main ()12879 {12880 return shl_load ();12881 ;12882 return 0;12883 }12884 _ACEOF12885 if ac_fn_c_try_link "$LINENO"; then :12886 ac_cv_lib_dld_shl_load=yes12887 else12888 ac_cv_lib_dld_shl_load=no12889 fi12890 rm -f core conftest.err conftest.$ac_objext \12891 conftest$ac_exeext conftest.$ac_ext12892 LIBS=$ac_check_lib_save_LIBS12893 fi12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&512895 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }12896 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :12897 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld12898 else12899 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"12900 if test "x$ac_cv_func_dlopen" = xyes; then :12901 lt_cv_dlopen=dlopen12902 else12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&512904 $as_echo_n "checking for dlopen in -ldl... " >&6; }12905 if ${ac_cv_lib_dl_dlopen+:} false; then :12906 $as_echo_n "(cached) " >&612907 else12908 ac_check_lib_save_LIBS=$LIBS12909 LIBS="-ldl $LIBS"12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12911 /* end confdefs.h. */12912 12913 /* Override any GCC internal prototype to avoid an error.12914 Use char because int might match the return type of a GCC12915 builtin and then its argument prototype would still apply. */12916 #ifdef __cplusplus12917 extern "C"12918 #endif12919 char dlopen ();12920 int12921 main ()12922 {12923 return dlopen ();12924 ;12925 return 0;12926 }12927 _ACEOF12928 if ac_fn_c_try_link "$LINENO"; then :12929 ac_cv_lib_dl_dlopen=yes12930 else12931 ac_cv_lib_dl_dlopen=no12932 fi12933 rm -f core conftest.err conftest.$ac_objext \12934 conftest$ac_exeext conftest.$ac_ext12935 LIBS=$ac_check_lib_save_LIBS12936 fi12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&512938 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }12939 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :12940 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl12941 else12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&512943 $as_echo_n "checking for dlopen in -lsvld... " >&6; }12944 if ${ac_cv_lib_svld_dlopen+:} false; then :12945 $as_echo_n "(cached) " >&612946 else12947 ac_check_lib_save_LIBS=$LIBS12948 LIBS="-lsvld $LIBS"12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12950 /* end confdefs.h. */12951 12952 /* Override any GCC internal prototype to avoid an error.12953 Use char because int might match the return type of a GCC12954 builtin and then its argument prototype would still apply. */12955 #ifdef __cplusplus12956 extern "C"12957 #endif12958 char dlopen ();12959 int12960 main ()12961 {12962 return dlopen ();12963 ;12964 return 0;12965 }12966 _ACEOF12967 if ac_fn_c_try_link "$LINENO"; then :12968 ac_cv_lib_svld_dlopen=yes12969 else12970 ac_cv_lib_svld_dlopen=no12971 fi12972 rm -f core conftest.err conftest.$ac_objext \12973 conftest$ac_exeext conftest.$ac_ext12974 LIBS=$ac_check_lib_save_LIBS12975 fi12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&512977 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }12978 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :12979 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld12980 else12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&512982 $as_echo_n "checking for dld_link in -ldld... " >&6; }12983 if ${ac_cv_lib_dld_dld_link+:} false; then :12984 $as_echo_n "(cached) " >&612985 else12986 ac_check_lib_save_LIBS=$LIBS12987 LIBS="-ldld $LIBS"12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12989 /* end confdefs.h. */12990 12991 /* Override any GCC internal prototype to avoid an error.12992 Use char because int might match the return type of a GCC12993 builtin and then its argument prototype would still apply. */12994 #ifdef __cplusplus12995 extern "C"12996 #endif12997 char dld_link ();12998 int12999 main ()13000 {13001 return dld_link ();13002 ;13003 return 0;13004 }13005 _ACEOF13006 if ac_fn_c_try_link "$LINENO"; then :13007 ac_cv_lib_dld_dld_link=yes13008 else13009 ac_cv_lib_dld_dld_link=no13010 fi13011 rm -f core conftest.err conftest.$ac_objext \13012 conftest$ac_exeext conftest.$ac_ext13013 LIBS=$ac_check_lib_save_LIBS13014 fi13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&513016 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }13017 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :13018 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld13019 fi13020 13021 13022 fi13023 13024 13025 fi13026 13027 13028 fi13029 13030 13031 fi13032 13033 13034 fi13035 13036 ;;13037 esac13038 13039 if test no = "$lt_cv_dlopen"; then13040 enable_dlopen=no13041 else13042 enable_dlopen=yes13043 fi13044 13045 case $lt_cv_dlopen in13046 dlopen)13047 save_CPPFLAGS=$CPPFLAGS13048 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"13049 13050 save_LDFLAGS=$LDFLAGS13051 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"13052 13053 save_LIBS=$LIBS13054 LIBS="$lt_cv_dlopen_libs $LIBS"13055 13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&513057 $as_echo_n "checking whether a program can dlopen itself... " >&6; }13058 if ${lt_cv_dlopen_self+:} false; then :13059 $as_echo_n "(cached) " >&613060 else13061 if test yes = "$cross_compiling"; then :13062 lt_cv_dlopen_self=cross13063 else13064 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=213065 lt_status=$lt_dlunknown13066 cat > conftest.$ac_ext <<_LT_EOF13067 #line $LINENO "configure"13068 #include "confdefs.h"13069 13070 #if HAVE_DLFCN_H13071 #include <dlfcn.h>13072 #endif13073 13074 #include <stdio.h>13075 13076 #ifdef RTLD_GLOBAL13077 # define LT_DLGLOBAL RTLD_GLOBAL13078 #else13079 # ifdef DL_GLOBAL13080 # define LT_DLGLOBAL DL_GLOBAL13081 # else13082 # define LT_DLGLOBAL 013083 # endif13084 #endif13085 13086 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we13087 find out it does not work in some platform. */13088 #ifndef LT_DLLAZY_OR_NOW13089 # ifdef RTLD_LAZY13090 # define LT_DLLAZY_OR_NOW RTLD_LAZY13091 # else13092 # ifdef DL_LAZY13093 # define LT_DLLAZY_OR_NOW DL_LAZY13094 # else13095 # ifdef RTLD_NOW13096 # define LT_DLLAZY_OR_NOW RTLD_NOW13097 # else13098 # ifdef DL_NOW13099 # define LT_DLLAZY_OR_NOW DL_NOW13100 # else13101 # define LT_DLLAZY_OR_NOW 013102 # endif13103 # endif13104 # endif13105 # endif13106 #endif13107 13108 /* When -fvisibility=hidden is used, assume the code has been annotated13109 correspondingly for the symbols needed. */13110 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))13111 int fnord () __attribute__((visibility("default")));13112 #endif13113 13114 int fnord () { return 42; }13115 int main ()13116 {13117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);13118 int status = $lt_dlunknown;13119 13120 if (self)13121 {13122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;13123 else13124 {13125 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;13126 else puts (dlerror ());13127 }13128 /* dlclose (self); */13129 }13130 else13131 puts (dlerror ());13132 13133 return status;13134 }13135 _LT_EOF13136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&513137 (eval $ac_link) 2>&513138 ac_status=$?13139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&513140 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then13141 (./conftest; exit; ) >&5 2>/dev/null13142 lt_status=$?13143 case x$lt_status in13144 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;13145 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;13146 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;13147 esac13148 else :13149 # compilation failed13150 lt_cv_dlopen_self=no13151 fi13152 fi13153 rm -fr conftest*13154 13155 13156 fi13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&513158 $as_echo "$lt_cv_dlopen_self" >&6; }13159 13160 if test yes = "$lt_cv_dlopen_self"; then13161 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&513163 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }13164 if ${lt_cv_dlopen_self_static+:} false; then :13165 $as_echo_n "(cached) " >&613166 else13167 if test yes = "$cross_compiling"; then :13168 lt_cv_dlopen_self_static=cross13169 else13170 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=213171 lt_status=$lt_dlunknown13172 cat > conftest.$ac_ext <<_LT_EOF13173 #line $LINENO "configure"13174 #include "confdefs.h"13175 13176 #if HAVE_DLFCN_H13177 #include <dlfcn.h>13178 #endif13179 13180 #include <stdio.h>13181 13182 #ifdef RTLD_GLOBAL13183 # define LT_DLGLOBAL RTLD_GLOBAL13184 #else13185 # ifdef DL_GLOBAL13186 # define LT_DLGLOBAL DL_GLOBAL13187 # else13188 # define LT_DLGLOBAL 013189 # endif13190 #endif13191 13192 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we13193 find out it does not work in some platform. */13194 #ifndef LT_DLLAZY_OR_NOW13195 # ifdef RTLD_LAZY13196 # define LT_DLLAZY_OR_NOW RTLD_LAZY13197 # else13198 # ifdef DL_LAZY13199 # define LT_DLLAZY_OR_NOW DL_LAZY13200 # else13201 # ifdef RTLD_NOW13202 # define LT_DLLAZY_OR_NOW RTLD_NOW13203 # else13204 # ifdef DL_NOW13205 # define LT_DLLAZY_OR_NOW DL_NOW13206 # else13207 # define LT_DLLAZY_OR_NOW 013208 # endif13209 # endif13210 # endif13211 # endif13212 #endif13213 13214 /* When -fvisibility=hidden is used, assume the code has been annotated13215 correspondingly for the symbols needed. */13216 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))13217 int fnord () __attribute__((visibility("default")));13218 #endif13219 13220 int fnord () { return 42; }13221 int main ()13222 {13223 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);13224 int status = $lt_dlunknown;13225 13226 if (self)13227 {13228 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;13229 else13230 {13231 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;13232 else puts (dlerror ());13233 }13234 /* dlclose (self); */13235 }13236 else13237 puts (dlerror ());13238 13239 return status;13240 }13241 _LT_EOF13242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&513243 (eval $ac_link) 2>&513244 ac_status=$?13245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&513246 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then13247 (./conftest; exit; ) >&5 2>/dev/null13248 lt_status=$?13249 case x$lt_status in13250 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;13251 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;13252 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;13253 esac13254 else :13255 # compilation failed13256 lt_cv_dlopen_self_static=no13257 fi13258 fi13259 rm -fr conftest*13260 13261 13262 fi13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&513264 $as_echo "$lt_cv_dlopen_self_static" >&6; }13265 fi13266 13267 CPPFLAGS=$save_CPPFLAGS13268 LDFLAGS=$save_LDFLAGS13269 LIBS=$save_LIBS13270 ;;13271 esac13272 13273 case $lt_cv_dlopen_self in13274 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;13275 *) enable_dlopen_self=unknown ;;13276 esac13277 13278 case $lt_cv_dlopen_self_static in13279 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;13280 *) enable_dlopen_self_static=unknown ;;13281 esac13282 fi13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 striplib=13301 old_striplib=13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&513303 $as_echo_n "checking whether stripping libraries is possible... " >&6; }13304 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then13305 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"13306 test -z "$striplib" && striplib="$STRIP --strip-unneeded"13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&513308 $as_echo "yes" >&6; }13309 else13310 # FIXME - insert some real tests, host_os isn't really good enough13311 case $host_os in13312 darwin*)13313 if test -n "$STRIP"; then13314 striplib="$STRIP -x"13315 old_striplib="$STRIP -S"13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&513317 $as_echo "yes" >&6; }13318 else13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&513320 $as_echo "no" >&6; }13321 fi13322 ;;13323 *)13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&513325 $as_echo "no" >&6; }13326 ;;13327 esac13328 fi13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 # Report what library types will actually be built13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&513343 $as_echo_n "checking if libtool supports shared libraries... " >&6; }13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&513345 $as_echo "$can_build_shared" >&6; }13346 13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&513348 $as_echo_n "checking whether to build shared libraries... " >&6; }13349 test no = "$can_build_shared" && enable_shared=no13350 13351 # On AIX, shared libraries and static libraries use the same namespace, and13352 # are all built from PIC.13353 case $host_os in13354 aix3*)13355 test yes = "$enable_shared" && enable_static=no13356 if test -n "$RANLIB"; then13357 archive_cmds="$archive_cmds~\$RANLIB \$lib"13358 postinstall_cmds='$RANLIB $lib'13359 fi13360 ;;13361 13362 aix[4-9]*)13363 if test ia64 != "$host_cpu"; then13364 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in13365 yes,aix,yes) ;; # shared object as lib.so file only13366 yes,svr4,*) ;; # shared object as lib.so archive member only13367 yes,*) enable_static=no ;; # shared object in lib.a archive as well13368 esac13369 fi13370 ;;13371 esac13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&513373 $as_echo "$enable_shared" >&6; }13374 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&513376 $as_echo_n "checking whether to build static libraries... " >&6; }13377 # Make sure either enable_shared or enable_static is yes.13378 test yes = "$enable_shared" || enable_static=yes13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&513380 $as_echo "$enable_static" >&6; }13381 13382 13383 13384 13385 fi13386 ac_ext=c13387 ac_cpp='$CPP $CPPFLAGS'13388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'13389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'13390 ac_compiler_gnu=$ac_cv_c_compiler_gnu13391 13392 CC=$lt_save_CC13393 13394 if test -n "$CXX" && ( test no != "$CXX" &&13395 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||13396 (test g++ != "$CXX"))); then13397 ac_ext=cpp13398 ac_cpp='$CXXCPP $CPPFLAGS'13399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'13400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'13401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&513403 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }13404 if test -z "$CXXCPP"; then13405 if ${ac_cv_prog_CXXCPP+:} false; then :13406 $as_echo_n "(cached) " >&613407 else13408 # Double quotes because CXXCPP needs to be expanded13409 for CXXCPP in "$CXX -E" "/lib/cpp"13410 do13411 ac_preproc_ok=false13412 for ac_cxx_preproc_warn_flag in '' yes13413 do13414 # Use a header file that comes with gcc, so configuring glibc13415 # with a fresh cross-compiler works.13416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13417 # <limits.h> exists even on freestanding compilers.13418 # On the NeXT, cc -E runs the code through the compiler's parser,13419 # not just through cpp. "Syntax error" is here to catch this case.13420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13421 /* end confdefs.h. */13422 #ifdef __STDC__13423 # include <limits.h>13424 #else13425 # include <assert.h>13426 #endif13427 Syntax error13428 _ACEOF13429 if ac_fn_cxx_try_cpp "$LINENO"; then :13430 13431 else13432 # Broken: fails on valid input.13433 continue13434 fi13435 rm -f conftest.err conftest.i conftest.$ac_ext13436 13437 # OK, works on sane cases. Now check whether nonexistent headers13438 # can be detected and how.13439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13440 /* end confdefs.h. */13441 #include <ac_nonexistent.h>13442 _ACEOF13443 if ac_fn_cxx_try_cpp "$LINENO"; then :13444 # Broken: success on invalid input.13445 continue13446 else13447 # Passes both tests.13448 ac_preproc_ok=:13449 break13450 fi13451 rm -f conftest.err conftest.i conftest.$ac_ext13452 13453 done13454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.13455 rm -f conftest.i conftest.err conftest.$ac_ext13456 if $ac_preproc_ok; then :13457 break13458 fi13459 13460 done13461 ac_cv_prog_CXXCPP=$CXXCPP13462 13463 fi13464 CXXCPP=$ac_cv_prog_CXXCPP13465 else13466 ac_cv_prog_CXXCPP=$CXXCPP13467 fi13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&513469 $as_echo "$CXXCPP" >&6; }13470 ac_preproc_ok=false13471 for ac_cxx_preproc_warn_flag in '' yes13472 do13473 # Use a header file that comes with gcc, so configuring glibc13474 # with a fresh cross-compiler works.13475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13476 # <limits.h> exists even on freestanding compilers.13477 # On the NeXT, cc -E runs the code through the compiler's parser,13478 # not just through cpp. "Syntax error" is here to catch this case.13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13480 /* end confdefs.h. */13481 #ifdef __STDC__13482 # include <limits.h>13483 #else13484 # include <assert.h>13485 #endif13486 Syntax error13487 _ACEOF13488 if ac_fn_cxx_try_cpp "$LINENO"; then :13489 13490 else13491 # Broken: fails on valid input.13492 continue13493 fi13494 rm -f conftest.err conftest.i conftest.$ac_ext13495 13496 # OK, works on sane cases. Now check whether nonexistent headers13497 # can be detected and how.13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13499 /* end confdefs.h. */13500 #include <ac_nonexistent.h>13501 _ACEOF13502 if ac_fn_cxx_try_cpp "$LINENO"; then :13503 # Broken: success on invalid input.13504 continue13505 else13506 # Passes both tests.13507 ac_preproc_ok=:13508 break13509 fi13510 rm -f conftest.err conftest.i conftest.$ac_ext13511 13512 done13513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.13514 rm -f conftest.i conftest.err conftest.$ac_ext13515 if $ac_preproc_ok; then :13516 13517 else13518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&513519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}13520 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check13521 See \`config.log' for more details" "$LINENO" 5; }13522 fi13523 13524 ac_ext=c13525 ac_cpp='$CPP $CPPFLAGS'13526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'13527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'13528 ac_compiler_gnu=$ac_cv_c_compiler_gnu13529 13530 else13531 _lt_caught_CXX_error=yes13532 fi13533 13534 ac_ext=cpp13535 ac_cpp='$CXXCPP $CPPFLAGS'13536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'13537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'13538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu13539 13540 archive_cmds_need_lc_CXX=no13541 allow_undefined_flag_CXX=13542 always_export_symbols_CXX=no13543 archive_expsym_cmds_CXX=13544 compiler_needs_object_CXX=no13545 export_dynamic_flag_spec_CXX=13546 hardcode_direct_CXX=no13547 hardcode_direct_absolute_CXX=no13548 hardcode_libdir_flag_spec_CXX=13549 hardcode_libdir_separator_CXX=13550 hardcode_minus_L_CXX=no13551 hardcode_shlibpath_var_CXX=unsupported13552 hardcode_automatic_CXX=no13553 inherit_rpath_CXX=no13554 module_cmds_CXX=13555 module_expsym_cmds_CXX=13556 link_all_deplibs_CXX=unknown13557 old_archive_cmds_CXX=$old_archive_cmds13558 reload_flag_CXX=$reload_flag13559 reload_cmds_CXX=$reload_cmds13560 no_undefined_flag_CXX=13561 whole_archive_flag_spec_CXX=13562 enable_shared_with_static_runtimes_CXX=no13563 13564 # Source file extension for C++ test sources.13565 ac_ext=cpp13566 13567 # Object file extension for compiled C++ test sources.13568 objext=o13569 objext_CXX=$objext13570 13571 # No sense in running all these tests if we already determined that13572 # the CXX compiler isn't working. Some variables (like enable_shared)13573 # are currently assumed to apply to all compilers on this platform,13574 # and will be corrupted by setting them based on a non-working compiler.13575 if test yes != "$_lt_caught_CXX_error"; then13576 # Code to be used in simple compile tests13577 lt_simple_compile_test_code="int some_variable = 0;"13578 13579 # Code to be used in simple link tests13580 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'13581 13582 # ltmain only uses $CC for tagged configurations so make sure $CC is set.13583 13584 13585 13586 13587 13588 13589 # If no C compiler was specified, use CC.13590 LTCC=${LTCC-"$CC"}13591 13592 # If no C compiler flags were specified, use CFLAGS.13593 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}13594 13595 # Allow CC to be a program name with arguments.13596 compiler=$CC13597 13598 13599 # save warnings/boilerplate of simple test code13600 ac_outfile=conftest.$ac_objext13601 echo "$lt_simple_compile_test_code" >conftest.$ac_ext13602 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err13603 _lt_compiler_boilerplate=`cat conftest.err`13604 $RM conftest*13605 13606 ac_outfile=conftest.$ac_objext13607 echo "$lt_simple_link_test_code" >conftest.$ac_ext13608 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err13609 _lt_linker_boilerplate=`cat conftest.err`13610 $RM -r conftest*13611 13612 13613 # Allow CC to be a program name with arguments.13614 lt_save_CC=$CC13615 lt_save_CFLAGS=$CFLAGS13616 lt_save_LD=$LD13617 lt_save_GCC=$GCC13618 GCC=$GXX13619 lt_save_with_gnu_ld=$with_gnu_ld13620 lt_save_path_LD=$lt_cv_path_LD13621 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then13622 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx13623 else13624 $as_unset lt_cv_prog_gnu_ld13625 fi13626 if test -n "${lt_cv_path_LDCXX+set}"; then13627 lt_cv_path_LD=$lt_cv_path_LDCXX13628 else13629 $as_unset lt_cv_path_LD13630 fi13631 test -z "${LDCXX+set}" || LD=$LDCXX13632 CC=${CXX-"c++"}13633 CFLAGS=$CXXFLAGS13634 compiler=$CC13635 compiler_CXX=$CC13636 func_cc_basename $compiler13637 cc_basename=$func_cc_basename_result13638 13639 13640 if test -n "$compiler"; then13641 # We don't want -fno-exception when compiling C++ code, so set the13642 # no_builtin_flag separately13643 if test yes = "$GXX"; then13644 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'13645 else13646 lt_prog_compiler_no_builtin_flag_CXX=13647 fi13648 13649 if test yes = "$GXX"; then13650 # Set up default GNU C++ configuration13651 13652 13653 13654 # Check whether --with-gnu-ld was given.13655 if test "${with_gnu_ld+set}" = set; then :13656 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes13657 else13658 with_gnu_ld=no13659 fi13660 13661 ac_prog=ld13662 if test yes = "$GCC"; then13663 # Check if gcc -print-prog-name=ld gives a path.13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&513665 $as_echo_n "checking for ld used by $CC... " >&6; }13666 case $host in13667 *-*-mingw*)13668 # gcc leaves a trailing carriage return, which upsets mingw13669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;13670 *)13671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;13672 esac13673 case $ac_prog in13674 # Accept absolute paths.13675 [\\/]* | ?:[\\/]*)13676 re_direlt='/[^/][^/]*/\.\./'13677 # Canonicalize the pathname of ld13678 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`13679 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do13680 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`13681 done13682 test -z "$LD" && LD=$ac_prog13683 ;;13684 "")13685 # If it fails, then pretend we aren't using GCC.13686 ac_prog=ld13687 ;;13688 *)13689 # If it is relative, then search for the first ld in PATH.13690 with_gnu_ld=unknown13691 ;;13692 esac13693 elif test yes = "$with_gnu_ld"; then13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&513695 $as_echo_n "checking for GNU ld... " >&6; }13696 else13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&513698 $as_echo_n "checking for non-GNU ld... " >&6; }13699 fi13700 if ${lt_cv_path_LD+:} false; then :13701 $as_echo_n "(cached) " >&613702 else13703 if test -z "$LD"; then13704 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR13705 for ac_dir in $PATH; do13706 IFS=$lt_save_ifs13707 test -z "$ac_dir" && ac_dir=.13708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then13709 lt_cv_path_LD=$ac_dir/$ac_prog13710 # Check to see if the program is GNU ld. I'd rather use --version,13711 # but apparently some variants of GNU ld only accept -v.13712 # Break only if it was the GNU/non-GNU ld that we prefer.13713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in13714 *GNU* | *'with BFD'*)13715 test no != "$with_gnu_ld" && break13716 ;;13717 *)13718 test yes != "$with_gnu_ld" && break13719 ;;13720 esac13721 fi13722 done13723 IFS=$lt_save_ifs13724 else13725 lt_cv_path_LD=$LD # Let the user override the test with a path.13726 fi13727 fi13728 13729 LD=$lt_cv_path_LD13730 if test -n "$LD"; then13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&513732 $as_echo "$LD" >&6; }13733 else13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&513735 $as_echo "no" >&6; }13736 fi13737 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 513738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&513739 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }13740 if ${lt_cv_prog_gnu_ld+:} false; then :13741 $as_echo_n "(cached) " >&613742 else13743 # I'd rather use --version here, but apparently some GNU lds only accept -v.13744 case `$LD -v 2>&1 </dev/null` in13745 *GNU* | *'with BFD'*)13746 lt_cv_prog_gnu_ld=yes13747 ;;13748 *)13749 lt_cv_prog_gnu_ld=no13750 ;;13751 esac13752 fi13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&513754 $as_echo "$lt_cv_prog_gnu_ld" >&6; }13755 with_gnu_ld=$lt_cv_prog_gnu_ld13756 13757 13758 13759 13760 13761 13762 13763 # Check if GNU C++ uses GNU ld as the underlying linker, since the13764 # archiving commands below assume that GNU ld is being used.13765 if test yes = "$with_gnu_ld"; then13766 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13767 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'13768 13769 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13770 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13771 13772 # If archive_cmds runs LD, not CC, wlarc should be empty13773 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to13774 # investigate it a little bit more. (MM)13775 wlarc='$wl'13776 13777 # ancient GNU ld didn't support --whole-archive et. al.13778 if eval "`$CC -print-prog-name=ld` --help 2>&1" |13779 $GREP 'no-whole-archive' > /dev/null; then13780 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'13781 else13782 whole_archive_flag_spec_CXX=13783 fi13784 else13785 with_gnu_ld=no13786 wlarc=13787 13788 # A generic and very simple default shared library creation13789 # command for GNU C++ for the case where it uses the native13790 # linker, instead of GNU ld. If possible, this setting should13791 # overridden to take advantage of the native linker features on13792 # the platform it is being used on.13793 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'13794 fi13795 13796 # Commands to make compiler produce verbose output that lists13797 # what "hidden" libraries, object files and flags are used when13798 # linking a shared library.13799 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13800 13801 else13802 GXX=no13803 with_gnu_ld=no13804 wlarc=13805 fi13806 13807 # PORTME: fill in a description of your system's C++ link characteristics13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&513809 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }13810 ld_shlibs_CXX=yes13811 case $host_os in13812 aix3*)13813 # FIXME: insert proper C++ library support13814 ld_shlibs_CXX=no13815 ;;13816 aix[4-9]*)13817 if test ia64 = "$host_cpu"; then13818 # On IA64, the linker does run time linking by default, so we don't13819 # have to do anything special.13820 aix_use_runtimelinking=no13821 exp_sym_flag='-Bexport'13822 no_entry_flag=13823 else13824 aix_use_runtimelinking=no13825 13826 # Test if we are trying to use run time linking or normal13827 # AIX style linking. If -brtl is somewhere in LDFLAGS, we13828 # have runtime linking enabled, and use it for executables.13829 # For shared libraries, we enable/disable runtime linking13830 # depending on the kind of the shared library created -13831 # when "with_aix_soname,aix_use_runtimelinking" is:13832 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables13833 # "aix,yes" lib.so shared, rtl:yes, for executables13834 # lib.a static archive13835 # "both,no" lib.so.V(shr.o) shared, rtl:yes13836 # lib.a(lib.so.V) shared, rtl:no, for executables13837 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables13838 # lib.a(lib.so.V) shared, rtl:no13839 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables13840 # lib.a static archive13841 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)13842 for ld_flag in $LDFLAGS; do13843 case $ld_flag in13844 *-brtl*)13845 aix_use_runtimelinking=yes13846 break13847 ;;13848 esac13849 done13850 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then13851 # With aix-soname=svr4, we create the lib.so.V shared archives only,13852 # so we don't have lib.a shared libs to link our executables.13853 # We have to force runtime linking in this case.13854 aix_use_runtimelinking=yes13855 LDFLAGS="$LDFLAGS -Wl,-brtl"13856 fi13857 ;;13858 esac13859 13860 exp_sym_flag='-bexport'13861 no_entry_flag='-bnoentry'13862 fi13863 13864 # When large executables or shared objects are built, AIX ld can13865 # have problems creating the table of contents. If linking a library13866 # or program results in "error TOC overflow" add -mminimal-toc to13867 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not13868 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.13869 13870 archive_cmds_CXX=''13871 hardcode_direct_CXX=yes13872 hardcode_direct_absolute_CXX=yes13873 hardcode_libdir_separator_CXX=':'13874 link_all_deplibs_CXX=yes13875 file_list_spec_CXX='$wl-f,'13876 case $with_aix_soname,$aix_use_runtimelinking in13877 aix,*) ;; # no import file13878 svr4,* | *,yes) # use import file13879 # The Import File defines what to hardcode.13880 hardcode_direct_CXX=no13881 hardcode_direct_absolute_CXX=no13882 ;;13883 esac13884 13885 if test yes = "$GXX"; then13886 case $host_os in aix4.[012]|aix4.[012].*)13887 # We only want to do this on AIX 4.2 and lower, the check13888 # below for broken collect2 doesn't work under 4.3+13889 collect2name=`$CC -print-prog-name=collect2`13890 if test -f "$collect2name" &&13891 strings "$collect2name" | $GREP resolve_lib_name >/dev/null13892 then13893 # We have reworked collect213894 :13895 else13896 # We have old collect213897 hardcode_direct_CXX=unsupported13898 # It fails to find uninstalled libraries when the uninstalled13899 # path is not listed in the libpath. Setting hardcode_minus_L13900 # to unsupported forces relinking13901 hardcode_minus_L_CXX=yes13902 hardcode_libdir_flag_spec_CXX='-L$libdir'13903 hardcode_libdir_separator_CXX=13904 fi13905 esac13906 shared_flag='-shared'13907 if test yes = "$aix_use_runtimelinking"; then13908 shared_flag=$shared_flag' $wl-G'13909 fi13910 # Need to ensure runtime linking is disabled for the traditional13911 # shared library, or the linker may eventually find shared libraries13912 # /with/ Import File - we do not want to mix them.13913 shared_flag_aix='-shared'13914 shared_flag_svr4='-shared $wl-G'13915 else13916 # not using gcc13917 if test ia64 = "$host_cpu"; then13918 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release13919 # chokes on -Wl,-G. The following line is correct:13920 shared_flag='-G'13921 else13922 if test yes = "$aix_use_runtimelinking"; then13923 shared_flag='$wl-G'13924 else13925 shared_flag='$wl-bM:SRE'13926 fi13927 shared_flag_aix='$wl-bM:SRE'13928 shared_flag_svr4='$wl-G'13929 fi13930 fi13931 13932 export_dynamic_flag_spec_CXX='$wl-bexpall'13933 # It seems that -bexpall does not export symbols beginning with13934 # underscore (_), so it is better to generate a list of symbols to13935 # export.13936 always_export_symbols_CXX=yes13937 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then13938 # Warning - without using the other runtime loading flags (-brtl),13939 # -berok will link without error, but may produce a broken library.13940 # The "-G" linker flag allows undefined symbols.13941 no_undefined_flag_CXX='-bernotok'13942 # Determine the default libpath from the value encoded in an empty13943 # executable.13944 if test set = "${lt_cv_aix_libpath+set}"; then13945 aix_libpath=$lt_cv_aix_libpath13946 else13947 if ${lt_cv_aix_libpath__CXX+:} false; then :13948 $as_echo_n "(cached) " >&613949 else13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13951 /* end confdefs.h. */13952 13953 int13954 main ()13955 {13956 13957 ;13958 return 0;13959 }13960 _ACEOF13961 if ac_fn_cxx_try_link "$LINENO"; then :13962 13963 lt_aix_libpath_sed='13964 /Import File Strings/,/^$/ {13965 /^0/ {13966 s/^0 *\([^ ]*\) *$/\1/13967 p13968 }13969 }'13970 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13971 # Check for a 64-bit object if we didn't find anything.13972 if test -z "$lt_cv_aix_libpath__CXX"; then13973 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13974 fi13975 fi13976 rm -f core conftest.err conftest.$ac_objext \13977 conftest$ac_exeext conftest.$ac_ext13978 if test -z "$lt_cv_aix_libpath__CXX"; then13979 lt_cv_aix_libpath__CXX=/usr/lib:/lib13980 fi13981 13982 fi13983 13984 aix_libpath=$lt_cv_aix_libpath__CXX13985 fi13986 13987 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"13988 13989 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_flag13990 else13991 if test ia64 = "$host_cpu"; then13992 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'13993 allow_undefined_flag_CXX="-z nodefs"13994 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"13995 else13996 # Determine the default libpath from the value encoded in an13997 # empty executable.13998 if test set = "${lt_cv_aix_libpath+set}"; then13999 aix_libpath=$lt_cv_aix_libpath14000 else14001 if ${lt_cv_aix_libpath__CXX+:} false; then :14002 $as_echo_n "(cached) " >&614003 else14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext14005 /* end confdefs.h. */14006 14007 int14008 main ()14009 {14010 14011 ;14012 return 0;14013 }14014 _ACEOF14015 if ac_fn_cxx_try_link "$LINENO"; then :14016 14017 lt_aix_libpath_sed='14018 /Import File Strings/,/^$/ {14019 /^0/ {14020 s/^0 *\([^ ]*\) *$/\1/14021 p14022 }14023 }'14024 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`14025 # Check for a 64-bit object if we didn't find anything.14026 if test -z "$lt_cv_aix_libpath__CXX"; then14027 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`14028 fi14029 fi14030 rm -f core conftest.err conftest.$ac_objext \14031 conftest$ac_exeext conftest.$ac_ext14032 if test -z "$lt_cv_aix_libpath__CXX"; then14033 lt_cv_aix_libpath__CXX=/usr/lib:/lib14034 fi14035 14036 fi14037 14038 aix_libpath=$lt_cv_aix_libpath__CXX14039 fi14040 14041 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"14042 # Warning - without using the other run time loading flags,14043 # -berok will link without error, but may produce a broken library.14044 no_undefined_flag_CXX=' $wl-bernotok'14045 allow_undefined_flag_CXX=' $wl-berok'14046 if test yes = "$with_gnu_ld"; then14047 # We only use this code for GNU lds that support --whole-archive.14048 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'14049 else14050 # Exported symbols can be pulled into shared objects from archives14051 whole_archive_flag_spec_CXX='$convenience'14052 fi14053 archive_cmds_need_lc_CXX=yes14054 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'14055 # -brtl affects multiple linker settings, -berok does not and is overridden later14056 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'14057 if test svr4 != "$with_aix_soname"; then14058 # This is similar to how AIX traditionally builds its shared14059 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.14060 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'14061 fi14062 if test aix != "$with_aix_soname"; then14063 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'14064 else14065 # used by -dlpreopen to get the symbols14066 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'14067 fi14068 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'14069 fi14070 fi14071 ;;14072 14073 beos*)14074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then14075 allow_undefined_flag_CXX=unsupported14076 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc14077 # support --undefined. This deserves some investigation. FIXME14078 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'14079 else14080 ld_shlibs_CXX=no14081 fi14082 ;;14083 14084 chorus*)14085 case $cc_basename in14086 *)14087 # FIXME: insert proper C++ library support14088 ld_shlibs_CXX=no14089 ;;14090 esac14091 ;;14092 14093 cygwin* | mingw* | pw32* | cegcc*)14094 case $GXX,$cc_basename in14095 ,cl* | no,cl*)14096 # Native MSVC14097 # hardcode_libdir_flag_spec is actually meaningless, as there is14098 # no search path for DLLs.14099 hardcode_libdir_flag_spec_CXX=' '14100 allow_undefined_flag_CXX=unsupported14101 always_export_symbols_CXX=yes14102 file_list_spec_CXX='@'14103 # Tell ltmain to make .lib files, not .a files.14104 libext=lib14105 # Tell ltmain to make .dll files, not .so files.14106 shrext_cmds=.dll14107 # FIXME: Setting linknames here is a bad hack.14108 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='14109 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then14110 cp "$export_symbols" "$output_objdir/$soname.def";14111 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";14112 else14113 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;14114 fi~14115 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~14116 linknames='14117 # The linker will not automatically build a static lib if we build a DLL.14118 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'14119 enable_shared_with_static_runtimes_CXX=yes14120 # Don't use ranlib14121 old_postinstall_cmds_CXX='chmod 644 $oldlib'14122 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~14123 lt_tool_outputfile="@TOOL_OUTPUT@"~14124 case $lt_outputfile in14125 *.exe|*.EXE) ;;14126 *)14127 lt_outputfile=$lt_outputfile.exe14128 lt_tool_outputfile=$lt_tool_outputfile.exe14129 ;;14130 esac~14131 func_to_tool_file "$lt_outputfile"~14132 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then14133 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;14134 $RM "$lt_outputfile.manifest";14135 fi'14136 ;;14137 *)14138 # g++14139 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,14140 # as there is no search path for DLLs.14141 hardcode_libdir_flag_spec_CXX='-L$libdir'14142 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'14143 allow_undefined_flag_CXX=unsupported14144 always_export_symbols_CXX=no14145 enable_shared_with_static_runtimes_CXX=yes14146 14147 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then14148 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'14149 # If the export-symbols file already is a .def file, use it as14150 # is; otherwise, prepend EXPORTS...14151 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then14152 cp $export_symbols $output_objdir/$soname.def;14153 else14154 echo EXPORTS > $output_objdir/$soname.def;14155 cat $export_symbols >> $output_objdir/$soname.def;14156 fi~14157 $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'14158 else14159 ld_shlibs_CXX=no14160 fi14161 ;;14162 esac14163 ;;14164 darwin* | rhapsody*)14165 14166 14167 archive_cmds_need_lc_CXX=no14168 hardcode_direct_CXX=no14169 hardcode_automatic_CXX=yes14170 hardcode_shlibpath_var_CXX=unsupported14171 if test yes = "$lt_cv_ld_force_load"; then14172 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\"`'14173 14174 else14175 whole_archive_flag_spec_CXX=''14176 fi14177 link_all_deplibs_CXX=yes14178 allow_undefined_flag_CXX=$_lt_dar_allow_undefined14179 case $cc_basename in14180 ifort*|nagfor*) _lt_dar_can_shared=yes ;;14181 *) _lt_dar_can_shared=$GCC ;;14182 esac14183 if test yes = "$_lt_dar_can_shared"; then14184 output_verbose_link_cmd=func_echo_all14185 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"14186 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"14187 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"14188 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"14189 if test yes != "$lt_cv_apple_cc_single_mod"; then14190 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"14191 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"14192 fi14193 14194 else14195 ld_shlibs_CXX=no14196 fi14197 14198 ;;14199 14200 os2*)14201 hardcode_libdir_flag_spec_CXX='-L$libdir'14202 hardcode_minus_L_CXX=yes14203 allow_undefined_flag_CXX=unsupported14204 shrext_cmds=.dll14205 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~14206 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~14207 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~14208 $ECHO EXPORTS >> $output_objdir/$libname.def~14209 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~14210 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~14211 emximp -o $lib $output_objdir/$libname.def'14212 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~14213 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~14214 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~14215 $ECHO EXPORTS >> $output_objdir/$libname.def~14216 prefix_cmds="$SED"~14217 if test EXPORTS = "`$SED 1q $export_symbols`"; then14218 prefix_cmds="$prefix_cmds -e 1d";14219 fi~14220 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~14221 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~14222 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~14223 emximp -o $lib $output_objdir/$libname.def'14224 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'14225 enable_shared_with_static_runtimes_CXX=yes14226 ;;14227 14228 dgux*)14229 case $cc_basename in14230 ec++*)14231 # FIXME: insert proper C++ library support14232 ld_shlibs_CXX=no14233 ;;14234 ghcx*)14235 # Green Hills C++ Compiler14236 # FIXME: insert proper C++ library support14237 ld_shlibs_CXX=no14238 ;;14239 *)14240 # FIXME: insert proper C++ library support14241 ld_shlibs_CXX=no14242 ;;14243 esac14244 ;;14245 14246 freebsd2.*)14247 # C++ shared libraries reported to be fairly broken before14248 # switch to ELF14249 ld_shlibs_CXX=no14250 ;;14251 14252 freebsd-elf*)14253 archive_cmds_need_lc_CXX=no14254 ;;14255 14256 freebsd* | dragonfly*)14257 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF14258 # conventions14259 ld_shlibs_CXX=yes14260 ;;14261 14262 haiku*)14263 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'14264 link_all_deplibs_CXX=yes14265 ;;14266 14267 hpux9*)14268 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'14269 hardcode_libdir_separator_CXX=:14270 export_dynamic_flag_spec_CXX='$wl-E'14271 hardcode_direct_CXX=yes14272 hardcode_minus_L_CXX=yes # Not in the search PATH,14273 # but as the default14274 # location of the library.14275 14276 case $cc_basename in14277 CC*)14278 # FIXME: insert proper C++ library support14279 ld_shlibs_CXX=no14280 ;;14281 aCC*)14282 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'14283 # Commands to make compiler produce verbose output that lists14284 # what "hidden" libraries, object files and flags are used when14285 # linking a shared library.14286 #14287 # There doesn't appear to be a way to prevent this compiler from14288 # explicitly linking system object files so we need to strip them14289 # from the output so that they don't get included in the library14290 # dependencies.14291 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"'14292 ;;14293 *)14294 if test yes = "$GXX"; then14295 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'14296 else14297 # FIXME: insert proper C++ library support14298 ld_shlibs_CXX=no14299 fi14300 ;;14301 esac14302 ;;14303 14304 hpux10*|hpux11*)14305 if test no = "$with_gnu_ld"; then14306 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'14307 hardcode_libdir_separator_CXX=:14308 14309 case $host_cpu in14310 hppa*64*|ia64*)14311 ;;14312 *)14313 export_dynamic_flag_spec_CXX='$wl-E'14314 ;;14315 esac14316 fi14317 case $host_cpu in14318 hppa*64*|ia64*)14319 hardcode_direct_CXX=no14320 hardcode_shlibpath_var_CXX=no14321 ;;14322 *)14323 hardcode_direct_CXX=yes14324 hardcode_direct_absolute_CXX=yes14325 hardcode_minus_L_CXX=yes # Not in the search PATH,14326 # but as the default14327 # location of the library.14328 ;;14329 esac14330 14331 case $cc_basename in14332 CC*)14333 # FIXME: insert proper C++ library support14334 ld_shlibs_CXX=no14335 ;;14336 aCC*)14337 case $host_cpu in14338 hppa*64*)14339 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14340 ;;14341 ia64*)14342 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14343 ;;14344 *)14345 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14346 ;;14347 esac14348 # Commands to make compiler produce verbose output that lists14349 # what "hidden" libraries, object files and flags are used when14350 # linking a shared library.14351 #14352 # There doesn't appear to be a way to prevent this compiler from14353 # explicitly linking system object files so we need to strip them14354 # from the output so that they don't get included in the library14355 # dependencies.14356 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"'14357 ;;14358 *)14359 if test yes = "$GXX"; then14360 if test no = "$with_gnu_ld"; then14361 case $host_cpu in14362 hppa*64*)14363 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14364 ;;14365 ia64*)14366 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14367 ;;14368 *)14369 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'14370 ;;14371 esac14372 fi14373 else14374 # FIXME: insert proper C++ library support14375 ld_shlibs_CXX=no14376 fi14377 ;;14378 esac14379 ;;14380 14381 interix[3-9]*)14382 hardcode_direct_CXX=no14383 hardcode_shlibpath_var_CXX=no14384 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'14385 export_dynamic_flag_spec_CXX='$wl-E'14386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.14387 # Instead, shared libraries are loaded at an image base (0x10000000 by14388 # default) and relocated if they conflict, which is a slow very memory14389 # consuming and fragmenting process. To avoid this, we pick a random,14390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link14391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.14392 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'14393 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'14394 ;;14395 irix5* | irix6*)14396 case $cc_basename in14397 CC*)14398 # SGI C++14399 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'14400 14401 # Archives containing C++ object files must be created using14402 # "CC -ar", where "CC" is the IRIX C++ compiler. This is14403 # necessary to make sure instantiated templates are included14404 # in the archive.14405 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'14406 ;;14407 *)14408 if test yes = "$GXX"; then14409 if test no = "$with_gnu_ld"; then14410 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'14411 else14412 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'14413 fi14414 fi14415 link_all_deplibs_CXX=yes14416 ;;14417 esac14418 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'14419 hardcode_libdir_separator_CXX=:14420 inherit_rpath_CXX=yes14421 ;;14422 14423 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)14424 case $cc_basename in14425 KCC*)14426 # Kuck and Associates, Inc. (KAI) C++ Compiler14427 14428 # KCC will only create a shared library if the output file14429 # ends with ".so" (or ".sl" for HP-UX), so rename the library14430 # to its proper name (with version) after linking.14431 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'14432 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'14433 # Commands to make compiler produce verbose output that lists14434 # what "hidden" libraries, object files and flags are used when14435 # linking a shared library.14436 #14437 # There doesn't appear to be a way to prevent this compiler from14438 # explicitly linking system object files so we need to strip them14439 # from the output so that they don't get included in the library14440 # dependencies.14441 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"'14442 14443 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'14444 export_dynamic_flag_spec_CXX='$wl--export-dynamic'14445 14446 # Archives containing C++ object files must be created using14447 # "CC -Bstatic", where "CC" is the KAI C++ compiler.14448 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'14449 ;;14450 icpc* | ecpc* )14451 # Intel C++14452 with_gnu_ld=yes14453 # version 8.0 and above of icpc choke on multiply defined symbols14454 # if we add $predep_objects and $postdep_objects, however 7.1 and14455 # earlier do not add the objects themselves.14456 case `$CC -V 2>&1` in14457 *"Version 7."*)14458 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'14459 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'14460 ;;14461 *) # Version 8.0 or newer14462 tmp_idyn=14463 case $host_cpu in14464 ia64*) tmp_idyn=' -i_dynamic';;14465 esac14466 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'14467 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'14468 ;;14469 esac14470 archive_cmds_need_lc_CXX=no14471 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'14472 export_dynamic_flag_spec_CXX='$wl--export-dynamic'14473 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'14474 ;;14475 pgCC* | pgcpp*)14476 # Portland Group C++ compiler14477 case `$CC -V` in14478 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)14479 prelink_cmds_CXX='tpldir=Template.dir~14480 rm -rf $tpldir~14481 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~14482 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'14483 old_archive_cmds_CXX='tpldir=Template.dir~14484 rm -rf $tpldir~14485 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~14486 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~14487 $RANLIB $oldlib'14488 archive_cmds_CXX='tpldir=Template.dir~14489 rm -rf $tpldir~14490 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~14491 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'14492 archive_expsym_cmds_CXX='tpldir=Template.dir~14493 rm -rf $tpldir~14494 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~14495 $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'14496 ;;14497 *) # Version 6 and above use weak symbols14498 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'14499 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'14500 ;;14501 esac14502 14503 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'14504 export_dynamic_flag_spec_CXX='$wl--export-dynamic'14505 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'14506 ;;14507 cxx*)14508 # Compaq C++14509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'14510 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'14511 14512 runpath_var=LD_RUN_PATH14513 hardcode_libdir_flag_spec_CXX='-rpath $libdir'14514 hardcode_libdir_separator_CXX=:14515 14516 # Commands to make compiler produce verbose output that lists14517 # what "hidden" libraries, object files and flags are used when14518 # linking a shared library.14519 #14520 # There doesn't appear to be a way to prevent this compiler from14521 # explicitly linking system object files so we need to strip them14522 # from the output so that they don't get included in the library14523 # dependencies.14524 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'14525 ;;14526 xl* | mpixl* | bgxl*)14527 # IBM XL 8.0 on PPC, with GNU ld14528 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'14529 export_dynamic_flag_spec_CXX='$wl--export-dynamic'14530 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'14531 if test yes = "$supports_anon_versioning"; then14532 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~14533 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~14534 echo "local: *; };" >> $output_objdir/$libname.ver~14535 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'14536 fi14537 ;;14538 *)14539 case `$CC -V 2>&1 | sed 5q` in14540 *Sun\ C*)14541 # Sun C++ 5.914542 no_undefined_flag_CXX=' -zdefs'14543 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14544 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'14545 hardcode_libdir_flag_spec_CXX='-R$libdir'14546 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'14547 compiler_needs_object_CXX=yes14548 14549 # Not sure whether something based on14550 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&114551 # would be better.14552 output_verbose_link_cmd='func_echo_all'14553 14554 # Archives containing C++ object files must be created using14555 # "CC -xar", where "CC" is the Sun C++ compiler. This is14556 # necessary to make sure instantiated templates are included14557 # in the archive.14558 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'14559 ;;14560 esac14561 ;;14562 esac14563 ;;14564 14565 lynxos*)14566 # FIXME: insert proper C++ library support14567 ld_shlibs_CXX=no14568 ;;14569 14570 m88k*)14571 # FIXME: insert proper C++ library support14572 ld_shlibs_CXX=no14573 ;;14574 14575 mvs*)14576 case $cc_basename in14577 cxx*)14578 # FIXME: insert proper C++ library support14579 ld_shlibs_CXX=no14580 ;;14581 *)14582 # FIXME: insert proper C++ library support14583 ld_shlibs_CXX=no14584 ;;14585 esac14586 ;;14587 14588 netbsd*)14589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then14590 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'14591 wlarc=14592 hardcode_libdir_flag_spec_CXX='-R$libdir'14593 hardcode_direct_CXX=yes14594 hardcode_shlibpath_var_CXX=no14595 fi14596 # Workaround some broken pre-1.5 toolchains14597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'14598 ;;14599 14600 *nto* | *qnx*)14601 ld_shlibs_CXX=yes14602 ;;14603 14604 openbsd* | bitrig*)14605 if test -f /usr/libexec/ld.so; then14606 hardcode_direct_CXX=yes14607 hardcode_shlibpath_var_CXX=no14608 hardcode_direct_absolute_CXX=yes14609 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'14610 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'14611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then14612 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'14613 export_dynamic_flag_spec_CXX='$wl-E'14614 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'14615 fi14616 output_verbose_link_cmd=func_echo_all14617 else14618 ld_shlibs_CXX=no14619 fi14620 ;;14621 14622 osf3* | osf4* | osf5*)14623 case $cc_basename in14624 KCC*)14625 # Kuck and Associates, Inc. (KAI) C++ Compiler14626 14627 # KCC will only create a shared library if the output file14628 # ends with ".so" (or ".sl" for HP-UX), so rename the library14629 # to its proper name (with version) after linking.14630 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'14631 14632 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'14633 hardcode_libdir_separator_CXX=:14634 14635 # Archives containing C++ object files must be created using14636 # the KAI C++ compiler.14637 case $host in14638 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;14639 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;14640 esac14641 ;;14642 RCC*)14643 # Rational C++ 2.4.114644 # FIXME: insert proper C++ library support14645 ld_shlibs_CXX=no14646 ;;14647 cxx*)14648 case $host in14649 osf3*)14650 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'14651 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'14652 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'14653 ;;14654 *)14655 allow_undefined_flag_CXX=' -expect_unresolved \*'14656 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'14657 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~14658 echo "-hidden">> $lib.exp~14659 $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~14660 $RM $lib.exp'14661 hardcode_libdir_flag_spec_CXX='-rpath $libdir'14662 ;;14663 esac14664 14665 hardcode_libdir_separator_CXX=:14666 14667 # Commands to make compiler produce verbose output that lists14668 # what "hidden" libraries, object files and flags are used when14669 # linking a shared library.14670 #14671 # There doesn't appear to be a way to prevent this compiler from14672 # explicitly linking system object files so we need to strip them14673 # from the output so that they don't get included in the library14674 # dependencies.14675 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"'14676 ;;14677 *)14678 if test yes,no = "$GXX,$with_gnu_ld"; then14679 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'14680 case $host in14681 osf3*)14682 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'14683 ;;14684 *)14685 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'14686 ;;14687 esac14688 14689 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'14690 hardcode_libdir_separator_CXX=:14691 14692 # Commands to make compiler produce verbose output that lists14693 # what "hidden" libraries, object files and flags are used when14694 # linking a shared library.14695 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'14696 14697 else14698 # FIXME: insert proper C++ library support14699 ld_shlibs_CXX=no14700 fi14701 ;;14702 esac14703 ;;14704 14705 psos*)14706 # FIXME: insert proper C++ library support14707 ld_shlibs_CXX=no14708 ;;14709 14710 sunos4*)14711 case $cc_basename in14712 CC*)14713 # Sun C++ 4.x14714 # FIXME: insert proper C++ library support14715 ld_shlibs_CXX=no14716 ;;14717 lcc*)14718 # Lucid14719 # FIXME: insert proper C++ library support14720 ld_shlibs_CXX=no14721 ;;14722 *)14723 # FIXME: insert proper C++ library support14724 ld_shlibs_CXX=no14725 ;;14726 esac14727 ;;14728 14729 solaris*)14730 case $cc_basename in14731 CC* | sunCC*)14732 # Sun C++ 4.2, 5.x and Centerline C++14733 archive_cmds_need_lc_CXX=yes14734 no_undefined_flag_CXX=' -zdefs'14735 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14736 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~14737 $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'14738 14739 hardcode_libdir_flag_spec_CXX='-R$libdir'14740 hardcode_shlibpath_var_CXX=no14741 case $host_os in14742 solaris2.[0-5] | solaris2.[0-5].*) ;;14743 *)14744 # The compiler driver will combine and reorder linker options,14745 # but understands '-z linker_flag'.14746 # Supported since Solaris 2.6 (maybe 2.5.1?)14747 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'14748 ;;14749 esac14750 link_all_deplibs_CXX=yes14751 14752 output_verbose_link_cmd='func_echo_all'14753 14754 # Archives containing C++ object files must be created using14755 # "CC -xar", where "CC" is the Sun C++ compiler. This is14756 # necessary to make sure instantiated templates are included14757 # in the archive.14758 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'14759 ;;14760 gcx*)14761 # Green Hills C++ Compiler14762 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'14763 14764 # The C++ compiler must be used to create the archive.14765 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'14766 ;;14767 *)14768 # GNU C++ compiler with Solaris linker14769 if test yes,no = "$GXX,$with_gnu_ld"; then14770 no_undefined_flag_CXX=' $wl-z ${wl}defs'14771 if $CC --version | $GREP -v '^2\.7' > /dev/null; then14772 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'14773 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~14774 $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'14775 14776 # Commands to make compiler produce verbose output that lists14777 # what "hidden" libraries, object files and flags are used when14778 # linking a shared library.14779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'14780 else14781 # g++ 2.7 appears to require '-G' NOT '-shared' on this14782 # platform.14783 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'14784 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~14785 $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'14786 14787 # Commands to make compiler produce verbose output that lists14788 # what "hidden" libraries, object files and flags are used when14789 # linking a shared library.14790 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'14791 fi14792 14793 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'14794 case $host_os in14795 solaris2.[0-5] | solaris2.[0-5].*) ;;14796 *)14797 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'14798 ;;14799 esac14800 fi14801 ;;14802 esac14803 ;;14804 14805 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)14806 no_undefined_flag_CXX='$wl-z,text'14807 archive_cmds_need_lc_CXX=no14808 hardcode_shlibpath_var_CXX=no14809 runpath_var='LD_RUN_PATH'14810 14811 case $cc_basename in14812 CC*)14813 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14814 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14815 ;;14816 *)14817 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14818 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14819 ;;14820 esac14821 ;;14822 14823 sysv5* | sco3.2v5* | sco5v6*)14824 # Note: We CANNOT use -z defs as we might desire, because we do not14825 # link with -lc, and that would cause any symbols used from libc to14826 # always be unresolved, which means just about no library would14827 # ever link correctly. If we're not using GNU ld we use -z text14828 # though, which does catch some bad symbols but isn't as heavy-handed14829 # as -z defs.14830 no_undefined_flag_CXX='$wl-z,text'14831 allow_undefined_flag_CXX='$wl-z,nodefs'14832 archive_cmds_need_lc_CXX=no14833 hardcode_shlibpath_var_CXX=no14834 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'14835 hardcode_libdir_separator_CXX=':'14836 link_all_deplibs_CXX=yes14837 export_dynamic_flag_spec_CXX='$wl-Bexport'14838 runpath_var='LD_RUN_PATH'14839 14840 case $cc_basename in14841 CC*)14842 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14843 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14844 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~14845 '"$old_archive_cmds_CXX"14846 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~14847 '"$reload_cmds_CXX"14848 ;;14849 *)14850 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14851 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14852 ;;14853 esac14854 ;;14855 14856 tandem*)14857 case $cc_basename in14858 NCC*)14859 # NonStop-UX NCC 3.2014860 # FIXME: insert proper C++ library support14861 ld_shlibs_CXX=no14862 ;;14863 *)14864 # FIXME: insert proper C++ library support14865 ld_shlibs_CXX=no14866 ;;14867 esac14868 ;;14869 14870 vxworks*)14871 # FIXME: insert proper C++ library support14872 ld_shlibs_CXX=no14873 ;;14874 14875 *)14876 # FIXME: insert proper C++ library support14877 ld_shlibs_CXX=no14878 ;;14879 esac14880 14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&514882 $as_echo "$ld_shlibs_CXX" >&6; }14883 test no = "$ld_shlibs_CXX" && can_build_shared=no14884 14885 GCC_CXX=$GXX14886 LD_CXX=$LD14887 14888 ## CAVEAT EMPTOR:14889 ## There is no encapsulation within the following macros, do not change14890 ## the running order or otherwise move them around unless you know exactly14891 ## what you are doing...14892 # Dependencies to place before and after the object being linked:14893 predep_objects_CXX=14894 postdep_objects_CXX=14895 predeps_CXX=14896 postdeps_CXX=14897 compiler_lib_search_path_CXX=14898 14899 cat > conftest.$ac_ext <<_LT_EOF14900 class Foo14901 {14902 public:14903 Foo (void) { a = 0; }14904 private:14905 int a;14906 };14907 _LT_EOF14908 14909 14910 _lt_libdeps_save_CFLAGS=$CFLAGS14911 case "$CC $CFLAGS " in #(14912 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;14913 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;14914 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;14915 esac14916 14917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&514918 (eval $ac_compile) 2>&514919 ac_status=$?14920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514921 test $ac_status = 0; }; then14922 # Parse the compiler output and extract the necessary14923 # objects, libraries and library flags.14924 14925 # Sentinel used to keep track of whether or not we are before14926 # the conftest object file.14927 pre_test_object_deps_done=no14928 14929 for p in `eval "$output_verbose_link_cmd"`; do14930 case $prev$p in14931 14932 -L* | -R* | -l*)14933 # Some compilers place space between "-{L,R}" and the path.14934 # Remove the space.14935 if test x-L = "$p" ||14936 test x-R = "$p"; then14937 prev=$p14938 continue14939 fi14940 14941 # Expand the sysroot to ease extracting the directories later.14942 if test -z "$prev"; then14943 case $p in14944 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;14945 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;14946 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;14947 esac14948 fi14949 case $p in14950 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;14951 esac14952 if test no = "$pre_test_object_deps_done"; then14953 case $prev in14954 -L | -R)14955 # Internal compiler library paths should come after those14956 # provided the user. The postdeps already come after the14957 # user supplied libs so there is no need to process them.14958 if test -z "$compiler_lib_search_path_CXX"; then14959 compiler_lib_search_path_CXX=$prev$p14960 else14961 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"14962 fi14963 ;;14964 # The "-l" case would never come before the object being14965 # linked, so don't bother handling this case.14966 esac14967 else14968 if test -z "$postdeps_CXX"; then14969 postdeps_CXX=$prev$p14970 else14971 postdeps_CXX="${postdeps_CXX} $prev$p"14972 fi14973 fi14974 prev=14975 ;;14976 14977 *.lto.$objext) ;; # Ignore GCC LTO objects14978 *.$objext)14979 # This assumes that the test object file only shows up14980 # once in the compiler output.14981 if test "$p" = "conftest.$objext"; then14982 pre_test_object_deps_done=yes14983 continue14984 fi14985 14986 if test no = "$pre_test_object_deps_done"; then14987 if test -z "$predep_objects_CXX"; then14988 predep_objects_CXX=$p14989 else14990 predep_objects_CXX="$predep_objects_CXX $p"14991 fi14992 else14993 if test -z "$postdep_objects_CXX"; then14994 postdep_objects_CXX=$p14995 else14996 postdep_objects_CXX="$postdep_objects_CXX $p"14997 fi14998 fi14999 ;;15000 15001 *) ;; # Ignore the rest.15002 15003 esac15004 done15005 15006 # Clean up.15007 rm -f a.out a.exe15008 else15009 echo "libtool.m4: error: problem compiling CXX test program"15010 fi15011 15012 $RM -f confest.$objext15013 CFLAGS=$_lt_libdeps_save_CFLAGS15014 15015 # PORTME: override above test on systems where it is broken15016 case $host_os in15017 interix[3-9]*)15018 # Interix 3.5 installs completely hosed .la files for C++, so rather than15019 # hack all around it, let's just trust "g++" to DTRT.15020 predep_objects_CXX=15021 postdep_objects_CXX=15022 postdeps_CXX=15023 ;;15024 esac15025 15026 15027 case " $postdeps_CXX " in15028 *" -lc "*) archive_cmds_need_lc_CXX=no ;;15029 esac15030 compiler_lib_search_dirs_CXX=15031 if test -n "${compiler_lib_search_path_CXX}"; then15032 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`15033 fi15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 lt_prog_compiler_wl_CXX=15066 lt_prog_compiler_pic_CXX=15067 lt_prog_compiler_static_CXX=15068 15069 15070 # C++ specific cases for pic, static, wl, etc.15071 if test yes = "$GXX"; then15072 lt_prog_compiler_wl_CXX='-Wl,'15073 lt_prog_compiler_static_CXX='-static'15074 15075 case $host_os in15076 aix*)15077 # All AIX code is PIC.15078 if test ia64 = "$host_cpu"; then15079 # AIX 5 now supports IA64 processor15080 lt_prog_compiler_static_CXX='-Bstatic'15081 fi15082 lt_prog_compiler_pic_CXX='-fPIC'15083 ;;15084 15085 amigaos*)15086 case $host_cpu in15087 powerpc)15088 # see comment about AmigaOS4 .so support15089 lt_prog_compiler_pic_CXX='-fPIC'15090 ;;15091 m68k)15092 # FIXME: we need at least 68020 code to build shared libraries, but15093 # adding the '-m68020' flag to GCC prevents building anything better,15094 # like '-m68040'.15095 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'15096 ;;15097 esac15098 ;;15099 15100 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)15101 # PIC is the default for these OSes.15102 ;;15103 mingw* | cygwin* | os2* | pw32* | cegcc*)15104 # This hack is so that the source file can tell whether it is being15105 # built for inclusion in a dll (and should export symbols for example).15106 # Although the cygwin gcc ignores -fPIC, still need this for old-style15107 # (--disable-auto-import) libraries15108 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'15109 case $host_os in15110 os2*)15111 lt_prog_compiler_static_CXX='$wl-static'15112 ;;15113 esac15114 ;;15115 darwin* | rhapsody*)15116 # PIC is the default on this platform15117 # Common symbols not allowed in MH_DYLIB files15118 lt_prog_compiler_pic_CXX='-fno-common'15119 ;;15120 *djgpp*)15121 # DJGPP does not support shared libraries at all15122 lt_prog_compiler_pic_CXX=15123 ;;15124 haiku*)15125 # PIC is the default for Haiku.15126 # The "-static" flag exists, but is broken.15127 lt_prog_compiler_static_CXX=15128 ;;15129 interix[3-9]*)15130 # Interix 3.x gcc -fpic/-fPIC options generate broken code.15131 # Instead, we relocate shared libraries at runtime.15132 ;;15133 sysv4*MP*)15134 if test -d /usr/nec; then15135 lt_prog_compiler_pic_CXX=-Kconform_pic15136 fi15137 ;;15138 hpux*)15139 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit15140 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag15141 # sets the default TLS model and affects inlining.15142 case $host_cpu in15143 hppa*64*)15144 ;;15145 *)15146 lt_prog_compiler_pic_CXX='-fPIC'15147 ;;15148 esac15149 ;;15150 *qnx* | *nto*)15151 # QNX uses GNU C++, but need to define -shared option too, otherwise15152 # it will coredump.15153 lt_prog_compiler_pic_CXX='-fPIC -shared'15154 ;;15155 *)15156 lt_prog_compiler_pic_CXX='-fPIC'15157 ;;15158 esac15159 else15160 case $host_os in15161 aix[4-9]*)15162 # All AIX code is PIC.15163 if test ia64 = "$host_cpu"; then15164 # AIX 5 now supports IA64 processor15165 lt_prog_compiler_static_CXX='-Bstatic'15166 else15167 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'15168 fi15169 ;;15170 chorus*)15171 case $cc_basename in15172 cxch68*)15173 # Green Hills C++ Compiler15174 # _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"15175 ;;15176 esac15177 ;;15178 mingw* | cygwin* | os2* | pw32* | cegcc*)15179 # This hack is so that the source file can tell whether it is being15180 # built for inclusion in a dll (and should export symbols for example).15181 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'15182 ;;15183 dgux*)15184 case $cc_basename in15185 ec++*)15186 lt_prog_compiler_pic_CXX='-KPIC'15187 ;;15188 ghcx*)15189 # Green Hills C++ Compiler15190 lt_prog_compiler_pic_CXX='-pic'15191 ;;15192 *)15193 ;;15194 esac15195 ;;15196 freebsd* | dragonfly*)15197 # FreeBSD uses GNU C++15198 ;;15199 hpux9* | hpux10* | hpux11*)15200 case $cc_basename in15201 CC*)15202 lt_prog_compiler_wl_CXX='-Wl,'15203 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'15204 if test ia64 != "$host_cpu"; then15205 lt_prog_compiler_pic_CXX='+Z'15206 fi15207 ;;15208 aCC*)15209 lt_prog_compiler_wl_CXX='-Wl,'15210 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'15211 case $host_cpu in15212 hppa*64*|ia64*)15213 # +Z the default15214 ;;15215 *)15216 lt_prog_compiler_pic_CXX='+Z'15217 ;;15218 esac15219 ;;15220 *)15221 ;;15222 esac15223 ;;15224 interix*)15225 # This is c89, which is MS Visual C++ (no shared libs)15226 # Anyone wants to do a port?15227 ;;15228 irix5* | irix6* | nonstopux*)15229 case $cc_basename in15230 CC*)15231 lt_prog_compiler_wl_CXX='-Wl,'15232 lt_prog_compiler_static_CXX='-non_shared'15233 # CC pic flag -KPIC is the default.15234 ;;15235 *)15236 ;;15237 esac15238 ;;15239 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)15240 case $cc_basename in15241 KCC*)15242 # KAI C++ Compiler15243 lt_prog_compiler_wl_CXX='--backend -Wl,'15244 lt_prog_compiler_pic_CXX='-fPIC'15245 ;;15246 ecpc* )15247 # old Intel C++ for x86_64, which still supported -KPIC.15248 lt_prog_compiler_wl_CXX='-Wl,'15249 lt_prog_compiler_pic_CXX='-KPIC'15250 lt_prog_compiler_static_CXX='-static'15251 ;;15252 icpc* )15253 # Intel C++, used to be incompatible with GCC.15254 # ICC 10 doesn't accept -KPIC any more.15255 lt_prog_compiler_wl_CXX='-Wl,'15256 lt_prog_compiler_pic_CXX='-fPIC'15257 lt_prog_compiler_static_CXX='-static'15258 ;;15259 pgCC* | pgcpp*)15260 # Portland Group C++ compiler15261 lt_prog_compiler_wl_CXX='-Wl,'15262 lt_prog_compiler_pic_CXX='-fpic'15263 lt_prog_compiler_static_CXX='-Bstatic'15264 ;;15265 cxx*)15266 # Compaq C++15267 # Make sure the PIC flag is empty. It appears that all Alpha15268 # Linux and Compaq Tru64 Unix objects are PIC.15269 lt_prog_compiler_pic_CXX=15270 lt_prog_compiler_static_CXX='-non_shared'15271 ;;15272 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)15273 # IBM XL 8.0, 9.0 on PPC and BlueGene15274 lt_prog_compiler_wl_CXX='-Wl,'15275 lt_prog_compiler_pic_CXX='-qpic'15276 lt_prog_compiler_static_CXX='-qstaticlink'15277 ;;15278 *)15279 case `$CC -V 2>&1 | sed 5q` in15280 *Sun\ C*)15281 # Sun C++ 5.915282 lt_prog_compiler_pic_CXX='-KPIC'15283 lt_prog_compiler_static_CXX='-Bstatic'15284 lt_prog_compiler_wl_CXX='-Qoption ld '15285 ;;15286 esac15287 ;;15288 esac15289 ;;15290 lynxos*)15291 ;;15292 m88k*)15293 ;;15294 mvs*)15295 case $cc_basename in15296 cxx*)15297 lt_prog_compiler_pic_CXX='-W c,exportall'15298 ;;15299 *)15300 ;;15301 esac15302 ;;15303 netbsd* | netbsdelf*-gnu)15304 ;;15305 *qnx* | *nto*)15306 # QNX uses GNU C++, but need to define -shared option too, otherwise15307 # it will coredump.15308 lt_prog_compiler_pic_CXX='-fPIC -shared'15309 ;;15310 osf3* | osf4* | osf5*)15311 case $cc_basename in15312 KCC*)15313 lt_prog_compiler_wl_CXX='--backend -Wl,'15314 ;;15315 RCC*)15316 # Rational C++ 2.4.115317 lt_prog_compiler_pic_CXX='-pic'15318 ;;15319 cxx*)15320 # Digital/Compaq C++15321 lt_prog_compiler_wl_CXX='-Wl,'15322 # Make sure the PIC flag is empty. It appears that all Alpha15323 # Linux and Compaq Tru64 Unix objects are PIC.15324 lt_prog_compiler_pic_CXX=15325 lt_prog_compiler_static_CXX='-non_shared'15326 ;;15327 *)15328 ;;15329 esac15330 ;;15331 psos*)15332 ;;15333 solaris*)15334 case $cc_basename in15335 CC* | sunCC*)15336 # Sun C++ 4.2, 5.x and Centerline C++15337 lt_prog_compiler_pic_CXX='-KPIC'15338 lt_prog_compiler_static_CXX='-Bstatic'15339 lt_prog_compiler_wl_CXX='-Qoption ld '15340 ;;15341 gcx*)15342 # Green Hills C++ Compiler15343 lt_prog_compiler_pic_CXX='-PIC'15344 ;;15345 *)15346 ;;15347 esac15348 ;;15349 sunos4*)15350 case $cc_basename in15351 CC*)15352 # Sun C++ 4.x15353 lt_prog_compiler_pic_CXX='-pic'15354 lt_prog_compiler_static_CXX='-Bstatic'15355 ;;15356 lcc*)15357 # Lucid15358 lt_prog_compiler_pic_CXX='-pic'15359 ;;15360 *)15361 ;;15362 esac15363 ;;15364 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)15365 case $cc_basename in15366 CC*)15367 lt_prog_compiler_wl_CXX='-Wl,'15368 lt_prog_compiler_pic_CXX='-KPIC'15369 lt_prog_compiler_static_CXX='-Bstatic'15370 ;;15371 esac15372 ;;15373 tandem*)15374 case $cc_basename in15375 NCC*)15376 # NonStop-UX NCC 3.2015377 lt_prog_compiler_pic_CXX='-KPIC'15378 ;;15379 *)15380 ;;15381 esac15382 ;;15383 vxworks*)15384 ;;15385 *)15386 lt_prog_compiler_can_build_shared_CXX=no15387 ;;15388 esac15389 fi15390 15391 case $host_os in15392 # For platforms that do not support PIC, -DPIC is meaningless:15393 *djgpp*)15394 lt_prog_compiler_pic_CXX=15395 ;;15396 *)15397 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"15398 ;;15399 esac15400 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&515402 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }15403 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :15404 $as_echo_n "(cached) " >&615405 else15406 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX15407 fi15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&515409 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }15410 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX15411 15412 #15413 # Check to make sure the PIC flag actually works.15414 #15415 if test -n "$lt_prog_compiler_pic_CXX"; then15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&515417 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }15418 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :15419 $as_echo_n "(cached) " >&615420 else15421 lt_cv_prog_compiler_pic_works_CXX=no15422 ac_outfile=conftest.$ac_objext15423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext15424 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment15425 # Insert the option either (1) after the last *FLAGS variable, or15426 # (2) before a word containing "conftest.", or (3) at the end.15427 # Note that $ac_compile itself does not contain backslashes and begins15428 # with a dollar sign (not a hyphen), so the echo should work correctly.15429 # The option is referenced via a variable to avoid confusing sed.15430 lt_compile=`echo "$ac_compile" | $SED \15431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \15432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \15433 -e 's:$: $lt_compiler_flag:'`15434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)15435 (eval "$lt_compile" 2>conftest.err)15436 ac_status=$?15437 cat conftest.err >&515438 echo "$as_me:$LINENO: \$? = $ac_status" >&515439 if (exit $ac_status) && test -s "$ac_outfile"; then15440 # The compiler can only warn and ignore the option if not recognized15441 # So say no if there are warnings other than the usual output.15442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp15443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er215444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then15445 lt_cv_prog_compiler_pic_works_CXX=yes15446 fi15447 fi15448 $RM conftest*15449 15450 fi15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&515452 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }15453 15454 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then15455 case $lt_prog_compiler_pic_CXX in15456 "" | " "*) ;;15457 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;15458 esac15459 else15460 lt_prog_compiler_pic_CXX=15461 lt_prog_compiler_can_build_shared_CXX=no15462 fi15463 15464 fi15465 15466 15467 15468 15469 15470 #15471 # Check to make sure the static flag actually works.15472 #15473 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"15474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&515475 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }15476 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :15477 $as_echo_n "(cached) " >&615478 else15479 lt_cv_prog_compiler_static_works_CXX=no15480 save_LDFLAGS=$LDFLAGS15481 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"15482 echo "$lt_simple_link_test_code" > conftest.$ac_ext15483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then15484 # The linker can only warn and ignore the option if not recognized15485 # So say no if there are warnings15486 if test -s conftest.err; then15487 # Append any errors to the config.log.15488 cat conftest.err 1>&515489 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp15490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er215491 if diff conftest.exp conftest.er2 >/dev/null; then15492 lt_cv_prog_compiler_static_works_CXX=yes15493 fi15494 else15495 lt_cv_prog_compiler_static_works_CXX=yes15496 fi15497 fi15498 $RM -r conftest*15499 LDFLAGS=$save_LDFLAGS15500 15501 fi15502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&515503 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }15504 15505 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then15506 :15507 else15508 lt_prog_compiler_static_CXX=15509 fi15510 15511 15512 15513 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&515515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }15516 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :15517 $as_echo_n "(cached) " >&615518 else15519 lt_cv_prog_compiler_c_o_CXX=no15520 $RM -r conftest 2>/dev/null15521 mkdir conftest15522 cd conftest15523 mkdir out15524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext15525 15526 lt_compiler_flag="-o out/conftest2.$ac_objext"15527 # Insert the option either (1) after the last *FLAGS variable, or15528 # (2) before a word containing "conftest.", or (3) at the end.15529 # Note that $ac_compile itself does not contain backslashes and begins15530 # with a dollar sign (not a hyphen), so the echo should work correctly.15531 lt_compile=`echo "$ac_compile" | $SED \15532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \15533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \15534 -e 's:$: $lt_compiler_flag:'`15535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)15536 (eval "$lt_compile" 2>out/conftest.err)15537 ac_status=$?15538 cat out/conftest.err >&515539 echo "$as_me:$LINENO: \$? = $ac_status" >&515540 if (exit $ac_status) && test -s out/conftest2.$ac_objext15541 then15542 # The compiler can only warn and ignore the option if not recognized15543 # So say no if there are warnings15544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp15545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er215546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then15547 lt_cv_prog_compiler_c_o_CXX=yes15548 fi15549 fi15550 chmod u+w . 2>&515551 $RM conftest*15552 # SGI C++ compiler will create directory out/ii_files/ for15553 # template instantiation15554 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files15555 $RM out/* && rmdir out15556 cd ..15557 $RM -r conftest15558 $RM conftest*15559 15560 fi15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&515562 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }15563 15564 15565 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&515567 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }15568 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :15569 $as_echo_n "(cached) " >&615570 else15571 lt_cv_prog_compiler_c_o_CXX=no15572 $RM -r conftest 2>/dev/null15573 mkdir conftest15574 cd conftest15575 mkdir out15576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext15577 15578 lt_compiler_flag="-o out/conftest2.$ac_objext"15579 # Insert the option either (1) after the last *FLAGS variable, or15580 # (2) before a word containing "conftest.", or (3) at the end.15581 # Note that $ac_compile itself does not contain backslashes and begins15582 # with a dollar sign (not a hyphen), so the echo should work correctly.15583 lt_compile=`echo "$ac_compile" | $SED \15584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \15585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \15586 -e 's:$: $lt_compiler_flag:'`15587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)15588 (eval "$lt_compile" 2>out/conftest.err)15589 ac_status=$?15590 cat out/conftest.err >&515591 echo "$as_me:$LINENO: \$? = $ac_status" >&515592 if (exit $ac_status) && test -s out/conftest2.$ac_objext15593 then15594 # The compiler can only warn and ignore the option if not recognized15595 # So say no if there are warnings15596 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp15597 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er215598 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then15599 lt_cv_prog_compiler_c_o_CXX=yes15600 fi15601 fi15602 chmod u+w . 2>&515603 $RM conftest*15604 # SGI C++ compiler will create directory out/ii_files/ for15605 # template instantiation15606 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files15607 $RM out/* && rmdir out15608 cd ..15609 $RM -r conftest15610 $RM conftest*15611 15612 fi15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&515614 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }15615 15616 15617 15618 15619 hard_links=nottested15620 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then15621 # do not overwrite the value of need_locks provided by the user15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&515623 $as_echo_n "checking if we can lock with hard links... " >&6; }15624 hard_links=yes15625 $RM conftest*15626 ln conftest.a conftest.b 2>/dev/null && hard_links=no15627 touch conftest.a15628 ln conftest.a conftest.b 2>&5 || hard_links=no15629 ln conftest.a conftest.b 2>/dev/null && hard_links=no15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&515631 $as_echo "$hard_links" >&6; }15632 if test no = "$hard_links"; then15633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&515634 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}15635 need_locks=warn15636 fi15637 else15638 need_locks=no15639 fi15640 15641 15642 15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&515644 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }15645 15646 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'15647 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'15648 case $host_os in15649 aix[4-9]*)15650 # If we're using GNU nm, then we don't want the "-C" option.15651 # -C means demangle to GNU nm, but means don't demangle to AIX nm.15652 # Without the "-l" option, or with the "-B" option, AIX nm treats15653 # weak defined symbols like other global defined symbols, whereas15654 # GNU nm marks them as "W".15655 # While the 'weak' keyword is ignored in the Export File, we need15656 # it in the Import File for the 'aix-soname' feature, so we have15657 # to replace the "-B" option with "-P" for AIX nm.15658 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then15659 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'15660 else15661 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'15662 fi15663 ;;15664 pw32*)15665 export_symbols_cmds_CXX=$ltdll_cmds15666 ;;15667 cygwin* | mingw* | cegcc*)15668 case $cc_basename in15669 cl*)15670 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'15671 ;;15672 *)15673 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'15674 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'15675 ;;15676 esac15677 ;;15678 linux* | k*bsd*-gnu | gnu*)15679 link_all_deplibs_CXX=no15680 ;;15681 *)15682 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'15683 ;;15684 esac15685 15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&515687 $as_echo "$ld_shlibs_CXX" >&6; }15688 test no = "$ld_shlibs_CXX" && can_build_shared=no15689 15690 with_gnu_ld_CXX=$with_gnu_ld15691 15692 15693 15694 15695 15696 15697 #15698 # Do we need to explicitly link libc?15699 #15700 case "x$archive_cmds_need_lc_CXX" in15701 x|xyes)15702 # Assume -lc should be added15703 archive_cmds_need_lc_CXX=yes15704 15705 if test yes,yes = "$GCC,$enable_shared"; then15706 case $archive_cmds_CXX in15707 *'~'*)15708 # FIXME: we may have to deal with multi-command sequences.15709 ;;15710 '$CC '*)15711 # Test whether the compiler implicitly links with -lc since on some15712 # systems, -lgcc has to come before -lc. If gcc already passes -lc15713 # to ld, don't add -lc before -lgcc.15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&515715 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }15716 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :15717 $as_echo_n "(cached) " >&615718 else15719 $RM conftest*15720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext15721 15722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&515723 (eval $ac_compile) 2>&515724 ac_status=$?15725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&515726 test $ac_status = 0; } 2>conftest.err; then15727 soname=conftest15728 lib=conftest15729 libobjs=conftest.$ac_objext15730 deplibs=15731 wl=$lt_prog_compiler_wl_CXX15732 pic_flag=$lt_prog_compiler_pic_CXX15733 compiler_flags=-v15734 linker_flags=-v15735 verstring=15736 output_objdir=.15737 libname=conftest15738 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX15739 allow_undefined_flag_CXX=15740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&515741 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&515742 ac_status=$?15743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&515744 test $ac_status = 0; }15745 then15746 lt_cv_archive_cmds_need_lc_CXX=no15747 else15748 lt_cv_archive_cmds_need_lc_CXX=yes15749 fi15750 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag15751 else15752 cat conftest.err 1>&515753 fi15754 $RM conftest*15755 15756 fi15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&515758 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }15759 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX15760 ;;15761 esac15762 fi15763 ;;15764 esac15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&515828 $as_echo_n "checking dynamic linker characteristics... " >&6; }15829 15830 library_names_spec=15831 libname_spec='lib$name'15832 soname_spec=15833 shrext_cmds=.so15834 postinstall_cmds=15835 postuninstall_cmds=15836 finish_cmds=15837 finish_eval=15838 shlibpath_var=15839 shlibpath_overrides_runpath=unknown15840 version_type=none15841 dynamic_linker="$host_os ld.so"15842 sys_lib_dlsearch_path_spec="/lib /usr/lib"15843 need_lib_prefix=unknown15844 hardcode_into_libs=no15845 15846 # when you set need_version to no, make sure it does not cause -set_version15847 # flags to be left without arguments15848 need_version=unknown15849 15850 15851 15852 case $host_os in15853 aix3*)15854 version_type=linux # correct to gnu/linux during the next big refactor15855 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'15856 shlibpath_var=LIBPATH15857 15858 # AIX 3 has no versioning support, so we append a major version to the name.15859 soname_spec='$libname$release$shared_ext$major'15860 ;;15861 15862 aix[4-9]*)15863 version_type=linux # correct to gnu/linux during the next big refactor15864 need_lib_prefix=no15865 need_version=no15866 hardcode_into_libs=yes15867 if test ia64 = "$host_cpu"; then15868 # AIX 5 supports IA6415869 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'15870 shlibpath_var=LD_LIBRARY_PATH15871 else15872 # With GCC up to 2.95.x, collect2 would create an import file15873 # for dependence libraries. The import file would start with15874 # the line '#! .'. This would cause the generated library to15875 # depend on '.', always an invalid library. This was fixed in15876 # development snapshots of GCC prior to 3.0.15877 case $host_os in15878 aix4 | aix4.[01] | aix4.[01].*)15879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'15880 echo ' yes '15881 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then15882 :15883 else15884 can_build_shared=no15885 fi15886 ;;15887 esac15888 # Using Import Files as archive members, it is possible to support15889 # filename-based versioning of shared library archives on AIX. While15890 # this would work for both with and without runtime linking, it will15891 # prevent static linking of such archives. So we do filename-based15892 # shared library versioning with .so extension only, which is used15893 # when both runtime linking and shared linking is enabled.15894 # Unfortunately, runtime linking may impact performance, so we do15895 # not want this to be the default eventually. Also, we use the15896 # versioned .so libs for executables only if there is the -brtl15897 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.15898 # To allow for filename-based versioning support, we need to create15899 # libNAME.so.V as an archive file, containing:15900 # *) an Import File, referring to the versioned filename of the15901 # archive as well as the shared archive member, telling the15902 # bitwidth (32 or 64) of that shared object, and providing the15903 # list of exported symbols of that shared object, eventually15904 # decorated with the 'weak' keyword15905 # *) the shared object with the F_LOADONLY flag set, to really avoid15906 # it being seen by the linker.15907 # At run time we better use the real file rather than another symlink,15908 # but for link time we create the symlink libNAME.so -> libNAME.so.V15909 15910 case $with_aix_soname,$aix_use_runtimelinking in15911 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct15912 # soname into executable. Probably we can add versioning support to15913 # collect2, so additional links can be useful in future.15914 aix,yes) # traditional libtool15915 dynamic_linker='AIX unversionable lib.so'15916 # If using run time linking (on AIX 4.2 or later) use lib<name>.so15917 # instead of lib<name>.a to let people know that these are not15918 # typical AIX shared libraries.15919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15920 ;;15921 aix,no) # traditional AIX only15922 dynamic_linker='AIX lib.a(lib.so.V)'15923 # We preserve .a as extension for shared libraries through AIX4.215924 # and later when we are not doing run time linking.15925 library_names_spec='$libname$release.a $libname.a'15926 soname_spec='$libname$release$shared_ext$major'15927 ;;15928 svr4,*) # full svr4 only15929 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"15930 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'15931 # We do not specify a path in Import Files, so LIBPATH fires.15932 shlibpath_overrides_runpath=yes15933 ;;15934 *,yes) # both, prefer svr415935 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"15936 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'15937 # unpreferred sharedlib libNAME.a needs extra handling15938 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"'15939 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"'15940 # We do not specify a path in Import Files, so LIBPATH fires.15941 shlibpath_overrides_runpath=yes15942 ;;15943 *,no) # both, prefer aix15944 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"15945 library_names_spec='$libname$release.a $libname.a'15946 soname_spec='$libname$release$shared_ext$major'15947 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling15948 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)'15949 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"'15950 ;;15951 esac15952 shlibpath_var=LIBPATH15953 fi15954 ;;15955 15956 amigaos*)15957 case $host_cpu in15958 powerpc)15959 # Since July 2007 AmigaOS4 officially supports .so libraries.15960 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.15961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15962 ;;15963 m68k)15964 library_names_spec='$libname.ixlibrary $libname.a'15965 # Create ${libname}_ixlibrary.a entries in /sys/libs.15966 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'15967 ;;15968 esac15969 ;;15970 15971 beos*)15972 library_names_spec='$libname$shared_ext'15973 dynamic_linker="$host_os ld.so"15974 shlibpath_var=LIBRARY_PATH15975 ;;15976 15977 bsdi[45]*)15978 version_type=linux # correct to gnu/linux during the next big refactor15979 need_version=no15980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15981 soname_spec='$libname$release$shared_ext$major'15982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'15983 shlibpath_var=LD_LIBRARY_PATH15984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"15985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"15986 # the default ld.so.conf also contains /usr/contrib/lib and15987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow15988 # libtool to hard-code these into programs15989 ;;15990 15991 cygwin* | mingw* | pw32* | cegcc*)15992 version_type=windows15993 shrext_cmds=.dll15994 need_version=no15995 need_lib_prefix=no15996 15997 case $GCC,$cc_basename in15998 yes,*)15999 # gcc16000 library_names_spec='$libname.dll.a'16001 # DLL is installed to $(libdir)/../bin by postinstall_cmds16002 postinstall_cmds='base_file=`basename \$file`~16003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~16004 dldir=$destdir/`dirname \$dlpath`~16005 test -d \$dldir || mkdir -p \$dldir~16006 $install_prog $dir/$dlname \$dldir/$dlname~16007 chmod a+x \$dldir/$dlname~16008 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then16009 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;16010 fi'16011 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~16012 dlpath=$dir/\$dldll~16013 $RM \$dlpath'16014 shlibpath_overrides_runpath=yes16015 16016 case $host_os in16017 cygwin*)16018 # Cygwin DLLs use 'cyg' prefix rather than 'lib'16019 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'16020 16021 ;;16022 mingw* | cegcc*)16023 # MinGW DLLs use traditional 'lib' prefix16024 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'16025 ;;16026 pw32*)16027 # pw32 DLLs use 'pw' prefix rather than 'lib'16028 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'16029 ;;16030 esac16031 dynamic_linker='Win32 ld.exe'16032 ;;16033 16034 *,cl*)16035 # Native MSVC16036 libname_spec='$name'16037 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'16038 library_names_spec='$libname.dll.lib'16039 16040 case $build_os in16041 mingw*)16042 sys_lib_search_path_spec=16043 lt_save_ifs=$IFS16044 IFS=';'16045 for lt_path in $LIB16046 do16047 IFS=$lt_save_ifs16048 # Let DOS variable expansion print the short 8.3 style file name.16049 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`16050 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"16051 done16052 IFS=$lt_save_ifs16053 # Convert to MSYS style.16054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`16055 ;;16056 cygwin*)16057 # Convert to unix form, then to dos form, then back to unix form16058 # but this time dos style (no spaces!) so that the unix form looks16059 # like /cygdrive/c/PROGRA~1:/cygdr...16060 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`16061 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`16062 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`16063 ;;16064 *)16065 sys_lib_search_path_spec=$LIB16066 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then16067 # It is most probably a Windows format PATH.16068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`16069 else16070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`16071 fi16072 # FIXME: find the short name or the path components, as spaces are16073 # common. (e.g. "Program Files" -> "PROGRA~1")16074 ;;16075 esac16076 16077 # DLL is installed to $(libdir)/../bin by postinstall_cmds16078 postinstall_cmds='base_file=`basename \$file`~16079 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~16080 dldir=$destdir/`dirname \$dlpath`~16081 test -d \$dldir || mkdir -p \$dldir~16082 $install_prog $dir/$dlname \$dldir/$dlname'16083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~16084 dlpath=$dir/\$dldll~16085 $RM \$dlpath'16086 shlibpath_overrides_runpath=yes16087 dynamic_linker='Win32 link.exe'16088 ;;16089 16090 *)16091 # Assume MSVC wrapper16092 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'16093 dynamic_linker='Win32 ld.exe'16094 ;;16095 esac16096 # FIXME: first we should search . and the directory the executable is in16097 shlibpath_var=PATH16098 ;;16099 16100 darwin* | rhapsody*)16101 dynamic_linker="$host_os dyld"16102 version_type=darwin16103 need_lib_prefix=no16104 need_version=no16105 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'16106 soname_spec='$libname$release$major$shared_ext'16107 shlibpath_overrides_runpath=yes16108 shlibpath_var=DYLD_LIBRARY_PATH16109 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'16110 16111 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'16112 ;;16113 16114 dgux*)16115 version_type=linux # correct to gnu/linux during the next big refactor16116 need_lib_prefix=no16117 need_version=no16118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16119 soname_spec='$libname$release$shared_ext$major'16120 shlibpath_var=LD_LIBRARY_PATH16121 ;;16122 16123 freebsd* | dragonfly*)16124 # DragonFly does not have aout. When/if they implement a new16125 # versioning mechanism, adjust this.16126 if test -x /usr/bin/objformat; then16127 objformat=`/usr/bin/objformat`16128 else16129 case $host_os in16130 freebsd[23].*) objformat=aout ;;16131 *) objformat=elf ;;16132 esac16133 fi16134 version_type=freebsd-$objformat16135 case $version_type in16136 freebsd-elf*)16137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16138 soname_spec='$libname$release$shared_ext$major'16139 need_version=no16140 need_lib_prefix=no16141 ;;16142 freebsd-*)16143 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'16144 need_version=yes16145 ;;16146 esac16147 shlibpath_var=LD_LIBRARY_PATH16148 case $host_os in16149 freebsd2.*)16150 shlibpath_overrides_runpath=yes16151 ;;16152 freebsd3.[01]* | freebsdelf3.[01]*)16153 shlibpath_overrides_runpath=yes16154 hardcode_into_libs=yes16155 ;;16156 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \16157 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)16158 shlibpath_overrides_runpath=no16159 hardcode_into_libs=yes16160 ;;16161 *) # from 4.6 on, and DragonFly16162 shlibpath_overrides_runpath=yes16163 hardcode_into_libs=yes16164 ;;16165 esac16166 ;;16167 16168 haiku*)16169 version_type=linux # correct to gnu/linux during the next big refactor16170 need_lib_prefix=no16171 need_version=no16172 dynamic_linker="$host_os runtime_loader"16173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16174 soname_spec='$libname$release$shared_ext$major'16175 shlibpath_var=LIBRARY_PATH16176 shlibpath_overrides_runpath=no16177 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'16178 hardcode_into_libs=yes16179 ;;16180 16181 hpux9* | hpux10* | hpux11*)16182 # Give a soname corresponding to the major version so that dld.sl refuses to16183 # link against other versions.16184 version_type=sunos16185 need_lib_prefix=no16186 need_version=no16187 case $host_cpu in16188 ia64*)16189 shrext_cmds='.so'16190 hardcode_into_libs=yes16191 dynamic_linker="$host_os dld.so"16192 shlibpath_var=LD_LIBRARY_PATH16193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.16194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16195 soname_spec='$libname$release$shared_ext$major'16196 if test 32 = "$HPUX_IA64_MODE"; then16197 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"16198 sys_lib_dlsearch_path_spec=/usr/lib/hpux3216199 else16200 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"16201 sys_lib_dlsearch_path_spec=/usr/lib/hpux6416202 fi16203 ;;16204 hppa*64*)16205 shrext_cmds='.sl'16206 hardcode_into_libs=yes16207 dynamic_linker="$host_os dld.sl"16208 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH16209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.16210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16211 soname_spec='$libname$release$shared_ext$major'16212 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"16213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec16214 ;;16215 *)16216 shrext_cmds='.sl'16217 dynamic_linker="$host_os dld.sl"16218 shlibpath_var=SHLIB_PATH16219 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH16220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16221 soname_spec='$libname$release$shared_ext$major'16222 ;;16223 esac16224 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...16225 postinstall_cmds='chmod 555 $lib'16226 # or fails outright, so override atomically:16227 install_override_mode=55516228 ;;16229 16230 interix[3-9]*)16231 version_type=linux # correct to gnu/linux during the next big refactor16232 need_lib_prefix=no16233 need_version=no16234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16235 soname_spec='$libname$release$shared_ext$major'16236 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'16237 shlibpath_var=LD_LIBRARY_PATH16238 shlibpath_overrides_runpath=no16239 hardcode_into_libs=yes16240 ;;16241 16242 irix5* | irix6* | nonstopux*)16243 case $host_os in16244 nonstopux*) version_type=nonstopux ;;16245 *)16246 if test yes = "$lt_cv_prog_gnu_ld"; then16247 version_type=linux # correct to gnu/linux during the next big refactor16248 else16249 version_type=irix16250 fi ;;16251 esac16252 need_lib_prefix=no16253 need_version=no16254 soname_spec='$libname$release$shared_ext$major'16255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'16256 case $host_os in16257 irix5* | nonstopux*)16258 libsuff= shlibsuff=16259 ;;16260 *)16261 case $LD in # libtool.m4 will add one of these switches to LD16262 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")16263 libsuff= shlibsuff= libmagic=32-bit;;16264 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")16265 libsuff=32 shlibsuff=N32 libmagic=N32;;16266 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")16267 libsuff=64 shlibsuff=64 libmagic=64-bit;;16268 *) libsuff= shlibsuff= libmagic=never-match;;16269 esac16270 ;;16271 esac16272 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH16273 shlibpath_overrides_runpath=no16274 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"16275 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"16276 hardcode_into_libs=yes16277 ;;16278 16279 # No shared lib support for Linux oldld, aout, or coff.16280 linux*oldld* | linux*aout* | linux*coff*)16281 dynamic_linker=no16282 ;;16283 16284 linux*android*)16285 version_type=none # Android doesn't support versioned libraries.16286 need_lib_prefix=no16287 need_version=no16288 library_names_spec='$libname$release$shared_ext'16289 soname_spec='$libname$release$shared_ext'16290 finish_cmds=16291 shlibpath_var=LD_LIBRARY_PATH16292 shlibpath_overrides_runpath=yes16293 16294 # This implies no fast_install, which is unacceptable.16295 # Some rework will be needed to allow for fast_install16296 # before this can be enabled.16297 hardcode_into_libs=yes16298 16299 dynamic_linker='Android linker'16300 # Don't embed -rpath directories since the linker doesn't support them.16301 hardcode_libdir_flag_spec_CXX='-L$libdir'16302 ;;16303 16304 # This must be glibc/ELF.16305 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)16306 version_type=linux # correct to gnu/linux during the next big refactor16307 need_lib_prefix=no16308 need_version=no16309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16310 soname_spec='$libname$release$shared_ext$major'16311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'16312 shlibpath_var=LD_LIBRARY_PATH16313 shlibpath_overrides_runpath=no16314 16315 # Some binutils ld are patched to set DT_RUNPATH16316 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :16317 $as_echo_n "(cached) " >&616318 else16319 lt_cv_shlibpath_overrides_runpath=no16320 save_LDFLAGS=$LDFLAGS16321 save_libdir=$libdir16322 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \16323 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16325 /* end confdefs.h. */16326 16327 int16328 main ()16329 {16330 16331 ;16332 return 0;16333 }16334 _ACEOF16335 if ac_fn_cxx_try_link "$LINENO"; then :16336 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :16337 lt_cv_shlibpath_overrides_runpath=yes16338 fi16339 fi16340 rm -f core conftest.err conftest.$ac_objext \16341 conftest$ac_exeext conftest.$ac_ext16342 LDFLAGS=$save_LDFLAGS16343 libdir=$save_libdir16344 16345 fi16346 16347 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath16348 16349 # This implies no fast_install, which is unacceptable.16350 # Some rework will be needed to allow for fast_install16351 # before this can be enabled.16352 hardcode_into_libs=yes16353 16354 # Ideally, we could use ldconfig to report *all* directores which are16355 # searched for libraries, however this is still not possible. Aside from not16356 # being certain /sbin/ldconfig is available, command16357 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,16358 # even though it is searched at run-time. Try to do the best guess by16359 # appending ld.so.conf contents (and includes) to the search path.16360 if test -f /etc/ld.so.conf; then16361 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' ' '`16362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"16363 fi16364 16365 # We used to test for /lib/ld.so.1 and disable shared libraries on16366 # powerpc, because MkLinux only supported shared libraries with the16367 # GNU dynamic linker. Since this was broken with cross compilers,16368 # most powerpc-linux boxes support dynamic linking these days and16369 # people can always --disable-shared, the test was removed, and we16370 # assume the GNU/Linux dynamic linker is in use.16371 dynamic_linker='GNU/Linux ld.so'16372 ;;16373 16374 netbsdelf*-gnu)16375 version_type=linux16376 need_lib_prefix=no16377 need_version=no16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'16379 soname_spec='${libname}${release}${shared_ext}$major'16380 shlibpath_var=LD_LIBRARY_PATH16381 shlibpath_overrides_runpath=no16382 hardcode_into_libs=yes16383 dynamic_linker='NetBSD ld.elf_so'16384 ;;16385 16386 netbsd*)16387 version_type=sunos16388 need_lib_prefix=no16389 need_version=no16390 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then16391 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'16392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'16393 dynamic_linker='NetBSD (a.out) ld.so'16394 else16395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16396 soname_spec='$libname$release$shared_ext$major'16397 dynamic_linker='NetBSD ld.elf_so'16398 fi16399 shlibpath_var=LD_LIBRARY_PATH16400 shlibpath_overrides_runpath=yes16401 hardcode_into_libs=yes16402 ;;16403 16404 newsos6)16405 version_type=linux # correct to gnu/linux during the next big refactor16406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16407 shlibpath_var=LD_LIBRARY_PATH16408 shlibpath_overrides_runpath=yes16409 ;;16410 16411 *nto* | *qnx*)16412 version_type=qnx16413 need_lib_prefix=no16414 need_version=no16415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16416 soname_spec='$libname$release$shared_ext$major'16417 shlibpath_var=LD_LIBRARY_PATH16418 shlibpath_overrides_runpath=no16419 hardcode_into_libs=yes16420 dynamic_linker='ldqnx.so'16421 ;;16422 16423 openbsd* | bitrig*)16424 version_type=sunos16425 sys_lib_dlsearch_path_spec=/usr/lib16426 need_lib_prefix=no16427 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then16428 need_version=no16429 else16430 need_version=yes16431 fi16432 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'16433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'16434 shlibpath_var=LD_LIBRARY_PATH16435 shlibpath_overrides_runpath=yes16436 ;;16437 16438 os2*)16439 libname_spec='$name'16440 version_type=windows16441 shrext_cmds=.dll16442 need_version=no16443 need_lib_prefix=no16444 # OS/2 can only load a DLL with a base name of 8 characters or less.16445 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";16446 v=$($ECHO $release$versuffix | tr -d .-);16447 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);16448 $ECHO $n$v`$shared_ext'16449 library_names_spec='${libname}_dll.$libext'16450 dynamic_linker='OS/2 ld.exe'16451 shlibpath_var=BEGINLIBPATH16452 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"16453 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec16454 postinstall_cmds='base_file=`basename \$file`~16455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~16456 dldir=$destdir/`dirname \$dlpath`~16457 test -d \$dldir || mkdir -p \$dldir~16458 $install_prog $dir/$dlname \$dldir/$dlname~16459 chmod a+x \$dldir/$dlname~16460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then16461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;16462 fi'16463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~16464 dlpath=$dir/\$dldll~16465 $RM \$dlpath'16466 ;;16467 16468 osf3* | osf4* | osf5*)16469 version_type=osf16470 need_lib_prefix=no16471 need_version=no16472 soname_spec='$libname$release$shared_ext$major'16473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16474 shlibpath_var=LD_LIBRARY_PATH16475 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"16476 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec16477 ;;16478 16479 rdos*)16480 dynamic_linker=no16481 ;;16482 16483 solaris*)16484 version_type=linux # correct to gnu/linux during the next big refactor16485 need_lib_prefix=no16486 need_version=no16487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16488 soname_spec='$libname$release$shared_ext$major'16489 shlibpath_var=LD_LIBRARY_PATH16490 shlibpath_overrides_runpath=yes16491 hardcode_into_libs=yes16492 # ldd complains unless libraries are executable16493 postinstall_cmds='chmod +x $lib'16494 ;;16495 16496 sunos4*)16497 version_type=sunos16498 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'16499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'16500 shlibpath_var=LD_LIBRARY_PATH16501 shlibpath_overrides_runpath=yes16502 if test yes = "$with_gnu_ld"; then16503 need_lib_prefix=no16504 fi16505 need_version=yes16506 ;;16507 16508 sysv4 | sysv4.3*)16509 version_type=linux # correct to gnu/linux during the next big refactor16510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16511 soname_spec='$libname$release$shared_ext$major'16512 shlibpath_var=LD_LIBRARY_PATH16513 case $host_vendor in16514 sni)16515 shlibpath_overrides_runpath=no16516 need_lib_prefix=no16517 runpath_var=LD_RUN_PATH16518 ;;16519 siemens)16520 need_lib_prefix=no16521 ;;16522 motorola)16523 need_lib_prefix=no16524 need_version=no16525 shlibpath_overrides_runpath=no16526 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'16527 ;;16528 esac16529 ;;16530 16531 sysv4*MP*)16532 if test -d /usr/nec; then16533 version_type=linux # correct to gnu/linux during the next big refactor16534 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'16535 soname_spec='$libname$shared_ext.$major'16536 shlibpath_var=LD_LIBRARY_PATH16537 fi16538 ;;16539 16540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)16541 version_type=sco16542 need_lib_prefix=no16543 need_version=no16544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'16545 soname_spec='$libname$release$shared_ext$major'16546 shlibpath_var=LD_LIBRARY_PATH16547 shlibpath_overrides_runpath=yes16548 hardcode_into_libs=yes16549 if test yes = "$with_gnu_ld"; then16550 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'16551 else16552 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'16553 case $host_os in16554 sco3.2v5*)16555 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"16556 ;;16557 esac16558 fi16559 sys_lib_dlsearch_path_spec='/usr/lib'16560 ;;16561 16562 tpf*)16563 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.16564 version_type=linux # correct to gnu/linux during the next big refactor16565 need_lib_prefix=no16566 need_version=no16567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16568 shlibpath_var=LD_LIBRARY_PATH16569 shlibpath_overrides_runpath=no16570 hardcode_into_libs=yes16571 ;;16572 16573 uts4*)16574 version_type=linux # correct to gnu/linux during the next big refactor16575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16576 soname_spec='$libname$release$shared_ext$major'16577 shlibpath_var=LD_LIBRARY_PATH16578 ;;16579 16580 *)16581 dynamic_linker=no16582 ;;16583 esac16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&516585 $as_echo "$dynamic_linker" >&6; }16586 test no = "$dynamic_linker" && can_build_shared=no16587 16588 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"16589 if test yes = "$GCC"; then16590 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"16591 fi16592 16593 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then16594 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec16595 fi16596 16597 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then16598 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec16599 fi16600 16601 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...16602 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec16603 16604 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code16605 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"16606 16607 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool16608 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&516650 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }16651 hardcode_action_CXX=16652 if test -n "$hardcode_libdir_flag_spec_CXX" ||16653 test -n "$runpath_var_CXX" ||16654 test yes = "$hardcode_automatic_CXX"; then16655 16656 # We can hardcode non-existent directories.16657 if test no != "$hardcode_direct_CXX" &&16658 # If the only mechanism to avoid hardcoding is shlibpath_var, we16659 # have to relink, otherwise we might link with an installed library16660 # when we should be linking with a yet-to-be-installed one16661 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&16662 test no != "$hardcode_minus_L_CXX"; then16663 # Linking always hardcodes the temporary library directory.16664 hardcode_action_CXX=relink16665 else16666 # We can link without hardcoding, and we can hardcode nonexisting dirs.16667 hardcode_action_CXX=immediate16668 fi16669 else16670 # We cannot hardcode anything, or else we can only hardcode existing16671 # directories.16672 hardcode_action_CXX=unsupported16673 fi16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&516675 $as_echo "$hardcode_action_CXX" >&6; }16676 16677 if test relink = "$hardcode_action_CXX" ||16678 test yes = "$inherit_rpath_CXX"; then16679 # Fast installation is not supported16680 enable_fast_install=no16681 elif test yes = "$shlibpath_overrides_runpath" ||16682 test no = "$enable_shared"; then16683 # Fast installation is not necessary16684 enable_fast_install=needless16685 fi16686 16687 16688 16689 16690 16691 16692 16693 fi # test -n "$compiler"16694 16695 CC=$lt_save_CC16696 CFLAGS=$lt_save_CFLAGS16697 LDCXX=$LD16698 LD=$lt_save_LD16699 GCC=$lt_save_GCC16700 with_gnu_ld=$lt_save_with_gnu_ld16701 lt_cv_path_LDCXX=$lt_cv_path_LD16702 lt_cv_path_LD=$lt_save_path_LD16703 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld16704 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld16705 fi # test yes != "$_lt_caught_CXX_error"16706 16707 ac_ext=c16708 ac_cpp='$CPP $CPPFLAGS'16709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16711 ac_compiler_gnu=$ac_cv_c_compiler_gnu16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 ac_config_commands="$ac_config_commands libtool"16728 16729 16730 16731 16732 # Only expand once:16733 16734 16735 16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&516737 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }16738 set x ${MAKE-make}16739 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`16740 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :16741 $as_echo_n "(cached) " >&616742 else16743 cat >conftest.make <<\_ACEOF16744 SHELL = /bin/sh16745 all:16746 @echo '@@@%%%=$(MAKE)=@@@%%%'16747 _ACEOF16748 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.16749 case `${MAKE-make} -f conftest.make 2>/dev/null` in16750 *@@@%%%=?*=@@@%%%*)16751 eval ac_cv_prog_make_${ac_make}_set=yes;;16752 *)16753 eval ac_cv_prog_make_${ac_make}_set=no;;16754 esac16755 rm -f conftest.make16756 fi16757 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&516759 $as_echo "yes" >&6; }16760 SET_MAKE=16761 else16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516763 $as_echo "no" >&6; }16764 SET_MAKE="MAKE=${MAKE-make}"16765 fi16766 16767 16768 # Checks for libraries.16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fibre::yield in -lfibre" >&516770 $as_echo_n "checking for Fibre::yield in -lfibre... " >&6; }16771 if ${ac_cv_lib_fibre_Fibre__yield+:} false; then :16772 $as_echo_n "(cached) " >&616773 else16774 ac_check_lib_save_LIBS=$LIBS16775 LIBS="-lfibre $LIBS"16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16777 /* end confdefs.h. */16778 16779 /* Override any GCC internal prototype to avoid an error.16780 Use char because int might match the return type of a GCC16781 builtin and then its argument prototype would still apply. */16782 #ifdef __cplusplus16783 extern "C"16784 #endif16785 char Fibre::yield ();16786 int16787 main ()16788 {16789 return Fibre::yield ();16790 ;16791 return 0;16792 }16793 _ACEOF16794 if ac_fn_c_try_link "$LINENO"; then :16795 ac_cv_lib_fibre_Fibre__yield=yes16796 else16797 ac_cv_lib_fibre_Fibre__yield=no16798 fi16799 rm -f core conftest.err conftest.$ac_objext \16800 conftest$ac_exeext conftest.$ac_ext16801 LIBS=$ac_check_lib_save_LIBS16802 fi16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fibre_Fibre__yield" >&516804 $as_echo "$ac_cv_lib_fibre_Fibre__yield" >&6; }16805 if test "x$ac_cv_lib_fibre_Fibre__yield" = xyes; then :16806 HAVE_LIBFIBRE=116807 else16808 HAVE_LIBFIBRE=016809 fi16810 16811 if test "$HAVE_LIBFIBRE" -eq 1; then16812 WITH_LIBFIBRE_TRUE=16813 WITH_LIBFIBRE_FALSE='#'16814 else16815 WITH_LIBFIBRE_TRUE='#'16816 WITH_LIBFIBRE_FALSE=16817 fi16818 16819 16820 # Checks for header files.16821 5892 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16822 5893 if test "x$ac_cv_type_size_t" = xyes; then : … … 17309 6380 fi 17310 6381 done 17311 17312 17313 #==============================================================================17314 # backend compiler implementation17315 17316 cat >>confdefs.h <<_ACEOF17317 #define CFA_BACKEND_CC "${CC}"17318 _ACEOF17319 17320 6382 17321 6383 … … 18062 7124 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18063 7125 18064 18065 # The HP-UX ksh and POSIX shell print the target directory to stdout18066 # if CDPATH is set.18067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH18068 18069 sed_quote_subst='$sed_quote_subst'18070 double_quote_subst='$double_quote_subst'18071 delay_variable_subst='$delay_variable_subst'18072 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'18073 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'18074 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'18075 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'18076 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'18077 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'18078 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'18079 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'18080 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'18081 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'18082 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'18083 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'18084 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'18085 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'18086 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'18087 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'18088 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'18089 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'18090 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'18091 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'18092 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'18093 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'18094 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'18095 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'18096 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'18097 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'18098 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'18099 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'18100 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'18101 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'18102 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'18103 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'18104 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'18105 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'18106 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'18107 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'18108 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'18109 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'18110 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'18111 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'18112 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'18113 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'18114 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'18115 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'18116 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'18117 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'18118 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'18119 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'18120 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'18121 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'18122 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'18123 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'18124 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'18125 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'18126 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'18127 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'18128 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'18129 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'18130 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"`'18131 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'18132 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'18133 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'18134 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'18135 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'18136 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'18137 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'18138 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'18139 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'18140 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'18141 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'18142 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'18143 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'18144 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'18145 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'18146 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'18147 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'18148 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'18149 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'18150 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'18151 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'18152 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'18153 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'18154 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'18155 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'18156 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'18157 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'18158 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'18159 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'18160 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'18161 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'18162 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'18163 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'18164 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'18165 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'18166 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'18167 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'18168 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'18169 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'18170 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'18171 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'18172 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'18173 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'18174 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'18175 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'18176 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'18177 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'18178 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'18179 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'18180 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'18181 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'18182 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'18183 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'18184 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'18185 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'18186 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'18187 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'18188 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'18189 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'18190 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'18191 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'18192 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'18193 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'18194 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'18195 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'18196 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'18197 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'18198 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'18199 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'18200 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'18201 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'18202 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'18203 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'18204 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'18205 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'18206 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'18207 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'18208 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'18209 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'18210 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'18211 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'18212 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'18213 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'18214 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'18215 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'18216 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'18217 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'18218 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'18219 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'18220 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'18221 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'18222 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'18223 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'18224 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'18225 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'18226 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'18227 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'18228 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'18229 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'18230 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'18231 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'18232 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'18233 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'18234 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'18235 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'18236 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'18237 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'18238 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'18239 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'18240 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'18241 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'18242 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'18243 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'18244 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'18245 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'18246 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'18247 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'18248 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'18249 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'18250 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'18251 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'18252 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'18253 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'18254 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'18255 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'18256 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'18257 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'18258 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'18259 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'18260 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'18261 18262 LTCC='$LTCC'18263 LTCFLAGS='$LTCFLAGS'18264 compiler='$compiler_DEFAULT'18265 18266 # A function that is used when there is no print builtin or printf.18267 func_fallback_echo ()18268 {18269 eval 'cat <<_LTECHO_EOF18270 \$118271 _LTECHO_EOF'18272 }18273 18274 # Quote evaled strings.18275 for var in SHELL \18276 ECHO \18277 PATH_SEPARATOR \18278 SED \18279 GREP \18280 EGREP \18281 FGREP \18282 LD \18283 NM \18284 LN_S \18285 lt_SP2NL \18286 lt_NL2SP \18287 reload_flag \18288 OBJDUMP \18289 deplibs_check_method \18290 file_magic_cmd \18291 file_magic_glob \18292 want_nocaseglob \18293 DLLTOOL \18294 sharedlib_from_linklib_cmd \18295 AR \18296 AR_FLAGS \18297 archiver_list_spec \18298 STRIP \18299 RANLIB \18300 CC \18301 CFLAGS \18302 compiler \18303 lt_cv_sys_global_symbol_pipe \18304 lt_cv_sys_global_symbol_to_cdecl \18305 lt_cv_sys_global_symbol_to_import \18306 lt_cv_sys_global_symbol_to_c_name_address \18307 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \18308 lt_cv_nm_interface \18309 nm_file_list_spec \18310 lt_cv_truncate_bin \18311 lt_prog_compiler_no_builtin_flag \18312 lt_prog_compiler_pic \18313 lt_prog_compiler_wl \18314 lt_prog_compiler_static \18315 lt_cv_prog_compiler_c_o \18316 need_locks \18317 MANIFEST_TOOL \18318 DSYMUTIL \18319 NMEDIT \18320 LIPO \18321 OTOOL \18322 OTOOL64 \18323 shrext_cmds \18324 export_dynamic_flag_spec \18325 whole_archive_flag_spec \18326 compiler_needs_object \18327 with_gnu_ld \18328 allow_undefined_flag \18329 no_undefined_flag \18330 hardcode_libdir_flag_spec \18331 hardcode_libdir_separator \18332 exclude_expsyms \18333 include_expsyms \18334 file_list_spec \18335 variables_saved_for_relink \18336 libname_spec \18337 library_names_spec \18338 soname_spec \18339 install_override_mode \18340 finish_eval \18341 old_striplib \18342 striplib \18343 compiler_lib_search_dirs \18344 predep_objects \18345 postdep_objects \18346 predeps \18347 postdeps \18348 compiler_lib_search_path \18349 LD_CXX \18350 reload_flag_CXX \18351 compiler_CXX \18352 lt_prog_compiler_no_builtin_flag_CXX \18353 lt_prog_compiler_pic_CXX \18354 lt_prog_compiler_wl_CXX \18355 lt_prog_compiler_static_CXX \18356 lt_cv_prog_compiler_c_o_CXX \18357 export_dynamic_flag_spec_CXX \18358 whole_archive_flag_spec_CXX \18359 compiler_needs_object_CXX \18360 with_gnu_ld_CXX \18361 allow_undefined_flag_CXX \18362 no_undefined_flag_CXX \18363 hardcode_libdir_flag_spec_CXX \18364 hardcode_libdir_separator_CXX \18365 exclude_expsyms_CXX \18366 include_expsyms_CXX \18367 file_list_spec_CXX \18368 compiler_lib_search_dirs_CXX \18369 predep_objects_CXX \18370 postdep_objects_CXX \18371 predeps_CXX \18372 postdeps_CXX \18373 compiler_lib_search_path_CXX; do18374 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in18375 *[\\\\\\\`\\"\\\$]*)18376 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes18377 ;;18378 *)18379 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""18380 ;;18381 esac18382 done18383 18384 # Double-quote double-evaled strings.18385 for var in reload_cmds \18386 old_postinstall_cmds \18387 old_postuninstall_cmds \18388 old_archive_cmds \18389 extract_expsyms_cmds \18390 old_archive_from_new_cmds \18391 old_archive_from_expsyms_cmds \18392 archive_cmds \18393 archive_expsym_cmds \18394 module_cmds \18395 module_expsym_cmds \18396 export_symbols_cmds \18397 prelink_cmds \18398 postlink_cmds \18399 postinstall_cmds \18400 postuninstall_cmds \18401 finish_cmds \18402 sys_lib_search_path_spec \18403 configure_time_dlsearch_path \18404 configure_time_lt_sys_library_path \18405 reload_cmds_CXX \18406 old_archive_cmds_CXX \18407 old_archive_from_new_cmds_CXX \18408 old_archive_from_expsyms_cmds_CXX \18409 archive_cmds_CXX \18410 archive_expsym_cmds_CXX \18411 module_cmds_CXX \18412 module_expsym_cmds_CXX \18413 export_symbols_cmds_CXX \18414 prelink_cmds_CXX \18415 postlink_cmds_CXX; do18416 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in18417 *[\\\\\\\`\\"\\\$]*)18418 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes18419 ;;18420 *)18421 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""18422 ;;18423 esac18424 done18425 18426 ac_aux_dir='$ac_aux_dir'18427 18428 # See if we are running on zsh, and set the options that allow our18429 # commands through without removal of \ escapes INIT.18430 if test -n "\${ZSH_VERSION+set}"; then18431 setopt NO_GLOB_SUBST18432 fi18433 18434 18435 PACKAGE='$PACKAGE'18436 VERSION='$VERSION'18437 RM='$RM'18438 ofile='$ofile'18439 18440 18441 18442 18443 18444 18445 7126 _ACEOF 18446 7127 … … 18453 7134 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:src/config.h.in" ;; 18454 7135 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18455 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;18456 7136 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18457 7137 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;; … … 19184 7864 } 19185 7865 ;; 19186 "libtool":C)19187 19188 # See if we are running on zsh, and set the options that allow our19189 # commands through without removal of \ escapes.19190 if test -n "${ZSH_VERSION+set}"; then19191 setopt NO_GLOB_SUBST19192 fi19193 19194 cfgfile=${ofile}T19195 trap "$RM \"$cfgfile\"; exit 1" 1 2 1519196 $RM "$cfgfile"19197 19198 cat <<_LT_EOF >> "$cfgfile"19199 #! $SHELL19200 # Generated automatically by $as_me ($PACKAGE) $VERSION19201 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:19202 # NOTE: Changes made to this file will be lost: look at ltmain.sh.19203 19204 # Provide generalized library-building support services.19205 # Written by Gordon Matzigkeit, 199619206 19207 # Copyright (C) 2014 Free Software Foundation, Inc.19208 # This is free software; see the source for copying conditions. There is NO19209 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.19210 19211 # GNU Libtool is free software; you can redistribute it and/or modify19212 # it under the terms of the GNU General Public License as published by19213 # the Free Software Foundation; either version 2 of of the License, or19214 # (at your option) any later version.19215 #19216 # As a special exception to the GNU General Public License, if you19217 # distribute this file as part of a program or library that is built19218 # using GNU Libtool, you may include this file under the same19219 # distribution terms that you use for the rest of that program.19220 #19221 # GNU Libtool is distributed in the hope that it will be useful, but19222 # WITHOUT ANY WARRANTY; without even the implied warranty of19223 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the19224 # GNU General Public License for more details.19225 #19226 # You should have received a copy of the GNU General Public License19227 # along with this program. If not, see <http://www.gnu.org/licenses/>.19228 19229 19230 # The names of the tagged configurations supported by this script.19231 available_tags='CXX '19232 19233 # Configured defaults for sys_lib_dlsearch_path munging.19234 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}19235 19236 # ### BEGIN LIBTOOL CONFIG19237 19238 # Which release of libtool.m4 was used?19239 macro_version=$macro_version19240 macro_revision=$macro_revision19241 19242 # Whether or not to build shared libraries.19243 build_libtool_libs=$enable_shared19244 19245 # Whether or not to build static libraries.19246 build_old_libs=$enable_static19247 19248 # What type of objects to build.19249 pic_mode=$pic_mode19250 19251 # Whether or not to optimize for fast installation.19252 fast_install=$enable_fast_install19253 19254 # Shared archive member basename,for filename based shared library versioning on AIX.19255 shared_archive_member_spec=$shared_archive_member_spec19256 19257 # Shell to use when invoking shell scripts.19258 SHELL=$lt_SHELL19259 19260 # An echo program that protects backslashes.19261 ECHO=$lt_ECHO19262 19263 # The PATH separator for the build system.19264 PATH_SEPARATOR=$lt_PATH_SEPARATOR19265 19266 # The host system.19267 host_alias=$host_alias19268 host=$host19269 host_os=$host_os19270 19271 # The build system.19272 build_alias=$build_alias19273 build=$build19274 build_os=$build_os19275 19276 # A sed program that does not truncate output.19277 SED=$lt_SED19278 19279 # Sed that helps us avoid accidentally triggering echo(1) options like -n.19280 Xsed="\$SED -e 1s/^X//"19281 19282 # A grep program that handles long lines.19283 GREP=$lt_GREP19284 19285 # An ERE matcher.19286 EGREP=$lt_EGREP19287 19288 # A literal string matcher.19289 FGREP=$lt_FGREP19290 19291 # A BSD- or MS-compatible name lister.19292 NM=$lt_NM19293 19294 # Whether we need soft or hard links.19295 LN_S=$lt_LN_S19296 19297 # What is the maximum length of a command?19298 max_cmd_len=$max_cmd_len19299 19300 # Object file suffix (normally "o").19301 objext=$ac_objext19302 19303 # Executable file suffix (normally "").19304 exeext=$exeext19305 19306 # whether the shell understands "unset".19307 lt_unset=$lt_unset19308 19309 # turn spaces into newlines.19310 SP2NL=$lt_lt_SP2NL19311 19312 # turn newlines into spaces.19313 NL2SP=$lt_lt_NL2SP19314 19315 # convert \$build file names to \$host format.19316 to_host_file_cmd=$lt_cv_to_host_file_cmd19317 19318 # convert \$build files to toolchain format.19319 to_tool_file_cmd=$lt_cv_to_tool_file_cmd19320 19321 # An object symbol dumper.19322 OBJDUMP=$lt_OBJDUMP19323 19324 # Method to check whether dependent libraries are shared objects.19325 deplibs_check_method=$lt_deplibs_check_method19326 19327 # Command to use when deplibs_check_method = "file_magic".19328 file_magic_cmd=$lt_file_magic_cmd19329 19330 # How to find potential files when deplibs_check_method = "file_magic".19331 file_magic_glob=$lt_file_magic_glob19332 19333 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".19334 want_nocaseglob=$lt_want_nocaseglob19335 19336 # DLL creation program.19337 DLLTOOL=$lt_DLLTOOL19338 19339 # Command to associate shared and link libraries.19340 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd19341 19342 # The archiver.19343 AR=$lt_AR19344 19345 # Flags to create an archive.19346 AR_FLAGS=$lt_AR_FLAGS19347 19348 # How to feed a file listing to the archiver.19349 archiver_list_spec=$lt_archiver_list_spec19350 19351 # A symbol stripping program.19352 STRIP=$lt_STRIP19353 19354 # Commands used to install an old-style archive.19355 RANLIB=$lt_RANLIB19356 old_postinstall_cmds=$lt_old_postinstall_cmds19357 old_postuninstall_cmds=$lt_old_postuninstall_cmds19358 19359 # Whether to use a lock for old archive extraction.19360 lock_old_archive_extraction=$lock_old_archive_extraction19361 19362 # A C compiler.19363 LTCC=$lt_CC19364 19365 # LTCC compiler flags.19366 LTCFLAGS=$lt_CFLAGS19367 19368 # Take the output of nm and produce a listing of raw symbols and C names.19369 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe19370 19371 # Transform the output of nm in a proper C declaration.19372 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl19373 19374 # Transform the output of nm into a list of symbols to manually relocate.19375 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import19376 19377 # Transform the output of nm in a C name address pair.19378 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address19379 19380 # Transform the output of nm in a C name address pair when lib prefix is needed.19381 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix19382 19383 # The name lister interface.19384 nm_interface=$lt_lt_cv_nm_interface19385 19386 # Specify filename containing input files for \$NM.19387 nm_file_list_spec=$lt_nm_file_list_spec19388 19389 # The root where to search for dependent libraries,and where our libraries should be installed.19390 lt_sysroot=$lt_sysroot19391 19392 # Command to truncate a binary pipe.19393 lt_truncate_bin=$lt_lt_cv_truncate_bin19394 19395 # The name of the directory that contains temporary libtool files.19396 objdir=$objdir19397 19398 # Used to examine libraries when file_magic_cmd begins with "file".19399 MAGIC_CMD=$MAGIC_CMD19400 19401 # Must we lock files when doing compilation?19402 need_locks=$lt_need_locks19403 19404 # Manifest tool.19405 MANIFEST_TOOL=$lt_MANIFEST_TOOL19406 19407 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.19408 DSYMUTIL=$lt_DSYMUTIL19409 19410 # Tool to change global to local symbols on Mac OS X.19411 NMEDIT=$lt_NMEDIT19412 19413 # Tool to manipulate fat objects and archives on Mac OS X.19414 LIPO=$lt_LIPO19415 19416 # ldd/readelf like tool for Mach-O binaries on Mac OS X.19417 OTOOL=$lt_OTOOL19418 19419 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.19420 OTOOL64=$lt_OTOOL6419421 19422 # Old archive suffix (normally "a").19423 libext=$libext19424 19425 # Shared library suffix (normally ".so").19426 shrext_cmds=$lt_shrext_cmds19427 19428 # The commands to extract the exported symbol list from a shared archive.19429 extract_expsyms_cmds=$lt_extract_expsyms_cmds19430 19431 # Variables whose values should be saved in libtool wrapper scripts and19432 # restored at link time.19433 variables_saved_for_relink=$lt_variables_saved_for_relink19434 19435 # Do we need the "lib" prefix for modules?19436 need_lib_prefix=$need_lib_prefix19437 19438 # Do we need a version for libraries?19439 need_version=$need_version19440 19441 # Library versioning type.19442 version_type=$version_type19443 19444 # Shared library runtime path variable.19445 runpath_var=$runpath_var19446 19447 # Shared library path variable.19448 shlibpath_var=$shlibpath_var19449 19450 # Is shlibpath searched before the hard-coded library search path?19451 shlibpath_overrides_runpath=$shlibpath_overrides_runpath19452 19453 # Format of library name prefix.19454 libname_spec=$lt_libname_spec19455 19456 # List of archive names. First name is the real one, the rest are links.19457 # The last name is the one that the linker finds with -lNAME19458 library_names_spec=$lt_library_names_spec19459 19460 # The coded name of the library, if different from the real name.19461 soname_spec=$lt_soname_spec19462 19463 # Permission mode override for installation of shared libraries.19464 install_override_mode=$lt_install_override_mode19465 19466 # Command to use after installation of a shared archive.19467 postinstall_cmds=$lt_postinstall_cmds19468 19469 # Command to use after uninstallation of a shared archive.19470 postuninstall_cmds=$lt_postuninstall_cmds19471 19472 # Commands used to finish a libtool library installation in a directory.19473 finish_cmds=$lt_finish_cmds19474 19475 # As "finish_cmds", except a single script fragment to be evaled but19476 # not shown.19477 finish_eval=$lt_finish_eval19478 19479 # Whether we should hardcode library paths into libraries.19480 hardcode_into_libs=$hardcode_into_libs19481 19482 # Compile-time system search path for libraries.19483 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec19484 19485 # Detected run-time system search path for libraries.19486 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path19487 19488 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.19489 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path19490 19491 # Whether dlopen is supported.19492 dlopen_support=$enable_dlopen19493 19494 # Whether dlopen of programs is supported.19495 dlopen_self=$enable_dlopen_self19496 19497 # Whether dlopen of statically linked programs is supported.19498 dlopen_self_static=$enable_dlopen_self_static19499 19500 # Commands to strip libraries.19501 old_striplib=$lt_old_striplib19502 striplib=$lt_striplib19503 19504 19505 # The linker used to build libraries.19506 LD=$lt_LD19507 19508 # How to create reloadable object files.19509 reload_flag=$lt_reload_flag19510 reload_cmds=$lt_reload_cmds19511 19512 # Commands used to build an old-style archive.19513 old_archive_cmds=$lt_old_archive_cmds19514 19515 # A language specific compiler.19516 CC=$lt_compiler19517 19518 # Is the compiler the GNU compiler?19519 with_gcc=$GCC19520 19521 # Compiler flag to turn off builtin functions.19522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag19523 19524 # Additional compiler flags for building library objects.19525 pic_flag=$lt_lt_prog_compiler_pic19526 19527 # How to pass a linker flag through the compiler.19528 wl=$lt_lt_prog_compiler_wl19529 19530 # Compiler flag to prevent dynamic linking.19531 link_static_flag=$lt_lt_prog_compiler_static19532 19533 # Does compiler simultaneously support -c and -o options?19534 compiler_c_o=$lt_lt_cv_prog_compiler_c_o19535 19536 # Whether or not to add -lc for building shared libraries.19537 build_libtool_need_lc=$archive_cmds_need_lc19538 19539 # Whether or not to disallow shared libs when runtime libs are static.19540 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes19541 19542 # Compiler flag to allow reflexive dlopens.19543 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec19544 19545 # Compiler flag to generate shared objects directly from archives.19546 whole_archive_flag_spec=$lt_whole_archive_flag_spec19547 19548 # Whether the compiler copes with passing no objects directly.19549 compiler_needs_object=$lt_compiler_needs_object19550 19551 # Create an old-style archive from a shared archive.19552 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds19553 19554 # Create a temporary old-style archive to link instead of a shared archive.19555 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds19556 19557 # Commands used to build a shared archive.19558 archive_cmds=$lt_archive_cmds19559 archive_expsym_cmds=$lt_archive_expsym_cmds19560 19561 # Commands used to build a loadable module if different from building19562 # a shared archive.19563 module_cmds=$lt_module_cmds19564 module_expsym_cmds=$lt_module_expsym_cmds19565 19566 # Whether we are building with GNU ld or not.19567 with_gnu_ld=$lt_with_gnu_ld19568 19569 # Flag that allows shared libraries with undefined symbols to be built.19570 allow_undefined_flag=$lt_allow_undefined_flag19571 19572 # Flag that enforces no undefined symbols.19573 no_undefined_flag=$lt_no_undefined_flag19574 19575 # Flag to hardcode \$libdir into a binary during linking.19576 # This must work even if \$libdir does not exist19577 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec19578 19579 # Whether we need a single "-rpath" flag with a separated argument.19580 hardcode_libdir_separator=$lt_hardcode_libdir_separator19581 19582 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19583 # DIR into the resulting binary.19584 hardcode_direct=$hardcode_direct19585 19586 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19587 # DIR into the resulting binary and the resulting library dependency is19588 # "absolute",i.e impossible to change by setting \$shlibpath_var if the19589 # library is relocated.19590 hardcode_direct_absolute=$hardcode_direct_absolute19591 19592 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR19593 # into the resulting binary.19594 hardcode_minus_L=$hardcode_minus_L19595 19596 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR19597 # into the resulting binary.19598 hardcode_shlibpath_var=$hardcode_shlibpath_var19599 19600 # Set to "yes" if building a shared library automatically hardcodes DIR19601 # into the library and all subsequent libraries and executables linked19602 # against it.19603 hardcode_automatic=$hardcode_automatic19604 19605 # Set to yes if linker adds runtime paths of dependent libraries19606 # to runtime path list.19607 inherit_rpath=$inherit_rpath19608 19609 # Whether libtool must link a program against all its dependency libraries.19610 link_all_deplibs=$link_all_deplibs19611 19612 # Set to "yes" if exported symbols are required.19613 always_export_symbols=$always_export_symbols19614 19615 # The commands to list exported symbols.19616 export_symbols_cmds=$lt_export_symbols_cmds19617 19618 # Symbols that should not be listed in the preloaded symbols.19619 exclude_expsyms=$lt_exclude_expsyms19620 19621 # Symbols that must always be exported.19622 include_expsyms=$lt_include_expsyms19623 19624 # Commands necessary for linking programs (against libraries) with templates.19625 prelink_cmds=$lt_prelink_cmds19626 19627 # Commands necessary for finishing linking programs.19628 postlink_cmds=$lt_postlink_cmds19629 19630 # Specify filename containing input files.19631 file_list_spec=$lt_file_list_spec19632 19633 # How to hardcode a shared library path into an executable.19634 hardcode_action=$hardcode_action19635 19636 # The directories searched by this compiler when creating a shared library.19637 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs19638 19639 # Dependencies to place before and after the objects being linked to19640 # create a shared library.19641 predep_objects=$lt_predep_objects19642 postdep_objects=$lt_postdep_objects19643 predeps=$lt_predeps19644 postdeps=$lt_postdeps19645 19646 # The library search path used internally by the compiler when linking19647 # a shared library.19648 compiler_lib_search_path=$lt_compiler_lib_search_path19649 19650 # ### END LIBTOOL CONFIG19651 19652 _LT_EOF19653 19654 cat <<'_LT_EOF' >> "$cfgfile"19655 19656 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE19657 19658 # func_munge_path_list VARIABLE PATH19659 # -----------------------------------19660 # VARIABLE is name of variable containing _space_ separated list of19661 # directories to be munged by the contents of PATH, which is string19662 # having a format:19663 # "DIR[:DIR]:"19664 # string "DIR[ DIR]" will be prepended to VARIABLE19665 # ":DIR[:DIR]"19666 # string "DIR[ DIR]" will be appended to VARIABLE19667 # "DIRP[:DIRP]::[DIRA:]DIRA"19668 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string19669 # "DIRA[ DIRA]" will be appended to VARIABLE19670 # "DIR[:DIR]"19671 # VARIABLE will be replaced by "DIR[ DIR]"19672 func_munge_path_list ()19673 {19674 case x$2 in19675 x)19676 ;;19677 *:)19678 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"19679 ;;19680 x:*)19681 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"19682 ;;19683 *::*)19684 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"19685 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"19686 ;;19687 *)19688 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"19689 ;;19690 esac19691 }19692 19693 19694 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.19695 func_cc_basename ()19696 {19697 for cc_temp in $*""; do19698 case $cc_temp in19699 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;19700 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;19701 \-*) ;;19702 *) break;;19703 esac19704 done19705 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`19706 }19707 19708 19709 # ### END FUNCTIONS SHARED WITH CONFIGURE19710 19711 _LT_EOF19712 19713 case $host_os in19714 aix3*)19715 cat <<\_LT_EOF >> "$cfgfile"19716 # AIX sometimes has problems with the GCC collect2 program. For some19717 # reason, if we set the COLLECT_NAMES environment variable, the problems19718 # vanish in a puff of smoke.19719 if test set != "${COLLECT_NAMES+set}"; then19720 COLLECT_NAMES=19721 export COLLECT_NAMES19722 fi19723 _LT_EOF19724 ;;19725 esac19726 19727 19728 ltmain=$ac_aux_dir/ltmain.sh19729 19730 19731 # We use sed instead of cat because bash on DJGPP gets confused if19732 # if finds mixed CR/LF and LF-only lines. Since sed operates in19733 # text mode, it properly converts lines to CR/LF. This bash problem19734 # is reportedly fixed, but why not run on old versions too?19735 sed '$q' "$ltmain" >> "$cfgfile" \19736 || (rm -f "$cfgfile"; exit 1)19737 19738 mv -f "$cfgfile" "$ofile" ||19739 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")19740 chmod +x "$ofile"19741 19742 19743 cat <<_LT_EOF >> "$ofile"19744 19745 # ### BEGIN LIBTOOL TAG CONFIG: CXX19746 19747 # The linker used to build libraries.19748 LD=$lt_LD_CXX19749 19750 # How to create reloadable object files.19751 reload_flag=$lt_reload_flag_CXX19752 reload_cmds=$lt_reload_cmds_CXX19753 19754 # Commands used to build an old-style archive.19755 old_archive_cmds=$lt_old_archive_cmds_CXX19756 19757 # A language specific compiler.19758 CC=$lt_compiler_CXX19759 19760 # Is the compiler the GNU compiler?19761 with_gcc=$GCC_CXX19762 19763 # Compiler flag to turn off builtin functions.19764 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX19765 19766 # Additional compiler flags for building library objects.19767 pic_flag=$lt_lt_prog_compiler_pic_CXX19768 19769 # How to pass a linker flag through the compiler.19770 wl=$lt_lt_prog_compiler_wl_CXX19771 19772 # Compiler flag to prevent dynamic linking.19773 link_static_flag=$lt_lt_prog_compiler_static_CXX19774 19775 # Does compiler simultaneously support -c and -o options?19776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX19777 19778 # Whether or not to add -lc for building shared libraries.19779 build_libtool_need_lc=$archive_cmds_need_lc_CXX19780 19781 # Whether or not to disallow shared libs when runtime libs are static.19782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX19783 19784 # Compiler flag to allow reflexive dlopens.19785 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX19786 19787 # Compiler flag to generate shared objects directly from archives.19788 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX19789 19790 # Whether the compiler copes with passing no objects directly.19791 compiler_needs_object=$lt_compiler_needs_object_CXX19792 19793 # Create an old-style archive from a shared archive.19794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX19795 19796 # Create a temporary old-style archive to link instead of a shared archive.19797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX19798 19799 # Commands used to build a shared archive.19800 archive_cmds=$lt_archive_cmds_CXX19801 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX19802 19803 # Commands used to build a loadable module if different from building19804 # a shared archive.19805 module_cmds=$lt_module_cmds_CXX19806 module_expsym_cmds=$lt_module_expsym_cmds_CXX19807 19808 # Whether we are building with GNU ld or not.19809 with_gnu_ld=$lt_with_gnu_ld_CXX19810 19811 # Flag that allows shared libraries with undefined symbols to be built.19812 allow_undefined_flag=$lt_allow_undefined_flag_CXX19813 19814 # Flag that enforces no undefined symbols.19815 no_undefined_flag=$lt_no_undefined_flag_CXX19816 19817 # Flag to hardcode \$libdir into a binary during linking.19818 # This must work even if \$libdir does not exist19819 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX19820 19821 # Whether we need a single "-rpath" flag with a separated argument.19822 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX19823 19824 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19825 # DIR into the resulting binary.19826 hardcode_direct=$hardcode_direct_CXX19827 19828 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19829 # DIR into the resulting binary and the resulting library dependency is19830 # "absolute",i.e impossible to change by setting \$shlibpath_var if the19831 # library is relocated.19832 hardcode_direct_absolute=$hardcode_direct_absolute_CXX19833 19834 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR19835 # into the resulting binary.19836 hardcode_minus_L=$hardcode_minus_L_CXX19837 19838 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR19839 # into the resulting binary.19840 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX19841 19842 # Set to "yes" if building a shared library automatically hardcodes DIR19843 # into the library and all subsequent libraries and executables linked19844 # against it.19845 hardcode_automatic=$hardcode_automatic_CXX19846 19847 # Set to yes if linker adds runtime paths of dependent libraries19848 # to runtime path list.19849 inherit_rpath=$inherit_rpath_CXX19850 19851 # Whether libtool must link a program against all its dependency libraries.19852 link_all_deplibs=$link_all_deplibs_CXX19853 19854 # Set to "yes" if exported symbols are required.19855 always_export_symbols=$always_export_symbols_CXX19856 19857 # The commands to list exported symbols.19858 export_symbols_cmds=$lt_export_symbols_cmds_CXX19859 19860 # Symbols that should not be listed in the preloaded symbols.19861 exclude_expsyms=$lt_exclude_expsyms_CXX19862 19863 # Symbols that must always be exported.19864 include_expsyms=$lt_include_expsyms_CXX19865 19866 # Commands necessary for linking programs (against libraries) with templates.19867 prelink_cmds=$lt_prelink_cmds_CXX19868 19869 # Commands necessary for finishing linking programs.19870 postlink_cmds=$lt_postlink_cmds_CXX19871 19872 # Specify filename containing input files.19873 file_list_spec=$lt_file_list_spec_CXX19874 19875 # How to hardcode a shared library path into an executable.19876 hardcode_action=$hardcode_action_CXX19877 19878 # The directories searched by this compiler when creating a shared library.19879 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX19880 19881 # Dependencies to place before and after the objects being linked to19882 # create a shared library.19883 predep_objects=$lt_predep_objects_CXX19884 postdep_objects=$lt_postdep_objects_CXX19885 predeps=$lt_predeps_CXX19886 postdeps=$lt_postdeps_CXX19887 19888 # The library search path used internally by the compiler when linking19889 # a shared library.19890 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX19891 19892 # ### END LIBTOOL TAG CONFIG: CXX19893 _LT_EOF19894 19895 ;;19896 7866 19897 7867 esac
Note:
See TracChangeset
for help on using the changeset viewer.