Legend:
- Unmodified
- Added
- Removed
-
configure
r5 r7 819 819 INSTALL_SCRIPT 820 820 INSTALL_DATA 821 am__isrc 821 822 CYGPATH_W 822 823 PACKAGE … … 874 875 OGRE_OSX_TRUE 875 876 OGRE_OSX_FALSE 877 SED 876 878 GREP 877 879 EGREP … … 2235 2237 # New syntax; PACKAGE gets defined as 'OGRE' not 'ogre' 2236 2238 #AM_INIT_AUTOMAKE([OGRE], 1.4.5) 2237 am__api_version="1.9" 2239 am__api_version='1.10' 2240 2238 2241 # Find a good install program. We prefer a C program (faster), 2239 2242 # so one script is as good as another. But avoid the broken or … … 2387 2390 fi 2388 2391 2389 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2390 # We used to keeping the `.' as first argument, in order to 2391 # allow $(mkdir_p) to be used without argument. As in 2392 # $(mkdir_p) $(somedir) 2393 # where $(somedir) is conditionally defined. However this is wrong 2394 # for two reasons: 2395 # 1. if the package is installed by a user who cannot write `.' 2396 # make install will fail, 2397 # 2. the above comment should most certainly read 2398 # $(mkdir_p) $(DESTDIR)$(somedir) 2399 # so it does not work when $(somedir) is undefined and 2400 # $(DESTDIR) is not. 2401 # To support the latter case, we have to write 2402 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2403 # so the `.' trick is pointless. 2404 mkdir_p='mkdir -p --' 2405 else 2406 # On NextStep and OpenStep, the `mkdir' command does not 2407 # recognize any option. It will interpret all options as 2408 # directories to create, and then abort because `.' already 2409 # exists. 2410 for d in ./-p ./--version; 2411 do 2412 test -d $d && rmdir $d 2413 done 2414 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2415 if test -f "$ac_aux_dir/mkinstalldirs"; then 2416 mkdir_p='$(mkinstalldirs)' 2392 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2393 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2394 if test -z "$MKDIR_P"; then 2395 if test "${ac_cv_path_mkdir+set}" = set; then 2396 echo $ECHO_N "(cached) $ECHO_C" >&6 2397 else 2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2399 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2400 do 2401 IFS=$as_save_IFS 2402 test -z "$as_dir" && as_dir=. 2403 for ac_prog in mkdir gmkdir; do 2404 for ac_exec_ext in '' $ac_executable_extensions; do 2405 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2406 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2407 'mkdir (GNU coreutils) '* | \ 2408 'mkdir (coreutils) '* | \ 2409 'mkdir (fileutils) '4.1*) 2410 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2411 break 3;; 2412 esac 2413 done 2414 done 2415 done 2416 IFS=$as_save_IFS 2417 2418 fi 2419 2420 if test "${ac_cv_path_mkdir+set}" = set; then 2421 MKDIR_P="$ac_cv_path_mkdir -p" 2417 2422 else 2418 mkdir_p='$(install_sh) -d' 2423 # As a last resort, use the slow shell script. Don't cache a 2424 # value for MKDIR_P within a source directory, because that will 2425 # break other packages using the cache if that directory is 2426 # removed, or if the value is a relative name. 2427 test -d ./--version && rmdir ./--version 2428 MKDIR_P="$ac_install_sh -d" 2419 2429 fi 2420 2430 fi 2431 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2432 echo "${ECHO_T}$MKDIR_P" >&6; } 2433 2434 mkdir_p="$MKDIR_P" 2435 case $mkdir_p in 2436 [\\/$]* | ?:[\\/]*) ;; 2437 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2438 esac 2421 2439 2422 2440 for ac_prog in gawk mawk nawk awk … … 2501 2519 rmdir .tst 2>/dev/null 2502 2520 2503 # test to see if srcdir already configured 2504 if test "`cd $srcdir && pwd`" != "`pwd`" && 2505 test -f $srcdir/config.status; then 2506 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2521 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2522 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2523 # is not polluted with repeated "-I." 2524 am__isrc=' -I$(srcdir)' 2525 # test to see if srcdir already configured 2526 if test -f $srcdir/config.status; then 2527 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2507 2528 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2508 2529 { (exit 1); exit 1; }; } 2530 fi 2509 2531 fi 2510 2532 … … 2549 2571 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2550 2572 2551 install_sh=${install_sh-" $am_aux_dir/install-sh"}2573 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2552 2574 2553 2575 # Installed binaries are usually stripped using `strip' when the user … … 2653 2675 2654 2676 fi 2655 INSTALL_STRIP_PROGRAM="\$ {SHELL} \$(install_sh) -c -s"2677 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2656 2678 2657 2679 # We need awk for the "check" target. The system "awk" is bad on … … 3641 3663 AMDEPBACKSLASH='\' 3642 3664 fi 3643 3644 3645 if test "x$enable_dependency_tracking" != xno; then 3665 if test "x$enable_dependency_tracking" != xno; then 3646 3666 AMDEP_TRUE= 3647 3667 AMDEP_FALSE='#' … … 3650 3670 AMDEP_FALSE= 3651 3671 fi 3652 3653 3672 3654 3673 … … 3721 3740 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3722 3741 >/dev/null 2>conftest.err && 3742 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3723 3743 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3724 3744 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && … … 3750 3770 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3751 3771 3752 3753 3754 if 3772 if 3755 3773 test "x$enable_dependency_tracking" != xno \ 3756 3774 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then … … 4194 4212 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4195 4213 >/dev/null 2>conftest.err && 4214 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4196 4215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4197 4216 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && … … 4223 4242 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4224 4243 4225 4226 4227 if 4244 if 4228 4245 test "x$enable_dependency_tracking" != xno \ 4229 4246 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then … … 4361 4378 fi 4362 4379 4380 4363 4381 # Find a good install program. We prefer a C program (faster), 4364 4382 # so one script is as good as another. But avoid the broken or … … 4817 4835 ;; 4818 4836 esac 4819 4820 4821 if test x$nt = xtrue; then 4837 if test x$nt = xtrue; then 4822 4838 OGRE_NT_TRUE= 4823 4839 OGRE_NT_FALSE='#' … … 4827 4843 fi 4828 4844 4829 4830 4831 if test x$linux = xtrue; then 4845 if test x$linux = xtrue; then 4832 4846 OGRE_LINUX_TRUE= 4833 4847 OGRE_LINUX_FALSE='#' … … 4837 4851 fi 4838 4852 4839 4840 4841 if test x$osx = xtrue ; then 4853 if test x$osx = xtrue ; then 4842 4854 OGRE_OSX_TRUE= 4843 4855 OGRE_OSX_FALSE='#' … … 4936 4948 for lt_ac_prog in sed gsed; do 4937 4949 for ac_exec_ext in '' $ac_executable_extensions; do 4938 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then4950 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4939 4951 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4940 4952 fi … … 4942 4954 done 4943 4955 done 4956 IFS=$as_save_IFS 4944 4957 lt_ac_max=0 4945 4958 lt_ac_count=0 … … 4976 4989 4977 4990 SED=$lt_cv_path_SED 4991 4978 4992 { echo "$as_me:$LINENO: result: $SED" >&5 4979 4993 echo "${ECHO_T}$SED" >&6; } … … 5266 5280 darwin*) 5267 5281 if test "$GCC" = yes; then 5268 reload_cmds='$ CC-nostdlib ${wl}-r -o $output$reload_objs'5282 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5269 5283 else 5270 5284 reload_cmds='$LD$reload_flag -o $output$reload_objs' … … 5282 5296 lt_cv_path_NM="$NM" 5283 5297 else 5284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5285 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 5286 IFS="$lt_save_ifs" 5287 test -z "$ac_dir" && ac_dir=. 5288 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 5289 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5290 # Check to see if the nm accepts a BSD-compat flag. 5291 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5292 # nm: unknown option "B" ignored 5293 # Tru64's nm complains that /dev/null is an invalid object file 5294 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5295 */dev/null* | *'Invalid file or object type'*) 5296 lt_cv_path_NM="$tmp_nm -B" 5297 break 5298 ;; 5299 *) 5300 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5301 */dev/null*) 5302 lt_cv_path_NM="$tmp_nm -p" 5298 lt_nm_to_check="${ac_tool_prefix}nm" 5299 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5300 lt_nm_to_check="$lt_nm_to_check nm" 5301 fi 5302 for lt_tmp_nm in $lt_nm_to_check; do 5303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5304 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5305 IFS="$lt_save_ifs" 5306 test -z "$ac_dir" && ac_dir=. 5307 tmp_nm="$ac_dir/$lt_tmp_nm" 5308 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5309 # Check to see if the nm accepts a BSD-compat flag. 5310 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5311 # nm: unknown option "B" ignored 5312 # Tru64's nm complains that /dev/null is an invalid object file 5313 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5314 */dev/null* | *'Invalid file or object type'*) 5315 lt_cv_path_NM="$tmp_nm -B" 5303 5316 break 5304 5317 ;; 5305 5318 *) 5306 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5307 continue # so that we can try to find one that supports BSD flags 5319 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5320 */dev/null*) 5321 lt_cv_path_NM="$tmp_nm -p" 5322 break 5323 ;; 5324 *) 5325 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5326 continue # so that we can try to find one that supports BSD flags 5327 ;; 5328 esac 5308 5329 ;; 5309 5330 esac 5310 esac 5311 fi 5331 fi 5332 done 5333 IFS="$lt_save_ifs" 5312 5334 done 5313 IFS="$lt_save_ifs"5314 5335 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5315 5336 fi … … 5330 5351 fi 5331 5352 5332 { echo "$as_me:$LINENO: checking how to recogni se dependent libraries" >&55333 echo $ECHO_N "checking how to recogni se dependent libraries... $ECHO_C" >&6; }5353 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5354 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 5334 5355 if test "${lt_cv_deplibs_check_method+set}" = set; then 5335 5356 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 5372 5393 mingw* | pw32*) 5373 5394 # Base MSYS/MinGW do not provide the 'file' command needed by 5374 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 5375 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5376 lt_cv_file_magic_cmd='$OBJDUMP -f' 5395 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5396 # unless we find 'file', for example because we are cross-compiling. 5397 if ( file / ) >/dev/null 2>&1; then 5398 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5399 lt_cv_file_magic_cmd='func_win32_libid' 5400 else 5401 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5402 lt_cv_file_magic_cmd='$OBJDUMP -f' 5403 fi 5377 5404 ;; 5378 5405 … … 5381 5408 ;; 5382 5409 5383 freebsd* | kfreebsd*-gnu |dragonfly*)5410 freebsd* | dragonfly*) 5384 5411 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5385 5412 case $host_cpu in … … 5419 5446 ;; 5420 5447 5448 interix[3-9]*) 5449 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5451 ;; 5452 5421 5453 irix5* | irix6* | nonstopux*) 5422 5454 case $LD in … … 5430 5462 5431 5463 # This must be Linux ELF. 5432 linux* )5464 linux* | k*bsd*-gnu) 5433 5465 lt_cv_deplibs_check_method=pass_all 5434 5466 ;; … … 5464 5496 ;; 5465 5497 5466 sco3.2v5*)5498 rdos*) 5467 5499 lt_cv_deplibs_check_method=pass_all 5468 5500 ;; … … 5472 5504 ;; 5473 5505 5474 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)5506 sysv4 | sysv4.3*) 5475 5507 case $host_vendor in 5476 5508 motorola) … … 5493 5525 lt_cv_deplibs_check_method=pass_all 5494 5526 ;; 5527 pc) 5528 lt_cv_deplibs_check_method=pass_all 5529 ;; 5495 5530 esac 5496 5531 ;; 5497 5532 5498 sysv5 OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)5533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5499 5534 lt_cv_deplibs_check_method=pass_all 5500 5535 ;; … … 5513 5548 # If no C compiler was specified, use CC. 5514 5549 LTCC=${LTCC-"$CC"} 5550 5551 # If no C compiler flags were specified, use CFLAGS. 5552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5515 5553 5516 5554 # Allow CC to be a program name with arguments. … … 5548 5586 *-*-irix6*) 5549 5587 # Find out which ABI we are using. 5550 echo '#line 55 50"configure"' > conftest.$ac_ext5588 echo '#line 5588 "configure"' > conftest.$ac_ext 5551 5589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5552 5590 (eval $ac_compile) 2>&5 … … 5583 5621 ;; 5584 5622 5585 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5623 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5624 s390*-*linux*|sparc*-*linux*) 5586 5625 # Find out which ABI we are using. 5587 5626 echo 'int i;' > conftest.$ac_ext … … 5594 5633 *32-bit*) 5595 5634 case $host in 5635 x86_64-*kfreebsd*-gnu) 5636 LD="${LD-ld} -m elf_i386_fbsd" 5637 ;; 5596 5638 x86_64-*linux*) 5597 5639 LD="${LD-ld} -m elf_i386" … … 5610 5652 *64-bit*) 5611 5653 case $host in 5654 x86_64-*kfreebsd*-gnu) 5655 LD="${LD-ld} -m elf_x86_64_fbsd" 5656 ;; 5612 5657 x86_64-*linux*) 5613 5658 LD="${LD-ld} -m elf_x86_64" … … 5701 5746 fi 5702 5747 ;; 5748 sparc*-*solaris*) 5749 # Find out which ABI we are using. 5750 echo 'int i;' > conftest.$ac_ext 5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5752 (eval $ac_compile) 2>&5 5753 ac_status=$? 5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5755 (exit $ac_status); }; then 5756 case `/usr/bin/file conftest.o` in 5757 *64-bit*) 5758 case $lt_cv_prog_gnu_ld in 5759 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5760 *) LD="${LD-ld} -64" ;; 5761 esac 5762 ;; 5763 esac 5764 fi 5765 rm -rf conftest* 5766 ;; 5767 5703 5768 5704 5769 esac … … 6874 6939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6875 6940 ;; 6941 6942 interix*) 6943 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6944 lt_cv_sys_max_cmd_len=196608 6945 ;; 6946 6876 6947 osf*) 6877 6948 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure … … 6887 6958 fi 6888 6959 ;; 6960 sco3.2v5*) 6961 lt_cv_sys_max_cmd_len=102400 6962 ;; 6963 sysv5* | sco5v6* | sysv4.2uw2*) 6964 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6965 if test -n "$kargmax"; then 6966 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6967 else 6968 lt_cv_sys_max_cmd_len=32768 6969 fi 6970 ;; 6889 6971 *) 6890 # If test is not a shell built-in, we'll probably end up computing a 6891 # maximum length that is only half of the actual maximum length, but 6892 # we can't tell. 6893 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6894 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6972 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6973 if test -n "$lt_cv_sys_max_cmd_len"; then 6974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6976 else 6977 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6978 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6895 6979 = "XX$teststring") >/dev/null 2>&1 && 6896 new_result=`expr "X$teststring" : ".*" 2>&1` && 6897 lt_cv_sys_max_cmd_len=$new_result && 6898 test $i != 17 # 1/2 MB should be enough 6899 do 6900 i=`expr $i + 1` 6901 teststring=$teststring$teststring 6902 done 6903 teststring= 6904 # Add a significant safety factor because C++ compilers can tack on massive 6905 # amounts of additional arguments before passing them to the linker. 6906 # It appears as though 1/2 is a usable value. 6907 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6980 new_result=`expr "X$teststring" : ".*" 2>&1` && 6981 lt_cv_sys_max_cmd_len=$new_result && 6982 test $i != 17 # 1/2 MB should be enough 6983 do 6984 i=`expr $i + 1` 6985 teststring=$teststring$teststring 6986 done 6987 teststring= 6988 # Add a significant safety factor because C++ compilers can tack on massive 6989 # amounts of additional arguments before passing them to the linker. 6990 # It appears as though 1/2 is a usable value. 6991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6992 fi 6908 6993 ;; 6909 6994 esac … … 6918 7003 echo "${ECHO_T}none" >&6; } 6919 7004 fi 7005 6920 7006 6921 7007 … … 6959 7045 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6960 7046 ;; 6961 linux* )7047 linux* | k*bsd*-gnu) 6962 7048 if test "$host_cpu" = ia64; then 6963 7049 symcode='[ABCDGIRSTW]' … … 6972 7058 symcode='[BCDEGQRST]' 6973 7059 ;; 6974 solaris* | sysv5*)7060 solaris*) 6975 7061 symcode='[BDRT]' 7062 ;; 7063 sco3.2v5*) 7064 symcode='[DT]' 7065 ;; 7066 sysv4.2uw2*) 7067 symcode='[DT]' 7068 ;; 7069 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7070 symcode='[ABDT]' 6976 7071 ;; 6977 7072 sysv4) … … 7488 7583 test -z "$CC" && CC=cc 7489 7584 test -z "$LTCC" && LTCC=$CC 7585 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7490 7586 test -z "$DLLTOOL" && DLLTOOL=dlltool 7491 7587 test -z "$LD" && LD=ld … … 7500 7596 7501 7597 # Determine commands to create old-style static archives. 7502 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs $old_deplibs'7598 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7503 7599 old_postinstall_cmds='chmod 644 $oldlib' 7504 7600 old_postuninstall_cmds= … … 7507 7603 case $host_os in 7508 7604 openbsd*) 7509 old_postinstall_cmds=" \$RANLIB -t \$oldlib~$old_postinstall_cmds"7605 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7510 7606 ;; 7511 7607 *) 7512 old_postinstall_cmds=" \$RANLIB \$oldlib~$old_postinstall_cmds"7608 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7513 7609 ;; 7514 7610 esac … … 7700 7796 7701 7797 # Code to be used in simple compile tests 7702 lt_simple_compile_test_code="int some_variable = 0; \n"7798 lt_simple_compile_test_code="int some_variable = 0;" 7703 7799 7704 7800 # Code to be used in simple link tests 7705 lt_simple_link_test_code='int main(){return(0);} \n'7801 lt_simple_link_test_code='int main(){return(0);}' 7706 7802 7707 7803 … … 7709 7805 LTCC=${LTCC-"$CC"} 7710 7806 7807 # If no C compiler flags were specified, use CFLAGS. 7808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7809 7711 7810 # Allow CC to be a program name with arguments. 7712 7811 compiler=$CC … … 7715 7814 # save warnings/boilerplate of simple test code 7716 7815 ac_outfile=conftest.$ac_objext 7717 printf"$lt_simple_compile_test_code" >conftest.$ac_ext7718 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err7816 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7817 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7719 7818 _lt_compiler_boilerplate=`cat conftest.err` 7720 7819 $rm conftest* 7721 7820 7722 7821 ac_outfile=conftest.$ac_objext 7723 printf"$lt_simple_link_test_code" >conftest.$ac_ext7724 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err7822 echo "$lt_simple_link_test_code" >conftest.$ac_ext 7823 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7725 7824 _lt_linker_boilerplate=`cat conftest.err` 7726 7825 $rm conftest* 7727 7728 7729 #7730 # Check for any special shared library compilation flags.7731 #7732 lt_prog_cc_shlib=7733 if test "$GCC" = no; then7734 case $host_os in7735 sco3.2v5*)7736 lt_prog_cc_shlib='-belf'7737 ;;7738 esac7739 fi7740 if test -n "$lt_prog_cc_shlib"; then7741 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&57742 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}7743 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :7744 else7745 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&57746 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}7747 lt_cv_prog_cc_can_build_shared=no7748 fi7749 fi7750 7751 7752 #7753 # Check to make sure the static flag actually works.7754 #7755 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&57756 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }7757 if test "${lt_prog_compiler_static_works+set}" = set; then7758 echo $ECHO_N "(cached) $ECHO_C" >&67759 else7760 lt_prog_compiler_static_works=no7761 save_LDFLAGS="$LDFLAGS"7762 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"7763 printf "$lt_simple_link_test_code" > conftest.$ac_ext7764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then7765 # The linker can only warn and ignore the option if not recognized7766 # So say no if there are warnings7767 if test -s conftest.err; then7768 # Append any errors to the config.log.7769 cat conftest.err 1>&57770 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp7771 $SED '/^$/d' conftest.err >conftest.er27772 if diff conftest.exp conftest.er2 >/dev/null; then7773 lt_prog_compiler_static_works=yes7774 fi7775 else7776 lt_prog_compiler_static_works=yes7777 fi7778 fi7779 $rm conftest*7780 LDFLAGS="$save_LDFLAGS"7781 7782 fi7783 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&57784 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }7785 7786 if test x"$lt_prog_compiler_static_works" = xyes; then7787 :7788 else7789 lt_prog_compiler_static=7790 fi7791 7792 7826 7793 7827 … … 7806 7840 lt_cv_prog_compiler_rtti_exceptions=no 7807 7841 ac_outfile=conftest.$ac_objext 7808 printf"$lt_simple_compile_test_code" > conftest.$ac_ext7842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7809 7843 lt_compiler_flag="-fno-rtti -fno-exceptions" 7810 7844 # Insert the option either (1) after the last *FLAGS variable, or … … 7817 7851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7818 7852 -e 's:$: $lt_compiler_flag:'` 7819 (eval echo "\"\$as_me:78 19: $lt_compile\"" >&5)7853 (eval echo "\"\$as_me:7853: $lt_compile\"" >&5) 7820 7854 (eval "$lt_compile" 2>conftest.err) 7821 7855 ac_status=$? 7822 7856 cat conftest.err >&5 7823 echo "$as_me:78 23: \$? = $ac_status" >&57857 echo "$as_me:7857: \$? = $ac_status" >&5 7824 7858 if (exit $ac_status) && test -s "$ac_outfile"; then 7825 7859 # The compiler can only warn and ignore the option if not recognized 7826 7860 # So say no if there are warnings other than the usual output. 7827 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp7828 $SED '/^$/d ' conftest.err >conftest.er27829 if test ! -s conftest.er r|| diff conftest.exp conftest.er2 >/dev/null; then7861 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7862 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7863 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7830 7864 lt_cv_prog_compiler_rtti_exceptions=yes 7831 7865 fi … … 7872 7906 ;; 7873 7907 7874 beos* | cygwin* |irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)7908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7875 7909 # PIC is the default for these OSes. 7876 7910 ;; 7877 7911 7878 mingw* | pw32* | os2*)7912 mingw* | cygwin* | pw32* | os2*) 7879 7913 # This hack is so that the source file can tell whether it is being 7880 7914 # built for inclusion in a dll (and should export symbols for example). 7915 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7916 # (--disable-auto-import) libraries 7881 7917 lt_prog_compiler_pic='-DDLL_EXPORT' 7882 7918 ;; … … 7886 7922 # Common symbols not allowed in MH_DYLIB files 7887 7923 lt_prog_compiler_pic='-fno-common' 7924 ;; 7925 7926 interix[3-9]*) 7927 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7928 # Instead, we relocate shared libraries at runtime. 7888 7929 ;; 7889 7930 … … 7941 7982 ;; 7942 7983 7943 mingw* | pw32* | os2*)7984 mingw* | cygwin* | pw32* | os2*) 7944 7985 # This hack is so that the source file can tell whether it is being 7945 7986 # built for inclusion in a dll (and should export symbols for example). … … 7974 8015 ;; 7975 8016 7976 linux* )8017 linux* | k*bsd*-gnu) 7977 8018 case $cc_basename in 7978 8019 icc* | ecc*) … … 7993 8034 lt_prog_compiler_static='-non_shared' 7994 8035 ;; 8036 *) 8037 case `$CC -V 2>&1 | sed 5q` in 8038 *Sun\ C*) 8039 # Sun C 5.9 8040 lt_prog_compiler_pic='-KPIC' 8041 lt_prog_compiler_static='-Bstatic' 8042 lt_prog_compiler_wl='-Wl,' 8043 ;; 8044 *Sun\ F*) 8045 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8046 lt_prog_compiler_pic='-KPIC' 8047 lt_prog_compiler_static='-Bstatic' 8048 lt_prog_compiler_wl='' 8049 ;; 8050 esac 8051 ;; 7995 8052 esac 7996 8053 ;; … … 8002 8059 ;; 8003 8060 8004 sco3.2v5*) 8005 lt_prog_compiler_pic='-Kpic' 8006 lt_prog_compiler_static='-dn' 8061 rdos*) 8062 lt_prog_compiler_static='-non_shared' 8007 8063 ;; 8008 8064 … … 8024 8080 ;; 8025 8081 8026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)8082 sysv4 | sysv4.2uw2* | sysv4.3*) 8027 8083 lt_prog_compiler_wl='-Wl,' 8028 8084 lt_prog_compiler_pic='-KPIC' … … 8037 8093 ;; 8038 8094 8095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8096 lt_prog_compiler_wl='-Wl,' 8097 lt_prog_compiler_pic='-KPIC' 8098 lt_prog_compiler_static='-Bstatic' 8099 ;; 8100 8039 8101 unicos*) 8040 8102 lt_prog_compiler_wl='-Wl,' … … 8068 8130 lt_prog_compiler_pic_works=no 8069 8131 ac_outfile=conftest.$ac_objext 8070 printf"$lt_simple_compile_test_code" > conftest.$ac_ext8132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8071 8133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8072 8134 # Insert the option either (1) after the last *FLAGS variable, or … … 8079 8141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8080 8142 -e 's:$: $lt_compiler_flag:'` 8081 (eval echo "\"\$as_me:8 081: $lt_compile\"" >&5)8143 (eval echo "\"\$as_me:8143: $lt_compile\"" >&5) 8082 8144 (eval "$lt_compile" 2>conftest.err) 8083 8145 ac_status=$? 8084 8146 cat conftest.err >&5 8085 echo "$as_me:8 085: \$? = $ac_status" >&58147 echo "$as_me:8147: \$? = $ac_status" >&5 8086 8148 if (exit $ac_status) && test -s "$ac_outfile"; then 8087 8149 # The compiler can only warn and ignore the option if not recognized 8088 8150 # So say no if there are warnings other than the usual output. 8089 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp8090 $SED '/^$/d ' conftest.err >conftest.er28091 if test ! -s conftest.er r|| diff conftest.exp conftest.er2 >/dev/null; then8151 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8092 8154 lt_prog_compiler_pic_works=yes 8093 8155 fi … … 8120 8182 esac 8121 8183 8184 # 8185 # Check to make sure the static flag actually works. 8186 # 8187 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8188 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8189 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 8190 if test "${lt_prog_compiler_static_works+set}" = set; then 8191 echo $ECHO_N "(cached) $ECHO_C" >&6 8192 else 8193 lt_prog_compiler_static_works=no 8194 save_LDFLAGS="$LDFLAGS" 8195 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8196 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8197 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8198 # The linker can only warn and ignore the option if not recognized 8199 # So say no if there are warnings 8200 if test -s conftest.err; then 8201 # Append any errors to the config.log. 8202 cat conftest.err 1>&5 8203 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8205 if diff conftest.exp conftest.er2 >/dev/null; then 8206 lt_prog_compiler_static_works=yes 8207 fi 8208 else 8209 lt_prog_compiler_static_works=yes 8210 fi 8211 fi 8212 $rm conftest* 8213 LDFLAGS="$save_LDFLAGS" 8214 8215 fi 8216 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 8217 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 8218 8219 if test x"$lt_prog_compiler_static_works" = xyes; then 8220 : 8221 else 8222 lt_prog_compiler_static= 8223 fi 8224 8225 8122 8226 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8123 8227 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } … … 8130 8234 cd conftest 8131 8235 mkdir out 8132 printf"$lt_simple_compile_test_code" > conftest.$ac_ext8236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8133 8237 8134 8238 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 8141 8245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8142 8246 -e 's:$: $lt_compiler_flag:'` 8143 (eval echo "\"\$as_me:8 143: $lt_compile\"" >&5)8247 (eval echo "\"\$as_me:8247: $lt_compile\"" >&5) 8144 8248 (eval "$lt_compile" 2>out/conftest.err) 8145 8249 ac_status=$? 8146 8250 cat out/conftest.err >&5 8147 echo "$as_me:8 147: \$? = $ac_status" >&58251 echo "$as_me:8251: \$? = $ac_status" >&5 8148 8252 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8149 8253 then 8150 8254 # The compiler can only warn and ignore the option if not recognized 8151 8255 # So say no if there are warnings 8152 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp8153 $SED '/^$/d ' out/conftest.err >out/conftest.er28154 if test ! -s out/conftest.er r|| diff out/conftest.exp out/conftest.er2 >/dev/null; then8256 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8257 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8258 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8155 8259 lt_cv_prog_compiler_c_o=yes 8156 8260 fi … … 8252 8356 fi 8253 8357 ;; 8358 interix*) 8359 # we just hope/assume this is gcc and not c89 (= MSVC++) 8360 with_gnu_ld=yes 8361 ;; 8254 8362 openbsd*) 8255 8363 with_gnu_ld=no … … 8333 8441 always_export_symbols=no 8334 8442 enable_shared_with_static_runtimes=yes 8335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.*//'\'' | sort | uniq > $export_symbols'8443 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8336 8444 8337 8445 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'8446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8339 8447 # If the export-symbols file already is a .def file (1st line 8340 8448 # is EXPORTS), use it as is; otherwise, prepend... … … 8345 8453 cat $export_symbols >> $output_objdir/$soname.def; 8346 8454 fi~ 8347 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'8455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8348 8456 else 8349 8457 ld_shlibs=no … … 8351 8459 ;; 8352 8460 8353 linux*) 8461 interix[3-9]*) 8462 hardcode_direct=no 8463 hardcode_shlibpath_var=no 8464 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8465 export_dynamic_flag_spec='${wl}-E' 8466 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8467 # Instead, shared libraries are loaded at an image base (0x10000000 by 8468 # default) and relocated if they conflict, which is a slow very memory 8469 # consuming and fragmenting process. To avoid this, we pick a random, 8470 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8471 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8472 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8473 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' 8474 ;; 8475 8476 gnu* | linux* | k*bsd*-gnu) 8354 8477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8355 8478 tmp_addflag= … … 8369 8492 tmp_addflag=' -nofor_main' ;; 8370 8493 esac 8371 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8494 case `$CC -V 2>&1 | sed 5q` in 8495 *Sun\ C*) # Sun C 5.9 8496 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 8497 tmp_sharedflag='-G' ;; 8498 *Sun\ F*) # Sun Fortran 8.3 8499 tmp_sharedflag='-G' ;; 8500 *) 8501 tmp_sharedflag='-shared' ;; 8502 esac 8503 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8372 8504 8373 8505 if test $supports_anon_versioning = yes; then … … 8375 8507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8376 8508 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8377 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'8509 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8378 8510 fi 8379 8511 else … … 8392 8524 ;; 8393 8525 8394 solaris* | sysv5*)8526 solaris*) 8395 8527 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8396 8528 ld_shlibs=no … … 8411 8543 ld_shlibs=no 8412 8544 fi 8545 ;; 8546 8547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8548 case `$LD -v 2>&1` in 8549 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8550 ld_shlibs=no 8551 cat <<_LT_EOF 1>&2 8552 8553 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8554 *** reliably create shared libraries on SCO systems. Therefore, libtool 8555 *** is disabling shared libraries support. We urge you to upgrade GNU 8556 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8557 *** your PATH or compiler configuration so that the native linker is 8558 *** used, and then restart. 8559 8560 _LT_EOF 8561 ;; 8562 *) 8563 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8564 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8566 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8567 else 8568 ld_shlibs=no 8569 fi 8570 ;; 8571 esac 8413 8572 ;; 8414 8573 … … 8446 8605 # are no directories specified by -L. 8447 8606 hardcode_minus_L=yes 8448 if test "$GCC" = yes && test -z "$l ink_static_flag"; then8607 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8449 8608 # Neither direct hardcoding nor static linking is supported with a 8450 8609 # broken collect2. … … 8480 8639 fi 8481 8640 done 8641 ;; 8482 8642 esac 8483 8643 … … 8506 8666 then 8507 8667 # We have reworked collect2 8508 hardcode_direct=yes8668 : 8509 8669 else 8510 8670 # We have old collect2 … … 8517 8677 hardcode_libdir_separator= 8518 8678 fi 8679 ;; 8519 8680 esac 8520 8681 shared_flag='-shared' … … 8529 8690 shared_flag='-G' 8530 8691 else 8531 8692 if test "$aix_use_runtimelinking" = yes; then 8532 8693 shared_flag='${wl}-G' 8533 8694 else 8534 8695 shared_flag='${wl}-bM:SRE' 8535 8696 fi 8536 8697 fi 8537 8698 fi … … 8579 8740 $as_test_x conftest$ac_exeext; then 8580 8741 8581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8582 }'` 8742 lt_aix_libpath_sed=' 8743 /Import File Strings/,/^$/ { 8744 /^0/ { 8745 s/^0 *\(.*\)$/\1/ 8746 p 8747 } 8748 }' 8749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8583 8750 # Check for a 64-bit object if we didn't find anything. 8584 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8585 }'`; fi 8751 if test -z "$aix_libpath"; then 8752 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8753 fi 8586 8754 else 8587 8755 echo "$as_me: failed program was:" >&5 … … 8596 8764 8597 8765 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8598 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols $shared_flag"8766 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8599 8767 else 8600 8768 if test "$host_cpu" = ia64; then 8601 8769 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8602 8770 allow_undefined_flag="-z nodefs" 8603 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols"8771 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" 8604 8772 else 8605 8773 # Determine the default libpath from the value encoded in an empty executable. … … 8638 8806 $as_test_x conftest$ac_exeext; then 8639 8807 8640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8641 }'` 8808 lt_aix_libpath_sed=' 8809 /Import File Strings/,/^$/ { 8810 /^0/ { 8811 s/^0 *\(.*\)$/\1/ 8812 p 8813 } 8814 }' 8815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8642 8816 # Check for a 64-bit object if we didn't find anything. 8643 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8644 }'`; fi 8817 if test -z "$aix_libpath"; then 8818 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8819 fi 8645 8820 else 8646 8821 echo "$as_me: failed program was:" >&5 … … 8659 8834 no_undefined_flag=' ${wl}-bernotok' 8660 8835 allow_undefined_flag=' ${wl}-berok' 8661 # -bexpall does not export symbols beginning with underscore (_)8662 always_export_symbols=yes8663 8836 # Exported symbols can be pulled into shared objects from archives 8664 whole_archive_flag_spec=' 8837 whole_archive_flag_spec='$convenience' 8665 8838 archive_cmds_need_lc=yes 8666 8839 # This is similar to how AIX traditionally builds its shared libraries. 8667 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $ compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'8840 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8668 8841 fi 8669 8842 fi … … 8698 8871 old_archive_From_new_cmds='true' 8699 8872 # FIXME: Should let the user specify the lib program. 8700 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'8873 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8701 8874 fix_srcfile_path='`cygpath -w "$srcfile"`' 8702 8875 enable_shared_with_static_runtimes=yes … … 8740 8913 xlc*) 8741 8914 output_verbose_link_cmd='echo' 8742 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $ verstring'8915 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8743 8916 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8744 8917 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8745 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $ verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'8918 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8746 8919 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8747 8920 ;; … … 8783 8956 8784 8957 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8785 freebsd* | kfreebsd*-gnu |dragonfly*)8958 freebsd* | dragonfly*) 8786 8959 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8787 8960 hardcode_libdir_flag_spec='-R$libdir' … … 8806 8979 ;; 8807 8980 8808 hpux10* | hpux11*) 8981 hpux10*) 8982 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8983 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8984 else 8985 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8986 fi 8987 if test "$with_gnu_ld" = no; then 8988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8989 hardcode_libdir_separator=: 8990 8991 hardcode_direct=yes 8992 export_dynamic_flag_spec='${wl}-E' 8993 8994 # hardcode_minus_L: Not really in the search PATH, 8995 # but as the default location of the library. 8996 hardcode_minus_L=yes 8997 fi 8998 ;; 8999 9000 hpux11*) 8809 9001 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8810 9002 case $host_cpu in 8811 hppa*64* |ia64*)9003 hppa*64*) 8812 9004 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9005 ;; 9006 ia64*) 9007 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8813 9008 ;; 8814 9009 *) … … 8818 9013 else 8819 9014 case $host_cpu in 8820 hppa*64*|ia64*) 8821 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 9015 hppa*64*) 9016 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9017 ;; 9018 ia64*) 9019 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8822 9020 ;; 8823 9021 *) 8824 archive_cmds='$ LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'9022 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8825 9023 ;; 8826 9024 esac 8827 9025 fi 8828 9026 if test "$with_gnu_ld" = no; then 9027 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9028 hardcode_libdir_separator=: 9029 8829 9030 case $host_cpu in 8830 hppa*64*) 8831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9031 hppa*64*|ia64*) 8832 9032 hardcode_libdir_flag_spec_ld='+b $libdir' 8833 hardcode_libdir_separator=:8834 9033 hardcode_direct=no 8835 9034 hardcode_shlibpath_var=no 8836 9035 ;; 8837 ia64*)8838 hardcode_libdir_flag_spec='-L$libdir'8839 hardcode_direct=no8840 hardcode_shlibpath_var=no8841 8842 # hardcode_minus_L: Not really in the search PATH,8843 # but as the default location of the library.8844 hardcode_minus_L=yes8845 ;;8846 9036 *) 8847 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'8848 hardcode_libdir_separator=:8849 9037 hardcode_direct=yes 8850 9038 export_dynamic_flag_spec='${wl}-E' … … 8890 9078 8891 9079 openbsd*) 8892 hardcode_direct=yes 8893 hardcode_shlibpath_var=no 8894 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8895 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8896 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8898 export_dynamic_flag_spec='${wl}-E' 9080 if test -f /usr/libexec/ld.so; then 9081 hardcode_direct=yes 9082 hardcode_shlibpath_var=no 9083 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9084 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9085 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9086 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9087 export_dynamic_flag_spec='${wl}-E' 9088 else 9089 case $host_os in 9090 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9092 hardcode_libdir_flag_spec='-R$libdir' 9093 ;; 9094 *) 9095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9096 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9097 ;; 9098 esac 9099 fi 8899 9100 else 8900 case $host_os in 8901 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8903 hardcode_libdir_flag_spec='-R$libdir' 8904 ;; 8905 *) 8906 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8908 ;; 8909 esac 9101 ld_shlibs=no 8910 9102 fi 8911 9103 ;; … … 8946 9138 fi 8947 9139 hardcode_libdir_separator=: 8948 ;;8949 8950 sco3.2v5*)8951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'8952 hardcode_shlibpath_var=no8953 export_dynamic_flag_spec='${wl}-Bexport'8954 runpath_var=LD_RUN_PATH8955 hardcode_runpath_var=yes8956 9140 ;; 8957 9141 … … 8974 9158 solaris2.[0-5] | solaris2.[0-5].*) ;; 8975 9159 *) 8976 # The compiler driver will combine linker options so we 8977 # cannot just pass the convience library names through 8978 # without $wl, iff we do not link with $LD. 8979 # Luckily, gcc supports the same syntax we need for Sun Studio. 9160 # The compiler driver will combine and reorder linker options, 9161 # but understands `-z linker_flag'. GCC discards it without `$wl', 9162 # but is careful enough not to reorder. 8980 9163 # Supported since Solaris 2.6 (maybe 2.5.1?) 8981 case $wlarc in8982 '') 8983 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8984 *) 8985 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8986 esac;;9164 if test "$GCC" = yes; then 9165 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9166 else 9167 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9168 fi 9169 ;; 8987 9170 esac 8988 9171 link_all_deplibs=yes … … 9041 9224 ;; 9042 9225 9043 sysv4.2uw2*) 9044 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9045 hardcode_direct=yes 9046 hardcode_minus_L=no 9047 hardcode_shlibpath_var=no 9048 hardcode_runpath_var=yes 9049 runpath_var=LD_RUN_PATH 9050 ;; 9051 9052 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 9053 no_undefined_flag='${wl}-z ${wl}text' 9054 if test "$GCC" = yes; then 9055 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9056 else 9057 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9058 fi 9059 runpath_var='LD_RUN_PATH' 9060 hardcode_shlibpath_var=no 9061 ;; 9062 9063 sysv5*) 9064 no_undefined_flag=' -z text' 9065 # $CC -shared without GNU ld will not create a library from C++ 9066 # object files and a static libstdc++, better avoid it by now 9067 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9068 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9070 hardcode_libdir_flag_spec= 9226 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9227 no_undefined_flag='${wl}-z,text' 9228 archive_cmds_need_lc=no 9071 9229 hardcode_shlibpath_var=no 9072 9230 runpath_var='LD_RUN_PATH' 9231 9232 if test "$GCC" = yes; then 9233 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9234 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9235 else 9236 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9237 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9238 fi 9239 ;; 9240 9241 sysv5* | sco3.2v5* | sco5v6*) 9242 # Note: We can NOT use -z defs as we might desire, because we do not 9243 # link with -lc, and that would cause any symbols used from libc to 9244 # always be unresolved, which means just about no library would 9245 # ever link correctly. If we're not using GNU ld we use -z text 9246 # though, which does catch some bad symbols but isn't as heavy-handed 9247 # as -z defs. 9248 no_undefined_flag='${wl}-z,text' 9249 allow_undefined_flag='${wl}-z,nodefs' 9250 archive_cmds_need_lc=no 9251 hardcode_shlibpath_var=no 9252 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9253 hardcode_libdir_separator=':' 9254 link_all_deplibs=yes 9255 export_dynamic_flag_spec='${wl}-Bexport' 9256 runpath_var='LD_RUN_PATH' 9257 9258 if test "$GCC" = yes; then 9259 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9260 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9261 else 9262 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9263 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9264 fi 9073 9265 ;; 9074 9266 … … 9088 9280 echo "${ECHO_T}$ld_shlibs" >&6; } 9089 9281 test "$ld_shlibs" = no && can_build_shared=no 9090 9091 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"9092 if test "$GCC" = yes; then9093 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"9094 fi9095 9282 9096 9283 # … … 9114 9301 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 9115 9302 $rm conftest* 9116 printf"$lt_simple_compile_test_code" > conftest.$ac_ext9303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9117 9304 9118 9305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 … … 9126 9313 deplibs= 9127 9314 wl=$lt_prog_compiler_wl 9315 pic_flag=$lt_prog_compiler_pic 9128 9316 compiler_flags=-v 9129 9317 linker_flags=-v … … 9171 9359 dynamic_linker="$host_os ld.so" 9172 9360 sys_lib_dlsearch_path_spec="/lib /usr/lib" 9361 9173 9362 if test "$GCC" = yes; then 9174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9175 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9363 case $host_os in 9364 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9365 *) lt_awk_arg="/^libraries:/" ;; 9366 esac 9367 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9368 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9176 9369 # if the path contains ";" then we assume it to be the separator 9177 9370 # otherwise default to the standard path separator (i.e. ":") - it is 9178 9371 # assumed that no part of a normal pathname contains ";" but that should 9179 9372 # okay in the real world where ";" in dirpaths is itself problematic. 9180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`9373 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9181 9374 else 9182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`9375 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9183 9376 fi 9377 # Ok, now we have the path, separated by spaces, we can step through it 9378 # and add multilib dir if necessary. 9379 lt_tmp_lt_search_path_spec= 9380 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9381 for lt_sys_path in $lt_search_path_spec; do 9382 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9383 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9384 else 9385 test -d "$lt_sys_path" && \ 9386 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9387 fi 9388 done 9389 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9390 BEGIN {RS=" "; FS="/|\n";} { 9391 lt_foo=""; 9392 lt_count=0; 9393 for (lt_i = NF; lt_i > 0; lt_i--) { 9394 if ($lt_i != "" && $lt_i != ".") { 9395 if ($lt_i == "..") { 9396 lt_count++; 9397 } else { 9398 if (lt_count == 0) { 9399 lt_foo="/" $lt_i lt_foo; 9400 } else { 9401 lt_count--; 9402 } 9403 } 9404 } 9405 } 9406 if (lt_foo != "") { lt_freq[lt_foo]++; } 9407 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9408 }'` 9409 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9184 9410 else 9185 9411 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" … … 9341 9567 shlibpath_var=DYLD_LIBRARY_PATH 9342 9568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9343 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9344 if test "$GCC" = yes; then 9345 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9346 else 9347 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9348 fi 9569 9570 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9349 9571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9350 9572 ;; … … 9361 9583 freebsd1*) 9362 9584 dynamic_linker=no 9363 ;;9364 9365 kfreebsd*-gnu)9366 version_type=linux9367 need_lib_prefix=no9368 need_version=no9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'9370 soname_spec='${libname}${release}${shared_ext}$major'9371 shlibpath_var=LD_LIBRARY_PATH9372 shlibpath_overrides_runpath=no9373 hardcode_into_libs=yes9374 dynamic_linker='GNU ld.so'9375 9585 ;; 9376 9586 … … 9407 9617 hardcode_into_libs=yes 9408 9618 ;; 9409 *) # from 3.2 on 9619 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9620 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9410 9621 shlibpath_overrides_runpath=no 9622 hardcode_into_libs=yes 9623 ;; 9624 *) # from 4.6 on, and DragonFly 9625 shlibpath_overrides_runpath=yes 9411 9626 hardcode_into_libs=yes 9412 9627 ;; … … 9470 9685 ;; 9471 9686 9687 interix[3-9]*) 9688 version_type=linux 9689 need_lib_prefix=no 9690 need_version=no 9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9692 soname_spec='${libname}${release}${shared_ext}$major' 9693 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9694 shlibpath_var=LD_LIBRARY_PATH 9695 shlibpath_overrides_runpath=no 9696 hardcode_into_libs=yes 9697 ;; 9698 9472 9699 irix5* | irix6* | nonstopux*) 9473 9700 case $host_os in … … 9513 9740 9514 9741 # This must be Linux ELF. 9515 linux* )9742 linux* | k*bsd*-gnu) 9516 9743 version_type=linux 9517 9744 need_lib_prefix=no … … 9529 9756 # Append ld.so.conf contents to the search path 9530 9757 if test -f /etc/ld.so.conf; then 9531 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s ", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`9758 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9532 9759 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9533 9760 fi … … 9540 9767 # assume the GNU/Linux dynamic linker is in use. 9541 9768 dynamic_linker='GNU/Linux ld.so' 9542 ;;9543 9544 knetbsd*-gnu)9545 version_type=linux9546 need_lib_prefix=no9547 need_version=no9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'9549 soname_spec='${libname}${release}${shared_ext}$major'9550 shlibpath_var=LD_LIBRARY_PATH9551 shlibpath_overrides_runpath=no9552 hardcode_into_libs=yes9553 dynamic_linker='GNU ld.so'9554 9769 ;; 9555 9770 … … 9591 9806 openbsd*) 9592 9807 version_type=sunos 9808 sys_lib_dlsearch_path_spec="/usr/lib" 9593 9809 need_lib_prefix=no 9594 9810 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. … … 9634 9850 ;; 9635 9851 9636 sco3.2v5*) 9637 version_type=osf 9638 soname_spec='${libname}${release}${shared_ext}$major' 9639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9640 shlibpath_var=LD_LIBRARY_PATH 9852 rdos*) 9853 dynamic_linker=no 9641 9854 ;; 9642 9855 … … 9666 9879 ;; 9667 9880 9668 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)9881 sysv4 | sysv4.3*) 9669 9882 version_type=linux 9670 9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' … … 9699 9912 ;; 9700 9913 9914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9915 version_type=freebsd-elf 9916 need_lib_prefix=no 9917 need_version=no 9918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9919 soname_spec='${libname}${release}${shared_ext}$major' 9920 shlibpath_var=LD_LIBRARY_PATH 9921 hardcode_into_libs=yes 9922 if test "$with_gnu_ld" = yes; then 9923 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9924 shlibpath_overrides_runpath=no 9925 else 9926 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9927 shlibpath_overrides_runpath=yes 9928 case $host_os in 9929 sco3.2v5*) 9930 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9931 ;; 9932 esac 9933 fi 9934 sys_lib_dlsearch_path_spec='/usr/lib' 9935 ;; 9936 9701 9937 uts4*) 9702 9938 version_type=linux … … 9713 9949 echo "${ECHO_T}$dynamic_linker" >&6; } 9714 9950 test "$dynamic_linker" = no && can_build_shared=no 9951 9952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9953 if test "$GCC" = yes; then 9954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9955 fi 9715 9956 9716 9957 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 … … 9766 10007 if test -n "$STRIP" ; then 9767 10008 striplib="$STRIP -x" 10009 old_striplib="$STRIP -S" 9768 10010 { echo "$as_me:$LINENO: result: yes" >&5 9769 10011 echo "${ECHO_T}yes" >&6; } … … 10336 10578 10337 10579 save_LDFLAGS="$LDFLAGS" 10338 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"10580 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10339 10581 10340 10582 save_LIBS="$LIBS" … … 10352 10594 lt_status=$lt_dlunknown 10353 10595 cat > conftest.$ac_ext <<EOF 10354 #line 10 354"configure"10596 #line 10596 "configure" 10355 10597 #include "confdefs.h" 10356 10598 … … 10409 10651 /* dlclose (self); */ 10410 10652 } 10653 else 10654 puts (dlerror ()); 10411 10655 10412 10656 exit (status); … … 10423 10667 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10424 10668 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10425 x$lt_ unknown|x*) lt_cv_dlopen_self=no ;;10669 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10426 10670 esac 10427 10671 else : … … 10438 10682 10439 10683 if test "x$lt_cv_dlopen_self" = xyes; then 10440 LDFLAGS="$LDFLAGS $link_static_flag"10684 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10441 10685 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10442 10686 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } … … 10450 10694 lt_status=$lt_dlunknown 10451 10695 cat > conftest.$ac_ext <<EOF 10452 #line 10 452"configure"10696 #line 10696 "configure" 10453 10697 #include "confdefs.h" 10454 10698 … … 10507 10751 /* dlclose (self); */ 10508 10752 } 10753 else 10754 puts (dlerror ()); 10509 10755 10510 10756 exit (status); … … 10521 10767 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10522 10768 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10523 x$lt_ unknown|x*) lt_cv_dlopen_self_static=no ;;10769 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10524 10770 esac 10525 10771 else : … … 10554 10800 10555 10801 10556 # Report which librar ie types wil actually be built10802 # Report which library types will actually be built 10557 10803 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10558 10804 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } … … 10604 10850 # careful not to overquote the AC_SUBSTed values. We take copies of the 10605 10851 # variables and quote the copies for generation of the libtool script. 10606 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \10852 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10607 10853 SED SHELL STRIP \ 10608 10854 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ … … 10646 10892 module_expsym_cmds \ 10647 10893 lt_cv_prog_compiler_c_o \ 10894 fix_srcfile_path \ 10648 10895 exclude_expsyms \ 10649 10896 include_expsyms; do … … 10690 10937 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 10691 10938 # 10692 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10939 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10693 10940 # Free Software Foundation, Inc. 10694 10941 # … … 10770 11017 LTCC=$lt_LTCC 10771 11018 11019 # LTCC compiler flags. 11020 LTCFLAGS=$lt_LTCFLAGS 11021 10772 11022 # A language-specific compiler. 10773 11023 CC=$lt_compiler … … 11011 11261 11012 11262 # Fix the shell variable \$srcfile for the compiler. 11013 fix_srcfile_path= "$fix_srcfile_path"11263 fix_srcfile_path=$lt_fix_srcfile_path 11014 11264 11015 11265 # Set to yes if exported symbols are required. … … 11099 11349 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11100 11350 fi 11351 fi 11352 if test -z "$LTCFLAGS"; then 11353 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11101 11354 fi 11102 11355 … … 11152 11405 hardcode_libdir_separator_CXX= 11153 11406 hardcode_minus_L_CXX=no 11407 hardcode_shlibpath_var_CXX=unsupported 11154 11408 hardcode_automatic_CXX=no 11155 11409 module_cmds_CXX= … … 11176 11430 11177 11431 # Code to be used in simple compile tests 11178 lt_simple_compile_test_code="int some_variable = 0; \n"11432 lt_simple_compile_test_code="int some_variable = 0;" 11179 11433 11180 11434 # Code to be used in simple link tests 11181 lt_simple_link_test_code='int main(int, char * ) { return(0); }\n'11435 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11182 11436 11183 11437 # ltmain only uses $CC for tagged configurations so make sure $CC is set. … … 11186 11440 LTCC=${LTCC-"$CC"} 11187 11441 11442 # If no C compiler flags were specified, use CFLAGS. 11443 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11444 11188 11445 # Allow CC to be a program name with arguments. 11189 11446 compiler=$CC … … 11192 11449 # save warnings/boilerplate of simple test code 11193 11450 ac_outfile=conftest.$ac_objext 11194 printf"$lt_simple_compile_test_code" >conftest.$ac_ext11195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err11451 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11452 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11196 11453 _lt_compiler_boilerplate=`cat conftest.err` 11197 11454 $rm conftest* 11198 11455 11199 11456 ac_outfile=conftest.$ac_objext 11200 printf"$lt_simple_link_test_code" >conftest.$ac_ext11201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err11457 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11458 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11202 11459 _lt_linker_boilerplate=`cat conftest.err` 11203 11460 $rm conftest* … … 11214 11471 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11215 11472 else 11216 unset lt_cv_prog_gnu_ld11473 $as_unset lt_cv_prog_gnu_ld 11217 11474 fi 11218 11475 if test -n "${lt_cv_path_LDCXX+set}"; then 11219 11476 lt_cv_path_LD=$lt_cv_path_LDCXX 11220 11477 else 11221 unset lt_cv_path_LD11478 $as_unset lt_cv_path_LD 11222 11479 fi 11223 11480 test -z "${LDCXX+set}" || LD=$LDCXX … … 11430 11687 esac 11431 11688 done 11689 ;; 11432 11690 esac 11433 11691 … … 11456 11714 then 11457 11715 # We have reworked collect2 11458 hardcode_direct_CXX=yes11716 : 11459 11717 else 11460 11718 # We have old collect2 … … 11467 11725 hardcode_libdir_separator_CXX= 11468 11726 fi 11727 ;; 11469 11728 esac 11470 11729 shared_flag='-shared' … … 11529 11788 $as_test_x conftest$ac_exeext; then 11530 11789 11531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11532 }'` 11790 lt_aix_libpath_sed=' 11791 /Import File Strings/,/^$/ { 11792 /^0/ { 11793 s/^0 *\(.*\)$/\1/ 11794 p 11795 } 11796 }' 11797 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11533 11798 # Check for a 64-bit object if we didn't find anything. 11534 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11535 }'`; fi 11799 if test -z "$aix_libpath"; then 11800 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11801 fi 11536 11802 else 11537 11803 echo "$as_me: failed program was:" >&5 … … 11547 11813 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11548 11814 11549 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols $shared_flag"11815 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11550 11816 else 11551 11817 if test "$host_cpu" = ia64; then 11552 11818 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11553 11819 allow_undefined_flag_CXX="-z nodefs" 11554 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols"11820 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" 11555 11821 else 11556 11822 # Determine the default libpath from the value encoded in an empty executable. … … 11589 11855 $as_test_x conftest$ac_exeext; then 11590 11856 11591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11592 }'` 11857 lt_aix_libpath_sed=' 11858 /Import File Strings/,/^$/ { 11859 /^0/ { 11860 s/^0 *\(.*\)$/\1/ 11861 p 11862 } 11863 }' 11864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11593 11865 # Check for a 64-bit object if we didn't find anything. 11594 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11595 }'`; fi 11866 if test -z "$aix_libpath"; then 11867 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11868 fi 11596 11869 else 11597 11870 echo "$as_me: failed program was:" >&5 … … 11610 11883 no_undefined_flag_CXX=' ${wl}-bernotok' 11611 11884 allow_undefined_flag_CXX=' ${wl}-berok' 11612 # -bexpall does not export symbols beginning with underscore (_)11613 always_export_symbols_CXX=yes11614 11885 # Exported symbols can be pulled into shared objects from archives 11615 whole_archive_flag_spec_CXX=' 11886 whole_archive_flag_spec_CXX='$convenience' 11616 11887 archive_cmds_need_lc_CXX=yes 11617 11888 # This is similar to how AIX traditionally builds its shared libraries. 11618 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $ compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'11889 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11619 11890 fi 11620 11891 fi 11621 11892 ;; 11893 11894 beos*) 11895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11896 allow_undefined_flag_CXX=unsupported 11897 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11898 # support --undefined. This deserves some investigation. FIXME 11899 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11900 else 11901 ld_shlibs_CXX=no 11902 fi 11903 ;; 11904 11622 11905 chorus*) 11623 11906 case $cc_basename in … … 11629 11912 ;; 11630 11913 11631 11632 11914 cygwin* | mingw* | pw32*) 11633 11915 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, … … 11639 11921 11640 11922 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11641 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'11923 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' 11642 11924 # If the export-symbols file already is a .def file (1st line 11643 11925 # is EXPORTS), use it as is; otherwise, prepend... … … 11648 11930 cat $export_symbols >> $output_objdir/$soname.def; 11649 11931 fi~ 11650 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'11932 $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' 11651 11933 else 11652 11934 ld_shlibs_CXX=no … … 11703 11985 xlc*) 11704 11986 output_verbose_link_cmd='echo' 11705 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $ verstring'11987 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11706 11988 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11707 11989 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11708 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $ verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'11990 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11709 11991 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11710 11992 ;; … … 11740 12022 archive_cmds_need_lc_CXX=no 11741 12023 ;; 11742 freebsd* | kfreebsd*-gnu |dragonfly*)12024 freebsd* | dragonfly*) 11743 12025 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11744 12026 # conventions … … 11785 12067 hpux10*|hpux11*) 11786 12068 if test $with_gnu_ld = no; then 12069 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12070 hardcode_libdir_separator_CXX=: 12071 11787 12072 case $host_cpu in 11788 hppa*64*) 11789 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11790 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11791 hardcode_libdir_separator_CXX=: 11792 ;; 11793 ia64*) 11794 hardcode_libdir_flag_spec_CXX='-L$libdir' 11795 ;; 12073 hppa*64*|ia64*) ;; 11796 12074 *) 11797 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'11798 hardcode_libdir_separator_CXX=:11799 12075 export_dynamic_flag_spec_CXX='${wl}-E' 11800 12076 ;; … … 11802 12078 fi 11803 12079 case $host_cpu in 11804 hppa*64* )12080 hppa*64*|ia64*) 11805 12081 hardcode_direct_CXX=no 11806 12082 hardcode_shlibpath_var_CXX=no 11807 ;;11808 ia64*)11809 hardcode_direct_CXX=no11810 hardcode_shlibpath_var_CXX=no11811 hardcode_minus_L_CXX=yes # Not in the search PATH,11812 # but as the default11813 # location of the library.11814 12083 ;; 11815 12084 *) … … 11828 12097 aCC*) 11829 12098 case $host_cpu in 11830 hppa*64*|ia64*) 11831 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12099 hppa*64*) 12100 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12101 ;; 12102 ia64*) 12103 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11832 12104 ;; 11833 12105 *) … … 11849 12121 if test $with_gnu_ld = no; then 11850 12122 case $host_cpu in 11851 ia64*|hppa*64*) 11852 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 12123 hppa*64*) 12124 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12125 ;; 12126 ia64*) 12127 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11853 12128 ;; 11854 12129 *) … … 11863 12138 ;; 11864 12139 esac 12140 ;; 12141 interix[3-9]*) 12142 hardcode_direct_CXX=no 12143 hardcode_shlibpath_var_CXX=no 12144 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12145 export_dynamic_flag_spec_CXX='${wl}-E' 12146 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12147 # Instead, shared libraries are loaded at an image base (0x10000000 by 12148 # default) and relocated if they conflict, which is a slow very memory 12149 # consuming and fragmenting process. To avoid this, we pick a random, 12150 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12151 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12152 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' 12153 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' 11865 12154 ;; 11866 12155 irix5* | irix6*) … … 11890 12179 hardcode_libdir_separator_CXX=: 11891 12180 ;; 11892 linux* )12181 linux* | k*bsd*-gnu) 11893 12182 case $cc_basename in 11894 12183 KCC*) … … 11969 12258 # dependencies. 11970 12259 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12260 ;; 12261 *) 12262 case `$CC -V 2>&1 | sed 5q` in 12263 *Sun\ C*) 12264 # Sun C++ 5.9 12265 no_undefined_flag_CXX=' -zdefs' 12266 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12267 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' 12268 hardcode_libdir_flag_spec_CXX='-R$libdir' 12269 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 12270 12271 # Not sure whether something based on 12272 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12273 # would be better. 12274 output_verbose_link_cmd='echo' 12275 12276 # Archives containing C++ object files must be created using 12277 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12278 # necessary to make sure instantiated templates are included 12279 # in the archive. 12280 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12281 ;; 12282 esac 11971 12283 ;; 11972 12284 esac … … 12008 12320 ;; 12009 12321 openbsd*) 12010 hardcode_direct_CXX=yes 12011 hardcode_shlibpath_var_CXX=no 12012 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12013 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12015 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12016 export_dynamic_flag_spec_CXX='${wl}-E' 12017 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12322 if test -f /usr/libexec/ld.so; then 12323 hardcode_direct_CXX=yes 12324 hardcode_shlibpath_var_CXX=no 12325 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12326 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12328 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12329 export_dynamic_flag_spec_CXX='${wl}-E' 12330 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12331 fi 12332 output_verbose_link_cmd='echo' 12333 else 12334 ld_shlibs_CXX=no 12018 12335 fi 12019 output_verbose_link_cmd='echo'12020 12336 ;; 12021 12337 osf3*) … … 12145 12461 # FIXME: insert proper C++ library support 12146 12462 ld_shlibs_CXX=no 12147 ;;12148 sco*)12149 archive_cmds_need_lc_CXX=no12150 case $cc_basename in12151 CC*)12152 # FIXME: insert proper C++ library support12153 ld_shlibs_CXX=no12154 ;;12155 *)12156 # FIXME: insert proper C++ library support12157 ld_shlibs_CXX=no12158 ;;12159 esac12160 12463 ;; 12161 12464 sunos4*) … … 12192 12495 solaris2.[0-5] | solaris2.[0-5].*) ;; 12193 12496 *) 12194 # The C++ compiler is used as linker so we must use $wl 12195 # flag to pass the commands to the underlying system 12196 # linker. We must also pass each convience library through 12197 # to the system linker between allextract/defaultextract. 12198 # The C++ compiler will combine linker options so we 12199 # cannot just pass the convience library names through 12200 # without $wl. 12497 # The compiler driver will combine and reorder linker options, 12498 # but understands `-z linker_flag'. 12201 12499 # Supported since Solaris 2.6 (maybe 2.5.1?) 12202 whole_archive_flag_spec_CXX=' ${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'12500 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12203 12501 ;; 12204 12502 esac … … 12247 12545 12248 12546 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12547 case $host_os in 12548 solaris2.[0-5] | solaris2.[0-5].*) ;; 12549 *) 12550 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12551 ;; 12552 esac 12249 12553 fi 12250 12554 ;; 12251 12555 esac 12252 12556 ;; 12253 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 12557 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12558 no_undefined_flag_CXX='${wl}-z,text' 12254 12559 archive_cmds_need_lc_CXX=no 12560 hardcode_shlibpath_var_CXX=no 12561 runpath_var='LD_RUN_PATH' 12562 12563 case $cc_basename in 12564 CC*) 12565 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12566 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12567 ;; 12568 *) 12569 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12570 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12571 ;; 12572 esac 12573 ;; 12574 sysv5* | sco3.2v5* | sco5v6*) 12575 # Note: We can NOT use -z defs as we might desire, because we do not 12576 # link with -lc, and that would cause any symbols used from libc to 12577 # always be unresolved, which means just about no library would 12578 # ever link correctly. If we're not using GNU ld we use -z text 12579 # though, which does catch some bad symbols but isn't as heavy-handed 12580 # as -z defs. 12581 # For security reasons, it is highly recommended that you always 12582 # use absolute paths for naming shared libraries, and exclude the 12583 # DT_RUNPATH tag from executables and libraries. But doing so 12584 # requires that you compile everything twice, which is a pain. 12585 # So that behaviour is only enabled if SCOABSPATH is set to a 12586 # non-empty value in the environment. Most likely only useful for 12587 # creating official distributions of packages. 12588 # This is a hack until libtool officially supports absolute path 12589 # names for shared libraries. 12590 no_undefined_flag_CXX='${wl}-z,text' 12591 allow_undefined_flag_CXX='${wl}-z,nodefs' 12592 archive_cmds_need_lc_CXX=no 12593 hardcode_shlibpath_var_CXX=no 12594 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12595 hardcode_libdir_separator_CXX=':' 12596 link_all_deplibs_CXX=yes 12597 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12598 runpath_var='LD_RUN_PATH' 12599 12600 case $cc_basename in 12601 CC*) 12602 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12603 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12604 ;; 12605 *) 12606 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12607 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12608 ;; 12609 esac 12255 12610 ;; 12256 12611 tandem*) … … 12387 12742 # PORTME: override above test on systems where it is broken 12388 12743 case $host_os in 12744 interix[3-9]*) 12745 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12746 # hack all around it, let's just trust "g++" to DTRT. 12747 predep_objects_CXX= 12748 postdep_objects_CXX= 12749 postdeps_CXX= 12750 ;; 12751 12752 linux*) 12753 case `$CC -V 2>&1 | sed 5q` in 12754 *Sun\ C*) 12755 # Sun C++ 5.9 12756 # 12757 # The more standards-conforming stlport4 library is 12758 # incompatible with the Cstd library. Avoid specifying 12759 # it if it's in CXXFLAGS. Ignore libCrun as 12760 # -library=stlport4 depends on it. 12761 case " $CXX $CXXFLAGS " in 12762 *" -library=stlport4 "*) 12763 solaris_use_stlport4=yes 12764 ;; 12765 esac 12766 if test "$solaris_use_stlport4" != yes; then 12767 postdeps_CXX='-library=Cstd -library=Crun' 12768 fi 12769 ;; 12770 esac 12771 ;; 12772 12389 12773 solaris*) 12390 12774 case $cc_basename in 12391 12775 CC*) 12776 # The more standards-conforming stlport4 library is 12777 # incompatible with the Cstd library. Avoid specifying 12778 # it if it's in CXXFLAGS. Ignore libCrun as 12779 # -library=stlport4 depends on it. 12780 case " $CXX $CXXFLAGS " in 12781 *" -library=stlport4 "*) 12782 solaris_use_stlport4=yes 12783 ;; 12784 esac 12785 12392 12786 # Adding this requires a known-good setup of shared libraries for 12393 12787 # Sun compiler versions before 5.6, else PIC objects from an old 12394 12788 # archive will be linked into the output, leading to subtle bugs. 12395 postdeps_CXX='-lCstd -lCrun' 12789 if test "$solaris_use_stlport4" != yes; then 12790 postdeps_CXX='-library=Cstd -library=Crun' 12791 fi 12396 12792 ;; 12397 12793 esac 12794 ;; 12398 12795 esac 12399 12796 … … 12429 12826 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12430 12827 ;; 12431 beos* | cygwin* |irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)12828 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12432 12829 # PIC is the default for these OSes. 12433 12830 ;; 12434 mingw* | os2* | pw32*)12831 mingw* | cygwin* | os2* | pw32*) 12435 12832 # This hack is so that the source file can tell whether it is being 12436 12833 # built for inclusion in a dll (and should export symbols for example). 12834 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12835 # (--disable-auto-import) libraries 12437 12836 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12438 12837 ;; … … 12445 12844 # DJGPP does not support shared libraries at all 12446 12845 lt_prog_compiler_pic_CXX= 12846 ;; 12847 interix[3-9]*) 12848 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12849 # Instead, we relocate shared libraries at runtime. 12447 12850 ;; 12448 12851 sysv4*MP*) … … 12508 12911 esac 12509 12912 ;; 12510 freebsd* | kfreebsd*-gnu |dragonfly*)12913 freebsd* | dragonfly*) 12511 12914 # FreeBSD uses GNU C++ 12512 12915 ;; … … 12515 12918 CC*) 12516 12919 lt_prog_compiler_wl_CXX='-Wl,' 12517 lt_prog_compiler_static_CXX= "${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"12920 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12518 12921 if test "$host_cpu" != ia64; then 12519 12922 lt_prog_compiler_pic_CXX='+Z' … … 12522 12925 aCC*) 12523 12926 lt_prog_compiler_wl_CXX='-Wl,' 12524 lt_prog_compiler_static_CXX= "${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"12927 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12525 12928 case $host_cpu in 12526 12929 hppa*64*|ia64*) … … 12536 12939 esac 12537 12940 ;; 12941 interix*) 12942 # This is c89, which is MS Visual C++ (no shared libs) 12943 # Anyone wants to do a port? 12944 ;; 12538 12945 irix5* | irix6* | nonstopux*) 12539 12946 case $cc_basename in … … 12547 12954 esac 12548 12955 ;; 12549 linux* )12956 linux* | k*bsd*-gnu) 12550 12957 case $cc_basename in 12551 12958 KCC*) … … 12574 12981 ;; 12575 12982 *) 12983 case `$CC -V 2>&1 | sed 5q` in 12984 *Sun\ C*) 12985 # Sun C++ 5.9 12986 lt_prog_compiler_pic_CXX='-KPIC' 12987 lt_prog_compiler_static_CXX='-Bstatic' 12988 lt_prog_compiler_wl_CXX='-Qoption ld ' 12989 ;; 12990 esac 12576 12991 ;; 12577 12992 esac … … 12614 13029 ;; 12615 13030 psos*) 12616 ;;12617 sco*)12618 case $cc_basename in12619 CC*)12620 lt_prog_compiler_pic_CXX='-fPIC'12621 ;;12622 *)12623 ;;12624 esac12625 13031 ;; 12626 13032 solaris*) … … 12665 13071 esac 12666 13072 ;; 12667 unixware*) 13073 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13074 case $cc_basename in 13075 CC*) 13076 lt_prog_compiler_wl_CXX='-Wl,' 13077 lt_prog_compiler_pic_CXX='-KPIC' 13078 lt_prog_compiler_static_CXX='-Bstatic' 13079 ;; 13080 esac 12668 13081 ;; 12669 13082 vxworks*) … … 12690 13103 lt_prog_compiler_pic_works_CXX=no 12691 13104 ac_outfile=conftest.$ac_objext 12692 printf"$lt_simple_compile_test_code" > conftest.$ac_ext13105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12693 13106 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12694 13107 # Insert the option either (1) after the last *FLAGS variable, or … … 12701 13114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12702 13115 -e 's:$: $lt_compiler_flag:'` 12703 (eval echo "\"\$as_me:1 2703: $lt_compile\"" >&5)13116 (eval echo "\"\$as_me:13116: $lt_compile\"" >&5) 12704 13117 (eval "$lt_compile" 2>conftest.err) 12705 13118 ac_status=$? 12706 13119 cat conftest.err >&5 12707 echo "$as_me:1 2707: \$? = $ac_status" >&513120 echo "$as_me:13120: \$? = $ac_status" >&5 12708 13121 if (exit $ac_status) && test -s "$ac_outfile"; then 12709 13122 # The compiler can only warn and ignore the option if not recognized 12710 13123 # So say no if there are warnings other than the usual output. 12711 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp12712 $SED '/^$/d ' conftest.err >conftest.er212713 if test ! -s conftest.er r|| diff conftest.exp conftest.er2 >/dev/null; then13124 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12714 13127 lt_prog_compiler_pic_works_CXX=yes 12715 13128 fi … … 12742 13155 esac 12743 13156 13157 # 13158 # Check to make sure the static flag actually works. 13159 # 13160 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13161 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13162 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 13163 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 13164 echo $ECHO_N "(cached) $ECHO_C" >&6 13165 else 13166 lt_prog_compiler_static_works_CXX=no 13167 save_LDFLAGS="$LDFLAGS" 13168 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13169 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13170 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13171 # The linker can only warn and ignore the option if not recognized 13172 # So say no if there are warnings 13173 if test -s conftest.err; then 13174 # Append any errors to the config.log. 13175 cat conftest.err 1>&5 13176 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13177 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13178 if diff conftest.exp conftest.er2 >/dev/null; then 13179 lt_prog_compiler_static_works_CXX=yes 13180 fi 13181 else 13182 lt_prog_compiler_static_works_CXX=yes 13183 fi 13184 fi 13185 $rm conftest* 13186 LDFLAGS="$save_LDFLAGS" 13187 13188 fi 13189 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 13190 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 13191 13192 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 13193 : 13194 else 13195 lt_prog_compiler_static_CXX= 13196 fi 13197 13198 12744 13199 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12745 13200 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } … … 12752 13207 cd conftest 12753 13208 mkdir out 12754 printf"$lt_simple_compile_test_code" > conftest.$ac_ext13209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12755 13210 12756 13211 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 12763 13218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12764 13219 -e 's:$: $lt_compiler_flag:'` 12765 (eval echo "\"\$as_me:1 2765: $lt_compile\"" >&5)13220 (eval echo "\"\$as_me:13220: $lt_compile\"" >&5) 12766 13221 (eval "$lt_compile" 2>out/conftest.err) 12767 13222 ac_status=$? 12768 13223 cat out/conftest.err >&5 12769 echo "$as_me:1 2769: \$? = $ac_status" >&513224 echo "$as_me:13224: \$? = $ac_status" >&5 12770 13225 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12771 13226 then 12772 13227 # The compiler can only warn and ignore the option if not recognized 12773 13228 # So say no if there are warnings 12774 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp12775 $SED '/^$/d ' out/conftest.err >out/conftest.er212776 if test ! -s out/conftest.er r|| diff out/conftest.exp out/conftest.er2 >/dev/null; then13229 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13230 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13231 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12777 13232 lt_cv_prog_compiler_c_o_CXX=yes 12778 13233 fi … … 12833 13288 ;; 12834 13289 cygwin* | mingw*) 12835 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.*//'\'' | sort | uniq > $export_symbols'13290 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12836 13291 ;; 12837 13292 *) … … 12843 13298 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12844 13299 test "$ld_shlibs_CXX" = no && can_build_shared=no 12845 12846 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"12847 if test "$GCC" = yes; then12848 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"12849 fi12850 13300 12851 13301 # … … 12869 13319 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12870 13320 $rm conftest* 12871 printf"$lt_simple_compile_test_code" > conftest.$ac_ext13321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12872 13322 12873 13323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 … … 12881 13331 deplibs= 12882 13332 wl=$lt_prog_compiler_wl_CXX 13333 pic_flag=$lt_prog_compiler_pic_CXX 12883 13334 compiler_flags=-v 12884 13335 linker_flags=-v … … 12926 13377 dynamic_linker="$host_os ld.so" 12927 13378 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12928 if test "$GCC" = yes; then 12929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12930 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12931 # if the path contains ";" then we assume it to be the separator 12932 # otherwise default to the standard path separator (i.e. ":") - it is 12933 # assumed that no part of a normal pathname contains ";" but that should 12934 # okay in the real world where ";" in dirpaths is itself problematic. 12935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12936 else 12937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12938 fi 12939 else 12940 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12941 fi 13379 12942 13380 need_lib_prefix=unknown 12943 13381 hardcode_into_libs=no … … 13096 13534 shlibpath_var=DYLD_LIBRARY_PATH 13097 13535 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13098 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13099 if test "$GCC" = yes; then 13100 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13101 else 13102 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13103 fi 13536 13104 13537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13105 13538 ;; … … 13116 13549 freebsd1*) 13117 13550 dynamic_linker=no 13118 ;;13119 13120 kfreebsd*-gnu)13121 version_type=linux13122 need_lib_prefix=no13123 need_version=no13124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'13125 soname_spec='${libname}${release}${shared_ext}$major'13126 shlibpath_var=LD_LIBRARY_PATH13127 shlibpath_overrides_runpath=no13128 hardcode_into_libs=yes13129 dynamic_linker='GNU ld.so'13130 13551 ;; 13131 13552 … … 13162 13583 hardcode_into_libs=yes 13163 13584 ;; 13164 *) # from 3.2 on 13585 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13586 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13165 13587 shlibpath_overrides_runpath=no 13588 hardcode_into_libs=yes 13589 ;; 13590 *) # from 4.6 on, and DragonFly 13591 shlibpath_overrides_runpath=yes 13166 13592 hardcode_into_libs=yes 13167 13593 ;; … … 13225 13651 ;; 13226 13652 13653 interix[3-9]*) 13654 version_type=linux 13655 need_lib_prefix=no 13656 need_version=no 13657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13658 soname_spec='${libname}${release}${shared_ext}$major' 13659 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13660 shlibpath_var=LD_LIBRARY_PATH 13661 shlibpath_overrides_runpath=no 13662 hardcode_into_libs=yes 13663 ;; 13664 13227 13665 irix5* | irix6* | nonstopux*) 13228 13666 case $host_os in … … 13268 13706 13269 13707 # This must be Linux ELF. 13270 linux* )13708 linux* | k*bsd*-gnu) 13271 13709 version_type=linux 13272 13710 need_lib_prefix=no … … 13284 13722 # Append ld.so.conf contents to the search path 13285 13723 if test -f /etc/ld.so.conf; then 13286 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s ", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`13724 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13287 13725 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13288 13726 fi … … 13295 13733 # assume the GNU/Linux dynamic linker is in use. 13296 13734 dynamic_linker='GNU/Linux ld.so' 13297 ;;13298 13299 knetbsd*-gnu)13300 version_type=linux13301 need_lib_prefix=no13302 need_version=no13303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'13304 soname_spec='${libname}${release}${shared_ext}$major'13305 shlibpath_var=LD_LIBRARY_PATH13306 shlibpath_overrides_runpath=no13307 hardcode_into_libs=yes13308 dynamic_linker='GNU ld.so'13309 13735 ;; 13310 13736 … … 13346 13772 openbsd*) 13347 13773 version_type=sunos 13774 sys_lib_dlsearch_path_spec="/usr/lib" 13348 13775 need_lib_prefix=no 13349 13776 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. … … 13389 13816 ;; 13390 13817 13391 sco3.2v5*) 13392 version_type=osf 13393 soname_spec='${libname}${release}${shared_ext}$major' 13394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13395 shlibpath_var=LD_LIBRARY_PATH 13818 rdos*) 13819 dynamic_linker=no 13396 13820 ;; 13397 13821 … … 13421 13845 ;; 13422 13846 13423 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)13847 sysv4 | sysv4.3*) 13424 13848 version_type=linux 13425 13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' … … 13454 13878 ;; 13455 13879 13880 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13881 version_type=freebsd-elf 13882 need_lib_prefix=no 13883 need_version=no 13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13885 soname_spec='${libname}${release}${shared_ext}$major' 13886 shlibpath_var=LD_LIBRARY_PATH 13887 hardcode_into_libs=yes 13888 if test "$with_gnu_ld" = yes; then 13889 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13890 shlibpath_overrides_runpath=no 13891 else 13892 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13893 shlibpath_overrides_runpath=yes 13894 case $host_os in 13895 sco3.2v5*) 13896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13897 ;; 13898 esac 13899 fi 13900 sys_lib_dlsearch_path_spec='/usr/lib' 13901 ;; 13902 13456 13903 uts4*) 13457 13904 version_type=linux … … 13468 13915 echo "${ECHO_T}$dynamic_linker" >&6; } 13469 13916 test "$dynamic_linker" = no && can_build_shared=no 13917 13918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13919 if test "$GCC" = yes; then 13920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13921 fi 13470 13922 13471 13923 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 … … 13506 13958 fi 13507 13959 13508 striplib=13509 old_striplib=13510 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&513511 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }13512 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then13513 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"13514 test -z "$striplib" && striplib="$STRIP --strip-unneeded"13515 { echo "$as_me:$LINENO: result: yes" >&513516 echo "${ECHO_T}yes" >&6; }13517 else13518 # FIXME - insert some real tests, host_os isn't really good enough13519 case $host_os in13520 darwin*)13521 if test -n "$STRIP" ; then13522 striplib="$STRIP -x"13523 { echo "$as_me:$LINENO: result: yes" >&513524 echo "${ECHO_T}yes" >&6; }13525 else13526 { echo "$as_me:$LINENO: result: no" >&513527 echo "${ECHO_T}no" >&6; }13528 fi13529 ;;13530 *)13531 { echo "$as_me:$LINENO: result: no" >&513532 echo "${ECHO_T}no" >&6; }13533 ;;13534 esac13535 fi13536 13537 if test "x$enable_dlopen" != xyes; then13538 enable_dlopen=unknown13539 enable_dlopen_self=unknown13540 enable_dlopen_self_static=unknown13541 else13542 lt_cv_dlopen=no13543 lt_cv_dlopen_libs=13544 13545 case $host_os in13546 beos*)13547 lt_cv_dlopen="load_add_on"13548 lt_cv_dlopen_libs=13549 lt_cv_dlopen_self=yes13550 ;;13551 13552 mingw* | pw32*)13553 lt_cv_dlopen="LoadLibrary"13554 lt_cv_dlopen_libs=13555 ;;13556 13557 cygwin*)13558 lt_cv_dlopen="dlopen"13559 lt_cv_dlopen_libs=13560 ;;13561 13562 darwin*)13563 # if libdl is installed we need to link against it13564 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&513565 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }13566 if test "${ac_cv_lib_dl_dlopen+set}" = set; then13567 echo $ECHO_N "(cached) $ECHO_C" >&613568 else13569 ac_check_lib_save_LIBS=$LIBS13570 LIBS="-ldl $LIBS"13571 cat >conftest.$ac_ext <<_ACEOF13572 /* confdefs.h. */13573 _ACEOF13574 cat confdefs.h >>conftest.$ac_ext13575 cat >>conftest.$ac_ext <<_ACEOF13576 /* end confdefs.h. */13577 13578 /* Override any GCC internal prototype to avoid an error.13579 Use char because int might match the return type of a GCC13580 builtin and then its argument prototype would still apply. */13581 #ifdef __cplusplus13582 extern "C"13583 #endif13584 char dlopen ();13585 int13586 main ()13587 {13588 return dlopen ();13589 ;13590 return 0;13591 }13592 _ACEOF13593 rm -f conftest.$ac_objext conftest$ac_exeext13594 if { (ac_try="$ac_link"13595 case "(($ac_try" in13596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13597 *) ac_try_echo=$ac_try;;13598 esac13599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&513600 (eval "$ac_link") 2>conftest.er113601 ac_status=$?13602 grep -v '^ *+' conftest.er1 >conftest.err13603 rm -f conftest.er113604 cat conftest.err >&513605 echo "$as_me:$LINENO: \$? = $ac_status" >&513606 (exit $ac_status); } && {13607 test -z "$ac_cxx_werror_flag" ||13608 test ! -s conftest.err13609 } && test -s conftest$ac_exeext &&13610 $as_test_x conftest$ac_exeext; then13611 ac_cv_lib_dl_dlopen=yes13612 else13613 echo "$as_me: failed program was:" >&513614 sed 's/^/| /' conftest.$ac_ext >&513615 13616 ac_cv_lib_dl_dlopen=no13617 fi13618 13619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13620 conftest$ac_exeext conftest.$ac_ext13621 LIBS=$ac_check_lib_save_LIBS13622 fi13623 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&513624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }13625 if test $ac_cv_lib_dl_dlopen = yes; then13626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"13627 else13628 13629 lt_cv_dlopen="dyld"13630 lt_cv_dlopen_libs=13631 lt_cv_dlopen_self=yes13632 13633 fi13634 13635 ;;13636 13637 *)13638 { echo "$as_me:$LINENO: checking for shl_load" >&513639 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }13640 if test "${ac_cv_func_shl_load+set}" = set; then13641 echo $ECHO_N "(cached) $ECHO_C" >&613642 else13643 cat >conftest.$ac_ext <<_ACEOF13644 /* confdefs.h. */13645 _ACEOF13646 cat confdefs.h >>conftest.$ac_ext13647 cat >>conftest.$ac_ext <<_ACEOF13648 /* end confdefs.h. */13649 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.13650 For example, HP-UX 11i <limits.h> declares gettimeofday. */13651 #define shl_load innocuous_shl_load13652 13653 /* System header to define __stub macros and hopefully few prototypes,13654 which can conflict with char shl_load (); below.13655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13656 <limits.h> exists even on freestanding compilers. */13657 13658 #ifdef __STDC__13659 # include <limits.h>13660 #else13661 # include <assert.h>13662 #endif13663 13664 #undef shl_load13665 13666 /* Override any GCC internal prototype to avoid an error.13667 Use char because int might match the return type of a GCC13668 builtin and then its argument prototype would still apply. */13669 #ifdef __cplusplus13670 extern "C"13671 #endif13672 char shl_load ();13673 /* The GNU C library defines this for functions which it implements13674 to always fail with ENOSYS. Some functions are actually named13675 something starting with __ and the normal name is an alias. */13676 #if defined __stub_shl_load || defined __stub___shl_load13677 choke me13678 #endif13679 13680 int13681 main ()13682 {13683 return shl_load ();13684 ;13685 return 0;13686 }13687 _ACEOF13688 rm -f conftest.$ac_objext conftest$ac_exeext13689 if { (ac_try="$ac_link"13690 case "(($ac_try" in13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13692 *) ac_try_echo=$ac_try;;13693 esac13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&513695 (eval "$ac_link") 2>conftest.er113696 ac_status=$?13697 grep -v '^ *+' conftest.er1 >conftest.err13698 rm -f conftest.er113699 cat conftest.err >&513700 echo "$as_me:$LINENO: \$? = $ac_status" >&513701 (exit $ac_status); } && {13702 test -z "$ac_cxx_werror_flag" ||13703 test ! -s conftest.err13704 } && test -s conftest$ac_exeext &&13705 $as_test_x conftest$ac_exeext; then13706 ac_cv_func_shl_load=yes13707 else13708 echo "$as_me: failed program was:" >&513709 sed 's/^/| /' conftest.$ac_ext >&513710 13711 ac_cv_func_shl_load=no13712 fi13713 13714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13715 conftest$ac_exeext conftest.$ac_ext13716 fi13717 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&513718 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }13719 if test $ac_cv_func_shl_load = yes; then13720 lt_cv_dlopen="shl_load"13721 else13722 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&513723 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }13724 if test "${ac_cv_lib_dld_shl_load+set}" = set; then13725 echo $ECHO_N "(cached) $ECHO_C" >&613726 else13727 ac_check_lib_save_LIBS=$LIBS13728 LIBS="-ldld $LIBS"13729 cat >conftest.$ac_ext <<_ACEOF13730 /* confdefs.h. */13731 _ACEOF13732 cat confdefs.h >>conftest.$ac_ext13733 cat >>conftest.$ac_ext <<_ACEOF13734 /* end confdefs.h. */13735 13736 /* Override any GCC internal prototype to avoid an error.13737 Use char because int might match the return type of a GCC13738 builtin and then its argument prototype would still apply. */13739 #ifdef __cplusplus13740 extern "C"13741 #endif13742 char shl_load ();13743 int13744 main ()13745 {13746 return shl_load ();13747 ;13748 return 0;13749 }13750 _ACEOF13751 rm -f conftest.$ac_objext conftest$ac_exeext13752 if { (ac_try="$ac_link"13753 case "(($ac_try" in13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13755 *) ac_try_echo=$ac_try;;13756 esac13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&513758 (eval "$ac_link") 2>conftest.er113759 ac_status=$?13760 grep -v '^ *+' conftest.er1 >conftest.err13761 rm -f conftest.er113762 cat conftest.err >&513763 echo "$as_me:$LINENO: \$? = $ac_status" >&513764 (exit $ac_status); } && {13765 test -z "$ac_cxx_werror_flag" ||13766 test ! -s conftest.err13767 } && test -s conftest$ac_exeext &&13768 $as_test_x conftest$ac_exeext; then13769 ac_cv_lib_dld_shl_load=yes13770 else13771 echo "$as_me: failed program was:" >&513772 sed 's/^/| /' conftest.$ac_ext >&513773 13774 ac_cv_lib_dld_shl_load=no13775 fi13776 13777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13778 conftest$ac_exeext conftest.$ac_ext13779 LIBS=$ac_check_lib_save_LIBS13780 fi13781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&513782 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }13783 if test $ac_cv_lib_dld_shl_load = yes; then13784 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"13785 else13786 { echo "$as_me:$LINENO: checking for dlopen" >&513787 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }13788 if test "${ac_cv_func_dlopen+set}" = set; then13789 echo $ECHO_N "(cached) $ECHO_C" >&613790 else13791 cat >conftest.$ac_ext <<_ACEOF13792 /* confdefs.h. */13793 _ACEOF13794 cat confdefs.h >>conftest.$ac_ext13795 cat >>conftest.$ac_ext <<_ACEOF13796 /* end confdefs.h. */13797 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.13798 For example, HP-UX 11i <limits.h> declares gettimeofday. */13799 #define dlopen innocuous_dlopen13800 13801 /* System header to define __stub macros and hopefully few prototypes,13802 which can conflict with char dlopen (); below.13803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13804 <limits.h> exists even on freestanding compilers. */13805 13806 #ifdef __STDC__13807 # include <limits.h>13808 #else13809 # include <assert.h>13810 #endif13811 13812 #undef dlopen13813 13814 /* Override any GCC internal prototype to avoid an error.13815 Use char because int might match the return type of a GCC13816 builtin and then its argument prototype would still apply. */13817 #ifdef __cplusplus13818 extern "C"13819 #endif13820 char dlopen ();13821 /* The GNU C library defines this for functions which it implements13822 to always fail with ENOSYS. Some functions are actually named13823 something starting with __ and the normal name is an alias. */13824 #if defined __stub_dlopen || defined __stub___dlopen13825 choke me13826 #endif13827 13828 int13829 main ()13830 {13831 return dlopen ();13832 ;13833 return 0;13834 }13835 _ACEOF13836 rm -f conftest.$ac_objext conftest$ac_exeext13837 if { (ac_try="$ac_link"13838 case "(($ac_try" in13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13840 *) ac_try_echo=$ac_try;;13841 esac13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&513843 (eval "$ac_link") 2>conftest.er113844 ac_status=$?13845 grep -v '^ *+' conftest.er1 >conftest.err13846 rm -f conftest.er113847 cat conftest.err >&513848 echo "$as_me:$LINENO: \$? = $ac_status" >&513849 (exit $ac_status); } && {13850 test -z "$ac_cxx_werror_flag" ||13851 test ! -s conftest.err13852 } && test -s conftest$ac_exeext &&13853 $as_test_x conftest$ac_exeext; then13854 ac_cv_func_dlopen=yes13855 else13856 echo "$as_me: failed program was:" >&513857 sed 's/^/| /' conftest.$ac_ext >&513858 13859 ac_cv_func_dlopen=no13860 fi13861 13862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13863 conftest$ac_exeext conftest.$ac_ext13864 fi13865 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&513866 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }13867 if test $ac_cv_func_dlopen = yes; then13868 lt_cv_dlopen="dlopen"13869 else13870 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&513871 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }13872 if test "${ac_cv_lib_dl_dlopen+set}" = set; then13873 echo $ECHO_N "(cached) $ECHO_C" >&613874 else13875 ac_check_lib_save_LIBS=$LIBS13876 LIBS="-ldl $LIBS"13877 cat >conftest.$ac_ext <<_ACEOF13878 /* confdefs.h. */13879 _ACEOF13880 cat confdefs.h >>conftest.$ac_ext13881 cat >>conftest.$ac_ext <<_ACEOF13882 /* end confdefs.h. */13883 13884 /* Override any GCC internal prototype to avoid an error.13885 Use char because int might match the return type of a GCC13886 builtin and then its argument prototype would still apply. */13887 #ifdef __cplusplus13888 extern "C"13889 #endif13890 char dlopen ();13891 int13892 main ()13893 {13894 return dlopen ();13895 ;13896 return 0;13897 }13898 _ACEOF13899 rm -f conftest.$ac_objext conftest$ac_exeext13900 if { (ac_try="$ac_link"13901 case "(($ac_try" in13902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13903 *) ac_try_echo=$ac_try;;13904 esac13905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&513906 (eval "$ac_link") 2>conftest.er113907 ac_status=$?13908 grep -v '^ *+' conftest.er1 >conftest.err13909 rm -f conftest.er113910 cat conftest.err >&513911 echo "$as_me:$LINENO: \$? = $ac_status" >&513912 (exit $ac_status); } && {13913 test -z "$ac_cxx_werror_flag" ||13914 test ! -s conftest.err13915 } && test -s conftest$ac_exeext &&13916 $as_test_x conftest$ac_exeext; then13917 ac_cv_lib_dl_dlopen=yes13918 else13919 echo "$as_me: failed program was:" >&513920 sed 's/^/| /' conftest.$ac_ext >&513921 13922 ac_cv_lib_dl_dlopen=no13923 fi13924 13925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13926 conftest$ac_exeext conftest.$ac_ext13927 LIBS=$ac_check_lib_save_LIBS13928 fi13929 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&513930 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }13931 if test $ac_cv_lib_dl_dlopen = yes; then13932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"13933 else13934 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&513935 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }13936 if test "${ac_cv_lib_svld_dlopen+set}" = set; then13937 echo $ECHO_N "(cached) $ECHO_C" >&613938 else13939 ac_check_lib_save_LIBS=$LIBS13940 LIBS="-lsvld $LIBS"13941 cat >conftest.$ac_ext <<_ACEOF13942 /* confdefs.h. */13943 _ACEOF13944 cat confdefs.h >>conftest.$ac_ext13945 cat >>conftest.$ac_ext <<_ACEOF13946 /* end confdefs.h. */13947 13948 /* Override any GCC internal prototype to avoid an error.13949 Use char because int might match the return type of a GCC13950 builtin and then its argument prototype would still apply. */13951 #ifdef __cplusplus13952 extern "C"13953 #endif13954 char dlopen ();13955 int13956 main ()13957 {13958 return dlopen ();13959 ;13960 return 0;13961 }13962 _ACEOF13963 rm -f conftest.$ac_objext conftest$ac_exeext13964 if { (ac_try="$ac_link"13965 case "(($ac_try" in13966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;13967 *) ac_try_echo=$ac_try;;13968 esac13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&513970 (eval "$ac_link") 2>conftest.er113971 ac_status=$?13972 grep -v '^ *+' conftest.er1 >conftest.err13973 rm -f conftest.er113974 cat conftest.err >&513975 echo "$as_me:$LINENO: \$? = $ac_status" >&513976 (exit $ac_status); } && {13977 test -z "$ac_cxx_werror_flag" ||13978 test ! -s conftest.err13979 } && test -s conftest$ac_exeext &&13980 $as_test_x conftest$ac_exeext; then13981 ac_cv_lib_svld_dlopen=yes13982 else13983 echo "$as_me: failed program was:" >&513984 sed 's/^/| /' conftest.$ac_ext >&513985 13986 ac_cv_lib_svld_dlopen=no13987 fi13988 13989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \13990 conftest$ac_exeext conftest.$ac_ext13991 LIBS=$ac_check_lib_save_LIBS13992 fi13993 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&513994 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }13995 if test $ac_cv_lib_svld_dlopen = yes; then13996 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"13997 else13998 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&513999 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }14000 if test "${ac_cv_lib_dld_dld_link+set}" = set; then14001 echo $ECHO_N "(cached) $ECHO_C" >&614002 else14003 ac_check_lib_save_LIBS=$LIBS14004 LIBS="-ldld $LIBS"14005 cat >conftest.$ac_ext <<_ACEOF14006 /* confdefs.h. */14007 _ACEOF14008 cat confdefs.h >>conftest.$ac_ext14009 cat >>conftest.$ac_ext <<_ACEOF14010 /* end confdefs.h. */14011 14012 /* Override any GCC internal prototype to avoid an error.14013 Use char because int might match the return type of a GCC14014 builtin and then its argument prototype would still apply. */14015 #ifdef __cplusplus14016 extern "C"14017 #endif14018 char dld_link ();14019 int14020 main ()14021 {14022 return dld_link ();14023 ;14024 return 0;14025 }14026 _ACEOF14027 rm -f conftest.$ac_objext conftest$ac_exeext14028 if { (ac_try="$ac_link"14029 case "(($ac_try" in14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;14031 *) ac_try_echo=$ac_try;;14032 esac14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&514034 (eval "$ac_link") 2>conftest.er114035 ac_status=$?14036 grep -v '^ *+' conftest.er1 >conftest.err14037 rm -f conftest.er114038 cat conftest.err >&514039 echo "$as_me:$LINENO: \$? = $ac_status" >&514040 (exit $ac_status); } && {14041 test -z "$ac_cxx_werror_flag" ||14042 test ! -s conftest.err14043 } && test -s conftest$ac_exeext &&14044 $as_test_x conftest$ac_exeext; then14045 ac_cv_lib_dld_dld_link=yes14046 else14047 echo "$as_me: failed program was:" >&514048 sed 's/^/| /' conftest.$ac_ext >&514049 14050 ac_cv_lib_dld_dld_link=no14051 fi14052 14053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \14054 conftest$ac_exeext conftest.$ac_ext14055 LIBS=$ac_check_lib_save_LIBS14056 fi14057 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&514058 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }14059 if test $ac_cv_lib_dld_dld_link = yes; then14060 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"14061 fi14062 14063 14064 fi14065 14066 14067 fi14068 14069 14070 fi14071 14072 14073 fi14074 14075 14076 fi14077 14078 ;;14079 esac14080 14081 if test "x$lt_cv_dlopen" != xno; then14082 enable_dlopen=yes14083 else14084 enable_dlopen=no14085 fi14086 14087 case $lt_cv_dlopen in14088 dlopen)14089 save_CPPFLAGS="$CPPFLAGS"14090 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"14091 14092 save_LDFLAGS="$LDFLAGS"14093 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"14094 14095 save_LIBS="$LIBS"14096 LIBS="$lt_cv_dlopen_libs $LIBS"14097 14098 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&514099 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }14100 if test "${lt_cv_dlopen_self+set}" = set; then14101 echo $ECHO_N "(cached) $ECHO_C" >&614102 else14103 if test "$cross_compiling" = yes; then :14104 lt_cv_dlopen_self=cross14105 else14106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=214107 lt_status=$lt_dlunknown14108 cat > conftest.$ac_ext <<EOF14109 #line 14109 "configure"14110 #include "confdefs.h"14111 14112 #if HAVE_DLFCN_H14113 #include <dlfcn.h>14114 #endif14115 14116 #include <stdio.h>14117 14118 #ifdef RTLD_GLOBAL14119 # define LT_DLGLOBAL RTLD_GLOBAL14120 #else14121 # ifdef DL_GLOBAL14122 # define LT_DLGLOBAL DL_GLOBAL14123 # else14124 # define LT_DLGLOBAL 014125 # endif14126 #endif14127 14128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we14129 find out it does not work in some platform. */14130 #ifndef LT_DLLAZY_OR_NOW14131 # ifdef RTLD_LAZY14132 # define LT_DLLAZY_OR_NOW RTLD_LAZY14133 # else14134 # ifdef DL_LAZY14135 # define LT_DLLAZY_OR_NOW DL_LAZY14136 # else14137 # ifdef RTLD_NOW14138 # define LT_DLLAZY_OR_NOW RTLD_NOW14139 # else14140 # ifdef DL_NOW14141 # define LT_DLLAZY_OR_NOW DL_NOW14142 # else14143 # define LT_DLLAZY_OR_NOW 014144 # endif14145 # endif14146 # endif14147 # endif14148 #endif14149 14150 #ifdef __cplusplus14151 extern "C" void exit (int);14152 #endif14153 14154 void fnord() { int i=42;}14155 int main ()14156 {14157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);14158 int status = $lt_dlunknown;14159 14160 if (self)14161 {14162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;14163 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;14164 /* dlclose (self); */14165 }14166 14167 exit (status);14168 }14169 EOF14170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&514171 (eval $ac_link) 2>&514172 ac_status=$?14173 echo "$as_me:$LINENO: \$? = $ac_status" >&514174 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then14175 (./conftest; exit; ) >&5 2>/dev/null14176 lt_status=$?14177 case x$lt_status in14178 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;14179 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;14180 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;14181 esac14182 else :14183 # compilation failed14184 lt_cv_dlopen_self=no14185 fi14186 fi14187 rm -fr conftest*14188 14189 14190 fi14191 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&514192 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }14193 14194 if test "x$lt_cv_dlopen_self" = xyes; then14195 LDFLAGS="$LDFLAGS $link_static_flag"14196 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&514197 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }14198 if test "${lt_cv_dlopen_self_static+set}" = set; then14199 echo $ECHO_N "(cached) $ECHO_C" >&614200 else14201 if test "$cross_compiling" = yes; then :14202 lt_cv_dlopen_self_static=cross14203 else14204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=214205 lt_status=$lt_dlunknown14206 cat > conftest.$ac_ext <<EOF14207 #line 14207 "configure"14208 #include "confdefs.h"14209 14210 #if HAVE_DLFCN_H14211 #include <dlfcn.h>14212 #endif14213 14214 #include <stdio.h>14215 14216 #ifdef RTLD_GLOBAL14217 # define LT_DLGLOBAL RTLD_GLOBAL14218 #else14219 # ifdef DL_GLOBAL14220 # define LT_DLGLOBAL DL_GLOBAL14221 # else14222 # define LT_DLGLOBAL 014223 # endif14224 #endif14225 14226 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we14227 find out it does not work in some platform. */14228 #ifndef LT_DLLAZY_OR_NOW14229 # ifdef RTLD_LAZY14230 # define LT_DLLAZY_OR_NOW RTLD_LAZY14231 # else14232 # ifdef DL_LAZY14233 # define LT_DLLAZY_OR_NOW DL_LAZY14234 # else14235 # ifdef RTLD_NOW14236 # define LT_DLLAZY_OR_NOW RTLD_NOW14237 # else14238 # ifdef DL_NOW14239 # define LT_DLLAZY_OR_NOW DL_NOW14240 # else14241 # define LT_DLLAZY_OR_NOW 014242 # endif14243 # endif14244 # endif14245 # endif14246 #endif14247 14248 #ifdef __cplusplus14249 extern "C" void exit (int);14250 #endif14251 14252 void fnord() { int i=42;}14253 int main ()14254 {14255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);14256 int status = $lt_dlunknown;14257 14258 if (self)14259 {14260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;14261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;14262 /* dlclose (self); */14263 }14264 14265 exit (status);14266 }14267 EOF14268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&514269 (eval $ac_link) 2>&514270 ac_status=$?14271 echo "$as_me:$LINENO: \$? = $ac_status" >&514272 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then14273 (./conftest; exit; ) >&5 2>/dev/null14274 lt_status=$?14275 case x$lt_status in14276 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;14277 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;14278 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;14279 esac14280 else :14281 # compilation failed14282 lt_cv_dlopen_self_static=no14283 fi14284 fi14285 rm -fr conftest*14286 14287 14288 fi14289 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&514290 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }14291 fi14292 14293 CPPFLAGS="$save_CPPFLAGS"14294 LDFLAGS="$save_LDFLAGS"14295 LIBS="$save_LIBS"14296 ;;14297 esac14298 14299 case $lt_cv_dlopen_self in14300 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;14301 *) enable_dlopen_self=unknown ;;14302 esac14303 14304 case $lt_cv_dlopen_self_static in14305 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;14306 *) enable_dlopen_self_static=unknown ;;14307 esac14308 fi14309 14310 13960 14311 13961 # The else clause should only fire when bootstrapping the … … 14322 13972 # careful not to overquote the AC_SUBSTed values. We take copies of the 14323 13973 # variables and quote the copies for generation of the libtool script. 14324 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \13974 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14325 13975 SED SHELL STRIP \ 14326 13976 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ … … 14364 14014 module_expsym_cmds_CXX \ 14365 14015 lt_cv_prog_compiler_c_o_CXX \ 14016 fix_srcfile_path_CXX \ 14366 14017 exclude_expsyms_CXX \ 14367 14018 include_expsyms_CXX; do … … 14440 14091 LTCC=$lt_LTCC 14441 14092 14093 # LTCC compiler flags. 14094 LTCFLAGS=$lt_LTCFLAGS 14095 14442 14096 # A language-specific compiler. 14443 14097 CC=$lt_compiler_CXX … … 14681 14335 14682 14336 # Fix the shell variable \$srcfile for the compiler. 14683 fix_srcfile_path= "$fix_srcfile_path_CXX"14337 fix_srcfile_path=$lt_fix_srcfile_path 14684 14338 14685 14339 # Set to yes if exported symbols are required. … … 14772 14426 14773 14427 # Code to be used in simple compile tests 14774 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14428 lt_simple_compile_test_code="\ 14429 subroutine t 14430 return 14431 end 14432 " 14775 14433 14776 14434 # Code to be used in simple link tests 14777 lt_simple_link_test_code=" program t\n end\n" 14435 lt_simple_link_test_code="\ 14436 program t 14437 end 14438 " 14778 14439 14779 14440 # ltmain only uses $CC for tagged configurations so make sure $CC is set. … … 14782 14443 LTCC=${LTCC-"$CC"} 14783 14444 14445 # If no C compiler flags were specified, use CFLAGS. 14446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14447 14784 14448 # Allow CC to be a program name with arguments. 14785 14449 compiler=$CC … … 14788 14452 # save warnings/boilerplate of simple test code 14789 14453 ac_outfile=conftest.$ac_objext 14790 printf"$lt_simple_compile_test_code" >conftest.$ac_ext14791 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err14454 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14455 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14792 14456 _lt_compiler_boilerplate=`cat conftest.err` 14793 14457 $rm conftest* 14794 14458 14795 14459 ac_outfile=conftest.$ac_objext 14796 printf"$lt_simple_link_test_code" >conftest.$ac_ext14797 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err14460 echo "$lt_simple_link_test_code" >conftest.$ac_ext 14461 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14798 14462 _lt_linker_boilerplate=`cat conftest.err` 14799 14463 $rm conftest* … … 14851 14515 echo "${ECHO_T}$enable_static" >&6; } 14852 14516 14853 test "$ld_shlibs_F77" = no && can_build_shared=no14854 14855 14517 GCC_F77="$G77" 14856 14518 LD_F77="$LD" … … 14883 14545 ;; 14884 14546 14885 beos* | cygwin* |irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)14547 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14886 14548 # PIC is the default for these OSes. 14887 14549 ;; 14888 14550 14889 mingw* | pw32* | os2*)14551 mingw* | cygwin* | pw32* | os2*) 14890 14552 # This hack is so that the source file can tell whether it is being 14891 14553 # built for inclusion in a dll (and should export symbols for example). 14554 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14555 # (--disable-auto-import) libraries 14892 14556 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14893 14557 ;; … … 14897 14561 # Common symbols not allowed in MH_DYLIB files 14898 14562 lt_prog_compiler_pic_F77='-fno-common' 14563 ;; 14564 14565 interix[3-9]*) 14566 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14567 # Instead, we relocate shared libraries at runtime. 14899 14568 ;; 14900 14569 … … 14952 14621 ;; 14953 14622 14954 mingw* | pw32* | os2*)14623 mingw* | cygwin* | pw32* | os2*) 14955 14624 # This hack is so that the source file can tell whether it is being 14956 14625 # built for inclusion in a dll (and should export symbols for example). … … 14985 14654 ;; 14986 14655 14987 linux* )14656 linux* | k*bsd*-gnu) 14988 14657 case $cc_basename in 14989 14658 icc* | ecc*) … … 15004 14673 lt_prog_compiler_static_F77='-non_shared' 15005 14674 ;; 14675 *) 14676 case `$CC -V 2>&1 | sed 5q` in 14677 *Sun\ C*) 14678 # Sun C 5.9 14679 lt_prog_compiler_pic_F77='-KPIC' 14680 lt_prog_compiler_static_F77='-Bstatic' 14681 lt_prog_compiler_wl_F77='-Wl,' 14682 ;; 14683 *Sun\ F*) 14684 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14685 lt_prog_compiler_pic_F77='-KPIC' 14686 lt_prog_compiler_static_F77='-Bstatic' 14687 lt_prog_compiler_wl_F77='' 14688 ;; 14689 esac 14690 ;; 15006 14691 esac 15007 14692 ;; … … 15013 14698 ;; 15014 14699 15015 sco3.2v5*) 15016 lt_prog_compiler_pic_F77='-Kpic' 15017 lt_prog_compiler_static_F77='-dn' 14700 rdos*) 14701 lt_prog_compiler_static_F77='-non_shared' 15018 14702 ;; 15019 14703 … … 15035 14719 ;; 15036 14720 15037 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)14721 sysv4 | sysv4.2uw2* | sysv4.3*) 15038 14722 lt_prog_compiler_wl_F77='-Wl,' 15039 14723 lt_prog_compiler_pic_F77='-KPIC' … … 15048 14732 ;; 15049 14733 14734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14735 lt_prog_compiler_wl_F77='-Wl,' 14736 lt_prog_compiler_pic_F77='-KPIC' 14737 lt_prog_compiler_static_F77='-Bstatic' 14738 ;; 14739 15050 14740 unicos*) 15051 14741 lt_prog_compiler_wl_F77='-Wl,' … … 15079 14769 lt_prog_compiler_pic_works_F77=no 15080 14770 ac_outfile=conftest.$ac_objext 15081 printf"$lt_simple_compile_test_code" > conftest.$ac_ext14771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15082 14772 lt_compiler_flag="$lt_prog_compiler_pic_F77" 15083 14773 # Insert the option either (1) after the last *FLAGS variable, or … … 15090 14780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15091 14781 -e 's:$: $lt_compiler_flag:'` 15092 (eval echo "\"\$as_me:1 5092: $lt_compile\"" >&5)14782 (eval echo "\"\$as_me:14782: $lt_compile\"" >&5) 15093 14783 (eval "$lt_compile" 2>conftest.err) 15094 14784 ac_status=$? 15095 14785 cat conftest.err >&5 15096 echo "$as_me:1 5096: \$? = $ac_status" >&514786 echo "$as_me:14786: \$? = $ac_status" >&5 15097 14787 if (exit $ac_status) && test -s "$ac_outfile"; then 15098 14788 # The compiler can only warn and ignore the option if not recognized 15099 14789 # So say no if there are warnings other than the usual output. 15100 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp15101 $SED '/^$/d ' conftest.err >conftest.er215102 if test ! -s conftest.er r|| diff conftest.exp conftest.er2 >/dev/null; then14790 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14792 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15103 14793 lt_prog_compiler_pic_works_F77=yes 15104 14794 fi … … 15131 14821 esac 15132 14822 14823 # 14824 # Check to make sure the static flag actually works. 14825 # 14826 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14827 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14828 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14829 if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14830 echo $ECHO_N "(cached) $ECHO_C" >&6 14831 else 14832 lt_prog_compiler_static_works_F77=no 14833 save_LDFLAGS="$LDFLAGS" 14834 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14835 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14837 # The linker can only warn and ignore the option if not recognized 14838 # So say no if there are warnings 14839 if test -s conftest.err; then 14840 # Append any errors to the config.log. 14841 cat conftest.err 1>&5 14842 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14844 if diff conftest.exp conftest.er2 >/dev/null; then 14845 lt_prog_compiler_static_works_F77=yes 14846 fi 14847 else 14848 lt_prog_compiler_static_works_F77=yes 14849 fi 14850 fi 14851 $rm conftest* 14852 LDFLAGS="$save_LDFLAGS" 14853 14854 fi 14855 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14856 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14857 14858 if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14859 : 14860 else 14861 lt_prog_compiler_static_F77= 14862 fi 14863 14864 15133 14865 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15134 14866 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } … … 15141 14873 cd conftest 15142 14874 mkdir out 15143 printf"$lt_simple_compile_test_code" > conftest.$ac_ext14875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15144 14876 15145 14877 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 15152 14884 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15153 14885 -e 's:$: $lt_compiler_flag:'` 15154 (eval echo "\"\$as_me:1 5154: $lt_compile\"" >&5)14886 (eval echo "\"\$as_me:14886: $lt_compile\"" >&5) 15155 14887 (eval "$lt_compile" 2>out/conftest.err) 15156 14888 ac_status=$? 15157 14889 cat out/conftest.err >&5 15158 echo "$as_me:1 5158: \$? = $ac_status" >&514890 echo "$as_me:14890: \$? = $ac_status" >&5 15159 14891 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15160 14892 then 15161 14893 # The compiler can only warn and ignore the option if not recognized 15162 14894 # So say no if there are warnings 15163 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp15164 $SED '/^$/d ' out/conftest.err >out/conftest.er215165 if test ! -s out/conftest.er r|| diff out/conftest.exp out/conftest.er2 >/dev/null; then14895 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15166 14898 lt_cv_prog_compiler_c_o_F77=yes 15167 14899 fi … … 15263 14995 fi 15264 14996 ;; 14997 interix*) 14998 # we just hope/assume this is gcc and not c89 (= MSVC++) 14999 with_gnu_ld=yes 15000 ;; 15265 15001 openbsd*) 15266 15002 with_gnu_ld=no … … 15344 15080 always_export_symbols_F77=no 15345 15081 enable_shared_with_static_runtimes_F77=yes 15346 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.*//'\'' | sort | uniq > $export_symbols'15082 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15347 15083 15348 15084 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15349 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'15085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15350 15086 # If the export-symbols file already is a .def file (1st line 15351 15087 # is EXPORTS), use it as is; otherwise, prepend... … … 15356 15092 cat $export_symbols >> $output_objdir/$soname.def; 15357 15093 fi~ 15358 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'15094 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15359 15095 else 15360 15096 ld_shlibs_F77=no … … 15362 15098 ;; 15363 15099 15364 linux*) 15100 interix[3-9]*) 15101 hardcode_direct_F77=no 15102 hardcode_shlibpath_var_F77=no 15103 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15104 export_dynamic_flag_spec_F77='${wl}-E' 15105 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15106 # Instead, shared libraries are loaded at an image base (0x10000000 by 15107 # default) and relocated if they conflict, which is a slow very memory 15108 # consuming and fragmenting process. To avoid this, we pick a random, 15109 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15110 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15111 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15112 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15113 ;; 15114 15115 gnu* | linux* | k*bsd*-gnu) 15365 15116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15366 15117 tmp_addflag= … … 15380 15131 tmp_addflag=' -nofor_main' ;; 15381 15132 esac 15382 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15133 case `$CC -V 2>&1 | sed 5q` in 15134 *Sun\ C*) # Sun C 5.9 15135 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15136 tmp_sharedflag='-G' ;; 15137 *Sun\ F*) # Sun Fortran 8.3 15138 tmp_sharedflag='-G' ;; 15139 *) 15140 tmp_sharedflag='-shared' ;; 15141 esac 15142 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15383 15143 15384 15144 if test $supports_anon_versioning = yes; then … … 15386 15146 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15387 15147 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15388 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'15148 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15389 15149 fi 15390 15150 else … … 15403 15163 ;; 15404 15164 15405 solaris* | sysv5*)15165 solaris*) 15406 15166 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15407 15167 ld_shlibs_F77=no … … 15422 15182 ld_shlibs_F77=no 15423 15183 fi 15184 ;; 15185 15186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15187 case `$LD -v 2>&1` in 15188 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15189 ld_shlibs_F77=no 15190 cat <<_LT_EOF 1>&2 15191 15192 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15193 *** reliably create shared libraries on SCO systems. Therefore, libtool 15194 *** is disabling shared libraries support. We urge you to upgrade GNU 15195 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15196 *** your PATH or compiler configuration so that the native linker is 15197 *** used, and then restart. 15198 15199 _LT_EOF 15200 ;; 15201 *) 15202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15203 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15204 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15205 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15206 else 15207 ld_shlibs_F77=no 15208 fi 15209 ;; 15210 esac 15424 15211 ;; 15425 15212 … … 15457 15244 # are no directories specified by -L. 15458 15245 hardcode_minus_L_F77=yes 15459 if test "$GCC" = yes && test -z "$l ink_static_flag"; then15246 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15460 15247 # Neither direct hardcoding nor static linking is supported with a 15461 15248 # broken collect2. … … 15491 15278 fi 15492 15279 done 15280 ;; 15493 15281 esac 15494 15282 … … 15517 15305 then 15518 15306 # We have reworked collect2 15519 hardcode_direct_F77=yes15307 : 15520 15308 else 15521 15309 # We have old collect2 … … 15528 15316 hardcode_libdir_separator_F77= 15529 15317 fi 15318 ;; 15530 15319 esac 15531 15320 shared_flag='-shared' … … 15540 15329 shared_flag='-G' 15541 15330 else 15542 15331 if test "$aix_use_runtimelinking" = yes; then 15543 15332 shared_flag='${wl}-G' 15544 15333 else 15545 15334 shared_flag='${wl}-bM:SRE' 15546 15335 fi 15547 15336 fi 15548 15337 fi … … 15580 15369 $as_test_x conftest$ac_exeext; then 15581 15370 15582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15583 }'` 15371 lt_aix_libpath_sed=' 15372 /Import File Strings/,/^$/ { 15373 /^0/ { 15374 s/^0 *\(.*\)$/\1/ 15375 p 15376 } 15377 }' 15378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15584 15379 # Check for a 64-bit object if we didn't find anything. 15585 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15586 }'`; fi 15380 if test -z "$aix_libpath"; then 15381 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15382 fi 15587 15383 else 15588 15384 echo "$as_me: failed program was:" >&5 … … 15597 15393 15598 15394 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15599 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols $shared_flag"15395 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15600 15396 else 15601 15397 if test "$host_cpu" = ia64; then 15602 15398 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15603 15399 allow_undefined_flag_F77="-z nodefs" 15604 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols"15400 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 15605 15401 else 15606 15402 # Determine the default libpath from the value encoded in an empty executable. … … 15629 15425 $as_test_x conftest$ac_exeext; then 15630 15426 15631 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15632 }'` 15427 lt_aix_libpath_sed=' 15428 /Import File Strings/,/^$/ { 15429 /^0/ { 15430 s/^0 *\(.*\)$/\1/ 15431 p 15432 } 15433 }' 15434 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15633 15435 # Check for a 64-bit object if we didn't find anything. 15634 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15635 }'`; fi 15436 if test -z "$aix_libpath"; then 15437 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15438 fi 15636 15439 else 15637 15440 echo "$as_me: failed program was:" >&5 … … 15650 15453 no_undefined_flag_F77=' ${wl}-bernotok' 15651 15454 allow_undefined_flag_F77=' ${wl}-berok' 15652 # -bexpall does not export symbols beginning with underscore (_)15653 always_export_symbols_F77=yes15654 15455 # Exported symbols can be pulled into shared objects from archives 15655 whole_archive_flag_spec_F77=' 15456 whole_archive_flag_spec_F77='$convenience' 15656 15457 archive_cmds_need_lc_F77=yes 15657 15458 # This is similar to how AIX traditionally builds its shared libraries. 15658 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $ compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'15459 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15659 15460 fi 15660 15461 fi … … 15689 15490 old_archive_From_new_cmds_F77='true' 15690 15491 # FIXME: Should let the user specify the lib program. 15691 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'15492 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15692 15493 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15693 15494 enable_shared_with_static_runtimes_F77=yes … … 15731 15532 xlc*) 15732 15533 output_verbose_link_cmd='echo' 15733 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $ verstring'15534 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15734 15535 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15735 15536 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15736 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $ verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'15537 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15737 15538 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15738 15539 ;; … … 15774 15575 15775 15576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15776 freebsd* | kfreebsd*-gnu |dragonfly*)15577 freebsd* | dragonfly*) 15777 15578 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15778 15579 hardcode_libdir_flag_spec_F77='-R$libdir' … … 15797 15598 ;; 15798 15599 15799 hpux10* | hpux11*) 15600 hpux10*) 15601 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15602 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15603 else 15604 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15605 fi 15606 if test "$with_gnu_ld" = no; then 15607 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15608 hardcode_libdir_separator_F77=: 15609 15610 hardcode_direct_F77=yes 15611 export_dynamic_flag_spec_F77='${wl}-E' 15612 15613 # hardcode_minus_L: Not really in the search PATH, 15614 # but as the default location of the library. 15615 hardcode_minus_L_F77=yes 15616 fi 15617 ;; 15618 15619 hpux11*) 15800 15620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15801 15621 case $host_cpu in 15802 hppa*64* |ia64*)15622 hppa*64*) 15803 15623 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15624 ;; 15625 ia64*) 15626 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15804 15627 ;; 15805 15628 *) … … 15809 15632 else 15810 15633 case $host_cpu in 15811 hppa*64*|ia64*) 15812 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15634 hppa*64*) 15635 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15636 ;; 15637 ia64*) 15638 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15813 15639 ;; 15814 15640 *) 15815 archive_cmds_F77='$ LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'15641 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15816 15642 ;; 15817 15643 esac 15818 15644 fi 15819 15645 if test "$with_gnu_ld" = no; then 15646 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15647 hardcode_libdir_separator_F77=: 15648 15820 15649 case $host_cpu in 15821 hppa*64*) 15822 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15650 hppa*64*|ia64*) 15823 15651 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15824 hardcode_libdir_separator_F77=:15825 15652 hardcode_direct_F77=no 15826 15653 hardcode_shlibpath_var_F77=no 15827 15654 ;; 15828 ia64*)15829 hardcode_libdir_flag_spec_F77='-L$libdir'15830 hardcode_direct_F77=no15831 hardcode_shlibpath_var_F77=no15832 15833 # hardcode_minus_L: Not really in the search PATH,15834 # but as the default location of the library.15835 hardcode_minus_L_F77=yes15836 ;;15837 15655 *) 15838 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'15839 hardcode_libdir_separator_F77=:15840 15656 hardcode_direct_F77=yes 15841 15657 export_dynamic_flag_spec_F77='${wl}-E' … … 15881 15697 15882 15698 openbsd*) 15883 hardcode_direct_F77=yes 15884 hardcode_shlibpath_var_F77=no 15885 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15886 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15887 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15888 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15889 export_dynamic_flag_spec_F77='${wl}-E' 15699 if test -f /usr/libexec/ld.so; then 15700 hardcode_direct_F77=yes 15701 hardcode_shlibpath_var_F77=no 15702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15703 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15704 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15705 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15706 export_dynamic_flag_spec_F77='${wl}-E' 15707 else 15708 case $host_os in 15709 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15710 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15711 hardcode_libdir_flag_spec_F77='-R$libdir' 15712 ;; 15713 *) 15714 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15715 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15716 ;; 15717 esac 15718 fi 15890 15719 else 15891 case $host_os in 15892 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15893 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15894 hardcode_libdir_flag_spec_F77='-R$libdir' 15895 ;; 15896 *) 15897 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15898 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15899 ;; 15900 esac 15720 ld_shlibs_F77=no 15901 15721 fi 15902 15722 ;; … … 15937 15757 fi 15938 15758 hardcode_libdir_separator_F77=: 15939 ;;15940 15941 sco3.2v5*)15942 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'15943 hardcode_shlibpath_var_F77=no15944 export_dynamic_flag_spec_F77='${wl}-Bexport'15945 runpath_var=LD_RUN_PATH15946 hardcode_runpath_var=yes15947 15759 ;; 15948 15760 … … 15965 15777 solaris2.[0-5] | solaris2.[0-5].*) ;; 15966 15778 *) 15967 # The compiler driver will combine linker options so we 15968 # cannot just pass the convience library names through 15969 # without $wl, iff we do not link with $LD. 15970 # Luckily, gcc supports the same syntax we need for Sun Studio. 15779 # The compiler driver will combine and reorder linker options, 15780 # but understands `-z linker_flag'. GCC discards it without `$wl', 15781 # but is careful enough not to reorder. 15971 15782 # Supported since Solaris 2.6 (maybe 2.5.1?) 15972 case $wlarc in15973 '') 15974 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15975 *) 15976 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15977 esac;;15783 if test "$GCC" = yes; then 15784 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15785 else 15786 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15787 fi 15788 ;; 15978 15789 esac 15979 15790 link_all_deplibs_F77=yes … … 16032 15843 ;; 16033 15844 16034 sysv4.2uw2*) 16035 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16036 hardcode_direct_F77=yes 16037 hardcode_minus_L_F77=no 16038 hardcode_shlibpath_var_F77=no 16039 hardcode_runpath_var=yes 16040 runpath_var=LD_RUN_PATH 16041 ;; 16042 16043 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16044 no_undefined_flag_F77='${wl}-z ${wl}text' 16045 if test "$GCC" = yes; then 16046 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16047 else 16048 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16049 fi 16050 runpath_var='LD_RUN_PATH' 16051 hardcode_shlibpath_var_F77=no 16052 ;; 16053 16054 sysv5*) 16055 no_undefined_flag_F77=' -z text' 16056 # $CC -shared without GNU ld will not create a library from C++ 16057 # object files and a static libstdc++, better avoid it by now 16058 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16059 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16061 hardcode_libdir_flag_spec_F77= 15845 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15846 no_undefined_flag_F77='${wl}-z,text' 15847 archive_cmds_need_lc_F77=no 16062 15848 hardcode_shlibpath_var_F77=no 16063 15849 runpath_var='LD_RUN_PATH' 15850 15851 if test "$GCC" = yes; then 15852 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15853 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15854 else 15855 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15856 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15857 fi 15858 ;; 15859 15860 sysv5* | sco3.2v5* | sco5v6*) 15861 # Note: We can NOT use -z defs as we might desire, because we do not 15862 # link with -lc, and that would cause any symbols used from libc to 15863 # always be unresolved, which means just about no library would 15864 # ever link correctly. If we're not using GNU ld we use -z text 15865 # though, which does catch some bad symbols but isn't as heavy-handed 15866 # as -z defs. 15867 no_undefined_flag_F77='${wl}-z,text' 15868 allow_undefined_flag_F77='${wl}-z,nodefs' 15869 archive_cmds_need_lc_F77=no 15870 hardcode_shlibpath_var_F77=no 15871 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15872 hardcode_libdir_separator_F77=':' 15873 link_all_deplibs_F77=yes 15874 export_dynamic_flag_spec_F77='${wl}-Bexport' 15875 runpath_var='LD_RUN_PATH' 15876 15877 if test "$GCC" = yes; then 15878 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15879 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15880 else 15881 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15882 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15883 fi 16064 15884 ;; 16065 15885 … … 16079 15899 echo "${ECHO_T}$ld_shlibs_F77" >&6; } 16080 15900 test "$ld_shlibs_F77" = no && can_build_shared=no 16081 16082 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"16083 if test "$GCC" = yes; then16084 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"16085 fi16086 15901 16087 15902 # … … 16105 15920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 16106 15921 $rm conftest* 16107 printf"$lt_simple_compile_test_code" > conftest.$ac_ext15922 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16108 15923 16109 15924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 … … 16117 15932 deplibs= 16118 15933 wl=$lt_prog_compiler_wl_F77 15934 pic_flag=$lt_prog_compiler_pic_F77 16119 15935 compiler_flags=-v 16120 15936 linker_flags=-v … … 16162 15978 dynamic_linker="$host_os ld.so" 16163 15979 sys_lib_dlsearch_path_spec="/lib /usr/lib" 16164 if test "$GCC" = yes; then 16165 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16166 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16167 # if the path contains ";" then we assume it to be the separator 16168 # otherwise default to the standard path separator (i.e. ":") - it is 16169 # assumed that no part of a normal pathname contains ";" but that should 16170 # okay in the real world where ";" in dirpaths is itself problematic. 16171 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16172 else 16173 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16174 fi 16175 else 16176 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16177 fi 15980 16178 15981 need_lib_prefix=unknown 16179 15982 hardcode_into_libs=no … … 16332 16135 shlibpath_var=DYLD_LIBRARY_PATH 16333 16136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16334 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16335 if test "$GCC" = yes; then 16336 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 16337 else 16338 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16339 fi 16137 16340 16138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16341 16139 ;; … … 16352 16150 freebsd1*) 16353 16151 dynamic_linker=no 16354 ;;16355 16356 kfreebsd*-gnu)16357 version_type=linux16358 need_lib_prefix=no16359 need_version=no16360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'16361 soname_spec='${libname}${release}${shared_ext}$major'16362 shlibpath_var=LD_LIBRARY_PATH16363 shlibpath_overrides_runpath=no16364 hardcode_into_libs=yes16365 dynamic_linker='GNU ld.so'16366 16152 ;; 16367 16153 … … 16398 16184 hardcode_into_libs=yes 16399 16185 ;; 16400 *) # from 3.2 on 16186 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16187 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16401 16188 shlibpath_overrides_runpath=no 16189 hardcode_into_libs=yes 16190 ;; 16191 *) # from 4.6 on, and DragonFly 16192 shlibpath_overrides_runpath=yes 16402 16193 hardcode_into_libs=yes 16403 16194 ;; … … 16461 16252 ;; 16462 16253 16254 interix[3-9]*) 16255 version_type=linux 16256 need_lib_prefix=no 16257 need_version=no 16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16259 soname_spec='${libname}${release}${shared_ext}$major' 16260 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16261 shlibpath_var=LD_LIBRARY_PATH 16262 shlibpath_overrides_runpath=no 16263 hardcode_into_libs=yes 16264 ;; 16265 16463 16266 irix5* | irix6* | nonstopux*) 16464 16267 case $host_os in … … 16504 16307 16505 16308 # This must be Linux ELF. 16506 linux* )16309 linux* | k*bsd*-gnu) 16507 16310 version_type=linux 16508 16311 need_lib_prefix=no … … 16520 16323 # Append ld.so.conf contents to the search path 16521 16324 if test -f /etc/ld.so.conf; then 16522 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s ", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`16325 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 16523 16326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16524 16327 fi … … 16531 16334 # assume the GNU/Linux dynamic linker is in use. 16532 16335 dynamic_linker='GNU/Linux ld.so' 16533 ;;16534 16535 knetbsd*-gnu)16536 version_type=linux16537 need_lib_prefix=no16538 need_version=no16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'16540 soname_spec='${libname}${release}${shared_ext}$major'16541 shlibpath_var=LD_LIBRARY_PATH16542 shlibpath_overrides_runpath=no16543 hardcode_into_libs=yes16544 dynamic_linker='GNU ld.so'16545 16336 ;; 16546 16337 … … 16582 16373 openbsd*) 16583 16374 version_type=sunos 16375 sys_lib_dlsearch_path_spec="/usr/lib" 16584 16376 need_lib_prefix=no 16585 16377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. … … 16625 16417 ;; 16626 16418 16627 sco3.2v5*) 16628 version_type=osf 16629 soname_spec='${libname}${release}${shared_ext}$major' 16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16631 shlibpath_var=LD_LIBRARY_PATH 16419 rdos*) 16420 dynamic_linker=no 16632 16421 ;; 16633 16422 … … 16657 16446 ;; 16658 16447 16659 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)16448 sysv4 | sysv4.3*) 16660 16449 version_type=linux 16661 16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' … … 16690 16479 ;; 16691 16480 16481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16482 version_type=freebsd-elf 16483 need_lib_prefix=no 16484 need_version=no 16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16486 soname_spec='${libname}${release}${shared_ext}$major' 16487 shlibpath_var=LD_LIBRARY_PATH 16488 hardcode_into_libs=yes 16489 if test "$with_gnu_ld" = yes; then 16490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16491 shlibpath_overrides_runpath=no 16492 else 16493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16494 shlibpath_overrides_runpath=yes 16495 case $host_os in 16496 sco3.2v5*) 16497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16498 ;; 16499 esac 16500 fi 16501 sys_lib_dlsearch_path_spec='/usr/lib' 16502 ;; 16503 16692 16504 uts4*) 16693 16505 version_type=linux … … 16704 16516 echo "${ECHO_T}$dynamic_linker" >&6; } 16705 16517 test "$dynamic_linker" = no && can_build_shared=no 16518 16519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16520 if test "$GCC" = yes; then 16521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16522 fi 16706 16523 16707 16524 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 … … 16742 16559 fi 16743 16560 16744 striplib=16745 old_striplib=16746 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&516747 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }16748 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then16749 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"16750 test -z "$striplib" && striplib="$STRIP --strip-unneeded"16751 { echo "$as_me:$LINENO: result: yes" >&516752 echo "${ECHO_T}yes" >&6; }16753 else16754 # FIXME - insert some real tests, host_os isn't really good enough16755 case $host_os in16756 darwin*)16757 if test -n "$STRIP" ; then16758 striplib="$STRIP -x"16759 { echo "$as_me:$LINENO: result: yes" >&516760 echo "${ECHO_T}yes" >&6; }16761 else16762 { echo "$as_me:$LINENO: result: no" >&516763 echo "${ECHO_T}no" >&6; }16764 fi16765 ;;16766 *)16767 { echo "$as_me:$LINENO: result: no" >&516768 echo "${ECHO_T}no" >&6; }16769 ;;16770 esac16771 fi16772 16773 16774 16561 16775 16562 # The else clause should only fire when bootstrapping the … … 16786 16573 # careful not to overquote the AC_SUBSTed values. We take copies of the 16787 16574 # variables and quote the copies for generation of the libtool script. 16788 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \16575 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16789 16576 SED SHELL STRIP \ 16790 16577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ … … 16828 16615 module_expsym_cmds_F77 \ 16829 16616 lt_cv_prog_compiler_c_o_F77 \ 16617 fix_srcfile_path_F77 \ 16830 16618 exclude_expsyms_F77 \ 16831 16619 include_expsyms_F77; do … … 16904 16692 LTCC=$lt_LTCC 16905 16693 16694 # LTCC compiler flags. 16695 LTCFLAGS=$lt_LTCFLAGS 16696 16906 16697 # A language-specific compiler. 16907 16698 CC=$lt_compiler_F77 … … 17145 16936 17146 16937 # Fix the shell variable \$srcfile for the compiler. 17147 fix_srcfile_path= "$fix_srcfile_path_F77"16938 fix_srcfile_path=$lt_fix_srcfile_path 17148 16939 17149 16940 # Set to yes if exported symbols are required. … … 17203 16994 17204 16995 # Code to be used in simple compile tests 17205 lt_simple_compile_test_code="class foo {} \n"16996 lt_simple_compile_test_code="class foo {}" 17206 16997 17207 16998 # Code to be used in simple link tests 17208 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; } \n'16999 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 17209 17000 17210 17001 # ltmain only uses $CC for tagged configurations so make sure $CC is set. … … 17213 17004 LTCC=${LTCC-"$CC"} 17214 17005 17006 # If no C compiler flags were specified, use CFLAGS. 17007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17008 17215 17009 # Allow CC to be a program name with arguments. 17216 17010 compiler=$CC … … 17219 17013 # save warnings/boilerplate of simple test code 17220 17014 ac_outfile=conftest.$ac_objext 17221 printf"$lt_simple_compile_test_code" >conftest.$ac_ext17222 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err17015 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17016 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17223 17017 _lt_compiler_boilerplate=`cat conftest.err` 17224 17018 $rm conftest* 17225 17019 17226 17020 ac_outfile=conftest.$ac_objext 17227 printf"$lt_simple_link_test_code" >conftest.$ac_ext17228 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err17021 echo "$lt_simple_link_test_code" >conftest.$ac_ext 17022 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17229 17023 _lt_linker_boilerplate=`cat conftest.err` 17230 17024 $rm conftest* … … 17266 17060 lt_cv_prog_compiler_rtti_exceptions=no 17267 17061 ac_outfile=conftest.$ac_objext 17268 printf"$lt_simple_compile_test_code" > conftest.$ac_ext17062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17269 17063 lt_compiler_flag="-fno-rtti -fno-exceptions" 17270 17064 # Insert the option either (1) after the last *FLAGS variable, or … … 17277 17071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17278 17072 -e 's:$: $lt_compiler_flag:'` 17279 (eval echo "\"\$as_me:17 279: $lt_compile\"" >&5)17073 (eval echo "\"\$as_me:17073: $lt_compile\"" >&5) 17280 17074 (eval "$lt_compile" 2>conftest.err) 17281 17075 ac_status=$? 17282 17076 cat conftest.err >&5 17283 echo "$as_me:17 283: \$? = $ac_status" >&517077 echo "$as_me:17077: \$? = $ac_status" >&5 17284 17078 if (exit $ac_status) && test -s "$ac_outfile"; then 17285 17079 # The compiler can only warn and ignore the option if not recognized 17286 17080 # So say no if there are warnings other than the usual output. 17287 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp17288 $SED '/^$/d ' conftest.err >conftest.er217289 if test ! -s conftest.er r|| diff conftest.exp conftest.er2 >/dev/null; then17081 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17083 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17290 17084 lt_cv_prog_compiler_rtti_exceptions=yes 17291 17085 fi … … 17332 17126 ;; 17333 17127 17334 beos* | cygwin* |irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)17128 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17335 17129 # PIC is the default for these OSes. 17336 17130 ;; 17337 17131 17338 mingw* | pw32* | os2*)17132 mingw* | cygwin* | pw32* | os2*) 17339 17133 # This hack is so that the source file can tell whether it is being 17340 17134 # built for inclusion in a dll (and should export symbols for example). 17135 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17136 # (--disable-auto-import) libraries 17341 17137 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 17342 17138 ;; … … 17346 17142 # Common symbols not allowed in MH_DYLIB files 17347 17143 lt_prog_compiler_pic_GCJ='-fno-common' 17144 ;; 17145 17146 interix[3-9]*) 17147 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17148 # Instead, we relocate shared libraries at runtime. 17348 17149 ;; 17349 17150 … … 17401 17202 ;; 17402 17203 17403 mingw* | pw32* | os2*)17204 mingw* | cygwin* | pw32* | os2*) 17404 17205 # This hack is so that the source file can tell whether it is being 17405 17206 # built for inclusion in a dll (and should export symbols for example). … … 17434 17235 ;; 17435 17236 17436 linux* )17237 linux* | k*bsd*-gnu) 17437 17238 case $cc_basename in 17438 17239 icc* | ecc*) … … 17453 17254 lt_prog_compiler_static_GCJ='-non_shared' 17454 17255 ;; 17256 *) 17257 case `$CC -V 2>&1 | sed 5q` in 17258 *Sun\ C*) 17259 # Sun C 5.9 17260 lt_prog_compiler_pic_GCJ='-KPIC' 17261 lt_prog_compiler_static_GCJ='-Bstatic' 17262 lt_prog_compiler_wl_GCJ='-Wl,' 17263 ;; 17264 *Sun\ F*) 17265 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17266 lt_prog_compiler_pic_GCJ='-KPIC' 17267 lt_prog_compiler_static_GCJ='-Bstatic' 17268 lt_prog_compiler_wl_GCJ='' 17269 ;; 17270 esac 17271 ;; 17455 17272 esac 17456 17273 ;; … … 17462 17279 ;; 17463 17280 17464 sco3.2v5*) 17465 lt_prog_compiler_pic_GCJ='-Kpic' 17466 lt_prog_compiler_static_GCJ='-dn' 17281 rdos*) 17282 lt_prog_compiler_static_GCJ='-non_shared' 17467 17283 ;; 17468 17284 … … 17484 17300 ;; 17485 17301 17486 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)17302 sysv4 | sysv4.2uw2* | sysv4.3*) 17487 17303 lt_prog_compiler_wl_GCJ='-Wl,' 17488 17304 lt_prog_compiler_pic_GCJ='-KPIC' … … 17497 17313 ;; 17498 17314 17315 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17316 lt_prog_compiler_wl_GCJ='-Wl,' 17317 lt_prog_compiler_pic_GCJ='-KPIC' 17318 lt_prog_compiler_static_GCJ='-Bstatic' 17319 ;; 17320 17499 17321 unicos*) 17500 17322 lt_prog_compiler_wl_GCJ='-Wl,' … … 17528 17350 lt_prog_compiler_pic_works_GCJ=no 17529 17351 ac_outfile=conftest.$ac_objext 17530 printf"$lt_simple_compile_test_code" > conftest.$ac_ext17352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17531 17353 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17532 17354 # Insert the option either (1) after the last *FLAGS variable, or … … 17539 17361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17540 17362 -e 's:$: $lt_compiler_flag:'` 17541 (eval echo "\"\$as_me:17 541: $lt_compile\"" >&5)17363 (eval echo "\"\$as_me:17363: $lt_compile\"" >&5) 17542 17364 (eval "$lt_compile" 2>conftest.err) 17543 17365 ac_status=$? 17544 17366 cat conftest.err >&5 17545 echo "$as_me:17 545: \$? = $ac_status" >&517367 echo "$as_me:17367: \$? = $ac_status" >&5 17546 17368 if (exit $ac_status) && test -s "$ac_outfile"; then 17547 17369 # The compiler can only warn and ignore the option if not recognized 17548 17370 # So say no if there are warnings other than the usual output. 17549 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp17550 $SED '/^$/d ' conftest.err >conftest.er217551 if test ! -s conftest.er r|| diff conftest.exp conftest.er2 >/dev/null; then17371 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17373 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17552 17374 lt_prog_compiler_pic_works_GCJ=yes 17553 17375 fi … … 17580 17402 esac 17581 17403 17404 # 17405 # Check to make sure the static flag actually works. 17406 # 17407 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17408 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17409 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17410 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17411 echo $ECHO_N "(cached) $ECHO_C" >&6 17412 else 17413 lt_prog_compiler_static_works_GCJ=no 17414 save_LDFLAGS="$LDFLAGS" 17415 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17416 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17417 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17418 # The linker can only warn and ignore the option if not recognized 17419 # So say no if there are warnings 17420 if test -s conftest.err; then 17421 # Append any errors to the config.log. 17422 cat conftest.err 1>&5 17423 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17425 if diff conftest.exp conftest.er2 >/dev/null; then 17426 lt_prog_compiler_static_works_GCJ=yes 17427 fi 17428 else 17429 lt_prog_compiler_static_works_GCJ=yes 17430 fi 17431 fi 17432 $rm conftest* 17433 LDFLAGS="$save_LDFLAGS" 17434 17435 fi 17436 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17437 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17438 17439 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17440 : 17441 else 17442 lt_prog_compiler_static_GCJ= 17443 fi 17444 17445 17582 17446 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17583 17447 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } … … 17590 17454 cd conftest 17591 17455 mkdir out 17592 printf"$lt_simple_compile_test_code" > conftest.$ac_ext17456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17593 17457 17594 17458 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 17601 17465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17602 17466 -e 's:$: $lt_compiler_flag:'` 17603 (eval echo "\"\$as_me:17 603: $lt_compile\"" >&5)17467 (eval echo "\"\$as_me:17467: $lt_compile\"" >&5) 17604 17468 (eval "$lt_compile" 2>out/conftest.err) 17605 17469 ac_status=$? 17606 17470 cat out/conftest.err >&5 17607 echo "$as_me:17 607: \$? = $ac_status" >&517471 echo "$as_me:17471: \$? = $ac_status" >&5 17608 17472 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17609 17473 then 17610 17474 # The compiler can only warn and ignore the option if not recognized 17611 17475 # So say no if there are warnings 17612 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp17613 $SED '/^$/d ' out/conftest.err >out/conftest.er217614 if test ! -s out/conftest.er r|| diff out/conftest.exp out/conftest.er2 >/dev/null; then17476 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17477 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17478 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17615 17479 lt_cv_prog_compiler_c_o_GCJ=yes 17616 17480 fi … … 17712 17576 fi 17713 17577 ;; 17578 interix*) 17579 # we just hope/assume this is gcc and not c89 (= MSVC++) 17580 with_gnu_ld=yes 17581 ;; 17714 17582 openbsd*) 17715 17583 with_gnu_ld=no … … 17793 17661 always_export_symbols_GCJ=no 17794 17662 enable_shared_with_static_runtimes_GCJ=yes 17795 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.*//'\'' | sort | uniq > $export_symbols'17663 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17796 17664 17797 17665 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17798 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'17666 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17799 17667 # If the export-symbols file already is a .def file (1st line 17800 17668 # is EXPORTS), use it as is; otherwise, prepend... … … 17805 17673 cat $export_symbols >> $output_objdir/$soname.def; 17806 17674 fi~ 17807 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'17675 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17808 17676 else 17809 17677 ld_shlibs_GCJ=no … … 17811 17679 ;; 17812 17680 17813 linux*) 17681 interix[3-9]*) 17682 hardcode_direct_GCJ=no 17683 hardcode_shlibpath_var_GCJ=no 17684 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17685 export_dynamic_flag_spec_GCJ='${wl}-E' 17686 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17687 # Instead, shared libraries are loaded at an image base (0x10000000 by 17688 # default) and relocated if they conflict, which is a slow very memory 17689 # consuming and fragmenting process. To avoid this, we pick a random, 17690 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17691 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17692 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17693 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17694 ;; 17695 17696 gnu* | linux* | k*bsd*-gnu) 17814 17697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17815 17698 tmp_addflag= … … 17829 17712 tmp_addflag=' -nofor_main' ;; 17830 17713 esac 17831 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17714 case `$CC -V 2>&1 | sed 5q` in 17715 *Sun\ C*) # Sun C 5.9 17716 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17717 tmp_sharedflag='-G' ;; 17718 *Sun\ F*) # Sun Fortran 8.3 17719 tmp_sharedflag='-G' ;; 17720 *) 17721 tmp_sharedflag='-shared' ;; 17722 esac 17723 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17832 17724 17833 17725 if test $supports_anon_versioning = yes; then … … 17835 17727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17836 17728 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17837 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'17729 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17838 17730 fi 17839 17731 else … … 17852 17744 ;; 17853 17745 17854 solaris* | sysv5*)17746 solaris*) 17855 17747 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17856 17748 ld_shlibs_GCJ=no … … 17871 17763 ld_shlibs_GCJ=no 17872 17764 fi 17765 ;; 17766 17767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17768 case `$LD -v 2>&1` in 17769 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17770 ld_shlibs_GCJ=no 17771 cat <<_LT_EOF 1>&2 17772 17773 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17774 *** reliably create shared libraries on SCO systems. Therefore, libtool 17775 *** is disabling shared libraries support. We urge you to upgrade GNU 17776 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17777 *** your PATH or compiler configuration so that the native linker is 17778 *** used, and then restart. 17779 17780 _LT_EOF 17781 ;; 17782 *) 17783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17784 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17785 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17786 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17787 else 17788 ld_shlibs_GCJ=no 17789 fi 17790 ;; 17791 esac 17873 17792 ;; 17874 17793 … … 17906 17825 # are no directories specified by -L. 17907 17826 hardcode_minus_L_GCJ=yes 17908 if test "$GCC" = yes && test -z "$l ink_static_flag"; then17827 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17909 17828 # Neither direct hardcoding nor static linking is supported with a 17910 17829 # broken collect2. … … 17940 17859 fi 17941 17860 done 17861 ;; 17942 17862 esac 17943 17863 … … 17966 17886 then 17967 17887 # We have reworked collect2 17968 hardcode_direct_GCJ=yes17888 : 17969 17889 else 17970 17890 # We have old collect2 … … 17977 17897 hardcode_libdir_separator_GCJ= 17978 17898 fi 17899 ;; 17979 17900 esac 17980 17901 shared_flag='-shared' … … 17989 17910 shared_flag='-G' 17990 17911 else 17991 17912 if test "$aix_use_runtimelinking" = yes; then 17992 17913 shared_flag='${wl}-G' 17993 17914 else 17994 17915 shared_flag='${wl}-bM:SRE' 17995 17916 fi 17996 17917 fi 17997 17918 fi … … 18039 17960 $as_test_x conftest$ac_exeext; then 18040 17961 18041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18042 }'` 17962 lt_aix_libpath_sed=' 17963 /Import File Strings/,/^$/ { 17964 /^0/ { 17965 s/^0 *\(.*\)$/\1/ 17966 p 17967 } 17968 }' 17969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18043 17970 # Check for a 64-bit object if we didn't find anything. 18044 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18045 }'`; fi 17971 if test -z "$aix_libpath"; then 17972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17973 fi 18046 17974 else 18047 17975 echo "$as_me: failed program was:" >&5 … … 18056 17984 18057 17985 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18058 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols $shared_flag"17986 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 18059 17987 else 18060 17988 if test "$host_cpu" = ia64; then 18061 17989 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 18062 17990 allow_undefined_flag_GCJ="-z nodefs" 18063 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols"17991 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 18064 17992 else 18065 17993 # Determine the default libpath from the value encoded in an empty executable. … … 18098 18026 $as_test_x conftest$ac_exeext; then 18099 18027 18100 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18101 }'` 18028 lt_aix_libpath_sed=' 18029 /Import File Strings/,/^$/ { 18030 /^0/ { 18031 s/^0 *\(.*\)$/\1/ 18032 p 18033 } 18034 }' 18035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18102 18036 # Check for a 64-bit object if we didn't find anything. 18103 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 18104 }'`; fi 18037 if test -z "$aix_libpath"; then 18038 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18039 fi 18105 18040 else 18106 18041 echo "$as_me: failed program was:" >&5 … … 18119 18054 no_undefined_flag_GCJ=' ${wl}-bernotok' 18120 18055 allow_undefined_flag_GCJ=' ${wl}-berok' 18121 # -bexpall does not export symbols beginning with underscore (_)18122 always_export_symbols_GCJ=yes18123 18056 # Exported symbols can be pulled into shared objects from archives 18124 whole_archive_flag_spec_GCJ=' 18057 whole_archive_flag_spec_GCJ='$convenience' 18125 18058 archive_cmds_need_lc_GCJ=yes 18126 18059 # This is similar to how AIX traditionally builds its shared libraries. 18127 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $ compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'18060 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18128 18061 fi 18129 18062 fi … … 18158 18091 old_archive_From_new_cmds_GCJ='true' 18159 18092 # FIXME: Should let the user specify the lib program. 18160 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'18093 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 18161 18094 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18162 18095 enable_shared_with_static_runtimes_GCJ=yes … … 18200 18133 xlc*) 18201 18134 output_verbose_link_cmd='echo' 18202 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $ verstring'18135 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18203 18136 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18204 18137 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18205 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $ verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'18138 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18206 18139 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18207 18140 ;; … … 18243 18176 18244 18177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18245 freebsd* | kfreebsd*-gnu |dragonfly*)18178 freebsd* | dragonfly*) 18246 18179 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18247 18180 hardcode_libdir_flag_spec_GCJ='-R$libdir' … … 18266 18199 ;; 18267 18200 18268 hpux10* | hpux11*) 18201 hpux10*) 18202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18203 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18204 else 18205 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18206 fi 18207 if test "$with_gnu_ld" = no; then 18208 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18209 hardcode_libdir_separator_GCJ=: 18210 18211 hardcode_direct_GCJ=yes 18212 export_dynamic_flag_spec_GCJ='${wl}-E' 18213 18214 # hardcode_minus_L: Not really in the search PATH, 18215 # but as the default location of the library. 18216 hardcode_minus_L_GCJ=yes 18217 fi 18218 ;; 18219 18220 hpux11*) 18269 18221 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18270 18222 case $host_cpu in 18271 hppa*64* |ia64*)18223 hppa*64*) 18272 18224 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18225 ;; 18226 ia64*) 18227 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18273 18228 ;; 18274 18229 *) … … 18278 18233 else 18279 18234 case $host_cpu in 18280 hppa*64*|ia64*) 18281 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 18235 hppa*64*) 18236 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18237 ;; 18238 ia64*) 18239 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18282 18240 ;; 18283 18241 *) 18284 archive_cmds_GCJ='$ LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'18242 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18285 18243 ;; 18286 18244 esac 18287 18245 fi 18288 18246 if test "$with_gnu_ld" = no; then 18247 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18248 hardcode_libdir_separator_GCJ=: 18249 18289 18250 case $host_cpu in 18290 hppa*64*) 18291 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18251 hppa*64*|ia64*) 18292 18252 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18293 hardcode_libdir_separator_GCJ=:18294 18253 hardcode_direct_GCJ=no 18295 18254 hardcode_shlibpath_var_GCJ=no 18296 18255 ;; 18297 ia64*)18298 hardcode_libdir_flag_spec_GCJ='-L$libdir'18299 hardcode_direct_GCJ=no18300 hardcode_shlibpath_var_GCJ=no18301 18302 # hardcode_minus_L: Not really in the search PATH,18303 # but as the default location of the library.18304 hardcode_minus_L_GCJ=yes18305 ;;18306 18256 *) 18307 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'18308 hardcode_libdir_separator_GCJ=:18309 18257 hardcode_direct_GCJ=yes 18310 18258 export_dynamic_flag_spec_GCJ='${wl}-E' … … 18350 18298 18351 18299 openbsd*) 18352 hardcode_direct_GCJ=yes 18353 hardcode_shlibpath_var_GCJ=no 18354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18355 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18356 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18357 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18358 export_dynamic_flag_spec_GCJ='${wl}-E' 18300 if test -f /usr/libexec/ld.so; then 18301 hardcode_direct_GCJ=yes 18302 hardcode_shlibpath_var_GCJ=no 18303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18304 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18305 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18306 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18307 export_dynamic_flag_spec_GCJ='${wl}-E' 18308 else 18309 case $host_os in 18310 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18311 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18312 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18313 ;; 18314 *) 18315 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18316 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18317 ;; 18318 esac 18319 fi 18359 18320 else 18360 case $host_os in 18361 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18362 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18363 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18364 ;; 18365 *) 18366 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18367 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18368 ;; 18369 esac 18321 ld_shlibs_GCJ=no 18370 18322 fi 18371 18323 ;; … … 18406 18358 fi 18407 18359 hardcode_libdir_separator_GCJ=: 18408 ;;18409 18410 sco3.2v5*)18411 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'18412 hardcode_shlibpath_var_GCJ=no18413 export_dynamic_flag_spec_GCJ='${wl}-Bexport'18414 runpath_var=LD_RUN_PATH18415 hardcode_runpath_var=yes18416 18360 ;; 18417 18361 … … 18434 18378 solaris2.[0-5] | solaris2.[0-5].*) ;; 18435 18379 *) 18436 # The compiler driver will combine linker options so we 18437 # cannot just pass the convience library names through 18438 # without $wl, iff we do not link with $LD. 18439 # Luckily, gcc supports the same syntax we need for Sun Studio. 18380 # The compiler driver will combine and reorder linker options, 18381 # but understands `-z linker_flag'. GCC discards it without `$wl', 18382 # but is careful enough not to reorder. 18440 18383 # Supported since Solaris 2.6 (maybe 2.5.1?) 18441 case $wlarc in18442 '') 18443 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 18444 *) 18445 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 18446 esac;;18384 if test "$GCC" = yes; then 18385 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18386 else 18387 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18388 fi 18389 ;; 18447 18390 esac 18448 18391 link_all_deplibs_GCJ=yes … … 18501 18444 ;; 18502 18445 18503 sysv4.2uw2*) 18504 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18505 hardcode_direct_GCJ=yes 18506 hardcode_minus_L_GCJ=no 18507 hardcode_shlibpath_var_GCJ=no 18508 hardcode_runpath_var=yes 18509 runpath_var=LD_RUN_PATH 18510 ;; 18511 18512 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 18513 no_undefined_flag_GCJ='${wl}-z ${wl}text' 18514 if test "$GCC" = yes; then 18515 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18516 else 18517 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18518 fi 18519 runpath_var='LD_RUN_PATH' 18520 hardcode_shlibpath_var_GCJ=no 18521 ;; 18522 18523 sysv5*) 18524 no_undefined_flag_GCJ=' -z text' 18525 # $CC -shared without GNU ld will not create a library from C++ 18526 # object files and a static libstdc++, better avoid it by now 18527 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18528 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18529 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18530 hardcode_libdir_flag_spec_GCJ= 18446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18447 no_undefined_flag_GCJ='${wl}-z,text' 18448 archive_cmds_need_lc_GCJ=no 18531 18449 hardcode_shlibpath_var_GCJ=no 18532 18450 runpath_var='LD_RUN_PATH' 18451 18452 if test "$GCC" = yes; then 18453 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18454 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18455 else 18456 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18457 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18458 fi 18459 ;; 18460 18461 sysv5* | sco3.2v5* | sco5v6*) 18462 # Note: We can NOT use -z defs as we might desire, because we do not 18463 # link with -lc, and that would cause any symbols used from libc to 18464 # always be unresolved, which means just about no library would 18465 # ever link correctly. If we're not using GNU ld we use -z text 18466 # though, which does catch some bad symbols but isn't as heavy-handed 18467 # as -z defs. 18468 no_undefined_flag_GCJ='${wl}-z,text' 18469 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18470 archive_cmds_need_lc_GCJ=no 18471 hardcode_shlibpath_var_GCJ=no 18472 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18473 hardcode_libdir_separator_GCJ=':' 18474 link_all_deplibs_GCJ=yes 18475 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18476 runpath_var='LD_RUN_PATH' 18477 18478 if test "$GCC" = yes; then 18479 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18480 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18481 else 18482 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18483 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18484 fi 18533 18485 ;; 18534 18486 … … 18548 18500 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18549 18501 test "$ld_shlibs_GCJ" = no && can_build_shared=no 18550 18551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"18552 if test "$GCC" = yes; then18553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"18554 fi18555 18502 18556 18503 # … … 18574 18521 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18575 18522 $rm conftest* 18576 printf"$lt_simple_compile_test_code" > conftest.$ac_ext18523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18577 18524 18578 18525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 … … 18586 18533 deplibs= 18587 18534 wl=$lt_prog_compiler_wl_GCJ 18535 pic_flag=$lt_prog_compiler_pic_GCJ 18588 18536 compiler_flags=-v 18589 18537 linker_flags=-v … … 18631 18579 dynamic_linker="$host_os ld.so" 18632 18580 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18633 if test "$GCC" = yes; then 18634 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18635 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18636 # if the path contains ";" then we assume it to be the separator 18637 # otherwise default to the standard path separator (i.e. ":") - it is 18638 # assumed that no part of a normal pathname contains ";" but that should 18639 # okay in the real world where ";" in dirpaths is itself problematic. 18640 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18641 else 18642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18643 fi 18644 else 18645 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18646 fi 18581 18647 18582 need_lib_prefix=unknown 18648 18583 hardcode_into_libs=no … … 18801 18736 shlibpath_var=DYLD_LIBRARY_PATH 18802 18737 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18803 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18804 if test "$GCC" = yes; then 18805 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18806 else 18807 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18808 fi 18738 18809 18739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18810 18740 ;; … … 18821 18751 freebsd1*) 18822 18752 dynamic_linker=no 18823 ;;18824 18825 kfreebsd*-gnu)18826 version_type=linux18827 need_lib_prefix=no18828 need_version=no18829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'18830 soname_spec='${libname}${release}${shared_ext}$major'18831 shlibpath_var=LD_LIBRARY_PATH18832 shlibpath_overrides_runpath=no18833 hardcode_into_libs=yes18834 dynamic_linker='GNU ld.so'18835 18753 ;; 18836 18754 … … 18867 18785 hardcode_into_libs=yes 18868 18786 ;; 18869 *) # from 3.2 on 18787 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18788 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18870 18789 shlibpath_overrides_runpath=no 18790 hardcode_into_libs=yes 18791 ;; 18792 *) # from 4.6 on, and DragonFly 18793 shlibpath_overrides_runpath=yes 18871 18794 hardcode_into_libs=yes 18872 18795 ;; … … 18930 18853 ;; 18931 18854 18855 interix[3-9]*) 18856 version_type=linux 18857 need_lib_prefix=no 18858 need_version=no 18859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18860 soname_spec='${libname}${release}${shared_ext}$major' 18861 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18862 shlibpath_var=LD_LIBRARY_PATH 18863 shlibpath_overrides_runpath=no 18864 hardcode_into_libs=yes 18865 ;; 18866 18932 18867 irix5* | irix6* | nonstopux*) 18933 18868 case $host_os in … … 18973 18908 18974 18909 # This must be Linux ELF. 18975 linux* )18910 linux* | k*bsd*-gnu) 18976 18911 version_type=linux 18977 18912 need_lib_prefix=no … … 18989 18924 # Append ld.so.conf contents to the search path 18990 18925 if test -f /etc/ld.so.conf; then 18991 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s ", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`18926 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18992 18927 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18993 18928 fi … … 19000 18935 # assume the GNU/Linux dynamic linker is in use. 19001 18936 dynamic_linker='GNU/Linux ld.so' 19002 ;;19003 19004 knetbsd*-gnu)19005 version_type=linux19006 need_lib_prefix=no19007 need_version=no19008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'19009 soname_spec='${libname}${release}${shared_ext}$major'19010 shlibpath_var=LD_LIBRARY_PATH19011 shlibpath_overrides_runpath=no19012 hardcode_into_libs=yes19013 dynamic_linker='GNU ld.so'19014 18937 ;; 19015 18938 … … 19051 18974 openbsd*) 19052 18975 version_type=sunos 18976 sys_lib_dlsearch_path_spec="/usr/lib" 19053 18977 need_lib_prefix=no 19054 18978 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. … … 19094 19018 ;; 19095 19019 19096 sco3.2v5*) 19097 version_type=osf 19098 soname_spec='${libname}${release}${shared_ext}$major' 19099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19100 shlibpath_var=LD_LIBRARY_PATH 19020 rdos*) 19021 dynamic_linker=no 19101 19022 ;; 19102 19023 … … 19126 19047 ;; 19127 19048 19128 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)19049 sysv4 | sysv4.3*) 19129 19050 version_type=linux 19130 19051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' … … 19159 19080 ;; 19160 19081 19082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19083 version_type=freebsd-elf 19084 need_lib_prefix=no 19085 need_version=no 19086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19087 soname_spec='${libname}${release}${shared_ext}$major' 19088 shlibpath_var=LD_LIBRARY_PATH 19089 hardcode_into_libs=yes 19090 if test "$with_gnu_ld" = yes; then 19091 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19092 shlibpath_overrides_runpath=no 19093 else 19094 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19095 shlibpath_overrides_runpath=yes 19096 case $host_os in 19097 sco3.2v5*) 19098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19099 ;; 19100 esac 19101 fi 19102 sys_lib_dlsearch_path_spec='/usr/lib' 19103 ;; 19104 19161 19105 uts4*) 19162 19106 version_type=linux … … 19173 19117 echo "${ECHO_T}$dynamic_linker" >&6; } 19174 19118 test "$dynamic_linker" = no && can_build_shared=no 19119 19120 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19121 if test "$GCC" = yes; then 19122 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19123 fi 19175 19124 19176 19125 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 … … 19211 19160 fi 19212 19161 19213 striplib=19214 old_striplib=19215 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&519216 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }19217 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then19218 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"19219 test -z "$striplib" && striplib="$STRIP --strip-unneeded"19220 { echo "$as_me:$LINENO: result: yes" >&519221 echo "${ECHO_T}yes" >&6; }19222 else19223 # FIXME - insert some real tests, host_os isn't really good enough19224 case $host_os in19225 darwin*)19226 if test -n "$STRIP" ; then19227 striplib="$STRIP -x"19228 { echo "$as_me:$LINENO: result: yes" >&519229 echo "${ECHO_T}yes" >&6; }19230 else19231 { echo "$as_me:$LINENO: result: no" >&519232 echo "${ECHO_T}no" >&6; }19233 fi19234 ;;19235 *)19236 { echo "$as_me:$LINENO: result: no" >&519237 echo "${ECHO_T}no" >&6; }19238 ;;19239 esac19240 fi19241 19242 if test "x$enable_dlopen" != xyes; then19243 enable_dlopen=unknown19244 enable_dlopen_self=unknown19245 enable_dlopen_self_static=unknown19246 else19247 lt_cv_dlopen=no19248 lt_cv_dlopen_libs=19249 19250 case $host_os in19251 beos*)19252 lt_cv_dlopen="load_add_on"19253 lt_cv_dlopen_libs=19254 lt_cv_dlopen_self=yes19255 ;;19256 19257 mingw* | pw32*)19258 lt_cv_dlopen="LoadLibrary"19259 lt_cv_dlopen_libs=19260 ;;19261 19262 cygwin*)19263 lt_cv_dlopen="dlopen"19264 lt_cv_dlopen_libs=19265 ;;19266 19267 darwin*)19268 # if libdl is installed we need to link against it19269 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&519270 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }19271 if test "${ac_cv_lib_dl_dlopen+set}" = set; then19272 echo $ECHO_N "(cached) $ECHO_C" >&619273 else19274 ac_check_lib_save_LIBS=$LIBS19275 LIBS="-ldl $LIBS"19276 cat >conftest.$ac_ext <<_ACEOF19277 /* confdefs.h. */19278 _ACEOF19279 cat confdefs.h >>conftest.$ac_ext19280 cat >>conftest.$ac_ext <<_ACEOF19281 /* end confdefs.h. */19282 19283 /* Override any GCC internal prototype to avoid an error.19284 Use char because int might match the return type of a GCC19285 builtin and then its argument prototype would still apply. */19286 #ifdef __cplusplus19287 extern "C"19288 #endif19289 char dlopen ();19290 int19291 main ()19292 {19293 return dlopen ();19294 ;19295 return 0;19296 }19297 _ACEOF19298 rm -f conftest.$ac_objext conftest$ac_exeext19299 if { (ac_try="$ac_link"19300 case "(($ac_try" in19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;19302 *) ac_try_echo=$ac_try;;19303 esac19304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&519305 (eval "$ac_link") 2>conftest.er119306 ac_status=$?19307 grep -v '^ *+' conftest.er1 >conftest.err19308 rm -f conftest.er119309 cat conftest.err >&519310 echo "$as_me:$LINENO: \$? = $ac_status" >&519311 (exit $ac_status); } && {19312 test -z "$ac_c_werror_flag" ||19313 test ! -s conftest.err19314 } && test -s conftest$ac_exeext &&19315 $as_test_x conftest$ac_exeext; then19316 ac_cv_lib_dl_dlopen=yes19317 else19318 echo "$as_me: failed program was:" >&519319 sed 's/^/| /' conftest.$ac_ext >&519320 19321 ac_cv_lib_dl_dlopen=no19322 fi19323 19324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \19325 conftest$ac_exeext conftest.$ac_ext19326 LIBS=$ac_check_lib_save_LIBS19327 fi19328 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&519329 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }19330 if test $ac_cv_lib_dl_dlopen = yes; then19331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"19332 else19333 19334 lt_cv_dlopen="dyld"19335 lt_cv_dlopen_libs=19336 lt_cv_dlopen_self=yes19337 19338 fi19339 19340 ;;19341 19342 *)19343 { echo "$as_me:$LINENO: checking for shl_load" >&519344 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }19345 if test "${ac_cv_func_shl_load+set}" = set; then19346 echo $ECHO_N "(cached) $ECHO_C" >&619347 else19348 cat >conftest.$ac_ext <<_ACEOF19349 /* confdefs.h. */19350 _ACEOF19351 cat confdefs.h >>conftest.$ac_ext19352 cat >>conftest.$ac_ext <<_ACEOF19353 /* end confdefs.h. */19354 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.19355 For example, HP-UX 11i <limits.h> declares gettimeofday. */19356 #define shl_load innocuous_shl_load19357 19358 /* System header to define __stub macros and hopefully few prototypes,19359 which can conflict with char shl_load (); below.19360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since19361 <limits.h> exists even on freestanding compilers. */19362 19363 #ifdef __STDC__19364 # include <limits.h>19365 #else19366 # include <assert.h>19367 #endif19368 19369 #undef shl_load19370 19371 /* Override any GCC internal prototype to avoid an error.19372 Use char because int might match the return type of a GCC19373 builtin and then its argument prototype would still apply. */19374 #ifdef __cplusplus19375 extern "C"19376 #endif19377 char shl_load ();19378 /* The GNU C library defines this for functions which it implements19379 to always fail with ENOSYS. Some functions are actually named19380 something starting with __ and the normal name is an alias. */19381 #if defined __stub_shl_load || defined __stub___shl_load19382 choke me19383 #endif19384 19385 int19386 main ()19387 {19388 return shl_load ();19389 ;19390 return 0;19391 }19392 _ACEOF19393 rm -f conftest.$ac_objext conftest$ac_exeext19394 if { (ac_try="$ac_link"19395 case "(($ac_try" in19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;19397 *) ac_try_echo=$ac_try;;19398 esac19399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&519400 (eval "$ac_link") 2>conftest.er119401 ac_status=$?19402 grep -v '^ *+' conftest.er1 >conftest.err19403 rm -f conftest.er119404 cat conftest.err >&519405 echo "$as_me:$LINENO: \$? = $ac_status" >&519406 (exit $ac_status); } && {19407 test -z "$ac_c_werror_flag" ||19408 test ! -s conftest.err19409 } && test -s conftest$ac_exeext &&19410 $as_test_x conftest$ac_exeext; then19411 ac_cv_func_shl_load=yes19412 else19413 echo "$as_me: failed program was:" >&519414 sed 's/^/| /' conftest.$ac_ext >&519415 19416 ac_cv_func_shl_load=no19417 fi19418 19419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \19420 conftest$ac_exeext conftest.$ac_ext19421 fi19422 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&519423 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }19424 if test $ac_cv_func_shl_load = yes; then19425 lt_cv_dlopen="shl_load"19426 else19427 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&519428 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }19429 if test "${ac_cv_lib_dld_shl_load+set}" = set; then19430 echo $ECHO_N "(cached) $ECHO_C" >&619431 else19432 ac_check_lib_save_LIBS=$LIBS19433 LIBS="-ldld $LIBS"19434 cat >conftest.$ac_ext <<_ACEOF19435 /* confdefs.h. */19436 _ACEOF19437 cat confdefs.h >>conftest.$ac_ext19438 cat >>conftest.$ac_ext <<_ACEOF19439 /* end confdefs.h. */19440 19441 /* Override any GCC internal prototype to avoid an error.19442 Use char because int might match the return type of a GCC19443 builtin and then its argument prototype would still apply. */19444 #ifdef __cplusplus19445 extern "C"19446 #endif19447 char shl_load ();19448 int19449 main ()19450 {19451 return shl_load ();19452 ;19453 return 0;19454 }19455 _ACEOF19456 rm -f conftest.$ac_objext conftest$ac_exeext19457 if { (ac_try="$ac_link"19458 case "(($ac_try" in19459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;19460 *) ac_try_echo=$ac_try;;19461 esac19462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&519463 (eval "$ac_link") 2>conftest.er119464 ac_status=$?19465 grep -v '^ *+' conftest.er1 >conftest.err19466 rm -f conftest.er119467 cat conftest.err >&519468 echo "$as_me:$LINENO: \$? = $ac_status" >&519469 (exit $ac_status); } && {19470 test -z "$ac_c_werror_flag" ||19471 test ! -s conftest.err19472 } && test -s conftest$ac_exeext &&19473 $as_test_x conftest$ac_exeext; then19474 ac_cv_lib_dld_shl_load=yes19475 else19476 echo "$as_me: failed program was:" >&519477 sed 's/^/| /' conftest.$ac_ext >&519478 19479 ac_cv_lib_dld_shl_load=no19480 fi19481 19482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \19483 conftest$ac_exeext conftest.$ac_ext19484 LIBS=$ac_check_lib_save_LIBS19485 fi19486 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&519487 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }19488 if test $ac_cv_lib_dld_shl_load = yes; then19489 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"19490 else19491 { echo "$as_me:$LINENO: checking for dlopen" >&519492 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }19493 if test "${ac_cv_func_dlopen+set}" = set; then19494 echo $ECHO_N "(cached) $ECHO_C" >&619495 else19496 cat >conftest.$ac_ext <<_ACEOF19497 /* confdefs.h. */19498 _ACEOF19499 cat confdefs.h >>conftest.$ac_ext19500 cat >>conftest.$ac_ext <<_ACEOF19501 /* end confdefs.h. */19502 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.19503 For example, HP-UX 11i <limits.h> declares gettimeofday. */19504 #define dlopen innocuous_dlopen19505 19506 /* System header to define __stub macros and hopefully few prototypes,19507 which can conflict with char dlopen (); below.19508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since19509 <limits.h> exists even on freestanding compilers. */19510 19511 #ifdef __STDC__19512 # include <limits.h>19513 #else19514 # include <assert.h>19515 #endif19516 19517 #undef dlopen19518 19519 /* Override any GCC internal prototype to avoid an error.19520 Use char because int might match the return type of a GCC19521 builtin and then its argument prototype would still apply. */19522 #ifdef __cplusplus19523 extern "C"19524 #endif19525 char dlopen ();19526 /* The GNU C library defines this for functions which it implements19527 to always fail with ENOSYS. Some functions are actually named19528 something starting with __ and the normal name is an alias. */19529 #if defined __stub_dlopen || defined __stub___dlopen19530 choke me19531 #endif19532 19533 int19534 main ()19535 {19536 return dlopen ();19537 ;19538 return 0;19539 }19540 _ACEOF19541 rm -f conftest.$ac_objext conftest$ac_exeext19542 if { (ac_try="$ac_link"19543 case "(($ac_try" in19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;19545 *) ac_try_echo=$ac_try;;19546 esac19547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&519548 (eval "$ac_link") 2>conftest.er119549 ac_status=$?19550 grep -v '^ *+' conftest.er1 >conftest.err19551 rm -f conftest.er119552 cat conftest.err >&519553 echo "$as_me:$LINENO: \$? = $ac_status" >&519554 (exit $ac_status); } && {19555 test -z "$ac_c_werror_flag" ||19556 test ! -s conftest.err19557 } && test -s conftest$ac_exeext &&19558 $as_test_x conftest$ac_exeext; then19559 ac_cv_func_dlopen=yes19560 else19561 echo "$as_me: failed program was:" >&519562 sed 's/^/| /' conftest.$ac_ext >&519563 19564 ac_cv_func_dlopen=no19565 fi19566 19567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \19568 conftest$ac_exeext conftest.$ac_ext19569 fi19570 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&519571 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }19572 if test $ac_cv_func_dlopen = yes; then19573 lt_cv_dlopen="dlopen"19574 else19575 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&519576 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }19577 if test "${ac_cv_lib_dl_dlopen+set}" = set; then19578 echo $ECHO_N "(cached) $ECHO_C" >&619579 else19580 ac_check_lib_save_LIBS=$LIBS19581 LIBS="-ldl $LIBS"19582 cat >conftest.$ac_ext <<_ACEOF19583 /* confdefs.h. */19584 _ACEOF19585 cat confdefs.h >>conftest.$ac_ext19586 cat >>conftest.$ac_ext <<_ACEOF19587 /* end confdefs.h. */19588 19589 /* Override any GCC internal prototype to avoid an error.19590 Use char because int might match the return type of a GCC19591 builtin and then its argument prototype would still apply. */19592 #ifdef __cplusplus19593 extern "C"19594 #endif19595 char dlopen ();19596 int19597 main ()19598 {19599 return dlopen ();19600 ;19601 return 0;19602 }19603 _ACEOF19604 rm -f conftest.$ac_objext conftest$ac_exeext19605 if { (ac_try="$ac_link"19606 case "(($ac_try" in19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;19608 *) ac_try_echo=$ac_try;;19609 esac19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&519611 (eval "$ac_link") 2>conftest.er119612 ac_status=$?19613 grep -v '^ *+' conftest.er1 >conftest.err19614 rm -f conftest.er119615 cat conftest.err >&519616 echo "$as_me:$LINENO: \$? = $ac_status" >&519617 (exit $ac_status); } && {19618 test -z "$ac_c_werror_flag" ||19619 test ! -s conftest.err19620 } && test -s conftest$ac_exeext &&19621 $as_test_x conftest$ac_exeext; then19622 ac_cv_lib_dl_dlopen=yes19623 else19624 echo "$as_me: failed program was:" >&519625 sed 's/^/| /' conftest.$ac_ext >&519626 19627 ac_cv_lib_dl_dlopen=no19628 fi19629 19630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \19631 conftest$ac_exeext conftest.$ac_ext19632 LIBS=$ac_check_lib_save_LIBS19633 fi19634 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&519635 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }19636 if test $ac_cv_lib_dl_dlopen = yes; then19637 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"19638 else19639 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&519640 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }19641 if test "${ac_cv_lib_svld_dlopen+set}" = set; then19642 echo $ECHO_N "(cached) $ECHO_C" >&619643 else19644 ac_check_lib_save_LIBS=$LIBS19645 LIBS="-lsvld $LIBS"19646 cat >conftest.$ac_ext <<_ACEOF19647 /* confdefs.h. */19648 _ACEOF19649 cat confdefs.h >>conftest.$ac_ext19650 cat >>conftest.$ac_ext <<_ACEOF19651 /* end confdefs.h. */19652 19653 /* Override any GCC internal prototype to avoid an error.19654 Use char because int might match the return type of a GCC19655 builtin and then its argument prototype would still apply. */19656 #ifdef __cplusplus19657 extern "C"19658 #endif19659 char dlopen ();19660 int19661 main ()19662 {19663 return dlopen ();19664 ;19665 return 0;19666 }19667 _ACEOF19668 rm -f conftest.$ac_objext conftest$ac_exeext19669 if { (ac_try="$ac_link"19670 case "(($ac_try" in19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;19672 *) ac_try_echo=$ac_try;;19673 esac19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&519675 (eval "$ac_link") 2>conftest.er119676 ac_status=$?19677 grep -v '^ *+' conftest.er1 >conftest.err19678 rm -f conftest.er119679 cat conftest.err >&519680 echo "$as_me:$LINENO: \$? = $ac_status" >&519681 (exit $ac_status); } && {19682 test -z "$ac_c_werror_flag" ||19683 test ! -s conftest.err19684 } && test -s conftest$ac_exeext &&19685 $as_test_x conftest$ac_exeext; then19686 ac_cv_lib_svld_dlopen=yes19687 else19688 echo "$as_me: failed program was:" >&519689 sed 's/^/| /' conftest.$ac_ext >&519690 19691 ac_cv_lib_svld_dlopen=no19692 fi19693 19694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \19695 conftest$ac_exeext conftest.$ac_ext19696 LIBS=$ac_check_lib_save_LIBS19697 fi19698 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&519699 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }19700 if test $ac_cv_lib_svld_dlopen = yes; then19701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"19702 else19703 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&519704 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }19705 if test "${ac_cv_lib_dld_dld_link+set}" = set; then19706 echo $ECHO_N "(cached) $ECHO_C" >&619707 else19708 ac_check_lib_save_LIBS=$LIBS19709 LIBS="-ldld $LIBS"19710 cat >conftest.$ac_ext <<_ACEOF19711 /* confdefs.h. */19712 _ACEOF19713 cat confdefs.h >>conftest.$ac_ext19714 cat >>conftest.$ac_ext <<_ACEOF19715 /* end confdefs.h. */19716 19717 /* Override any GCC internal prototype to avoid an error.19718 Use char because int might match the return type of a GCC19719 builtin and then its argument prototype would still apply. */19720 #ifdef __cplusplus19721 extern "C"19722 #endif19723 char dld_link ();19724 int19725 main ()19726 {19727 return dld_link ();19728 ;19729 return 0;19730 }19731 _ACEOF19732 rm -f conftest.$ac_objext conftest$ac_exeext19733 if { (ac_try="$ac_link"19734 case "(($ac_try" in19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;19736 *) ac_try_echo=$ac_try;;19737 esac19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&519739 (eval "$ac_link") 2>conftest.er119740 ac_status=$?19741 grep -v '^ *+' conftest.er1 >conftest.err19742 rm -f conftest.er119743 cat conftest.err >&519744 echo "$as_me:$LINENO: \$? = $ac_status" >&519745 (exit $ac_status); } && {19746 test -z "$ac_c_werror_flag" ||19747 test ! -s conftest.err19748 } && test -s conftest$ac_exeext &&19749 $as_test_x conftest$ac_exeext; then19750 ac_cv_lib_dld_dld_link=yes19751 else19752 echo "$as_me: failed program was:" >&519753 sed 's/^/| /' conftest.$ac_ext >&519754 19755 ac_cv_lib_dld_dld_link=no19756 fi19757 19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \19759 conftest$ac_exeext conftest.$ac_ext19760 LIBS=$ac_check_lib_save_LIBS19761 fi19762 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&519763 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }19764 if test $ac_cv_lib_dld_dld_link = yes; then19765 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"19766 fi19767 19768 19769 fi19770 19771 19772 fi19773 19774 19775 fi19776 19777 19778 fi19779 19780 19781 fi19782 19783 ;;19784 esac19785 19786 if test "x$lt_cv_dlopen" != xno; then19787 enable_dlopen=yes19788 else19789 enable_dlopen=no19790 fi19791 19792 case $lt_cv_dlopen in19793 dlopen)19794 save_CPPFLAGS="$CPPFLAGS"19795 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"19796 19797 save_LDFLAGS="$LDFLAGS"19798 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"19799 19800 save_LIBS="$LIBS"19801 LIBS="$lt_cv_dlopen_libs $LIBS"19802 19803 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&519804 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }19805 if test "${lt_cv_dlopen_self+set}" = set; then19806 echo $ECHO_N "(cached) $ECHO_C" >&619807 else19808 if test "$cross_compiling" = yes; then :19809 lt_cv_dlopen_self=cross19810 else19811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=219812 lt_status=$lt_dlunknown19813 cat > conftest.$ac_ext <<EOF19814 #line 19814 "configure"19815 #include "confdefs.h"19816 19817 #if HAVE_DLFCN_H19818 #include <dlfcn.h>19819 #endif19820 19821 #include <stdio.h>19822 19823 #ifdef RTLD_GLOBAL19824 # define LT_DLGLOBAL RTLD_GLOBAL19825 #else19826 # ifdef DL_GLOBAL19827 # define LT_DLGLOBAL DL_GLOBAL19828 # else19829 # define LT_DLGLOBAL 019830 # endif19831 #endif19832 19833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we19834 find out it does not work in some platform. */19835 #ifndef LT_DLLAZY_OR_NOW19836 # ifdef RTLD_LAZY19837 # define LT_DLLAZY_OR_NOW RTLD_LAZY19838 # else19839 # ifdef DL_LAZY19840 # define LT_DLLAZY_OR_NOW DL_LAZY19841 # else19842 # ifdef RTLD_NOW19843 # define LT_DLLAZY_OR_NOW RTLD_NOW19844 # else19845 # ifdef DL_NOW19846 # define LT_DLLAZY_OR_NOW DL_NOW19847 # else19848 # define LT_DLLAZY_OR_NOW 019849 # endif19850 # endif19851 # endif19852 # endif19853 #endif19854 19855 #ifdef __cplusplus19856 extern "C" void exit (int);19857 #endif19858 19859 void fnord() { int i=42;}19860 int main ()19861 {19862 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);19863 int status = $lt_dlunknown;19864 19865 if (self)19866 {19867 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;19868 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;19869 /* dlclose (self); */19870 }19871 19872 exit (status);19873 }19874 EOF19875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&519876 (eval $ac_link) 2>&519877 ac_status=$?19878 echo "$as_me:$LINENO: \$? = $ac_status" >&519879 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then19880 (./conftest; exit; ) >&5 2>/dev/null19881 lt_status=$?19882 case x$lt_status in19883 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;19884 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;19885 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;19886 esac19887 else :19888 # compilation failed19889 lt_cv_dlopen_self=no19890 fi19891 fi19892 rm -fr conftest*19893 19894 19895 fi19896 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&519897 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }19898 19899 if test "x$lt_cv_dlopen_self" = xyes; then19900 LDFLAGS="$LDFLAGS $link_static_flag"19901 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&519902 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }19903 if test "${lt_cv_dlopen_self_static+set}" = set; then19904 echo $ECHO_N "(cached) $ECHO_C" >&619905 else19906 if test "$cross_compiling" = yes; then :19907 lt_cv_dlopen_self_static=cross19908 else19909 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=219910 lt_status=$lt_dlunknown19911 cat > conftest.$ac_ext <<EOF19912 #line 19912 "configure"19913 #include "confdefs.h"19914 19915 #if HAVE_DLFCN_H19916 #include <dlfcn.h>19917 #endif19918 19919 #include <stdio.h>19920 19921 #ifdef RTLD_GLOBAL19922 # define LT_DLGLOBAL RTLD_GLOBAL19923 #else19924 # ifdef DL_GLOBAL19925 # define LT_DLGLOBAL DL_GLOBAL19926 # else19927 # define LT_DLGLOBAL 019928 # endif19929 #endif19930 19931 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we19932 find out it does not work in some platform. */19933 #ifndef LT_DLLAZY_OR_NOW19934 # ifdef RTLD_LAZY19935 # define LT_DLLAZY_OR_NOW RTLD_LAZY19936 # else19937 # ifdef DL_LAZY19938 # define LT_DLLAZY_OR_NOW DL_LAZY19939 # else19940 # ifdef RTLD_NOW19941 # define LT_DLLAZY_OR_NOW RTLD_NOW19942 # else19943 # ifdef DL_NOW19944 # define LT_DLLAZY_OR_NOW DL_NOW19945 # else19946 # define LT_DLLAZY_OR_NOW 019947 # endif19948 # endif19949 # endif19950 # endif19951 #endif19952 19953 #ifdef __cplusplus19954 extern "C" void exit (int);19955 #endif19956 19957 void fnord() { int i=42;}19958 int main ()19959 {19960 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);19961 int status = $lt_dlunknown;19962 19963 if (self)19964 {19965 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;19966 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;19967 /* dlclose (self); */19968 }19969 19970 exit (status);19971 }19972 EOF19973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&519974 (eval $ac_link) 2>&519975 ac_status=$?19976 echo "$as_me:$LINENO: \$? = $ac_status" >&519977 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then19978 (./conftest; exit; ) >&5 2>/dev/null19979 lt_status=$?19980 case x$lt_status in19981 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;19982 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;19983 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;19984 esac19985 else :19986 # compilation failed19987 lt_cv_dlopen_self_static=no19988 fi19989 fi19990 rm -fr conftest*19991 19992 19993 fi19994 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&519995 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }19996 fi19997 19998 CPPFLAGS="$save_CPPFLAGS"19999 LDFLAGS="$save_LDFLAGS"20000 LIBS="$save_LIBS"20001 ;;20002 esac20003 20004 case $lt_cv_dlopen_self in20005 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;20006 *) enable_dlopen_self=unknown ;;20007 esac20008 20009 case $lt_cv_dlopen_self_static in20010 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;20011 *) enable_dlopen_self_static=unknown ;;20012 esac20013 fi20014 20015 19162 20016 19163 # The else clause should only fire when bootstrapping the … … 20027 19174 # careful not to overquote the AC_SUBSTed values. We take copies of the 20028 19175 # variables and quote the copies for generation of the libtool script. 20029 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \19176 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20030 19177 SED SHELL STRIP \ 20031 19178 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ … … 20069 19216 module_expsym_cmds_GCJ \ 20070 19217 lt_cv_prog_compiler_c_o_GCJ \ 19218 fix_srcfile_path_GCJ \ 20071 19219 exclude_expsyms_GCJ \ 20072 19220 include_expsyms_GCJ; do … … 20145 19293 LTCC=$lt_LTCC 20146 19294 19295 # LTCC compiler flags. 19296 LTCFLAGS=$lt_LTCFLAGS 19297 20147 19298 # A language-specific compiler. 20148 19299 CC=$lt_compiler_GCJ … … 20386 19537 20387 19538 # Fix the shell variable \$srcfile for the compiler. 20388 fix_srcfile_path= "$fix_srcfile_path_GCJ"19539 fix_srcfile_path=$lt_fix_srcfile_path 20389 19540 20390 19541 # Set to yes if exported symbols are required. … … 20443 19594 20444 19595 # Code to be used in simple compile tests 20445 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED } \n'19596 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 20446 19597 20447 19598 # Code to be used in simple link tests … … 20453 19604 LTCC=${LTCC-"$CC"} 20454 19605 19606 # If no C compiler flags were specified, use CFLAGS. 19607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19608 20455 19609 # Allow CC to be a program name with arguments. 20456 19610 compiler=$CC … … 20459 19613 # save warnings/boilerplate of simple test code 20460 19614 ac_outfile=conftest.$ac_objext 20461 printf"$lt_simple_compile_test_code" >conftest.$ac_ext20462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err19615 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19616 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20463 19617 _lt_compiler_boilerplate=`cat conftest.err` 20464 19618 $rm conftest* 20465 19619 20466 19620 ac_outfile=conftest.$ac_objext 20467 printf"$lt_simple_link_test_code" >conftest.$ac_ext20468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err19621 echo "$lt_simple_link_test_code" >conftest.$ac_ext 19622 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 20469 19623 _lt_linker_boilerplate=`cat conftest.err` 20470 19624 $rm conftest* … … 20501 19655 # careful not to overquote the AC_SUBSTed values. We take copies of the 20502 19656 # variables and quote the copies for generation of the libtool script. 20503 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \19657 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 20504 19658 SED SHELL STRIP \ 20505 19659 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ … … 20543 19697 module_expsym_cmds_RC \ 20544 19698 lt_cv_prog_compiler_c_o_RC \ 19699 fix_srcfile_path_RC \ 20545 19700 exclude_expsyms_RC \ 20546 19701 include_expsyms_RC; do … … 20619 19774 LTCC=$lt_LTCC 20620 19775 19776 # LTCC compiler flags. 19777 LTCFLAGS=$lt_LTCFLAGS 19778 20621 19779 # A language-specific compiler. 20622 19780 CC=$lt_compiler_RC … … 20860 20018 20861 20019 # Fix the shell variable \$srcfile for the compiler. 20862 fix_srcfile_path= "$fix_srcfile_path_RC"20020 fix_srcfile_path=$lt_fix_srcfile_path 20863 20021 20864 20022 # Set to yes if exported symbols are required. … … 20978 20136 hardcode_libdir_separator_CXX= 20979 20137 hardcode_minus_L_CXX=no 20138 hardcode_shlibpath_var_CXX=unsupported 20980 20139 hardcode_automatic_CXX=no 20981 20140 module_cmds_CXX= … … 21002 20161 21003 20162 # Code to be used in simple compile tests 21004 lt_simple_compile_test_code="int some_variable = 0; \n"20163 lt_simple_compile_test_code="int some_variable = 0;" 21005 20164 21006 20165 # Code to be used in simple link tests 21007 lt_simple_link_test_code='int main(int, char * ) { return(0); }\n'20166 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 21008 20167 21009 20168 # ltmain only uses $CC for tagged configurations so make sure $CC is set. … … 21012 20171 LTCC=${LTCC-"$CC"} 21013 20172 20173 # If no C compiler flags were specified, use CFLAGS. 20174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 20175 21014 20176 # Allow CC to be a program name with arguments. 21015 20177 compiler=$CC … … 21018 20180 # save warnings/boilerplate of simple test code 21019 20181 ac_outfile=conftest.$ac_objext 21020 printf"$lt_simple_compile_test_code" >conftest.$ac_ext21021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err20182 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 20183 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21022 20184 _lt_compiler_boilerplate=`cat conftest.err` 21023 20185 $rm conftest* 21024 20186 21025 20187 ac_outfile=conftest.$ac_objext 21026 printf"$lt_simple_link_test_code" >conftest.$ac_ext21027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d ' >conftest.err20188 echo "$lt_simple_link_test_code" >conftest.$ac_ext 20189 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21028 20190 _lt_linker_boilerplate=`cat conftest.err` 21029 20191 $rm conftest* … … 21040 20202 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 21041 20203 else 21042 unset lt_cv_prog_gnu_ld20204 $as_unset lt_cv_prog_gnu_ld 21043 20205 fi 21044 20206 if test -n "${lt_cv_path_LDCXX+set}"; then 21045 20207 lt_cv_path_LD=$lt_cv_path_LDCXX 21046 20208 else 21047 unset lt_cv_path_LD20209 $as_unset lt_cv_path_LD 21048 20210 fi 21049 20211 test -z "${LDCXX+set}" || LD=$LDCXX … … 21256 20418 esac 21257 20419 done 20420 ;; 21258 20421 esac 21259 20422 … … 21282 20445 then 21283 20446 # We have reworked collect2 21284 hardcode_direct_CXX=yes20447 : 21285 20448 else 21286 20449 # We have old collect2 … … 21293 20456 hardcode_libdir_separator_CXX= 21294 20457 fi 20458 ;; 21295 20459 esac 21296 20460 shared_flag='-shared' … … 21355 20519 $as_test_x conftest$ac_exeext; then 21356 20520 21357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 21358 }'` 20521 lt_aix_libpath_sed=' 20522 /Import File Strings/,/^$/ { 20523 /^0/ { 20524 s/^0 *\(.*\)$/\1/ 20525 p 20526 } 20527 }' 20528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 21359 20529 # Check for a 64-bit object if we didn't find anything. 21360 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 21361 }'`; fi 20530 if test -z "$aix_libpath"; then 20531 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20532 fi 21362 20533 else 21363 20534 echo "$as_me: failed program was:" >&5 … … 21373 20544 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 21374 20545 21375 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols $shared_flag"20546 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 21376 20547 else 21377 20548 if test "$host_cpu" = ia64; then 21378 20549 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 21379 20550 allow_undefined_flag_CXX="-z nodefs" 21380 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols"20551 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" 21381 20552 else 21382 20553 # Determine the default libpath from the value encoded in an empty executable. … … 21415 20586 $as_test_x conftest$ac_exeext; then 21416 20587 21417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 21418 }'` 20588 lt_aix_libpath_sed=' 20589 /Import File Strings/,/^$/ { 20590 /^0/ { 20591 s/^0 *\(.*\)$/\1/ 20592 p 20593 } 20594 }' 20595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 21419 20596 # Check for a 64-bit object if we didn't find anything. 21420 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 21421 }'`; fi 20597 if test -z "$aix_libpath"; then 20598 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20599 fi 21422 20600 else 21423 20601 echo "$as_me: failed program was:" >&5 … … 21436 20614 no_undefined_flag_CXX=' ${wl}-bernotok' 21437 20615 allow_undefined_flag_CXX=' ${wl}-berok' 21438 # -bexpall does not export symbols beginning with underscore (_)21439 always_export_symbols_CXX=yes21440 20616 # Exported symbols can be pulled into shared objects from archives 21441 whole_archive_flag_spec_CXX=' 20617 whole_archive_flag_spec_CXX='$convenience' 21442 20618 archive_cmds_need_lc_CXX=yes 21443 20619 # This is similar to how AIX traditionally builds its shared libraries. 21444 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $ compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'20620 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 21445 20621 fi 21446 20622 fi 21447 20623 ;; 20624 20625 beos*) 20626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 20627 allow_undefined_flag_CXX=unsupported 20628 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 20629 # support --undefined. This deserves some investigation. FIXME 20630 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 20631 else 20632 ld_shlibs_CXX=no 20633 fi 20634 ;; 20635 21448 20636 chorus*) 21449 20637 case $cc_basename in … … 21455 20643 ;; 21456 20644 21457 21458 20645 cygwin* | mingw* | pw32*) 21459 20646 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, … … 21465 20652 21466 20653 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 21467 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'20654 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' 21468 20655 # If the export-symbols file already is a .def file (1st line 21469 20656 # is EXPORTS), use it as is; otherwise, prepend... … … 21474 20661 cat $export_symbols >> $output_objdir/$soname.def; 21475 20662 fi~ 21476 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'20663 $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' 21477 20664 else 21478 20665 ld_shlibs_CXX=no … … 21529 20716 xlc*) 21530 20717 output_verbose_link_cmd='echo' 21531 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $ verstring'20718 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 21532 20719 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 21533 20720 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 21534 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $ verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'20721 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 21535 20722 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 21536 20723 ;; … … 21566 20753 archive_cmds_need_lc_CXX=no 21567 20754 ;; 21568 freebsd* | kfreebsd*-gnu |dragonfly*)20755 freebsd* | dragonfly*) 21569 20756 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 21570 20757 # conventions … … 21611 20798 hpux10*|hpux11*) 21612 20799 if test $with_gnu_ld = no; then 20800 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 20801 hardcode_libdir_separator_CXX=: 20802 21613 20803 case $host_cpu in 21614 hppa*64*) 21615 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 21616 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 21617 hardcode_libdir_separator_CXX=: 21618 ;; 21619 ia64*) 21620 hardcode_libdir_flag_spec_CXX='-L$libdir' 21621 ;; 20804 hppa*64*|ia64*) ;; 21622 20805 *) 21623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'21624 hardcode_libdir_separator_CXX=:21625 20806 export_dynamic_flag_spec_CXX='${wl}-E' 21626 20807 ;; … … 21628 20809 fi 21629 20810 case $host_cpu in 21630 hppa*64* )20811 hppa*64*|ia64*) 21631 20812 hardcode_direct_CXX=no 21632 20813 hardcode_shlibpath_var_CXX=no 21633 ;;21634 ia64*)21635 hardcode_direct_CXX=no21636 hardcode_shlibpath_var_CXX=no21637 hardcode_minus_L_CXX=yes # Not in the search PATH,21638 # but as the default21639 # location of the library.21640 20814 ;; 21641 20815 *) … … 21654 20828 aCC*) 21655 20829 case $host_cpu in 21656 hppa*64*|ia64*) 21657 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 20830 hppa*64*) 20831 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20832 ;; 20833 ia64*) 20834 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21658 20835 ;; 21659 20836 *) … … 21675 20852 if test $with_gnu_ld = no; then 21676 20853 case $host_cpu in 21677 ia64*|hppa*64*) 21678 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 20854 hppa*64*) 20855 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20856 ;; 20857 ia64*) 20858 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 21679 20859 ;; 21680 20860 *) … … 21689 20869 ;; 21690 20870 esac 20871 ;; 20872 interix[3-9]*) 20873 hardcode_direct_CXX=no 20874 hardcode_shlibpath_var_CXX=no 20875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 20876 export_dynamic_flag_spec_CXX='${wl}-E' 20877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 20878 # Instead, shared libraries are loaded at an image base (0x10000000 by 20879 # default) and relocated if they conflict, which is a slow very memory 20880 # consuming and fragmenting process. To avoid this, we pick a random, 20881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 20882 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 20883 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' 20884 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' 21691 20885 ;; 21692 20886 irix5* | irix6*) … … 21716 20910 hardcode_libdir_separator_CXX=: 21717 20911 ;; 21718 linux* )20912 linux* | k*bsd*-gnu) 21719 20913 case $cc_basename in 21720 20914 KCC*) … … 21795 20989 # dependencies. 21796 20990 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 20991 ;; 20992 *) 20993 case `$CC -V 2>&1 | sed 5q` in 20994 *Sun\ C*) 20995 # Sun C++ 5.9 20996 no_undefined_flag_CXX=' -zdefs' 20997 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 20998 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' 20999 hardcode_libdir_flag_spec_CXX='-R$libdir' 21000 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 21001 21002 # Not sure whether something based on 21003 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 21004 # would be better. 21005 output_verbose_link_cmd='echo' 21006 21007 # Archives containing C++ object files must be created using 21008 # "CC -xar", where "CC" is the Sun C++ compiler. This is 21009 # necessary to make sure instantiated templates are included 21010 # in the archive. 21011 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 21012 ;; 21013 esac 21797 21014 ;; 21798 21015 esac … … 21834 21051 ;; 21835 21052 openbsd*) 21836 hardcode_direct_CXX=yes 21837 hardcode_shlibpath_var_CXX=no 21838 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 21839 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 21840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21841 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 21842 export_dynamic_flag_spec_CXX='${wl}-E' 21843 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 21053 if test -f /usr/libexec/ld.so; then 21054 hardcode_direct_CXX=yes 21055 hardcode_shlibpath_var_CXX=no 21056 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 21057 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 21058 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21059 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 21060 export_dynamic_flag_spec_CXX='${wl}-E' 21061 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 21062 fi 21063 output_verbose_link_cmd='echo' 21064 else 21065 ld_shlibs_CXX=no 21844 21066 fi 21845 output_verbose_link_cmd='echo'21846 21067 ;; 21847 21068 osf3*) … … 21971 21192 # FIXME: insert proper C++ library support 21972 21193 ld_shlibs_CXX=no 21973 ;;21974 sco*)21975 archive_cmds_need_lc_CXX=no21976 case $cc_basename in21977 CC*)21978 # FIXME: insert proper C++ library support21979 ld_shlibs_CXX=no21980 ;;21981 *)21982 # FIXME: insert proper C++ library support21983 ld_shlibs_CXX=no21984 ;;21985 esac21986 21194 ;; 21987 21195 sunos4*) … … 22018 21226 solaris2.[0-5] | solaris2.[0-5].*) ;; 22019 21227 *) 22020 # The C++ compiler is used as linker so we must use $wl 22021 # flag to pass the commands to the underlying system 22022 # linker. We must also pass each convience library through 22023 # to the system linker between allextract/defaultextract. 22024 # The C++ compiler will combine linker options so we 22025 # cannot just pass the convience library names through 22026 # without $wl. 21228 # The compiler driver will combine and reorder linker options, 21229 # but understands `-z linker_flag'. 22027 21230 # Supported since Solaris 2.6 (maybe 2.5.1?) 22028 whole_archive_flag_spec_CXX=' ${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'21231 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 22029 21232 ;; 22030 21233 esac … … 22073 21276 22074 21277 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 21278 case $host_os in 21279 solaris2.[0-5] | solaris2.[0-5].*) ;; 21280 *) 21281 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 21282 ;; 21283 esac 22075 21284 fi 22076 21285 ;; 22077 21286 esac 22078 21287 ;; 22079 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 21288 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 21289 no_undefined_flag_CXX='${wl}-z,text' 22080 21290 archive_cmds_need_lc_CXX=no 21291 hardcode_shlibpath_var_CXX=no 21292 runpath_var='LD_RUN_PATH' 21293 21294 case $cc_basename in 21295 CC*) 21296 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21297 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21298 ;; 21299 *) 21300 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21301 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 21302 ;; 21303 esac 21304 ;; 21305 sysv5* | sco3.2v5* | sco5v6*) 21306 # Note: We can NOT use -z defs as we might desire, because we do not 21307 # link with -lc, and that would cause any symbols used from libc to 21308 # always be unresolved, which means just about no library would 21309 # ever link correctly. If we're not using GNU ld we use -z text 21310 # though, which does catch some bad symbols but isn't as heavy-handed 21311 # as -z defs. 21312 # For security reasons, it is highly recommended that you always 21313 # use absolute paths for naming shared libraries, and exclude the 21314 # DT_RUNPATH tag from executables and libraries. But doing so 21315 # requires that you compile everything twice, which is a pain. 21316 # So that behaviour is only enabled if SCOABSPATH is set to a 21317 # non-empty value in the environment. Most likely only useful for 21318 # creating official distributions of packages. 21319 # This is a hack until libtool officially supports absolute path 21320 # names for shared libraries. 21321 no_undefined_flag_CXX='${wl}-z,text' 21322 allow_undefined_flag_CXX='${wl}-z,nodefs' 21323 archive_cmds_need_lc_CXX=no 21324 hardcode_shlibpath_var_CXX=no 21325 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 21326 hardcode_libdir_separator_CXX=':' 21327 link_all_deplibs_CXX=yes 21328 export_dynamic_flag_spec_CXX='${wl}-Bexport' 21329 runpath_var='LD_RUN_PATH' 21330 21331 case $cc_basename in 21332 CC*) 21333 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 21334 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 21335 ;; 21336 *) 21337 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 21338 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 21339 ;; 21340 esac 22081 21341 ;; 22082 21342 tandem*) … … 22213 21473 # PORTME: override above test on systems where it is broken 22214 21474 case $host_os in 21475 interix[3-9]*) 21476 # Interix 3.5 installs completely hosed .la files for C++, so rather than 21477 # hack all around it, let's just trust "g++" to DTRT. 21478 predep_objects_CXX= 21479 postdep_objects_CXX= 21480 postdeps_CXX= 21481 ;; 21482 21483 linux*) 21484 case `$CC -V 2>&1 | sed 5q` in 21485 *Sun\ C*) 21486 # Sun C++ 5.9 21487 # 21488 # The more standards-conforming stlport4 library is 21489 # incompatible with the Cstd library. Avoid specifying 21490 # it if it's in CXXFLAGS. Ignore libCrun as 21491 # -library=stlport4 depends on it. 21492 case " $CXX $CXXFLAGS " in 21493 *" -library=stlport4 "*) 21494 solaris_use_stlport4=yes 21495 ;; 21496 esac 21497 if test "$solaris_use_stlport4" != yes; then 21498 postdeps_CXX='-library=Cstd -library=Crun' 21499 fi 21500 ;; 21501 esac 21502 ;; 21503 22215 21504 solaris*) 22216 21505 case $cc_basename in 22217 21506 CC*) 21507 # The more standards-conforming stlport4 library is 21508 # incompatible with the Cstd library. Avoid specifying 21509 # it if it's in CXXFLAGS. Ignore libCrun as 21510 # -library=stlport4 depends on it. 21511 case " $CXX $CXXFLAGS " in 21512 *" -library=stlport4 "*) 21513 solaris_use_stlport4=yes 21514 ;; 21515 esac 21516 22218 21517 # Adding this requires a known-good setup of shared libraries for 22219 21518 # Sun compiler versions before 5.6, else PIC objects from an old 22220 21519 # archive will be linked into the output, leading to subtle bugs. 22221 postdeps_CXX='-lCstd -lCrun' 21520 if test "$solaris_use_stlport4" != yes; then 21521 postdeps_CXX='-library=Cstd -library=Crun' 21522 fi 22222 21523 ;; 22223 21524 esac 21525 ;; 22224 21526 esac 22225 21527 … … 22255 21557 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 22256 21558 ;; 22257 beos* | cygwin* |irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)21559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 22258 21560 # PIC is the default for these OSes. 22259 21561 ;; 22260 mingw* | os2* | pw32*)21562 mingw* | cygwin* | os2* | pw32*) 22261 21563 # This hack is so that the source file can tell whether it is being 22262 21564 # built for inclusion in a dll (and should export symbols for example). 21565 # Although the cygwin gcc ignores -fPIC, still need this for old-style 21566 # (--disable-auto-import) libraries 22263 21567 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 22264 21568 ;; … … 22271 21575 # DJGPP does not support shared libraries at all 22272 21576 lt_prog_compiler_pic_CXX= 21577 ;; 21578 interix[3-9]*) 21579 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 21580 # Instead, we relocate shared libraries at runtime. 22273 21581 ;; 22274 21582 sysv4*MP*) … … 22334 21642 esac 22335 21643 ;; 22336 freebsd* | kfreebsd*-gnu |dragonfly*)21644 freebsd* | dragonfly*) 22337 21645 # FreeBSD uses GNU C++ 22338 21646 ;; … … 22341 21649 CC*) 22342 21650 lt_prog_compiler_wl_CXX='-Wl,' 22343 lt_prog_compiler_static_CXX= "${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"21651 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 22344 21652 if test "$host_cpu" != ia64; then 22345 21653 lt_prog_compiler_pic_CXX='+Z' … … 22348 21656 aCC*) 22349 21657 lt_prog_compiler_wl_CXX='-Wl,' 22350 lt_prog_compiler_static_CXX= "${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"21658 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 22351 21659 case $host_cpu in 22352 21660 hppa*64*|ia64*) … … 22362 21670 esac 22363 21671 ;; 21672 interix*) 21673 # This is c89, which is MS Visual C++ (no shared libs) 21674 # Anyone wants to do a port? 21675 ;; 22364 21676 irix5* | irix6* | nonstopux*) 22365 21677 case $cc_basename in … … 22373 21685 esac 22374 21686 ;; 22375 linux* )21687 linux* | k*bsd*-gnu) 22376 21688 case $cc_basename in 22377 21689 KCC*) … … 22400 21712 ;; 22401 21713 *) 21714 case `$CC -V 2>&1 | sed 5q` in 21715 *Sun\ C*) 21716 # Sun C++ 5.9 21717 lt_prog_compiler_pic_CXX='-KPIC' 21718 lt_prog_compiler_static_CXX='-Bstatic' 21719 lt_prog_compiler_wl_CXX='-Qoption ld ' 21720 ;; 21721 esac 22402 21722 ;; 22403 21723 esac … … 22440 21760 ;; 22441 21761 psos*) 22442 ;;22443 sco*)22444 case $cc_basename in22445 CC*)22446 lt_prog_compiler_pic_CXX='-fPIC'22447 ;;22448 *)22449 ;;22450 esac22451 21762 ;; 22452 21763 solaris*) … … 22491 21802 esac 22492 21803 ;; 22493 unixware*) 21804 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 21805 case $cc_basename in 21806 CC*) 21807 lt_prog_compiler_wl_CXX='-Wl,' 21808 lt_prog_compiler_pic_CXX='-KPIC' 21809 lt_prog_compiler_static_CXX='-Bstatic' 21810 ;; 21811 esac 22494 21812 ;; 22495 21813 vxworks*) … … 22516 21834 lt_prog_compiler_pic_works_CXX=no 22517 21835 ac_outfile=conftest.$ac_objext 22518 printf"$lt_simple_compile_test_code" > conftest.$ac_ext21836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22519 21837 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 22520 21838 # Insert the option either (1) after the last *FLAGS variable, or … … 22527 21845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22528 21846 -e 's:$: $lt_compiler_flag:'` 22529 (eval echo "\"\$as_me:2 2529: $lt_compile\"" >&5)21847 (eval echo "\"\$as_me:21847: $lt_compile\"" >&5) 22530 21848 (eval "$lt_compile" 2>conftest.err) 22531 21849 ac_status=$? 22532 21850 cat conftest.err >&5 22533 echo "$as_me:2 2533: \$? = $ac_status" >&521851 echo "$as_me:21851: \$? = $ac_status" >&5 22534 21852 if (exit $ac_status) && test -s "$ac_outfile"; then 22535 21853 # The compiler can only warn and ignore the option if not recognized 22536 21854 # So say no if there are warnings other than the usual output. 22537 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp22538 $SED '/^$/d ' conftest.err >conftest.er222539 if test ! -s conftest.er r|| diff conftest.exp conftest.er2 >/dev/null; then21855 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 21856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 22540 21858 lt_prog_compiler_pic_works_CXX=yes 22541 21859 fi … … 22568 21886 esac 22569 21887 21888 # 21889 # Check to make sure the static flag actually works. 21890 # 21891 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 21892 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 21893 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 21894 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 21895 echo $ECHO_N "(cached) $ECHO_C" >&6 21896 else 21897 lt_prog_compiler_static_works_CXX=no 21898 save_LDFLAGS="$LDFLAGS" 21899 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 21900 echo "$lt_simple_link_test_code" > conftest.$ac_ext 21901 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 21902 # The linker can only warn and ignore the option if not recognized 21903 # So say no if there are warnings 21904 if test -s conftest.err; then 21905 # Append any errors to the config.log. 21906 cat conftest.err 1>&5 21907 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 21908 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 21909 if diff conftest.exp conftest.er2 >/dev/null; then 21910 lt_prog_compiler_static_works_CXX=yes 21911 fi 21912 else 21913 lt_prog_compiler_static_works_CXX=yes 21914 fi 21915 fi 21916 $rm conftest* 21917 LDFLAGS="$save_LDFLAGS" 21918 21919 fi 21920 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 21921 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 21922 21923 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 21924 : 21925 else 21926 lt_prog_compiler_static_CXX= 21927 fi 21928 21929 22570 21930 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 22571 21931 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } … … 22578 21938 cd conftest 22579 21939 mkdir out 22580 printf"$lt_simple_compile_test_code" > conftest.$ac_ext21940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22581 21941 22582 21942 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 22589 21949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22590 21950 -e 's:$: $lt_compiler_flag:'` 22591 (eval echo "\"\$as_me:2 2591: $lt_compile\"" >&5)21951 (eval echo "\"\$as_me:21951: $lt_compile\"" >&5) 22592 21952 (eval "$lt_compile" 2>out/conftest.err) 22593 21953 ac_status=$? 22594 21954 cat out/conftest.err >&5 22595 echo "$as_me:2 2595: \$? = $ac_status" >&521955 echo "$as_me:21955: \$? = $ac_status" >&5 22596 21956 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22597 21957 then 22598 21958 # The compiler can only warn and ignore the option if not recognized 22599 21959 # So say no if there are warnings 22600 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp22601 $SED '/^$/d ' out/conftest.err >out/conftest.er222602 if test ! -s out/conftest.er r|| diff out/conftest.exp out/conftest.er2 >/dev/null; then21960 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 21961 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 21962 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22603 21963 lt_cv_prog_compiler_c_o_CXX=yes 22604 21964 fi … … 22659 22019 ;; 22660 22020 cygwin* | mingw*) 22661 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.*//'\'' | sort | uniq > $export_symbols'22021 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 22662 22022 ;; 22663 22023 *) … … 22669 22029 echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 22670 22030 test "$ld_shlibs_CXX" = no && can_build_shared=no 22671 22672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"22673 if test "$GCC" = yes; then22674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"22675 fi22676 22031 22677 22032 # … … 22695 22050 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 22696 22051 $rm conftest* 22697 printf"$lt_simple_compile_test_code" > conftest.$ac_ext22052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22698 22053 22699 22054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 … … 22707 22062 deplibs= 22708 22063 wl=$lt_prog_compiler_wl_CXX 22064 pic_flag=$lt_prog_compiler_pic_CXX 22709 22065 compiler_flags=-v 22710 22066 linker_flags=-v … … 22752 22108 dynamic_linker="$host_os ld.so" 22753 22109 sys_lib_dlsearch_path_spec="/lib /usr/lib" 22754 if test "$GCC" = yes; then 22755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 22756 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 22757 # if the path contains ";" then we assume it to be the separator 22758 # otherwise default to the standard path separator (i.e. ":") - it is 22759 # assumed that no part of a normal pathname contains ";" but that should 22760 # okay in the real world where ";" in dirpaths is itself problematic. 22761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 22762 else 22763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 22764 fi 22765 else 22766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 22767 fi 22110 22768 22111 need_lib_prefix=unknown 22769 22112 hardcode_into_libs=no … … 22922 22265 shlibpath_var=DYLD_LIBRARY_PATH 22923 22266 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 22924 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 22925 if test "$GCC" = yes; then 22926 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 22927 else 22928 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 22929 fi 22267 22930 22268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 22931 22269 ;; … … 22942 22280 freebsd1*) 22943 22281 dynamic_linker=no 22944 ;;22945 22946 kfreebsd*-gnu)22947 version_type=linux22948 need_lib_prefix=no22949 need_version=no22950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'22951 soname_spec='${libname}${release}${shared_ext}$major'22952 shlibpath_var=LD_LIBRARY_PATH22953 shlibpath_overrides_runpath=no22954 hardcode_into_libs=yes22955 dynamic_linker='GNU ld.so'22956 22282 ;; 22957 22283 … … 22988 22314 hardcode_into_libs=yes 22989 22315 ;; 22990 *) # from 3.2 on 22316 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 22317 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 22991 22318 shlibpath_overrides_runpath=no 22319 hardcode_into_libs=yes 22320 ;; 22321 *) # from 4.6 on, and DragonFly 22322 shlibpath_overrides_runpath=yes 22992 22323 hardcode_into_libs=yes 22993 22324 ;; … … 23051 22382 ;; 23052 22383 22384 interix[3-9]*) 22385 version_type=linux 22386 need_lib_prefix=no 22387 need_version=no 22388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 22389 soname_spec='${libname}${release}${shared_ext}$major' 22390 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 22391 shlibpath_var=LD_LIBRARY_PATH 22392 shlibpath_overrides_runpath=no 22393 hardcode_into_libs=yes 22394 ;; 22395 23053 22396 irix5* | irix6* | nonstopux*) 23054 22397 case $host_os in … … 23094 22437 23095 22438 # This must be Linux ELF. 23096 linux* )22439 linux* | k*bsd*-gnu) 23097 22440 version_type=linux 23098 22441 need_lib_prefix=no … … 23110 22453 # Append ld.so.conf contents to the search path 23111 22454 if test -f /etc/ld.so.conf; then 23112 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s ", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`22455 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 23113 22456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 23114 22457 fi … … 23121 22464 # assume the GNU/Linux dynamic linker is in use. 23122 22465 dynamic_linker='GNU/Linux ld.so' 23123 ;;23124 23125 knetbsd*-gnu)23126 version_type=linux23127 need_lib_prefix=no23128 need_version=no23129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'23130 soname_spec='${libname}${release}${shared_ext}$major'23131 shlibpath_var=LD_LIBRARY_PATH23132 shlibpath_overrides_runpath=no23133 hardcode_into_libs=yes23134 dynamic_linker='GNU ld.so'23135 22466 ;; 23136 22467 … … 23172 22503 openbsd*) 23173 22504 version_type=sunos 22505 sys_lib_dlsearch_path_spec="/usr/lib" 23174 22506 need_lib_prefix=no 23175 22507 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. … … 23215 22547 ;; 23216 22548 23217 sco3.2v5*) 23218 version_type=osf 23219 soname_spec='${libname}${release}${shared_ext}$major' 23220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23221 shlibpath_var=LD_LIBRARY_PATH 22549 rdos*) 22550 dynamic_linker=no 23222 22551 ;; 23223 22552 … … 23247 22576 ;; 23248 22577 23249 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)22578 sysv4 | sysv4.3*) 23250 22579 version_type=linux 23251 22580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' … … 23280 22609 ;; 23281 22610 22611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 22612 version_type=freebsd-elf 22613 need_lib_prefix=no 22614 need_version=no 22615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 22616 soname_spec='${libname}${release}${shared_ext}$major' 22617 shlibpath_var=LD_LIBRARY_PATH 22618 hardcode_into_libs=yes 22619 if test "$with_gnu_ld" = yes; then 22620 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 22621 shlibpath_overrides_runpath=no 22622 else 22623 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 22624 shlibpath_overrides_runpath=yes 22625 case $host_os in 22626 sco3.2v5*) 22627 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 22628 ;; 22629 esac 22630 fi 22631 sys_lib_dlsearch_path_spec='/usr/lib' 22632 ;; 22633 23282 22634 uts4*) 23283 22635 version_type=linux … … 23294 22646 echo "${ECHO_T}$dynamic_linker" >&6; } 23295 22647 test "$dynamic_linker" = no && can_build_shared=no 22648 22649 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 22650 if test "$GCC" = yes; then 22651 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 22652 fi 23296 22653 23297 22654 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 … … 23332 22689 fi 23333 22690 23334 striplib=23335 old_striplib=23336 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&523337 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }23338 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then23339 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"23340 test -z "$striplib" && striplib="$STRIP --strip-unneeded"23341 { echo "$as_me:$LINENO: result: yes" >&523342 echo "${ECHO_T}yes" >&6; }23343 else23344 # FIXME - insert some real tests, host_os isn't really good enough23345 case $host_os in23346 darwin*)23347 if test -n "$STRIP" ; then23348 striplib="$STRIP -x"23349 { echo "$as_me:$LINENO: result: yes" >&523350 echo "${ECHO_T}yes" >&6; }23351 else23352 { echo "$as_me:$LINENO: result: no" >&523353 echo "${ECHO_T}no" >&6; }23354 fi23355 ;;23356 *)23357 { echo "$as_me:$LINENO: result: no" >&523358 echo "${ECHO_T}no" >&6; }23359 ;;23360 esac23361 fi23362 23363 if test "x$enable_dlopen" != xyes; then23364 enable_dlopen=unknown23365 enable_dlopen_self=unknown23366 enable_dlopen_self_static=unknown23367 else23368 lt_cv_dlopen=no23369 lt_cv_dlopen_libs=23370 23371 case $host_os in23372 beos*)23373 lt_cv_dlopen="load_add_on"23374 lt_cv_dlopen_libs=23375 lt_cv_dlopen_self=yes23376 ;;23377 23378 mingw* | pw32*)23379 lt_cv_dlopen="LoadLibrary"23380 lt_cv_dlopen_libs=23381 ;;23382 23383 cygwin*)23384 lt_cv_dlopen="dlopen"23385 lt_cv_dlopen_libs=23386 ;;23387 23388 darwin*)23389 # if libdl is installed we need to link against it23390 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&523391 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }23392 if test "${ac_cv_lib_dl_dlopen+set}" = set; then23393 echo $ECHO_N "(cached) $ECHO_C" >&623394 else23395 ac_check_lib_save_LIBS=$LIBS23396 LIBS="-ldl $LIBS"23397 cat >conftest.$ac_ext <<_ACEOF23398 /* confdefs.h. */23399 _ACEOF23400 cat confdefs.h >>conftest.$ac_ext23401 cat >>conftest.$ac_ext <<_ACEOF23402 /* end confdefs.h. */23403 23404 /* Override any GCC internal prototype to avoid an error.23405 Use char because int might match the return type of a GCC23406 builtin and then its argument prototype would still apply. */23407 #ifdef __cplusplus23408 extern "C"23409 #endif23410 char dlopen ();23411 int23412 main ()23413 {23414 return dlopen ();23415 ;23416 return 0;23417 }23418 _ACEOF23419 rm -f conftest.$ac_objext conftest$ac_exeext23420 if { (ac_try="$ac_link"23421 case "(($ac_try" in23422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;23423 *) ac_try_echo=$ac_try;;23424 esac23425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&523426 (eval "$ac_link") 2>conftest.er123427 ac_status=$?23428 grep -v '^ *+' conftest.er1 >conftest.err23429 rm -f conftest.er123430 cat conftest.err >&523431 echo "$as_me:$LINENO: \$? = $ac_status" >&523432 (exit $ac_status); } && {23433 test -z "$ac_cxx_werror_flag" ||23434 test ! -s conftest.err23435 } && test -s conftest$ac_exeext &&23436 $as_test_x conftest$ac_exeext; then23437 ac_cv_lib_dl_dlopen=yes23438 else23439 echo "$as_me: failed program was:" >&523440 sed 's/^/| /' conftest.$ac_ext >&523441 23442 ac_cv_lib_dl_dlopen=no23443 fi23444 23445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \23446 conftest$ac_exeext conftest.$ac_ext23447 LIBS=$ac_check_lib_save_LIBS23448 fi23449 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&523450 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }23451 if test $ac_cv_lib_dl_dlopen = yes; then23452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"23453 else23454 23455 lt_cv_dlopen="dyld"23456 lt_cv_dlopen_libs=23457 lt_cv_dlopen_self=yes23458 23459 fi23460 23461 ;;23462 23463 *)23464 { echo "$as_me:$LINENO: checking for shl_load" >&523465 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }23466 if test "${ac_cv_func_shl_load+set}" = set; then23467 echo $ECHO_N "(cached) $ECHO_C" >&623468 else23469 cat >conftest.$ac_ext <<_ACEOF23470 /* confdefs.h. */23471 _ACEOF23472 cat confdefs.h >>conftest.$ac_ext23473 cat >>conftest.$ac_ext <<_ACEOF23474 /* end confdefs.h. */23475 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.23476 For example, HP-UX 11i <limits.h> declares gettimeofday. */23477 #define shl_load innocuous_shl_load23478 23479 /* System header to define __stub macros and hopefully few prototypes,23480 which can conflict with char shl_load (); below.23481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since23482 <limits.h> exists even on freestanding compilers. */23483 23484 #ifdef __STDC__23485 # include <limits.h>23486 #else23487 # include <assert.h>23488 #endif23489 23490 #undef shl_load23491 23492 /* Override any GCC internal prototype to avoid an error.23493 Use char because int might match the return type of a GCC23494 builtin and then its argument prototype would still apply. */23495 #ifdef __cplusplus23496 extern "C"23497 #endif23498 char shl_load ();23499 /* The GNU C library defines this for functions which it implements23500 to always fail with ENOSYS. Some functions are actually named23501 something starting with __ and the normal name is an alias. */23502 #if defined __stub_shl_load || defined __stub___shl_load23503 choke me23504 #endif23505 23506 int23507 main ()23508 {23509 return shl_load ();23510 ;23511 return 0;23512 }23513 _ACEOF23514 rm -f conftest.$ac_objext conftest$ac_exeext23515 if { (ac_try="$ac_link"23516 case "(($ac_try" in23517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;23518 *) ac_try_echo=$ac_try;;23519 esac23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&523521 (eval "$ac_link") 2>conftest.er123522 ac_status=$?23523 grep -v '^ *+' conftest.er1 >conftest.err23524 rm -f conftest.er123525 cat conftest.err >&523526 echo "$as_me:$LINENO: \$? = $ac_status" >&523527 (exit $ac_status); } && {23528 test -z "$ac_cxx_werror_flag" ||23529 test ! -s conftest.err23530 } && test -s conftest$ac_exeext &&23531 $as_test_x conftest$ac_exeext; then23532 ac_cv_func_shl_load=yes23533 else23534 echo "$as_me: failed program was:" >&523535 sed 's/^/| /' conftest.$ac_ext >&523536 23537 ac_cv_func_shl_load=no23538 fi23539 23540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \23541 conftest$ac_exeext conftest.$ac_ext23542 fi23543 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&523544 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }23545 if test $ac_cv_func_shl_load = yes; then23546 lt_cv_dlopen="shl_load"23547 else23548 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&523549 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }23550 if test "${ac_cv_lib_dld_shl_load+set}" = set; then23551 echo $ECHO_N "(cached) $ECHO_C" >&623552 else23553 ac_check_lib_save_LIBS=$LIBS23554 LIBS="-ldld $LIBS"23555 cat >conftest.$ac_ext <<_ACEOF23556 /* confdefs.h. */23557 _ACEOF23558 cat confdefs.h >>conftest.$ac_ext23559 cat >>conftest.$ac_ext <<_ACEOF23560 /* end confdefs.h. */23561 23562 /* Override any GCC internal prototype to avoid an error.23563 Use char because int might match the return type of a GCC23564 builtin and then its argument prototype would still apply. */23565 #ifdef __cplusplus23566 extern "C"23567 #endif23568 char shl_load ();23569 int23570 main ()23571 {23572 return shl_load ();23573 ;23574 return 0;23575 }23576 _ACEOF23577 rm -f conftest.$ac_objext conftest$ac_exeext23578 if { (ac_try="$ac_link"23579 case "(($ac_try" in23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;23581 *) ac_try_echo=$ac_try;;23582 esac23583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&523584 (eval "$ac_link") 2>conftest.er123585 ac_status=$?23586 grep -v '^ *+' conftest.er1 >conftest.err23587 rm -f conftest.er123588 cat conftest.err >&523589 echo "$as_me:$LINENO: \$? = $ac_status" >&523590 (exit $ac_status); } && {23591 test -z "$ac_cxx_werror_flag" ||23592 test ! -s conftest.err23593 } && test -s conftest$ac_exeext &&23594 $as_test_x conftest$ac_exeext; then23595 ac_cv_lib_dld_shl_load=yes23596 else23597 echo "$as_me: failed program was:" >&523598 sed 's/^/| /' conftest.$ac_ext >&523599 23600 ac_cv_lib_dld_shl_load=no23601 fi23602 23603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \23604 conftest$ac_exeext conftest.$ac_ext23605 LIBS=$ac_check_lib_save_LIBS23606 fi23607 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&523608 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }23609 if test $ac_cv_lib_dld_shl_load = yes; then23610 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"23611 else23612 { echo "$as_me:$LINENO: checking for dlopen" >&523613 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }23614 if test "${ac_cv_func_dlopen+set}" = set; then23615 echo $ECHO_N "(cached) $ECHO_C" >&623616 else23617 cat >conftest.$ac_ext <<_ACEOF23618 /* confdefs.h. */23619 _ACEOF23620 cat confdefs.h >>conftest.$ac_ext23621 cat >>conftest.$ac_ext <<_ACEOF23622 /* end confdefs.h. */23623 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.23624 For example, HP-UX 11i <limits.h> declares gettimeofday. */23625 #define dlopen innocuous_dlopen23626 23627 /* System header to define __stub macros and hopefully few prototypes,23628 which can conflict with char dlopen (); below.23629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since23630 <limits.h> exists even on freestanding compilers. */23631 23632 #ifdef __STDC__23633 # include <limits.h>23634 #else23635 # include <assert.h>23636 #endif23637 23638 #undef dlopen23639 23640 /* Override any GCC internal prototype to avoid an error.23641 Use char because int might match the return type of a GCC23642 builtin and then its argument prototype would still apply. */23643 #ifdef __cplusplus23644 extern "C"23645 #endif23646 char dlopen ();23647 /* The GNU C library defines this for functions which it implements23648 to always fail with ENOSYS. Some functions are actually named23649 something starting with __ and the normal name is an alias. */23650 #if defined __stub_dlopen || defined __stub___dlopen23651 choke me23652 #endif23653 23654 int23655 main ()23656 {23657 return dlopen ();23658 ;23659 return 0;23660 }23661 _ACEOF23662 rm -f conftest.$ac_objext conftest$ac_exeext23663 if { (ac_try="$ac_link"23664 case "(($ac_try" in23665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;23666 *) ac_try_echo=$ac_try;;23667 esac23668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&523669 (eval "$ac_link") 2>conftest.er123670 ac_status=$?23671 grep -v '^ *+' conftest.er1 >conftest.err23672 rm -f conftest.er123673 cat conftest.err >&523674 echo "$as_me:$LINENO: \$? = $ac_status" >&523675 (exit $ac_status); } && {23676 test -z "$ac_cxx_werror_flag" ||23677 test ! -s conftest.err23678 } && test -s conftest$ac_exeext &&23679 $as_test_x conftest$ac_exeext; then23680 ac_cv_func_dlopen=yes23681 else23682 echo "$as_me: failed program was:" >&523683 sed 's/^/| /' conftest.$ac_ext >&523684 23685 ac_cv_func_dlopen=no23686 fi23687 23688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \23689 conftest$ac_exeext conftest.$ac_ext23690 fi23691 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&523692 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }23693 if test $ac_cv_func_dlopen = yes; then23694 lt_cv_dlopen="dlopen"23695 else23696 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&523697 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }23698 if test "${ac_cv_lib_dl_dlopen+set}" = set; then23699 echo $ECHO_N "(cached) $ECHO_C" >&623700 else23701 ac_check_lib_save_LIBS=$LIBS23702 LIBS="-ldl $LIBS"23703 cat >conftest.$ac_ext <<_ACEOF23704 /* confdefs.h. */23705 _ACEOF23706 cat confdefs.h >>conftest.$ac_ext23707 cat >>conftest.$ac_ext <<_ACEOF23708 /* end confdefs.h. */23709 23710 /* Override any GCC internal prototype to avoid an error.23711 Use char because int might match the return type of a GCC23712 builtin and then its argument prototype would still apply. */23713 #ifdef __cplusplus23714 extern "C"23715 #endif23716 char dlopen ();23717 int23718 main ()23719 {23720 return dlopen ();23721 ;23722 return 0;23723 }23724 _ACEOF23725 rm -f conftest.$ac_objext conftest$ac_exeext23726 if { (ac_try="$ac_link"23727 case "(($ac_try" in23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;23729 *) ac_try_echo=$ac_try;;23730 esac23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&523732 (eval "$ac_link") 2>conftest.er123733 ac_status=$?23734 grep -v '^ *+' conftest.er1 >conftest.err23735 rm -f conftest.er123736 cat conftest.err >&523737 echo "$as_me:$LINENO: \$? = $ac_status" >&523738 (exit $ac_status); } && {23739 test -z "$ac_cxx_werror_flag" ||23740 test ! -s conftest.err23741 } && test -s conftest$ac_exeext &&23742 $as_test_x conftest$ac_exeext; then23743 ac_cv_lib_dl_dlopen=yes23744 else23745 echo "$as_me: failed program was:" >&523746 sed 's/^/| /' conftest.$ac_ext >&523747 23748 ac_cv_lib_dl_dlopen=no23749 fi23750 23751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \23752 conftest$ac_exeext conftest.$ac_ext23753 LIBS=$ac_check_lib_save_LIBS23754 fi23755 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&523756 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }23757 if test $ac_cv_lib_dl_dlopen = yes; then23758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"23759 else23760 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&523761 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }23762 if test "${ac_cv_lib_svld_dlopen+set}" = set; then23763 echo $ECHO_N "(cached) $ECHO_C" >&623764 else23765 ac_check_lib_save_LIBS=$LIBS23766 LIBS="-lsvld $LIBS"23767 cat >conftest.$ac_ext <<_ACEOF23768 /* confdefs.h. */23769 _ACEOF23770 cat confdefs.h >>conftest.$ac_ext23771 cat >>conftest.$ac_ext <<_ACEOF23772 /* end confdefs.h. */23773 23774 /* Override any GCC internal prototype to avoid an error.23775 Use char because int might match the return type of a GCC23776 builtin and then its argument prototype would still apply. */23777 #ifdef __cplusplus23778 extern "C"23779 #endif23780 char dlopen ();23781 int23782 main ()23783 {23784 return dlopen ();23785 ;23786 return 0;23787 }23788 _ACEOF23789 rm -f conftest.$ac_objext conftest$ac_exeext23790 if { (ac_try="$ac_link"23791 case "(($ac_try" in23792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;23793 *) ac_try_echo=$ac_try;;23794 esac23795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&523796 (eval "$ac_link") 2>conftest.er123797 ac_status=$?23798 grep -v '^ *+' conftest.er1 >conftest.err23799 rm -f conftest.er123800 cat conftest.err >&523801 echo "$as_me:$LINENO: \$? = $ac_status" >&523802 (exit $ac_status); } && {23803 test -z "$ac_cxx_werror_flag" ||23804 test ! -s conftest.err23805 } && test -s conftest$ac_exeext &&23806 $as_test_x conftest$ac_exeext; then23807 ac_cv_lib_svld_dlopen=yes23808 else23809 echo "$as_me: failed program was:" >&523810 sed 's/^/| /' conftest.$ac_ext >&523811 23812 ac_cv_lib_svld_dlopen=no23813 fi23814 23815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \23816 conftest$ac_exeext conftest.$ac_ext23817 LIBS=$ac_check_lib_save_LIBS23818 fi23819 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&523820 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }23821 if test $ac_cv_lib_svld_dlopen = yes; then23822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"23823 else23824 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&523825 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }23826 if test "${ac_cv_lib_dld_dld_link+set}" = set; then23827 echo $ECHO_N "(cached) $ECHO_C" >&623828 else23829 ac_check_lib_save_LIBS=$LIBS23830 LIBS="-ldld $LIBS"23831 cat >conftest.$ac_ext <<_ACEOF23832 /* confdefs.h. */23833 _ACEOF23834 cat confdefs.h >>conftest.$ac_ext23835 cat >>conftest.$ac_ext <<_ACEOF23836 /* end confdefs.h. */23837 23838 /* Override any GCC internal prototype to avoid an error.23839 Use char because int might match the return type of a GCC23840 builtin and then its argument prototype would still apply. */23841 #ifdef __cplusplus23842 extern "C"23843 #endif23844 char dld_link ();23845 int23846 main ()23847 {23848 return dld_link ();23849 ;23850 return 0;23851 }23852 _ACEOF23853 rm -f conftest.$ac_objext conftest$ac_exeext23854 if { (ac_try="$ac_link"23855 case "(($ac_try" in23856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;23857 *) ac_try_echo=$ac_try;;23858 esac23859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&523860 (eval "$ac_link") 2>conftest.er123861 ac_status=$?23862 grep -v '^ *+' conftest.er1 >conftest.err23863 rm -f conftest.er123864 cat conftest.err >&523865 echo "$as_me:$LINENO: \$? = $ac_status" >&523866 (exit $ac_status); } && {23867 test -z "$ac_cxx_werror_flag" ||23868 test ! -s conftest.err23869 } && test -s conftest$ac_exeext &&23870 $as_test_x conftest$ac_exeext; then23871 ac_cv_lib_dld_dld_link=yes23872 else23873 echo "$as_me: failed program was:" >&523874 sed 's/^/| /' conftest.$ac_ext >&523875 23876 ac_cv_lib_dld_dld_link=no23877 fi23878 23879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \23880 conftest$ac_exeext conftest.$ac_ext23881 LIBS=$ac_check_lib_save_LIBS23882 fi23883 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&523884 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }23885 if test $ac_cv_lib_dld_dld_link = yes; then23886 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"23887 fi23888 23889 23890 fi23891 23892 23893 fi23894 23895 23896 fi23897 23898 23899 fi23900 23901 23902 fi23903 23904 ;;23905 esac23906 23907 if test "x$lt_cv_dlopen" != xno; then23908 enable_dlopen=yes23909 else23910 enable_dlopen=no23911 fi23912 23913 case $lt_cv_dlopen in23914 dlopen)23915 save_CPPFLAGS="$CPPFLAGS"23916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"23917 23918 save_LDFLAGS="$LDFLAGS"23919 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"23920 23921 save_LIBS="$LIBS"23922 LIBS="$lt_cv_dlopen_libs $LIBS"23923 23924 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&523925 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }23926 if test "${lt_cv_dlopen_self+set}" = set; then23927 echo $ECHO_N "(cached) $ECHO_C" >&623928 else23929 if test "$cross_compiling" = yes; then :23930 lt_cv_dlopen_self=cross23931 else23932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=223933 lt_status=$lt_dlunknown23934 cat > conftest.$ac_ext <<EOF23935 #line 23935 "configure"23936 #include "confdefs.h"23937 23938 #if HAVE_DLFCN_H23939 #include <dlfcn.h>23940 #endif23941 23942 #include <stdio.h>23943 23944 #ifdef RTLD_GLOBAL23945 # define LT_DLGLOBAL RTLD_GLOBAL23946 #else23947 # ifdef DL_GLOBAL23948 # define LT_DLGLOBAL DL_GLOBAL23949 # else23950 # define LT_DLGLOBAL 023951 # endif23952 #endif23953 23954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we23955 find out it does not work in some platform. */23956 #ifndef LT_DLLAZY_OR_NOW23957 # ifdef RTLD_LAZY23958 # define LT_DLLAZY_OR_NOW RTLD_LAZY23959 # else23960 # ifdef DL_LAZY23961 # define LT_DLLAZY_OR_NOW DL_LAZY23962 # else23963 # ifdef RTLD_NOW23964 # define LT_DLLAZY_OR_NOW RTLD_NOW23965 # else23966 # ifdef DL_NOW23967 # define LT_DLLAZY_OR_NOW DL_NOW23968 # else23969 # define LT_DLLAZY_OR_NOW 023970 # endif23971 # endif23972 # endif23973 # endif23974 #endif23975 23976 #ifdef __cplusplus23977 extern "C" void exit (int);23978 #endif23979 23980 void fnord() { int i=42;}23981 int main ()23982 {23983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);23984 int status = $lt_dlunknown;23985 23986 if (self)23987 {23988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;23989 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;23990 /* dlclose (self); */23991 }23992 23993 exit (status);23994 }23995 EOF23996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&523997 (eval $ac_link) 2>&523998 ac_status=$?23999 echo "$as_me:$LINENO: \$? = $ac_status" >&524000 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then24001 (./conftest; exit; ) >&5 2>/dev/null24002 lt_status=$?24003 case x$lt_status in24004 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;24005 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;24006 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;24007 esac24008 else :24009 # compilation failed24010 lt_cv_dlopen_self=no24011 fi24012 fi24013 rm -fr conftest*24014 24015 24016 fi24017 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&524018 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }24019 24020 if test "x$lt_cv_dlopen_self" = xyes; then24021 LDFLAGS="$LDFLAGS $link_static_flag"24022 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&524023 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }24024 if test "${lt_cv_dlopen_self_static+set}" = set; then24025 echo $ECHO_N "(cached) $ECHO_C" >&624026 else24027 if test "$cross_compiling" = yes; then :24028 lt_cv_dlopen_self_static=cross24029 else24030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=224031 lt_status=$lt_dlunknown24032 cat > conftest.$ac_ext <<EOF24033 #line 24033 "configure"24034 #include "confdefs.h"24035 24036 #if HAVE_DLFCN_H24037 #include <dlfcn.h>24038 #endif24039 24040 #include <stdio.h>24041 24042 #ifdef RTLD_GLOBAL24043 # define LT_DLGLOBAL RTLD_GLOBAL24044 #else24045 # ifdef DL_GLOBAL24046 # define LT_DLGLOBAL DL_GLOBAL24047 # else24048 # define LT_DLGLOBAL 024049 # endif24050 #endif24051 24052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we24053 find out it does not work in some platform. */24054 #ifndef LT_DLLAZY_OR_NOW24055 # ifdef RTLD_LAZY24056 # define LT_DLLAZY_OR_NOW RTLD_LAZY24057 # else24058 # ifdef DL_LAZY24059 # define LT_DLLAZY_OR_NOW DL_LAZY24060 # else24061 # ifdef RTLD_NOW24062 # define LT_DLLAZY_OR_NOW RTLD_NOW24063 # else24064 # ifdef DL_NOW24065 # define LT_DLLAZY_OR_NOW DL_NOW24066 # else24067 # define LT_DLLAZY_OR_NOW 024068 # endif24069 # endif24070 # endif24071 # endif24072 #endif24073 24074 #ifdef __cplusplus24075 extern "C" void exit (int);24076 #endif24077 24078 void fnord() { int i=42;}24079 int main ()24080 {24081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);24082 int status = $lt_dlunknown;24083 24084 if (self)24085 {24086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;24087 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;24088 /* dlclose (self); */24089 }24090 24091 exit (status);24092 }24093 EOF24094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&524095 (eval $ac_link) 2>&524096 ac_status=$?24097 echo "$as_me:$LINENO: \$? = $ac_status" >&524098 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then24099 (./conftest; exit; ) >&5 2>/dev/null24100 lt_status=$?24101 case x$lt_status in24102 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;24103 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;24104 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;24105 esac24106 else :24107 # compilation failed24108 lt_cv_dlopen_self_static=no24109 fi24110 fi24111 rm -fr conftest*24112 24113 24114 fi24115 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&524116 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }24117 fi24118 24119 CPPFLAGS="$save_CPPFLAGS"24120 LDFLAGS="$save_LDFLAGS"24121 LIBS="$save_LIBS"24122 ;;24123 esac24124 24125 case $lt_cv_dlopen_self in24126 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;24127 *) enable_dlopen_self=unknown ;;24128 esac24129 24130 case $lt_cv_dlopen_self_static in24131 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;24132 *) enable_dlopen_self_static=unknown ;;24133 esac24134 fi24135 24136 22691 24137 22692 # The else clause should only fire when bootstrapping the … … 24148 22703 # careful not to overquote the AC_SUBSTed values. We take copies of the 24149 22704 # variables and quote the copies for generation of the libtool script. 24150 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \22705 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 24151 22706 SED SHELL STRIP \ 24152 22707 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ … … 24190 22745 module_expsym_cmds_CXX \ 24191 22746 lt_cv_prog_compiler_c_o_CXX \ 22747 fix_srcfile_path_CXX \ 24192 22748 exclude_expsyms_CXX \ 24193 22749 include_expsyms_CXX; do … … 24266 22822 LTCC=$lt_LTCC 24267 22823 22824 # LTCC compiler flags. 22825 LTCFLAGS=$lt_LTCFLAGS 22826 24268 22827 # A language-specific compiler. 24269 22828 CC=$lt_compiler_CXX … … 24507 23066 24508 23067 # Fix the shell variable \$srcfile for the compiler. 24509 fix_srcfile_path= "$fix_srcfile_path_CXX"23068 fix_srcfile_path=$lt_fix_srcfile_path 24510 23069 24511 23070 # Set to yes if exported symbols are required. … … 24579 23138 ogre_prog_compiler_supports_visibility=no 24580 23139 ac_outfile=conftest.$ac_objext 24581 printf"$lt_simple_compile_test_code" > conftest.$ac_ext23140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 24582 23141 lt_compiler_flag="-fvisibility=hidden -fvisibility-inlines-hidden" 24583 23142 # Insert the option either (1) after the last *FLAGS variable, or … … 24590 23149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 24591 23150 -e 's:$: $lt_compiler_flag:'` 24592 (eval echo "\"\$as_me:2 4592: $lt_compile\"" >&5)23151 (eval echo "\"\$as_me:23151: $lt_compile\"" >&5) 24593 23152 (eval "$lt_compile" 2>conftest.err) 24594 23153 ac_status=$? 24595 23154 cat conftest.err >&5 24596 echo "$as_me:2 4596: \$? = $ac_status" >&523155 echo "$as_me:23155: \$? = $ac_status" >&5 24597 23156 if (exit $ac_status) && test -s "$ac_outfile"; then 24598 23157 # The compiler can only warn and ignore the option if not recognized 24599 23158 # So say no if there are warnings other than the usual output. 24600 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp24601 $SED '/^$/d ' conftest.err >conftest.er224602 if test ! -s conftest.er r|| diff conftest.exp conftest.er2 >/dev/null; then23159 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 23160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 23161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 24603 23162 ogre_prog_compiler_supports_visibility=yes 24604 23163 fi … … 25490 24049 25491 24050 25492 25493 25494 if test x$build_unit_tests = xtrue; then 24051 if test x$build_unit_tests = xtrue; then 25495 24052 BUILD_UNIT_TESTS_TRUE= 25496 24053 BUILD_UNIT_TESTS_FALSE='#' … … 25713 24270 See the pkg-config man page for more details. 25714 24271 25715 To get pkg-config, see <http:// www.freedesktop.org/software/pkgconfig>.24272 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 25716 24273 See \`config.log' for more details." >&5 25717 24274 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it … … 25723 24280 See the pkg-config man page for more details. 25724 24281 25725 To get pkg-config, see <http:// www.freedesktop.org/software/pkgconfig>.24282 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 25726 24283 See \`config.log' for more details." >&2;} 25727 24284 { (exit 1); exit 1; }; } … … 26793 25350 echo "$GTK_PKG_ERRORS" >&5 26794 25351 25352 { echo "$as_me:$LINENO: result: no" >&5 25353 echo "${ECHO_T}no" >&6; } 26795 25354 26796 25355 if test "x$with_gui" == "xgtk"; then … … 27040 25599 27041 25600 27042 27043 27044 if test x$build_freeimage = xyes; then 25601 if test x$build_freeimage = xyes; then 27045 25602 USE_FREEIMAGE_TRUE= 27046 25603 USE_FREEIMAGE_FALSE='#' … … 27165 25722 27166 25723 27167 27168 27169 if test x$build_il = xyes && test x$build_freeimage = xno; then 25724 if test x$build_il = xyes && test x$build_freeimage = xno; then 27170 25725 USE_DEVIL_TRUE= 27171 25726 USE_DEVIL_FALSE='#' … … 27465 26020 fi 27466 26021 27467 27468 27469 if test x$build_cg = xyes; then 26022 if test x$build_cg = xyes; then 27470 26023 BUILD_CGPLUGIN_TRUE= 27471 26024 BUILD_CGPLUGIN_FALSE='#' … … 27545 26098 echo "$OPENEXR_PKG_ERRORS" >&5 27546 26099 27547 build_exr=no 26100 { echo "$as_me:$LINENO: result: no" >&5 26101 echo "${ECHO_T}no" >&6; } 26102 build_exr=no 27548 26103 elif test $pkg_failed = untried; then 27549 26104 build_exr=no … … 27566 26121 fi 27567 26122 27568 27569 27570 if test x$build_exr = xyes; then 26123 if test x$build_exr = xyes; then 27571 26124 BUILD_EXRPLUGIN_TRUE= 27572 26125 BUILD_EXRPLUGIN_FALSE='#' … … 27586 26139 27587 26140 27588 27589 27590 if test x$build_dx9 = xyes; then 26141 if test x$build_dx9 = xyes; then 27591 26142 BUILD_DX9RENDERSYSTEM_TRUE= 27592 26143 BUILD_DX9RENDERSYSTEM_FALSE='#' … … 27611 26162 { echo "$as_me:$LINENO: result: $build_sse" >&5 27612 26163 echo "${ECHO_T}$build_sse" >&6; } 27613 27614 27615 if test x$build_sse = xyes; then 26164 if test x$build_sse = xyes; then 27616 26165 OGRE_BUILD_SSE_TRUE= 27617 26166 OGRE_BUILD_SSE_FALSE='#' … … 27623 26172 27624 26173 27625 27626 27627 if test "x$OGRE_PLATFORM" = "x$OGRE_GUI"; then 26174 if test "x$OGRE_PLATFORM" = "x$OGRE_GUI"; then 27628 26175 SAME_PLATFORM_AND_GUI_TRUE= 27629 26176 SAME_PLATFORM_AND_GUI_FALSE='#' … … 27704 26251 echo "$OIS_PKG_ERRORS" >&5 27705 26252 27706 ois_found=no 26253 { echo "$as_me:$LINENO: result: no" >&5 26254 echo "${ECHO_T}no" >&6; } 26255 ois_found=no 27707 26256 elif test $pkg_failed = untried; then 27708 26257 ois_found=no … … 27745 26294 fi 27746 26295 27747 27748 27749 if test x$build_ogre_demos = xyes; then 26296 if test x$build_ogre_demos = xyes; then 27750 26297 OGRE_BUILDING_DEMOS_TRUE= 27751 26298 OGRE_BUILDING_DEMOS_FALSE='#' … … 27903 26450 echo "$CEGUI_PKG_ERRORS" >&5 27904 26451 27905 build_cegui_sample=false 26452 { echo "$as_me:$LINENO: result: no" >&5 26453 echo "${ECHO_T}no" >&6; } 26454 build_cegui_sample=false 27906 26455 elif test $pkg_failed = untried; then 27907 26456 build_cegui_sample=false … … 27924 26473 echo "${ECHO_T}CEGUI not available, Gui and FacialAnimation samples will not be built" >&6; } 27925 26474 fi 27926 27927 27928 if test x$build_cegui_sample = xtrue; then 26475 if test x$build_cegui_sample = xtrue; then 27929 26476 HAVE_CEGUI_TRUE= 27930 26477 HAVE_CEGUI_FALSE='#' … … 28519 27066 srcdir='$srcdir' 28520 27067 INSTALL='$INSTALL' 27068 MKDIR_P='$MKDIR_P' 28521 27069 _ACEOF 28522 27070 … … 28878 27426 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 28879 27427 INSTALL_DATA!$INSTALL_DATA$ac_delim 27428 am__isrc!$am__isrc$ac_delim 28880 27429 CYGPATH_W!$CYGPATH_W$ac_delim 28881 27430 PACKAGE!$PACKAGE$ac_delim … … 28922 27471 LEX!$LEX$ac_delim 28923 27472 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim 28924 LEXLIB!$LEXLIB$ac_delim28925 27473 _ACEOF 28926 27474 … … 28964 27512 for ac_last_try in false false false false false :; do 28965 27513 cat >conf$$subs.sed <<_ACEOF 27514 LEXLIB!$LEXLIB$ac_delim 28966 27515 SHARED_FLAGS!$SHARED_FLAGS$ac_delim 28967 27516 PLUGIN_FLAGS!$PLUGIN_FLAGS$ac_delim … … 28974 27523 OGRE_OSX_TRUE!$OGRE_OSX_TRUE$ac_delim 28975 27524 OGRE_OSX_FALSE!$OGRE_OSX_FALSE$ac_delim 27525 SED!$SED$ac_delim 28976 27526 GREP!$GREP$ac_delim 28977 27527 EGREP!$EGREP$ac_delim … … 29042 27592 _ACEOF 29043 27593 29044 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7 6; then27594 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then 29045 27595 break 29046 27596 elif $ac_last_try; then … … 29269 27819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 29270 27820 esac 27821 ac_MKDIR_P=$MKDIR_P 27822 case $MKDIR_P in 27823 [\\/$]* | ?:[\\/]* ) ;; 27824 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 27825 esac 29271 27826 _ACEOF 29272 27827 … … 29322 27877 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 29323 27878 s&@INSTALL@&$ac_INSTALL&;t t 27879 s&@MKDIR_P@&$ac_MKDIR_P&;t t 29324 27880 $ac_datarootdir_hack 29325 27881 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out … … 29486 28042 # Grep'ing the first line is not enough: some people post-process 29487 28043 # each Makefile.in and add a new line on top of each file to say so. 29488 # So let's grep whole file. 29489 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 28044 # Grep'ing the whole file is not good either: AIX grep has a line 28045 # limit of 2048, but all sed's we know have understand at least 4000. 28046 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 29490 28047 dirpart=`$as_dirname -- "$mf" || 29491 28048 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Note: See TracChangeset
for help on using the changeset viewer.