aboutsummaryrefslogtreecommitdiff
path: root/libltdl/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libltdl/configure')
-rwxr-xr-xlibltdl/configure1764
1 files changed, 1159 insertions, 605 deletions
diff --git a/libltdl/configure b/libltdl/configure
index 13b09f57..4bf2ba56 100755
--- a/libltdl/configure
+++ b/libltdl/configure
@@ -280,15 +280,15 @@ fi
280 280
281# The HP-UX ksh and POSIX shell print the target directory to stdout 281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set. 282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284 284
285if test -z "$ECHO"; then 285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then 286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it 287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null && 290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291 echo_test_string="`eval $cmd`" && 291 echo_test_string=`eval $cmd` &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then 293 then
294 break 294 break
@@ -3420,7 +3420,7 @@ lt_ac_count=0
3420# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3420# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3421# along with /bin/sed that truncates output. 3421# along with /bin/sed that truncates output.
3422for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3422for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3423 test ! -f $lt_ac_sed && break 3423 test ! -f $lt_ac_sed && continue
3424 cat /dev/null > conftest.in 3424 cat /dev/null > conftest.in
3425 lt_ac_count=0 3425 lt_ac_count=0
3426 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3426 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
@@ -3445,10 +3445,10 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3445 fi 3445 fi
3446 done 3446 done
3447done 3447done
3448SED=$lt_cv_path_SED
3449 3448
3450fi 3449fi
3451 3450
3451SED=$lt_cv_path_SED
3452echo "$as_me:$LINENO: result: $SED" >&5 3452echo "$as_me:$LINENO: result: $SED" >&5
3453echo "${ECHO_T}$SED" >&6 3453echo "${ECHO_T}$SED" >&6
3454 3454
@@ -3525,7 +3525,7 @@ else
3525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3526 lt_cv_path_LD="$ac_dir/$ac_prog" 3526 lt_cv_path_LD="$ac_dir/$ac_prog"
3527 # Check to see if the program is GNU ld. I'd rather use --version, 3527 # Check to see if the program is GNU ld. I'd rather use --version,
3528 # but apparently some GNU ld's only accept -v. 3528 # but apparently some variants of GNU ld only accept -v.
3529 # Break only if it was the GNU/non-GNU ld that we prefer. 3529 # Break only if it was the GNU/non-GNU ld that we prefer.
3530 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3530 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3531 *GNU* | *'with BFD'*) 3531 *GNU* | *'with BFD'*)
@@ -3559,7 +3559,7 @@ echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3559if test "${lt_cv_prog_gnu_ld+set}" = set; then 3559if test "${lt_cv_prog_gnu_ld+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6 3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561else 3561else
3562 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3562 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3563case `$LD -v 2>&1 </dev/null` in 3563case `$LD -v 2>&1 </dev/null` in
3564*GNU* | *'with BFD'*) 3564*GNU* | *'with BFD'*)
3565 lt_cv_prog_gnu_ld=yes 3565 lt_cv_prog_gnu_ld=yes
@@ -3589,6 +3589,15 @@ case $reload_flag in
3589*) reload_flag=" $reload_flag" ;; 3589*) reload_flag=" $reload_flag" ;;
3590esac 3590esac
3591reload_cmds='$LD$reload_flag -o $output$reload_objs' 3591reload_cmds='$LD$reload_flag -o $output$reload_objs'
3592case $host_os in
3593 darwin*)
3594 if test "$GCC" = yes; then
3595 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3596 else
3597 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3598 fi
3599 ;;
3600esac
3592 3601
3593echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3602echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3594echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3603echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
@@ -3675,7 +3684,7 @@ beos*)
3675 lt_cv_deplibs_check_method=pass_all 3684 lt_cv_deplibs_check_method=pass_all
3676 ;; 3685 ;;
3677 3686
3678bsdi4*) 3687bsdi[45]*)
3679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3680 lt_cv_file_magic_cmd='/usr/bin/file -L' 3689 lt_cv_file_magic_cmd='/usr/bin/file -L'
3681 lt_cv_file_magic_test_file=/shlib/libc.so 3690 lt_cv_file_magic_test_file=/shlib/libc.so
@@ -3698,13 +3707,13 @@ darwin* | rhapsody*)
3698 lt_cv_deplibs_check_method=pass_all 3707 lt_cv_deplibs_check_method=pass_all
3699 ;; 3708 ;;
3700 3709
3701freebsd* | kfreebsd*-gnu) 3710freebsd* | kfreebsd*-gnu | dragonfly*)
3702 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3711 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3703 case $host_cpu in 3712 case $host_cpu in
3704 i*86 ) 3713 i*86 )
3705 # Not sure whether the presence of OpenBSD here was a mistake. 3714 # Not sure whether the presence of OpenBSD here was a mistake.
3706 # Let's accept both of them until this is cleared up. 3715 # Let's accept both of them until this is cleared up.
3707 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3716 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3708 lt_cv_file_magic_cmd=/usr/bin/file 3717 lt_cv_file_magic_cmd=/usr/bin/file
3709 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3718 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3710 ;; 3719 ;;
@@ -3720,7 +3729,7 @@ gnu*)
3720 3729
3721hpux10.20* | hpux11*) 3730hpux10.20* | hpux11*)
3722 lt_cv_file_magic_cmd=/usr/bin/file 3731 lt_cv_file_magic_cmd=/usr/bin/file
3723 case "$host_cpu" in 3732 case $host_cpu in
3724 ia64*) 3733 ia64*)
3725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3734 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3726 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3735 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
@@ -3770,12 +3779,10 @@ nto-qnx*)
3770 ;; 3779 ;;
3771 3780
3772openbsd*) 3781openbsd*)
3773 lt_cv_file_magic_cmd=/usr/bin/file
3774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3782 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3776 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3783 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3777 else 3784 else
3778 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3779 fi 3786 fi
3780 ;; 3787 ;;
3781 3788
@@ -3867,7 +3874,7 @@ ia64-*-hpux*)
3867 ;; 3874 ;;
3868*-*-irix6*) 3875*-*-irix6*)
3869 # Find out which ABI we are using. 3876 # Find out which ABI we are using.
3870 echo '#line 3870 "configure"' > conftest.$ac_ext 3877 echo '#line 3877 "configure"' > conftest.$ac_ext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3872 (eval $ac_compile) 2>&5 3879 (eval $ac_compile) 2>&5
3873 ac_status=$? 3880 ac_status=$?
@@ -3910,7 +3917,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3910 ac_status=$? 3917 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; then 3919 (exit $ac_status); }; then
3913 case "`/usr/bin/file conftest.o`" in 3920 case `/usr/bin/file conftest.o` in
3914 *32-bit*) 3921 *32-bit*)
3915 case $host in 3922 case $host in
3916 x86_64-*linux*) 3923 x86_64-*linux*)
@@ -5350,7 +5357,12 @@ else
5350fi 5357fi
5351 5358
5352 5359
5353ac_ext=cc 5360
5361
5362if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5363 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5364 (test "X$CXX" != "Xg++"))) ; then
5365 ac_ext=cc
5354ac_cpp='$CXXCPP $CPPFLAGS' 5366ac_cpp='$CXXCPP $CPPFLAGS'
5355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
@@ -5580,6 +5592,8 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5582 5594
5595fi
5596
5583 5597
5584ac_ext=f 5598ac_ext=f
5585ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5599ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
@@ -5673,7 +5687,7 @@ fi
5673 5687
5674 5688
5675# Provide some information about the compiler. 5689# Provide some information about the compiler.
5676echo "$as_me:5676:" \ 5690echo "$as_me:5690:" \
5677 "checking for Fortran 77 compiler version" >&5 5691 "checking for Fortran 77 compiler version" >&5
5678ac_compiler=`set X $ac_compile; echo $2` 5692ac_compiler=`set X $ac_compile; echo $2`
5679{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5693{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
@@ -5861,11 +5875,38 @@ else
5861 lt_cv_sys_max_cmd_len=8192; 5875 lt_cv_sys_max_cmd_len=8192;
5862 ;; 5876 ;;
5863 5877
5864 *) 5878 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5879 # This has been around since 386BSD, at least. Likely further.
5880 if test -x /sbin/sysctl; then
5881 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5882 elif test -x /usr/sbin/sysctl; then
5883 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5884 else
5885 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5886 fi
5887 # And add a safety zone
5888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5890 ;;
5891 osf*)
5892 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5893 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5894 # nice to cause kernel panics so lets avoid the loop below.
5895 # First set a reasonable default.
5896 lt_cv_sys_max_cmd_len=16384
5897 #
5898 if test -x /sbin/sysconfig; then
5899 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5900 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5901 esac
5902 fi
5903 ;;
5904 *)
5865 # If test is not a shell built-in, we'll probably end up computing a 5905 # If test is not a shell built-in, we'll probably end up computing a
5866 # maximum length that is only half of the actual maximum length, but 5906 # maximum length that is only half of the actual maximum length, but
5867 # we can't tell. 5907 # we can't tell.
5868 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5908 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5909 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5869 = "XX$teststring") >/dev/null 2>&1 && 5910 = "XX$teststring") >/dev/null 2>&1 &&
5870 new_result=`expr "X$teststring" : ".*" 2>&1` && 5911 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5871 lt_cv_sys_max_cmd_len=$new_result && 5912 lt_cv_sys_max_cmd_len=$new_result &&
@@ -5911,9 +5952,6 @@ symcode='[BCDEGRST]'
5911# Regexp to match symbols that can be accessed directly from C. 5952# Regexp to match symbols that can be accessed directly from C.
5912sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5953sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5913 5954
5914# Transform the above into a raw symbol and a C symbol.
5915symxfrm='\1 \2\3 \3'
5916
5917# Transform an extracted symbol line into a proper C declaration 5955# Transform an extracted symbol line into a proper C declaration
5918lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5956lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5919 5957
@@ -5935,6 +5973,13 @@ hpux*) # Its linker distinguishes data from code symbols
5935 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5973 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5936 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'" 5974 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'"
5937 ;; 5975 ;;
5976linux*)
5977 if test "$host_cpu" = ia64; then
5978 symcode='[ABCDGIRSTW]'
5979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5980 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'"
5981 fi
5982 ;;
5938irix* | nonstopux*) 5983irix* | nonstopux*)
5939 symcode='[BCDEGRST]' 5984 symcode='[BCDEGRST]'
5940 ;; 5985 ;;
@@ -5966,8 +6011,11 @@ esac
5966# Try without a prefix undercore, then with it. 6011# Try without a prefix undercore, then with it.
5967for ac_symprfx in "" "_"; do 6012for ac_symprfx in "" "_"; do
5968 6013
6014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6015 symxfrm="\\1 $ac_symprfx\\2 \\2"
6016
5969 # Write the raw and C identifiers. 6017 # Write the raw and C identifiers.
5970 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 6018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5971 6019
5972 # Check to see that the pipe works correctly. 6020 # Check to see that the pipe works correctly.
5973 pipe_works=no 6021 pipe_works=no
@@ -6129,7 +6177,7 @@ esac
6129 6177
6130# Sed substitution that helps us do robust quoting. It backslashifies 6178# Sed substitution that helps us do robust quoting. It backslashifies
6131# metacharacters that are still active within double-quoted strings. 6179# metacharacters that are still active within double-quoted strings.
6132Xsed='sed -e s/^X//' 6180Xsed='sed -e 1s/^X//'
6133sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6181sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6134 6182
6135# Same as above, but do not quote variable references. 6183# Same as above, but do not quote variable references.
@@ -6149,7 +6197,7 @@ rm="rm -f"
6149default_ofile=libtool 6197default_ofile=libtool
6150can_build_shared=yes 6198can_build_shared=yes
6151 6199
6152# All known linkers require a `.a' archive for static linking (except M$VC, 6200# All known linkers require a `.a' archive for static linking (except MSVC,
6153# which needs '.lib'). 6201# which needs '.lib').
6154libext=a 6202libext=a
6155ltmain="$ac_aux_dir/ltmain.sh" 6203ltmain="$ac_aux_dir/ltmain.sh"
@@ -6434,6 +6482,17 @@ if test -n "$RANLIB"; then
6434 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6482 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6435fi 6483fi
6436 6484
6485for cc_temp in $compiler""; do
6486 case $cc_temp in
6487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6489 \-*) ;;
6490 *) break;;
6491 esac
6492done
6493cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6494
6495
6437# Only perform the check for file, if the check method requires it 6496# Only perform the check for file, if the check method requires it
6438case $deplibs_check_method in 6497case $deplibs_check_method in
6439file_magic*) 6498file_magic*)
@@ -6459,7 +6518,7 @@ else
6459 if test -n "$file_magic_test_file"; then 6518 if test -n "$file_magic_test_file"; then
6460 case $deplibs_check_method in 6519 case $deplibs_check_method in
6461 "file_magic "*) 6520 "file_magic "*)
6462 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6464 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6465 $EGREP "$file_magic_regex" > /dev/null; then 6524 $EGREP "$file_magic_regex" > /dev/null; then
@@ -6521,7 +6580,7 @@ else
6521 if test -n "$file_magic_test_file"; then 6580 if test -n "$file_magic_test_file"; then
6522 case $deplibs_check_method in 6581 case $deplibs_check_method in
6523 "file_magic "*) 6582 "file_magic "*)
6524 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 6583 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6585 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6527 $EGREP "$file_magic_regex" > /dev/null; then 6586 $EGREP "$file_magic_regex" > /dev/null; then
@@ -6620,6 +6679,20 @@ LTCC=${LTCC-"$CC"}
6620compiler=$CC 6679compiler=$CC
6621 6680
6622 6681
6682# save warnings/boilerplate of simple test code
6683ac_outfile=conftest.$ac_objext
6684printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6685eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6686_lt_compiler_boilerplate=`cat conftest.err`
6687$rm conftest*
6688
6689ac_outfile=conftest.$ac_objext
6690printf "$lt_simple_link_test_code" >conftest.$ac_ext
6691eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6692_lt_linker_boilerplate=`cat conftest.err`
6693$rm conftest*
6694
6695
6623# 6696#
6624# Check for any special shared library compilation flags. 6697# Check for any special shared library compilation flags.
6625# 6698#
@@ -6656,11 +6729,16 @@ else
6656 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6729 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6657 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6730 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6659 # The compiler can only warn and ignore the option if not recognized 6732 # The linker can only warn and ignore the option if not recognized
6660 # So say no if there are warnings 6733 # So say no if there are warnings
6661 if test -s conftest.err; then 6734 if test -s conftest.err; then
6662 # Append any errors to the config.log. 6735 # Append any errors to the config.log.
6663 cat conftest.err 1>&5 6736 cat conftest.err 1>&5
6737 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6738 $SED '/^$/d' conftest.err >conftest.er2
6739 if diff conftest.exp conftest.er2 >/dev/null; then
6740 lt_prog_compiler_static_works=yes
6741 fi
6664 else 6742 else
6665 lt_prog_compiler_static_works=yes 6743 lt_prog_compiler_static_works=yes
6666 fi 6744 fi
@@ -6702,18 +6780,20 @@ else
6702 # with a dollar sign (not a hyphen), so the echo should work correctly. 6780 # with a dollar sign (not a hyphen), so the echo should work correctly.
6703 # The option is referenced via a variable to avoid confusing sed. 6781 # The option is referenced via a variable to avoid confusing sed.
6704 lt_compile=`echo "$ac_compile" | $SED \ 6782 lt_compile=`echo "$ac_compile" | $SED \
6705 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6707 -e 's:$: $lt_compiler_flag:'` 6785 -e 's:$: $lt_compiler_flag:'`
6708 (eval echo "\"\$as_me:6708: $lt_compile\"" >&5) 6786 (eval echo "\"\$as_me:6786: $lt_compile\"" >&5)
6709 (eval "$lt_compile" 2>conftest.err) 6787 (eval "$lt_compile" 2>conftest.err)
6710 ac_status=$? 6788 ac_status=$?
6711 cat conftest.err >&5 6789 cat conftest.err >&5
6712 echo "$as_me:6712: \$? = $ac_status" >&5 6790 echo "$as_me:6790: \$? = $ac_status" >&5
6713 if (exit $ac_status) && test -s "$ac_outfile"; then 6791 if (exit $ac_status) && test -s "$ac_outfile"; then
6714 # The compiler can only warn and ignore the option if not recognized 6792 # The compiler can only warn and ignore the option if not recognized
6715 # So say no if there are warnings 6793 # So say no if there are warnings other than the usual output.
6716 if test ! -s conftest.err; then 6794 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6795 $SED '/^$/d' conftest.err >conftest.er2
6796 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6717 lt_cv_prog_compiler_rtti_exceptions=yes 6797 lt_cv_prog_compiler_rtti_exceptions=yes
6718 fi 6798 fi
6719 fi 6799 fi
@@ -6790,7 +6870,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6790 hpux*) 6870 hpux*)
6791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6792 # not for PA HP-UX. 6872 # not for PA HP-UX.
6793 case "$host_cpu" in 6873 case $host_cpu in
6794 hppa*64*|ia64*) 6874 hppa*64*|ia64*)
6795 # +Z the default 6875 # +Z the default
6796 ;; 6876 ;;
@@ -6816,6 +6896,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6896 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6817 fi 6897 fi
6818 ;; 6898 ;;
6899 darwin*)
6900 # PIC is the default on this platform
6901 # Common symbols not allowed in MH_DYLIB files
6902 case $cc_basename in
6903 xlc*)
6904 lt_prog_compiler_pic='-qnocommon'
6905 lt_prog_compiler_wl='-Wl,'
6906 ;;
6907 esac
6908 ;;
6819 6909
6820 mingw* | pw32* | os2*) 6910 mingw* | pw32* | os2*)
6821 # This hack is so that the source file can tell whether it is being 6911 # This hack is so that the source file can tell whether it is being
@@ -6827,7 +6917,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6827 lt_prog_compiler_wl='-Wl,' 6917 lt_prog_compiler_wl='-Wl,'
6828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6918 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6829 # not for PA HP-UX. 6919 # not for PA HP-UX.
6830 case "$host_cpu" in 6920 case $host_cpu in
6831 hppa*64*|ia64*) 6921 hppa*64*|ia64*)
6832 # +Z the default 6922 # +Z the default
6833 ;; 6923 ;;
@@ -6851,12 +6941,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6851 ;; 6941 ;;
6852 6942
6853 linux*) 6943 linux*)
6854 case $CC in 6944 case $cc_basename in
6855 icc* | ecc*) 6945 icc* | ecc*)
6856 lt_prog_compiler_wl='-Wl,' 6946 lt_prog_compiler_wl='-Wl,'
6857 lt_prog_compiler_pic='-KPIC' 6947 lt_prog_compiler_pic='-KPIC'
6858 lt_prog_compiler_static='-static' 6948 lt_prog_compiler_static='-static'
6859 ;; 6949 ;;
6950 pgcc* | pgf77* | pgf90* | pgf95*)
6951 # Portland Group compilers (*not* the Pentium gcc compiler,
6952 # which looks to be a dead project)
6953 lt_prog_compiler_wl='-Wl,'
6954 lt_prog_compiler_pic='-fpic'
6955 lt_prog_compiler_static='-Bstatic'
6956 ;;
6860 ccc*) 6957 ccc*)
6861 lt_prog_compiler_wl='-Wl,' 6958 lt_prog_compiler_wl='-Wl,'
6862 # All Alpha code is PIC. 6959 # All Alpha code is PIC.
@@ -6877,9 +6974,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6877 ;; 6974 ;;
6878 6975
6879 solaris*) 6976 solaris*)
6880 lt_prog_compiler_wl='-Wl,'
6881 lt_prog_compiler_pic='-KPIC' 6977 lt_prog_compiler_pic='-KPIC'
6882 lt_prog_compiler_static='-Bstatic' 6978 lt_prog_compiler_static='-Bstatic'
6979 case $cc_basename in
6980 f77* | f90* | f95*)
6981 lt_prog_compiler_wl='-Qoption ld ';;
6982 *)
6983 lt_prog_compiler_wl='-Wl,';;
6984 esac
6883 ;; 6985 ;;
6884 6986
6885 sunos4*) 6987 sunos4*)
@@ -6901,6 +7003,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6901 fi 7003 fi
6902 ;; 7004 ;;
6903 7005
7006 unicos*)
7007 lt_prog_compiler_wl='-Wl,'
7008 lt_prog_compiler_can_build_shared=no
7009 ;;
7010
6904 uts4*) 7011 uts4*)
6905 lt_prog_compiler_pic='-pic' 7012 lt_prog_compiler_pic='-pic'
6906 lt_prog_compiler_static='-Bstatic' 7013 lt_prog_compiler_static='-Bstatic'
@@ -6935,18 +7042,20 @@ else
6935 # with a dollar sign (not a hyphen), so the echo should work correctly. 7042 # with a dollar sign (not a hyphen), so the echo should work correctly.
6936 # The option is referenced via a variable to avoid confusing sed. 7043 # The option is referenced via a variable to avoid confusing sed.
6937 lt_compile=`echo "$ac_compile" | $SED \ 7044 lt_compile=`echo "$ac_compile" | $SED \
6938 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6940 -e 's:$: $lt_compiler_flag:'` 7047 -e 's:$: $lt_compiler_flag:'`
6941 (eval echo "\"\$as_me:6941: $lt_compile\"" >&5) 7048 (eval echo "\"\$as_me:7048: $lt_compile\"" >&5)
6942 (eval "$lt_compile" 2>conftest.err) 7049 (eval "$lt_compile" 2>conftest.err)
6943 ac_status=$? 7050 ac_status=$?
6944 cat conftest.err >&5 7051 cat conftest.err >&5
6945 echo "$as_me:6945: \$? = $ac_status" >&5 7052 echo "$as_me:7052: \$? = $ac_status" >&5
6946 if (exit $ac_status) && test -s "$ac_outfile"; then 7053 if (exit $ac_status) && test -s "$ac_outfile"; then
6947 # The compiler can only warn and ignore the option if not recognized 7054 # The compiler can only warn and ignore the option if not recognized
6948 # So say no if there are warnings 7055 # So say no if there are warnings other than the usual output.
6949 if test ! -s conftest.err; then 7056 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7057 $SED '/^$/d' conftest.err >conftest.er2
7058 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6950 lt_prog_compiler_pic_works=yes 7059 lt_prog_compiler_pic_works=yes
6951 fi 7060 fi
6952 fi 7061 fi
@@ -6967,7 +7076,7 @@ else
6967fi 7076fi
6968 7077
6969fi 7078fi
6970case "$host_os" in 7079case $host_os in
6971 # For platforms which do not support PIC, -DPIC is meaningless: 7080 # For platforms which do not support PIC, -DPIC is meaningless:
6972 *djgpp*) 7081 *djgpp*)
6973 lt_prog_compiler_pic= 7082 lt_prog_compiler_pic=
@@ -6995,23 +7104,25 @@ else
6995 # Note that $ac_compile itself does not contain backslashes and begins 7104 # Note that $ac_compile itself does not contain backslashes and begins
6996 # with a dollar sign (not a hyphen), so the echo should work correctly. 7105 # with a dollar sign (not a hyphen), so the echo should work correctly.
6997 lt_compile=`echo "$ac_compile" | $SED \ 7106 lt_compile=`echo "$ac_compile" | $SED \
6998 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 7107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7000 -e 's:$: $lt_compiler_flag:'` 7109 -e 's:$: $lt_compiler_flag:'`
7001 (eval echo "\"\$as_me:7001: $lt_compile\"" >&5) 7110 (eval echo "\"\$as_me:7110: $lt_compile\"" >&5)
7002 (eval "$lt_compile" 2>out/conftest.err) 7111 (eval "$lt_compile" 2>out/conftest.err)
7003 ac_status=$? 7112 ac_status=$?
7004 cat out/conftest.err >&5 7113 cat out/conftest.err >&5
7005 echo "$as_me:7005: \$? = $ac_status" >&5 7114 echo "$as_me:7114: \$? = $ac_status" >&5
7006 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7115 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7007 then 7116 then
7008 # The compiler can only warn and ignore the option if not recognized 7117 # The compiler can only warn and ignore the option if not recognized
7009 # So say no if there are warnings 7118 # So say no if there are warnings
7010 if test ! -s out/conftest.err; then 7119 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7120 $SED '/^$/d' out/conftest.err >out/conftest.er2
7121 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7011 lt_cv_prog_compiler_c_o=yes 7122 lt_cv_prog_compiler_c_o=yes
7012 fi 7123 fi
7013 fi 7124 fi
7014 chmod u+w . 7125 chmod u+w . 2>&5
7015 $rm conftest* 7126 $rm conftest*
7016 # SGI C++ compiler will create directory out/ii_files/ for 7127 # SGI C++ compiler will create directory out/ii_files/ for
7017 # template instantiation 7128 # template instantiation
@@ -7087,6 +7198,16 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
7087 # rely on this symbol name, it's probably fine to never include it in 7198 # rely on this symbol name, it's probably fine to never include it in
7088 # preloaded symbol tables. 7199 # preloaded symbol tables.
7089 extract_expsyms_cmds= 7200 extract_expsyms_cmds=
7201 # Just being paranoid about ensuring that cc_basename is set.
7202 for cc_temp in $compiler""; do
7203 case $cc_temp in
7204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7206 \-*) ;;
7207 *) break;;
7208 esac
7209done
7210cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7090 7211
7091 case $host_os in 7212 case $host_os in
7092 cygwin* | mingw* | pw32*) 7213 cygwin* | mingw* | pw32*)
@@ -7107,6 +7228,27 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
7107 # If archive_cmds runs LD, not CC, wlarc should be empty 7228 # If archive_cmds runs LD, not CC, wlarc should be empty
7108 wlarc='${wl}' 7229 wlarc='${wl}'
7109 7230
7231 # Set some defaults for GNU ld with shared library support. These
7232 # are reset later if shared libraries are not supported. Putting them
7233 # here allows them to be overridden if necessary.
7234 runpath_var=LD_RUN_PATH
7235 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7236 export_dynamic_flag_spec='${wl}--export-dynamic'
7237 # ancient GNU ld didn't support --whole-archive et. al.
7238 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7239 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7240 else
7241 whole_archive_flag_spec=
7242 fi
7243 supports_anon_versioning=no
7244 case `$LD -v 2>/dev/null` in
7245 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7246 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7247 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7248 *\ 2.11.*) ;; # other 2.11 versions
7249 *) supports_anon_versioning=yes ;;
7250 esac
7251
7110 # See if GNU ld supports shared libraries. 7252 # See if GNU ld supports shared libraries.
7111 case $host_os in 7253 case $host_os in
7112 aix3* | aix4* | aix5*) 7254 aix3* | aix4* | aix5*)
@@ -7157,7 +7299,7 @@ EOF
7157 allow_undefined_flag=unsupported 7299 allow_undefined_flag=unsupported
7158 always_export_symbols=no 7300 always_export_symbols=no
7159 enable_shared_with_static_runtimes=yes 7301 enable_shared_with_static_runtimes=yes
7160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7302 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7161 7303
7162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7304 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 7305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
@@ -7175,6 +7317,38 @@ EOF
7175 fi 7317 fi
7176 ;; 7318 ;;
7177 7319
7320 linux*)
7321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7322 tmp_addflag=
7323 case $cc_basename,$host_cpu in
7324 pgcc*) # Portland Group C compiler
7325 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7326 tmp_addflag=' $pic_flag'
7327 ;;
7328 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7329 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7330 tmp_addflag=' $pic_flag -Mnomain' ;;
7331 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7332 tmp_addflag=' -i_dynamic' ;;
7333 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7334 tmp_addflag=' -i_dynamic -nofor_main' ;;
7335 ifc* | ifort*) # Intel Fortran compiler
7336 tmp_addflag=' -nofor_main' ;;
7337 esac
7338 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7339
7340 if test $supports_anon_versioning = yes; then
7341 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7342 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7343 $echo "local: *; };" >> $output_objdir/$libname.ver~
7344 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7345 fi
7346 link_all_deplibs=no
7347 else
7348 ld_shlibs=no
7349 fi
7350 ;;
7351
7178 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 7352 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7180 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7354 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
@@ -7213,32 +7387,6 @@ EOF
7213 hardcode_shlibpath_var=no 7387 hardcode_shlibpath_var=no
7214 ;; 7388 ;;
7215 7389
7216 linux*)
7217 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7218 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7219 archive_cmds="$tmp_archive_cmds"
7220 supports_anon_versioning=no
7221 case `$LD -v 2>/dev/null` in
7222 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7223 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7224 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7225 *\ 2.11.*) ;; # other 2.11 versions
7226 *) supports_anon_versioning=yes ;;
7227 esac
7228 if test $supports_anon_versioning = yes; then
7229 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7230cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7231$echo "local: *; };" >> $output_objdir/$libname.ver~
7232 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7233 else
7234 archive_expsym_cmds="$tmp_archive_cmds"
7235 fi
7236 link_all_deplibs=no
7237 else
7238 ld_shlibs=no
7239 fi
7240 ;;
7241
7242 *) 7390 *)
7243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7391 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
@@ -7249,16 +7397,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
7249 ;; 7397 ;;
7250 esac 7398 esac
7251 7399
7252 if test "$ld_shlibs" = yes; then 7400 if test "$ld_shlibs" = no; then
7253 runpath_var=LD_RUN_PATH 7401 runpath_var=
7254 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7402 hardcode_libdir_flag_spec=
7255 export_dynamic_flag_spec='${wl}--export-dynamic' 7403 export_dynamic_flag_spec=
7256 # ancient GNU ld didn't support --whole-archive et. al. 7404 whole_archive_flag_spec=
7257 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7258 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7259 else
7260 whole_archive_flag_spec=
7261 fi
7262 fi 7405 fi
7263 else 7406 else
7264 # PORTME fill in a description of your system's linker (not GNU ld) 7407 # PORTME fill in a description of your system's linker (not GNU ld)
@@ -7322,7 +7465,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
7322 link_all_deplibs=yes 7465 link_all_deplibs=yes
7323 7466
7324 if test "$GCC" = yes; then 7467 if test "$GCC" = yes; then
7325 case $host_os in aix4.012|aix4.012.*) 7468 case $host_os in aix4.[012]|aix4.[012].*)
7326 # We only want to do this on AIX 4.2 and lower, the check 7469 # We only want to do this on AIX 4.2 and lower, the check
7327 # below for broken collect2 doesn't work under 4.3+ 7470 # below for broken collect2 doesn't work under 4.3+
7328 collect2name=`${CC} -print-prog-name=collect2` 7471 collect2name=`${CC} -print-prog-name=collect2`
@@ -7343,6 +7486,9 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
7343 fi 7486 fi
7344 esac 7487 esac
7345 shared_flag='-shared' 7488 shared_flag='-shared'
7489 if test "$aix_use_runtimelinking" = yes; then
7490 shared_flag="$shared_flag "'${wl}-G'
7491 fi
7346 else 7492 else
7347 # not using gcc 7493 # not using gcc
7348 if test "$host_cpu" = ia64; then 7494 if test "$host_cpu" = ia64; then
@@ -7487,7 +7633,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7487 # Exported symbols can be pulled into shared objects from archives 7633 # Exported symbols can be pulled into shared objects from archives
7488 whole_archive_flag_spec=' ' 7634 whole_archive_flag_spec=' '
7489 archive_cmds_need_lc=yes 7635 archive_cmds_need_lc=yes
7490 # This is similar to how AIX traditionally builds it's shared libraries. 7636 # This is similar to how AIX traditionally builds its shared libraries.
7491 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' 7637 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'
7492 fi 7638 fi
7493 fi 7639 fi
@@ -7501,7 +7647,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7501 ld_shlibs=no 7647 ld_shlibs=no
7502 ;; 7648 ;;
7503 7649
7504 bsdi4*) 7650 bsdi[45]*)
7505 export_dynamic_flag_spec=-rdynamic 7651 export_dynamic_flag_spec=-rdynamic
7506 ;; 7652 ;;
7507 7653
@@ -7527,52 +7673,52 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7527 ;; 7673 ;;
7528 7674
7529 darwin* | rhapsody*) 7675 darwin* | rhapsody*)
7530 if test "$GXX" = yes ; then 7676 case $host_os in
7531 archive_cmds_need_lc=no 7677 rhapsody* | darwin1.[012])
7532 case "$host_os" in 7678 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7533 rhapsody* | darwin1.[012]) 7679 ;;
7534 allow_undefined_flag='-undefined suppress' 7680 *) # Darwin 1.3 on
7535 ;; 7681 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7536 *) # Darwin 1.3 on 7682 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7537 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7683 else
7538 allow_undefined_flag='-flat_namespace -undefined suppress' 7684 case ${MACOSX_DEPLOYMENT_TARGET} in
7539 else 7685 10.[012])
7540 case ${MACOSX_DEPLOYMENT_TARGET} in 7686 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7541 10.[012]) 7687 ;;
7542 allow_undefined_flag='-flat_namespace -undefined suppress' 7688 10.*)
7543 ;; 7689 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7544 10.*) 7690 ;;
7545 allow_undefined_flag='-undefined dynamic_lookup' 7691 esac
7546 ;; 7692 fi
7547 esac 7693 ;;
7548 fi
7549 ;;
7550 esac 7694 esac
7551 lt_int_apple_cc_single_mod=no 7695 archive_cmds_need_lc=no
7552 output_verbose_link_cmd='echo'
7553 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7554 lt_int_apple_cc_single_mod=yes
7555 fi
7556 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7557 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7558 else
7559 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7560 fi
7561 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7562 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7563 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7564 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7565 else
7566 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7567 fi
7568 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}'
7569 hardcode_direct=no 7696 hardcode_direct=no
7570 hardcode_automatic=yes 7697 hardcode_automatic=yes
7571 hardcode_shlibpath_var=unsupported 7698 hardcode_shlibpath_var=unsupported
7572 whole_archive_flag_spec='-all_load $convenience' 7699 whole_archive_flag_spec=''
7573 link_all_deplibs=yes 7700 link_all_deplibs=yes
7701 if test "$GCC" = yes ; then
7702 output_verbose_link_cmd='echo'
7703 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7704 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7705 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7706 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7707 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}'
7574 else 7708 else
7575 ld_shlibs=no 7709 case $cc_basename in
7710 xlc*)
7711 output_verbose_link_cmd='echo'
7712 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7713 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7714 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7715 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}'
7716 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}'
7717 ;;
7718 *)
7719 ld_shlibs=no
7720 ;;
7721 esac
7576 fi 7722 fi
7577 ;; 7723 ;;
7578 7724
@@ -7606,7 +7752,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7606 ;; 7752 ;;
7607 7753
7608 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7609 freebsd* | kfreebsd*-gnu) 7755 freebsd* | kfreebsd*-gnu | dragonfly*)
7610 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7756 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7611 hardcode_libdir_flag_spec='-R$libdir' 7757 hardcode_libdir_flag_spec='-R$libdir'
7612 hardcode_direct=yes 7758 hardcode_direct=yes
@@ -7631,7 +7777,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7631 7777
7632 hpux10* | hpux11*) 7778 hpux10* | hpux11*)
7633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7779 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7634 case "$host_cpu" in 7780 case $host_cpu in
7635 hppa*64*|ia64*) 7781 hppa*64*|ia64*)
7636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7782 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7637 ;; 7783 ;;
@@ -7640,7 +7786,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7640 ;; 7786 ;;
7641 esac 7787 esac
7642 else 7788 else
7643 case "$host_cpu" in 7789 case $host_cpu in
7644 hppa*64*|ia64*) 7790 hppa*64*|ia64*)
7645 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7791 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7646 ;; 7792 ;;
@@ -7650,7 +7796,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7650 esac 7796 esac
7651 fi 7797 fi
7652 if test "$with_gnu_ld" = no; then 7798 if test "$with_gnu_ld" = no; then
7653 case "$host_cpu" in 7799 case $host_cpu in
7654 hppa*64*) 7800 hppa*64*)
7655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7656 hardcode_libdir_flag_spec_ld='+b $libdir' 7802 hardcode_libdir_flag_spec_ld='+b $libdir'
@@ -7717,6 +7863,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7717 hardcode_shlibpath_var=no 7863 hardcode_shlibpath_var=no
7718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7864 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7719 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7865 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7866 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7720 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7867 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7721 export_dynamic_flag_spec='${wl}-E' 7868 export_dynamic_flag_spec='${wl}-E'
7722 else 7869 else
@@ -7762,7 +7909,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7762 allow_undefined_flag=' -expect_unresolved \*' 7909 allow_undefined_flag=' -expect_unresolved \*'
7763 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7910 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7764 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7911 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7765 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 7912 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7766 7913
7767 # Both c and cxx compiler support -rpath directly 7914 # Both c and cxx compiler support -rpath directly
7768 hardcode_libdir_flag_spec='-rpath $libdir' 7915 hardcode_libdir_flag_spec='-rpath $libdir'
@@ -7781,10 +7928,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7781 solaris*) 7928 solaris*)
7782 no_undefined_flag=' -z text' 7929 no_undefined_flag=' -z text'
7783 if test "$GCC" = yes; then 7930 if test "$GCC" = yes; then
7931 wlarc='${wl}'
7784 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7932 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7785 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7933 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7786 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7934 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7787 else 7935 else
7936 wlarc=''
7788 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7937 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7789 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7938 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7790 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7939 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
@@ -7793,8 +7942,18 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7793 hardcode_shlibpath_var=no 7942 hardcode_shlibpath_var=no
7794 case $host_os in 7943 case $host_os in
7795 solaris2.[0-5] | solaris2.[0-5].*) ;; 7944 solaris2.[0-5] | solaris2.[0-5].*) ;;
7796 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 7945 *)
7797 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7946 # The compiler driver will combine linker options so we
7947 # cannot just pass the convience library names through
7948 # without $wl, iff we do not link with $LD.
7949 # Luckily, gcc supports the same syntax we need for Sun Studio.
7950 # Supported since Solaris 2.6 (maybe 2.5.1?)
7951 case $wlarc in
7952 '')
7953 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7954 *)
7955 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' ;;
7956 esac ;;
7798 esac 7957 esac
7799 link_all_deplibs=yes 7958 link_all_deplibs=yes
7800 ;; 7959 ;;
@@ -8068,7 +8227,7 @@ beos*)
8068 shlibpath_var=LIBRARY_PATH 8227 shlibpath_var=LIBRARY_PATH
8069 ;; 8228 ;;
8070 8229
8071bsdi4*) 8230bsdi[45]*)
8072 version_type=linux 8231 version_type=linux
8073 need_version=no 8232 need_version=no
8074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -8096,7 +8255,8 @@ cygwin* | mingw* | pw32*)
8096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8097 dldir=$destdir/`dirname \$dlpath`~ 8256 dldir=$destdir/`dirname \$dlpath`~
8098 test -d \$dldir || mkdir -p \$dldir~ 8257 test -d \$dldir || mkdir -p \$dldir~
8099 $install_prog $dir/$dlname \$dldir/$dlname' 8258 $install_prog $dir/$dlname \$dldir/$dlname~
8259 chmod a+x \$dldir/$dlname'
8100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8260 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8101 dlpath=$dir/\$dldll~ 8261 dlpath=$dir/\$dldll~
8102 $rm \$dlpath' 8262 $rm \$dlpath'
@@ -8126,7 +8286,7 @@ cygwin* | mingw* | pw32*)
8126 ;; 8286 ;;
8127 pw32*) 8287 pw32*)
8128 # pw32 DLLs use 'pw' prefix rather than 'lib' 8288 # pw32 DLLs use 'pw' prefix rather than 'lib'
8129 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 8289 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8130 ;; 8290 ;;
8131 esac 8291 esac
8132 ;; 8292 ;;
@@ -8149,7 +8309,7 @@ darwin* | rhapsody*)
8149 soname_spec='${libname}${release}${major}$shared_ext' 8309 soname_spec='${libname}${release}${major}$shared_ext'
8150 shlibpath_overrides_runpath=yes 8310 shlibpath_overrides_runpath=yes
8151 shlibpath_var=DYLD_LIBRARY_PATH 8311 shlibpath_var=DYLD_LIBRARY_PATH
8152 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 8312 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8153 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8313 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8154 if test "$GCC" = yes; then 8314 if test "$GCC" = yes; then
8155 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"` 8315 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"`
@@ -8184,8 +8344,17 @@ kfreebsd*-gnu)
8184 dynamic_linker='GNU ld.so' 8344 dynamic_linker='GNU ld.so'
8185 ;; 8345 ;;
8186 8346
8187freebsd*) 8347freebsd* | dragonfly*)
8188 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 8348 # DragonFly does not have aout. When/if they implement a new
8349 # versioning mechanism, adjust this.
8350 if test -x /usr/bin/objformat; then
8351 objformat=`/usr/bin/objformat`
8352 else
8353 case $host_os in
8354 freebsd[123]*) objformat=aout ;;
8355 *) objformat=elf ;;
8356 esac
8357 fi
8189 version_type=freebsd-$objformat 8358 version_type=freebsd-$objformat
8190 case $version_type in 8359 case $version_type in
8191 freebsd-elf*) 8360 freebsd-elf*)
@@ -8203,7 +8372,7 @@ freebsd*)
8203 freebsd2*) 8372 freebsd2*)
8204 shlibpath_overrides_runpath=yes 8373 shlibpath_overrides_runpath=yes
8205 ;; 8374 ;;
8206 freebsd3.01* | freebsdelf3.01*) 8375 freebsd3.[01]* | freebsdelf3.[01]*)
8207 shlibpath_overrides_runpath=yes 8376 shlibpath_overrides_runpath=yes
8208 hardcode_into_libs=yes 8377 hardcode_into_libs=yes
8209 ;; 8378 ;;
@@ -8230,7 +8399,7 @@ hpux9* | hpux10* | hpux11*)
8230 version_type=sunos 8399 version_type=sunos
8231 need_lib_prefix=no 8400 need_lib_prefix=no
8232 need_version=no 8401 need_version=no
8233 case "$host_cpu" in 8402 case $host_cpu in
8234 ia64*) 8403 ia64*)
8235 shrext_cmds='.so' 8404 shrext_cmds='.so'
8236 hardcode_into_libs=yes 8405 hardcode_into_libs=yes
@@ -8329,7 +8498,7 @@ linux*)
8329 8498
8330 # Append ld.so.conf contents to the search path 8499 # Append ld.so.conf contents to the search path
8331 if test -f /etc/ld.so.conf; then 8500 if test -f /etc/ld.so.conf; then
8332 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 8501 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' ' '`
8333 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8502 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8334 fi 8503 fi
8335 8504
@@ -8404,7 +8573,11 @@ nto-qnx*)
8404openbsd*) 8573openbsd*)
8405 version_type=sunos 8574 version_type=sunos
8406 need_lib_prefix=no 8575 need_lib_prefix=no
8407 need_version=yes 8576 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8577 case $host_os in
8578 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8579 *) need_version=no ;;
8580 esac
8408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8410 shlibpath_var=LD_LIBRARY_PATH 8583 shlibpath_var=LD_LIBRARY_PATH
@@ -8526,8 +8699,8 @@ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8526echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8699echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8527hardcode_action= 8700hardcode_action=
8528if test -n "$hardcode_libdir_flag_spec" || \ 8701if test -n "$hardcode_libdir_flag_spec" || \
8529 test -n "$runpath_var " || \ 8702 test -n "$runpath_var" || \
8530 test "X$hardcode_automatic"="Xyes" ; then 8703 test "X$hardcode_automatic" = "Xyes" ; then
8531 8704
8532 # We can hardcode non-existant directories. 8705 # We can hardcode non-existant directories.
8533 if test "$hardcode_direct" != no && 8706 if test "$hardcode_direct" != no &&
@@ -9186,7 +9359,7 @@ else
9186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9359 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9187 lt_status=$lt_dlunknown 9360 lt_status=$lt_dlunknown
9188 cat > conftest.$ac_ext <<EOF 9361 cat > conftest.$ac_ext <<EOF
9189#line 9189 "configure" 9362#line 9362 "configure"
9190#include "confdefs.h" 9363#include "confdefs.h"
9191 9364
9192#if HAVE_DLFCN_H 9365#if HAVE_DLFCN_H
@@ -9252,7 +9425,7 @@ EOF
9252 ac_status=$? 9425 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9427 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9255 (./conftest; exit; ) 2>/dev/null 9428 (./conftest; exit; ) >&5 2>/dev/null
9256 lt_status=$? 9429 lt_status=$?
9257 case x$lt_status in 9430 case x$lt_status in
9258 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9431 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
@@ -9284,7 +9457,7 @@ else
9284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9285 lt_status=$lt_dlunknown 9458 lt_status=$lt_dlunknown
9286 cat > conftest.$ac_ext <<EOF 9459 cat > conftest.$ac_ext <<EOF
9287#line 9287 "configure" 9460#line 9460 "configure"
9288#include "confdefs.h" 9461#include "confdefs.h"
9289 9462
9290#if HAVE_DLFCN_H 9463#if HAVE_DLFCN_H
@@ -9350,7 +9523,7 @@ EOF
9350 ac_status=$? 9523 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9525 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9353 (./conftest; exit; ) 2>/dev/null 9526 (./conftest; exit; ) >&5 2>/dev/null
9354 lt_status=$? 9527 lt_status=$?
9355 case x$lt_status in 9528 case x$lt_status in
9356 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9529 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
@@ -9400,7 +9573,7 @@ test "$can_build_shared" = "no" && enable_shared=no
9400 9573
9401# On AIX, shared libraries and static libraries use the same namespace, and 9574# On AIX, shared libraries and static libraries use the same namespace, and
9402# are all built from PIC. 9575# are all built from PIC.
9403case "$host_os" in 9576case $host_os in
9404aix3*) 9577aix3*)
9405 test "$enable_shared" = yes && enable_static=no 9578 test "$enable_shared" = yes && enable_static=no
9406 if test -n "$RANLIB"; then 9579 if test -n "$RANLIB"; then
@@ -9413,43 +9586,6 @@ aix4* | aix5*)
9413 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9586 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9414 test "$enable_shared" = yes && enable_static=no 9587 test "$enable_shared" = yes && enable_static=no
9415 fi 9588 fi
9416 ;;
9417 darwin* | rhapsody*)
9418 if test "$GCC" = yes; then
9419 archive_cmds_need_lc=no
9420 case "$host_os" in
9421 rhapsody* | darwin1.[012])
9422 allow_undefined_flag='-undefined suppress'
9423 ;;
9424 *) # Darwin 1.3 on
9425 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9426 allow_undefined_flag='-flat_namespace -undefined suppress'
9427 else
9428 case ${MACOSX_DEPLOYMENT_TARGET} in
9429 10.[012])
9430 allow_undefined_flag='-flat_namespace -undefined suppress'
9431 ;;
9432 10.*)
9433 allow_undefined_flag='-undefined dynamic_lookup'
9434 ;;
9435 esac
9436 fi
9437 ;;
9438 esac
9439 output_verbose_link_cmd='echo'
9440 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9441 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9442 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9443 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9444 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}'
9445 hardcode_direct=no
9446 hardcode_automatic=yes
9447 hardcode_shlibpath_var=unsupported
9448 whole_archive_flag_spec='-all_load $convenience'
9449 link_all_deplibs=yes
9450 else
9451 ld_shlibs=no
9452 fi
9453 ;; 9589 ;;
9454esac 9590esac
9455echo "$as_me:$LINENO: result: $enable_shared" >&5 9591echo "$as_me:$LINENO: result: $enable_shared" >&5
@@ -9579,7 +9715,7 @@ echo "$as_me: creating $ofile" >&6;}
9579# 9715#
9580# You should have received a copy of the GNU General Public License 9716# You should have received a copy of the GNU General Public License
9581# along with this program; if not, write to the Free Software 9717# along with this program; if not, write to the Free Software
9582# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 9718# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9583# 9719#
9584# As a special exception to the GNU General Public License, if you 9720# As a special exception to the GNU General Public License, if you
9585# distribute this file as part of a program that contains a 9721# distribute this file as part of a program that contains a
@@ -9590,11 +9726,11 @@ echo "$as_me: creating $ofile" >&6;}
9590SED=$lt_SED 9726SED=$lt_SED
9591 9727
9592# Sed that helps us avoid accidentally triggering echo(1) options like -n. 9728# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9593Xsed="$SED -e s/^X//" 9729Xsed="$SED -e 1s/^X//"
9594 9730
9595# The HP-UX ksh and POSIX shell print the target directory to stdout 9731# The HP-UX ksh and POSIX shell print the target directory to stdout
9596# if CDPATH is set. 9732# if CDPATH is set.
9597if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 9733(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9598 9734
9599# The names of the tagged configurations supported by this script. 9735# The names of the tagged configurations supported by this script.
9600available_tags= 9736available_tags=
@@ -9624,6 +9760,12 @@ fast_install=$enable_fast_install
9624# The host system. 9760# The host system.
9625host_alias=$host_alias 9761host_alias=$host_alias
9626host=$host 9762host=$host
9763host_os=$host_os
9764
9765# The build system.
9766build_alias=$build_alias
9767build=$build
9768build_os=$build_os
9627 9769
9628# An echo program that does not interpret backslashes. 9770# An echo program that does not interpret backslashes.
9629echo=$lt_echo 9771echo=$lt_echo
@@ -9700,7 +9842,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
9700# Does compiler simultaneously support -c and -o options? 9842# Does compiler simultaneously support -c and -o options?
9701compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9843compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9702 9844
9703# Must we lock files when doing compilation ? 9845# Must we lock files when doing compilation?
9704need_locks=$lt_need_locks 9846need_locks=$lt_need_locks
9705 9847
9706# Do we need the lib prefix for modules? 9848# Do we need the lib prefix for modules?
@@ -9995,7 +10137,9 @@ echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9995 10137
9996 case $tagname in 10138 case $tagname in
9997 CXX) 10139 CXX)
9998 if test -n "$CXX" && test "X$CXX" != "Xno"; then 10140 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10141 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10142 (test "X$CXX" != "Xg++"))) ; then
9999 ac_ext=cc 10143 ac_ext=cc
10000ac_cpp='$CXXCPP $CPPFLAGS' 10144ac_cpp='$CXXCPP $CPPFLAGS'
10001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -10032,7 +10176,7 @@ postdeps_CXX=
10032compiler_lib_search_path_CXX= 10176compiler_lib_search_path_CXX=
10033 10177
10034# Source file extension for C++ test sources. 10178# Source file extension for C++ test sources.
10035ac_ext=cc 10179ac_ext=cpp
10036 10180
10037# Object file extension for compiled C++ test sources. 10181# Object file extension for compiled C++ test sources.
10038objext=o 10182objext=o
@@ -10053,6 +10197,20 @@ LTCC=${LTCC-"$CC"}
10053compiler=$CC 10197compiler=$CC
10054 10198
10055 10199
10200# save warnings/boilerplate of simple test code
10201ac_outfile=conftest.$ac_objext
10202printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10204_lt_compiler_boilerplate=`cat conftest.err`
10205$rm conftest*
10206
10207ac_outfile=conftest.$ac_objext
10208printf "$lt_simple_link_test_code" >conftest.$ac_ext
10209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10210_lt_linker_boilerplate=`cat conftest.err`
10211$rm conftest*
10212
10213
10056# Allow CC to be a program name with arguments. 10214# Allow CC to be a program name with arguments.
10057lt_save_CC=$CC 10215lt_save_CC=$CC
10058lt_save_LD=$LD 10216lt_save_LD=$LD
@@ -10074,7 +10232,16 @@ test -z "${LDCXX+set}" || LD=$LDCXX
10074CC=${CXX-"c++"} 10232CC=${CXX-"c++"}
10075compiler=$CC 10233compiler=$CC
10076compiler_CXX=$CC 10234compiler_CXX=$CC
10077cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 10235for cc_temp in $compiler""; do
10236 case $cc_temp in
10237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10239 \-*) ;;
10240 *) break;;
10241 esac
10242done
10243cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10244
10078 10245
10079# We don't want -fno-exception wen compiling C++ code, so set the 10246# We don't want -fno-exception wen compiling C++ code, so set the
10080# no_builtin_flag separately 10247# no_builtin_flag separately
@@ -10145,7 +10312,7 @@ else
10145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10312 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10146 lt_cv_path_LD="$ac_dir/$ac_prog" 10313 lt_cv_path_LD="$ac_dir/$ac_prog"
10147 # Check to see if the program is GNU ld. I'd rather use --version, 10314 # Check to see if the program is GNU ld. I'd rather use --version,
10148 # but apparently some GNU ld's only accept -v. 10315 # but apparently some variants of GNU ld only accept -v.
10149 # Break only if it was the GNU/non-GNU ld that we prefer. 10316 # Break only if it was the GNU/non-GNU ld that we prefer.
10150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10317 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10151 *GNU* | *'with BFD'*) 10318 *GNU* | *'with BFD'*)
@@ -10179,7 +10346,7 @@ echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10179if test "${lt_cv_prog_gnu_ld+set}" = set; then 10346if test "${lt_cv_prog_gnu_ld+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6 10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10181else 10348else
10182 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10349 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10183case `$LD -v 2>&1 </dev/null` in 10350case `$LD -v 2>&1 </dev/null` in
10184*GNU* | *'with BFD'*) 10351*GNU* | *'with BFD'*)
10185 lt_cv_prog_gnu_ld=yes 10352 lt_cv_prog_gnu_ld=yes
@@ -10288,7 +10455,7 @@ case $host_os in
10288 link_all_deplibs_CXX=yes 10455 link_all_deplibs_CXX=yes
10289 10456
10290 if test "$GXX" = yes; then 10457 if test "$GXX" = yes; then
10291 case $host_os in aix4.012|aix4.012.*) 10458 case $host_os in aix4.[012]|aix4.[012].*)
10292 # We only want to do this on AIX 4.2 and lower, the check 10459 # We only want to do this on AIX 4.2 and lower, the check
10293 # below for broken collect2 doesn't work under 4.3+ 10460 # below for broken collect2 doesn't work under 4.3+
10294 collect2name=`${CC} -print-prog-name=collect2` 10461 collect2name=`${CC} -print-prog-name=collect2`
@@ -10309,6 +10476,9 @@ case $host_os in
10309 fi 10476 fi
10310 esac 10477 esac
10311 shared_flag='-shared' 10478 shared_flag='-shared'
10479 if test "$aix_use_runtimelinking" = yes; then
10480 shared_flag="$shared_flag "'${wl}-G'
10481 fi
10312 else 10482 else
10313 # not using gcc 10483 # not using gcc
10314 if test "$host_cpu" = ia64; then 10484 if test "$host_cpu" = ia64; then
@@ -10454,7 +10624,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10454 # Exported symbols can be pulled into shared objects from archives 10624 # Exported symbols can be pulled into shared objects from archives
10455 whole_archive_flag_spec_CXX=' ' 10625 whole_archive_flag_spec_CXX=' '
10456 archive_cmds_need_lc_CXX=yes 10626 archive_cmds_need_lc_CXX=yes
10457 # This is similar to how AIX traditionally builds it's shared libraries. 10627 # This is similar to how AIX traditionally builds its shared libraries.
10458 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' 10628 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'
10459 fi 10629 fi
10460 fi 10630 fi
@@ -10468,6 +10638,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10468 esac 10638 esac
10469 ;; 10639 ;;
10470 10640
10641
10471 cygwin* | mingw* | pw32*) 10642 cygwin* | mingw* | pw32*)
10472 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10643 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10473 # as there is no search path for DLLs. 10644 # as there is no search path for DLLs.
@@ -10491,65 +10662,76 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10491 ld_shlibs_CXX=no 10662 ld_shlibs_CXX=no
10492 fi 10663 fi
10493 ;; 10664 ;;
10665 darwin* | rhapsody*)
10666 case $host_os in
10667 rhapsody* | darwin1.[012])
10668 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10669 ;;
10670 *) # Darwin 1.3 on
10671 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10672 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10673 else
10674 case ${MACOSX_DEPLOYMENT_TARGET} in
10675 10.[012])
10676 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10677 ;;
10678 10.*)
10679 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10680 ;;
10681 esac
10682 fi
10683 ;;
10684 esac
10685 archive_cmds_need_lc_CXX=no
10686 hardcode_direct_CXX=no
10687 hardcode_automatic_CXX=yes
10688 hardcode_shlibpath_var_CXX=unsupported
10689 whole_archive_flag_spec_CXX=''
10690 link_all_deplibs_CXX=yes
10494 10691
10495 darwin* | rhapsody*) 10692 if test "$GXX" = yes ; then
10496 if test "$GXX" = yes; then 10693 lt_int_apple_cc_single_mod=no
10497 archive_cmds_need_lc_CXX=no 10694 output_verbose_link_cmd='echo'
10498 case "$host_os" in 10695 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10499 rhapsody* | darwin1.[012]) 10696 lt_int_apple_cc_single_mod=yes
10500 allow_undefined_flag_CXX='-undefined suppress' 10697 fi
10501 ;; 10698 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10502 *) # Darwin 1.3 on 10699 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10503 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10504 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10505 else 10700 else
10506 case ${MACOSX_DEPLOYMENT_TARGET} in 10701 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10507 10.[012]) 10702 fi
10508 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 10703 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10509 ;; 10704 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10510 10.*) 10705 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10511 allow_undefined_flag_CXX='-undefined dynamic_lookup' 10706 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10512 ;; 10707 else
10513 esac 10708 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10709 fi
10710 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}'
10711 else
10712 case $cc_basename in
10713 xlc*)
10714 output_verbose_link_cmd='echo'
10715 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'
10716 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10717 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10718 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}'
10719 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}'
10720 ;;
10721 *)
10722 ld_shlibs_CXX=no
10723 ;;
10724 esac
10514 fi 10725 fi
10515 ;; 10726 ;;
10516 esac
10517 lt_int_apple_cc_single_mod=no
10518 output_verbose_link_cmd='echo'
10519 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10520 lt_int_apple_cc_single_mod=yes
10521 fi
10522 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10523 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10524 else
10525 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10526 fi
10527 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10528
10529 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10530 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10531 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10532 else
10533 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10534 fi
10535 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}'
10536 hardcode_direct_CXX=no
10537 hardcode_automatic_CXX=yes
10538 hardcode_shlibpath_var_CXX=unsupported
10539 whole_archive_flag_spec_CXX='-all_load $convenience'
10540 link_all_deplibs_CXX=yes
10541 else
10542 ld_shlibs_CXX=no
10543 fi
10544 ;;
10545 10727
10546 dgux*) 10728 dgux*)
10547 case $cc_basename in 10729 case $cc_basename in
10548 ec++) 10730 ec++*)
10549 # FIXME: insert proper C++ library support 10731 # FIXME: insert proper C++ library support
10550 ld_shlibs_CXX=no 10732 ld_shlibs_CXX=no
10551 ;; 10733 ;;
10552 ghcx) 10734 ghcx*)
10553 # Green Hills C++ Compiler 10735 # Green Hills C++ Compiler
10554 # FIXME: insert proper C++ library support 10736 # FIXME: insert proper C++ library support
10555 ld_shlibs_CXX=no 10737 ld_shlibs_CXX=no
@@ -10560,14 +10742,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10560 ;; 10742 ;;
10561 esac 10743 esac
10562 ;; 10744 ;;
10563 freebsd12*) 10745 freebsd[12]*)
10564 # C++ shared libraries reported to be fairly broken before switch to ELF 10746 # C++ shared libraries reported to be fairly broken before switch to ELF
10565 ld_shlibs_CXX=no 10747 ld_shlibs_CXX=no
10566 ;; 10748 ;;
10567 freebsd-elf*) 10749 freebsd-elf*)
10568 archive_cmds_need_lc_CXX=no 10750 archive_cmds_need_lc_CXX=no
10569 ;; 10751 ;;
10570 freebsd* | kfreebsd*-gnu) 10752 freebsd* | kfreebsd*-gnu | dragonfly*)
10571 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10753 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10572 # conventions 10754 # conventions
10573 ld_shlibs_CXX=yes 10755 ld_shlibs_CXX=yes
@@ -10584,11 +10766,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10584 # location of the library. 10766 # location of the library.
10585 10767
10586 case $cc_basename in 10768 case $cc_basename in
10587 CC) 10769 CC*)
10588 # FIXME: insert proper C++ library support 10770 # FIXME: insert proper C++ library support
10589 ld_shlibs_CXX=no 10771 ld_shlibs_CXX=no
10590 ;; 10772 ;;
10591 aCC) 10773 aCC*)
10592 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10774 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10593 # Commands to make compiler produce verbose output that lists 10775 # Commands to make compiler produce verbose output that lists
10594 # what "hidden" libraries, object files and flags are used when 10776 # what "hidden" libraries, object files and flags are used when
@@ -10598,7 +10780,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10598 # explicitly linking system object files so we need to strip them 10780 # explicitly linking system object files so we need to strip them
10599 # from the output so that they don't get included in the library 10781 # from the output so that they don't get included in the library
10600 # dependencies. 10782 # dependencies.
10601 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10783 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10602 ;; 10784 ;;
10603 *) 10785 *)
10604 if test "$GXX" = yes; then 10786 if test "$GXX" = yes; then
@@ -10612,7 +10794,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10612 ;; 10794 ;;
10613 hpux10*|hpux11*) 10795 hpux10*|hpux11*)
10614 if test $with_gnu_ld = no; then 10796 if test $with_gnu_ld = no; then
10615 case "$host_cpu" in 10797 case $host_cpu in
10616 hppa*64*) 10798 hppa*64*)
10617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10799 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10618 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10800 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
@@ -10628,7 +10810,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10628 ;; 10810 ;;
10629 esac 10811 esac
10630 fi 10812 fi
10631 case "$host_cpu" in 10813 case $host_cpu in
10632 hppa*64*) 10814 hppa*64*)
10633 hardcode_direct_CXX=no 10815 hardcode_direct_CXX=no
10634 hardcode_shlibpath_var_CXX=no 10816 hardcode_shlibpath_var_CXX=no
@@ -10649,12 +10831,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10649 esac 10831 esac
10650 10832
10651 case $cc_basename in 10833 case $cc_basename in
10652 CC) 10834 CC*)
10653 # FIXME: insert proper C++ library support 10835 # FIXME: insert proper C++ library support
10654 ld_shlibs_CXX=no 10836 ld_shlibs_CXX=no
10655 ;; 10837 ;;
10656 aCC) 10838 aCC*)
10657 case "$host_cpu" in 10839 case $host_cpu in
10658 hppa*64*|ia64*) 10840 hppa*64*|ia64*)
10659 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10841 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10660 ;; 10842 ;;
@@ -10675,7 +10857,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10675 *) 10857 *)
10676 if test "$GXX" = yes; then 10858 if test "$GXX" = yes; then
10677 if test $with_gnu_ld = no; then 10859 if test $with_gnu_ld = no; then
10678 case "$host_cpu" in 10860 case $host_cpu in
10679 ia64*|hppa*64*) 10861 ia64*|hppa*64*)
10680 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10862 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10681 ;; 10863 ;;
@@ -10693,9 +10875,9 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10693 ;; 10875 ;;
10694 irix5* | irix6*) 10876 irix5* | irix6*)
10695 case $cc_basename in 10877 case $cc_basename in
10696 CC) 10878 CC*)
10697 # SGI C++ 10879 # SGI C++
10698 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 10880 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10699 10881
10700 # Archives containing C++ object files must be created using 10882 # Archives containing C++ object files must be created using
10701 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10883 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
@@ -10706,7 +10888,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10706 *) 10888 *)
10707 if test "$GXX" = yes; then 10889 if test "$GXX" = yes; then
10708 if test "$with_gnu_ld" = no; then 10890 if test "$with_gnu_ld" = no; then
10709 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 10891 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10710 else 10892 else
10711 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 10893 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10712 fi 10894 fi
@@ -10719,7 +10901,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10719 ;; 10901 ;;
10720 linux*) 10902 linux*)
10721 case $cc_basename in 10903 case $cc_basename in
10722 KCC) 10904 KCC*)
10723 # Kuck and Associates, Inc. (KAI) C++ Compiler 10905 # Kuck and Associates, Inc. (KAI) C++ Compiler
10724 10906
10725 # KCC will only create a shared library if the output file 10907 # KCC will only create a shared library if the output file
@@ -10744,17 +10926,41 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10744 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10926 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10745 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10927 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10746 ;; 10928 ;;
10747 icpc) 10929 icpc*)
10748 # Intel C++ 10930 # Intel C++
10749 with_gnu_ld=yes 10931 with_gnu_ld=yes
10932 # version 8.0 and above of icpc choke on multiply defined symbols
10933 # if we add $predep_objects and $postdep_objects, however 7.1 and
10934 # earlier do not add the objects themselves.
10935 case `$CC -V 2>&1` in
10936 *"Version 7."*)
10937 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10938 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10939 ;;
10940 *) # Version 8.0 or newer
10941 tmp_idyn=
10942 case $host_cpu in
10943 ia64*) tmp_idyn=' -i_dynamic';;
10944 esac
10945 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10946 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10947 ;;
10948 esac
10750 archive_cmds_need_lc_CXX=no 10949 archive_cmds_need_lc_CXX=no
10751 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10752 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10753 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10754 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10755 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10952 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10756 ;; 10953 ;;
10757 cxx) 10954 pgCC*)
10955 # Portland Group C++ compiler
10956 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10957 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10958
10959 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10960 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10961 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10962 ;;
10963 cxx*)
10758 # Compaq C++ 10964 # Compaq C++
10759 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10760 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 10966 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
@@ -10785,7 +10991,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10785 ;; 10991 ;;
10786 mvs*) 10992 mvs*)
10787 case $cc_basename in 10993 case $cc_basename in
10788 cxx) 10994 cxx*)
10789 # FIXME: insert proper C++ library support 10995 # FIXME: insert proper C++ library support
10790 ld_shlibs_CXX=no 10996 ld_shlibs_CXX=no
10791 ;; 10997 ;;
@@ -10806,9 +11012,25 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10806 # Workaround some broken pre-1.5 toolchains 11012 # Workaround some broken pre-1.5 toolchains
10807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10808 ;; 11014 ;;
11015 openbsd2*)
11016 # C++ shared libraries are fairly broken
11017 ld_shlibs_CXX=no
11018 ;;
11019 openbsd*)
11020 hardcode_direct_CXX=yes
11021 hardcode_shlibpath_var_CXX=no
11022 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11023 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11025 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11026 export_dynamic_flag_spec_CXX='${wl}-E'
11027 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11028 fi
11029 output_verbose_link_cmd='echo'
11030 ;;
10809 osf3*) 11031 osf3*)
10810 case $cc_basename in 11032 case $cc_basename in
10811 KCC) 11033 KCC*)
10812 # Kuck and Associates, Inc. (KAI) C++ Compiler 11034 # Kuck and Associates, Inc. (KAI) C++ Compiler
10813 11035
10814 # KCC will only create a shared library if the output file 11036 # KCC will only create a shared library if the output file
@@ -10824,14 +11046,14 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10824 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11046 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10825 11047
10826 ;; 11048 ;;
10827 RCC) 11049 RCC*)
10828 # Rational C++ 2.4.1 11050 # Rational C++ 2.4.1
10829 # FIXME: insert proper C++ library support 11051 # FIXME: insert proper C++ library support
10830 ld_shlibs_CXX=no 11052 ld_shlibs_CXX=no
10831 ;; 11053 ;;
10832 cxx) 11054 cxx*)
10833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11055 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10834 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 11056 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10835 11057
10836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10837 hardcode_libdir_separator_CXX=: 11059 hardcode_libdir_separator_CXX=:
@@ -10849,7 +11071,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10849 *) 11071 *)
10850 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11072 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10851 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11073 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10852 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 11074 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10853 11075
10854 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10855 hardcode_libdir_separator_CXX=: 11077 hardcode_libdir_separator_CXX=:
@@ -10868,7 +11090,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10868 ;; 11090 ;;
10869 osf4* | osf5*) 11091 osf4* | osf5*)
10870 case $cc_basename in 11092 case $cc_basename in
10871 KCC) 11093 KCC*)
10872 # Kuck and Associates, Inc. (KAI) C++ Compiler 11094 # Kuck and Associates, Inc. (KAI) C++ Compiler
10873 11095
10874 # KCC will only create a shared library if the output file 11096 # KCC will only create a shared library if the output file
@@ -10883,17 +11105,17 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10883 # the KAI C++ compiler. 11105 # the KAI C++ compiler.
10884 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11106 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10885 ;; 11107 ;;
10886 RCC) 11108 RCC*)
10887 # Rational C++ 2.4.1 11109 # Rational C++ 2.4.1
10888 # FIXME: insert proper C++ library support 11110 # FIXME: insert proper C++ library support
10889 ld_shlibs_CXX=no 11111 ld_shlibs_CXX=no
10890 ;; 11112 ;;
10891 cxx) 11113 cxx*)
10892 allow_undefined_flag_CXX=' -expect_unresolved \*' 11114 allow_undefined_flag_CXX=' -expect_unresolved \*'
10893 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 11115 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10894 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11116 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10895 echo "-hidden">> $lib.exp~ 11117 echo "-hidden">> $lib.exp~
10896 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ 11118 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10897 $rm $lib.exp' 11119 $rm $lib.exp'
10898 11120
10899 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11121 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
@@ -10912,7 +11134,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10912 *) 11134 *)
10913 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10914 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11136 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10915 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 11137 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10916 11138
10917 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11139 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10918 hardcode_libdir_separator_CXX=: 11140 hardcode_libdir_separator_CXX=:
@@ -10936,7 +11158,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10936 sco*) 11158 sco*)
10937 archive_cmds_need_lc_CXX=no 11159 archive_cmds_need_lc_CXX=no
10938 case $cc_basename in 11160 case $cc_basename in
10939 CC) 11161 CC*)
10940 # FIXME: insert proper C++ library support 11162 # FIXME: insert proper C++ library support
10941 ld_shlibs_CXX=no 11163 ld_shlibs_CXX=no
10942 ;; 11164 ;;
@@ -10948,12 +11170,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10948 ;; 11170 ;;
10949 sunos4*) 11171 sunos4*)
10950 case $cc_basename in 11172 case $cc_basename in
10951 CC) 11173 CC*)
10952 # Sun C++ 4.x 11174 # Sun C++ 4.x
10953 # FIXME: insert proper C++ library support 11175 # FIXME: insert proper C++ library support
10954 ld_shlibs_CXX=no 11176 ld_shlibs_CXX=no
10955 ;; 11177 ;;
10956 lcc) 11178 lcc*)
10957 # Lucid 11179 # Lucid
10958 # FIXME: insert proper C++ library support 11180 # FIXME: insert proper C++ library support
10959 ld_shlibs_CXX=no 11181 ld_shlibs_CXX=no
@@ -10966,36 +11188,33 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10966 ;; 11188 ;;
10967 solaris*) 11189 solaris*)
10968 case $cc_basename in 11190 case $cc_basename in
10969 CC) 11191 CC*)
10970 # Sun C++ 4.2, 5.x and Centerline C++ 11192 # Sun C++ 4.2, 5.x and Centerline C++
11193 archive_cmds_need_lc_CXX=yes
10971 no_undefined_flag_CXX=' -zdefs' 11194 no_undefined_flag_CXX=' -zdefs'
10972 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11195 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10973 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11196 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10974 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11197 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10975 11198
10976 hardcode_libdir_flag_spec_CXX='-R$libdir' 11199 hardcode_libdir_flag_spec_CXX='-R$libdir'
10977 hardcode_shlibpath_var_CXX=no 11200 hardcode_shlibpath_var_CXX=no
10978 case $host_os in 11201 case $host_os in
10979 solaris2.0-5 | solaris2.0-5.*) ;; 11202 solaris2.[0-5] | solaris2.[0-5].*) ;;
10980 *) 11203 *)
10981 # The C++ compiler is used as linker so we must use $wl 11204 # The C++ compiler is used as linker so we must use $wl
10982 # flag to pass the commands to the underlying system 11205 # flag to pass the commands to the underlying system
10983 # linker. 11206 # linker. We must also pass each convience library through
11207 # to the system linker between allextract/defaultextract.
11208 # The C++ compiler will combine linker options so we
11209 # cannot just pass the convience library names through
11210 # without $wl.
10984 # Supported since Solaris 2.6 (maybe 2.5.1?) 11211 # Supported since Solaris 2.6 (maybe 2.5.1?)
10985 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11212 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'
10986 ;; 11213 ;;
10987 esac 11214 esac
10988 link_all_deplibs_CXX=yes 11215 link_all_deplibs_CXX=yes
10989 11216
10990 # Commands to make compiler produce verbose output that lists 11217 output_verbose_link_cmd='echo'
10991 # what "hidden" libraries, object files and flags are used when
10992 # linking a shared library.
10993 #
10994 # There doesn't appear to be a way to prevent this compiler from
10995 # explicitly linking system object files so we need to strip them
10996 # from the output so that they don't get included in the library
10997 # dependencies.
10998 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10999 11218
11000 # Archives containing C++ object files must be created using 11219 # Archives containing C++ object files must be created using
11001 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11220 # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -11003,7 +11222,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11003 # in the archive. 11222 # in the archive.
11004 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11223 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11005 ;; 11224 ;;
11006 gcx) 11225 gcx*)
11007 # Green Hills C++ Compiler 11226 # Green Hills C++ Compiler
11008 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11009 11228
@@ -11046,7 +11265,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11046 ;; 11265 ;;
11047 tandem*) 11266 tandem*)
11048 case $cc_basename in 11267 case $cc_basename in
11049 NCC) 11268 NCC*)
11050 # NonStop-UX NCC 3.20 11269 # NonStop-UX NCC 3.20
11051 # FIXME: insert proper C++ library support 11270 # FIXME: insert proper C++ library support
11052 ld_shlibs_CXX=no 11271 ld_shlibs_CXX=no
@@ -11099,7 +11318,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099 # The `*' in the case matches for architectures that use `case' in 11318 # The `*' in the case matches for architectures that use `case' in
11100 # $output_verbose_cmd can trigger glob expansion during the loop 11319 # $output_verbose_cmd can trigger glob expansion during the loop
11101 # eval without this substitution. 11320 # eval without this substitution.
11102 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 11321 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11103 11322
11104 for p in `eval $output_verbose_link_cmd`; do 11323 for p in `eval $output_verbose_link_cmd`; do
11105 case $p in 11324 case $p in
@@ -11175,6 +11394,20 @@ fi
11175 11394
11176$rm -f confest.$objext 11395$rm -f confest.$objext
11177 11396
11397# PORTME: override above test on systems where it is broken
11398case $host_os in
11399solaris*)
11400 case $cc_basename in
11401 CC*)
11402 # Adding this requires a known-good setup of shared libraries for
11403 # Sun compiler versions before 5.6, else PIC objects from an old
11404 # archive will be linked into the output, leading to subtle bugs.
11405 postdeps_CXX='-lCstd -lCrun'
11406 ;;
11407 esac
11408esac
11409
11410
11178case " $postdeps_CXX " in 11411case " $postdeps_CXX " in
11179*" -lc "*) archive_cmds_need_lc_CXX=no ;; 11412*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11180esac 11413esac
@@ -11230,7 +11463,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11230 hpux*) 11463 hpux*)
11231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11464 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11232 # not for PA HP-UX. 11465 # not for PA HP-UX.
11233 case "$host_cpu" in 11466 case $host_cpu in
11234 hppa*64*|ia64*) 11467 hppa*64*|ia64*)
11235 ;; 11468 ;;
11236 *) 11469 *)
@@ -11255,18 +11488,28 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11255 ;; 11488 ;;
11256 chorus*) 11489 chorus*)
11257 case $cc_basename in 11490 case $cc_basename in
11258 cxch68) 11491 cxch68*)
11259 # Green Hills C++ Compiler 11492 # Green Hills C++ Compiler
11260 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 11493 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11261 ;; 11494 ;;
11262 esac 11495 esac
11263 ;; 11496 ;;
11497 darwin*)
11498 # PIC is the default on this platform
11499 # Common symbols not allowed in MH_DYLIB files
11500 case $cc_basename in
11501 xlc*)
11502 lt_prog_compiler_pic_CXX='-qnocommon'
11503 lt_prog_compiler_wl_CXX='-Wl,'
11504 ;;
11505 esac
11506 ;;
11264 dgux*) 11507 dgux*)
11265 case $cc_basename in 11508 case $cc_basename in
11266 ec++) 11509 ec++*)
11267 lt_prog_compiler_pic_CXX='-KPIC' 11510 lt_prog_compiler_pic_CXX='-KPIC'
11268 ;; 11511 ;;
11269 ghcx) 11512 ghcx*)
11270 # Green Hills C++ Compiler 11513 # Green Hills C++ Compiler
11271 lt_prog_compiler_pic_CXX='-pic' 11514 lt_prog_compiler_pic_CXX='-pic'
11272 ;; 11515 ;;
@@ -11274,22 +11517,22 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11274 ;; 11517 ;;
11275 esac 11518 esac
11276 ;; 11519 ;;
11277 freebsd* | kfreebsd*-gnu) 11520 freebsd* | kfreebsd*-gnu | dragonfly*)
11278 # FreeBSD uses GNU C++ 11521 # FreeBSD uses GNU C++
11279 ;; 11522 ;;
11280 hpux9* | hpux10* | hpux11*) 11523 hpux9* | hpux10* | hpux11*)
11281 case $cc_basename in 11524 case $cc_basename in
11282 CC) 11525 CC*)
11283 lt_prog_compiler_wl_CXX='-Wl,' 11526 lt_prog_compiler_wl_CXX='-Wl,'
11284 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11527 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11285 if test "$host_cpu" != ia64; then 11528 if test "$host_cpu" != ia64; then
11286 lt_prog_compiler_pic_CXX='+Z' 11529 lt_prog_compiler_pic_CXX='+Z'
11287 fi 11530 fi
11288 ;; 11531 ;;
11289 aCC) 11532 aCC*)
11290 lt_prog_compiler_wl_CXX='-Wl,' 11533 lt_prog_compiler_wl_CXX='-Wl,'
11291 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11534 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11292 case "$host_cpu" in 11535 case $host_cpu in
11293 hppa*64*|ia64*) 11536 hppa*64*|ia64*)
11294 # +Z the default 11537 # +Z the default
11295 ;; 11538 ;;
@@ -11304,7 +11547,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11304 ;; 11547 ;;
11305 irix5* | irix6* | nonstopux*) 11548 irix5* | irix6* | nonstopux*)
11306 case $cc_basename in 11549 case $cc_basename in
11307 CC) 11550 CC*)
11308 lt_prog_compiler_wl_CXX='-Wl,' 11551 lt_prog_compiler_wl_CXX='-Wl,'
11309 lt_prog_compiler_static_CXX='-non_shared' 11552 lt_prog_compiler_static_CXX='-non_shared'
11310 # CC pic flag -KPIC is the default. 11553 # CC pic flag -KPIC is the default.
@@ -11315,18 +11558,24 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11315 ;; 11558 ;;
11316 linux*) 11559 linux*)
11317 case $cc_basename in 11560 case $cc_basename in
11318 KCC) 11561 KCC*)
11319 # KAI C++ Compiler 11562 # KAI C++ Compiler
11320 lt_prog_compiler_wl_CXX='--backend -Wl,' 11563 lt_prog_compiler_wl_CXX='--backend -Wl,'
11321 lt_prog_compiler_pic_CXX='-fPIC' 11564 lt_prog_compiler_pic_CXX='-fPIC'
11322 ;; 11565 ;;
11323 icpc) 11566 icpc* | ecpc*)
11324 # Intel C++ 11567 # Intel C++
11325 lt_prog_compiler_wl_CXX='-Wl,' 11568 lt_prog_compiler_wl_CXX='-Wl,'
11326 lt_prog_compiler_pic_CXX='-KPIC' 11569 lt_prog_compiler_pic_CXX='-KPIC'
11327 lt_prog_compiler_static_CXX='-static' 11570 lt_prog_compiler_static_CXX='-static'
11328 ;; 11571 ;;
11329 cxx) 11572 pgCC*)
11573 # Portland Group C++ compiler.
11574 lt_prog_compiler_wl_CXX='-Wl,'
11575 lt_prog_compiler_pic_CXX='-fpic'
11576 lt_prog_compiler_static_CXX='-Bstatic'
11577 ;;
11578 cxx*)
11330 # Compaq C++ 11579 # Compaq C++
11331 # Make sure the PIC flag is empty. It appears that all Alpha 11580 # Make sure the PIC flag is empty. It appears that all Alpha
11332 # Linux and Compaq Tru64 Unix objects are PIC. 11581 # Linux and Compaq Tru64 Unix objects are PIC.
@@ -11343,7 +11592,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11343 ;; 11592 ;;
11344 mvs*) 11593 mvs*)
11345 case $cc_basename in 11594 case $cc_basename in
11346 cxx) 11595 cxx*)
11347 lt_prog_compiler_pic_CXX='-W c,exportall' 11596 lt_prog_compiler_pic_CXX='-W c,exportall'
11348 ;; 11597 ;;
11349 *) 11598 *)
@@ -11354,14 +11603,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11354 ;; 11603 ;;
11355 osf3* | osf4* | osf5*) 11604 osf3* | osf4* | osf5*)
11356 case $cc_basename in 11605 case $cc_basename in
11357 KCC) 11606 KCC*)
11358 lt_prog_compiler_wl_CXX='--backend -Wl,' 11607 lt_prog_compiler_wl_CXX='--backend -Wl,'
11359 ;; 11608 ;;
11360 RCC) 11609 RCC*)
11361 # Rational C++ 2.4.1 11610 # Rational C++ 2.4.1
11362 lt_prog_compiler_pic_CXX='-pic' 11611 lt_prog_compiler_pic_CXX='-pic'
11363 ;; 11612 ;;
11364 cxx) 11613 cxx*)
11365 # Digital/Compaq C++ 11614 # Digital/Compaq C++
11366 lt_prog_compiler_wl_CXX='-Wl,' 11615 lt_prog_compiler_wl_CXX='-Wl,'
11367 # Make sure the PIC flag is empty. It appears that all Alpha 11616 # Make sure the PIC flag is empty. It appears that all Alpha
@@ -11377,7 +11626,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11377 ;; 11626 ;;
11378 sco*) 11627 sco*)
11379 case $cc_basename in 11628 case $cc_basename in
11380 CC) 11629 CC*)
11381 lt_prog_compiler_pic_CXX='-fPIC' 11630 lt_prog_compiler_pic_CXX='-fPIC'
11382 ;; 11631 ;;
11383 *) 11632 *)
@@ -11386,13 +11635,13 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11386 ;; 11635 ;;
11387 solaris*) 11636 solaris*)
11388 case $cc_basename in 11637 case $cc_basename in
11389 CC) 11638 CC*)
11390 # Sun C++ 4.2, 5.x and Centerline C++ 11639 # Sun C++ 4.2, 5.x and Centerline C++
11391 lt_prog_compiler_pic_CXX='-KPIC' 11640 lt_prog_compiler_pic_CXX='-KPIC'
11392 lt_prog_compiler_static_CXX='-Bstatic' 11641 lt_prog_compiler_static_CXX='-Bstatic'
11393 lt_prog_compiler_wl_CXX='-Qoption ld ' 11642 lt_prog_compiler_wl_CXX='-Qoption ld '
11394 ;; 11643 ;;
11395 gcx) 11644 gcx*)
11396 # Green Hills C++ Compiler 11645 # Green Hills C++ Compiler
11397 lt_prog_compiler_pic_CXX='-PIC' 11646 lt_prog_compiler_pic_CXX='-PIC'
11398 ;; 11647 ;;
@@ -11402,12 +11651,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11402 ;; 11651 ;;
11403 sunos4*) 11652 sunos4*)
11404 case $cc_basename in 11653 case $cc_basename in
11405 CC) 11654 CC*)
11406 # Sun C++ 4.x 11655 # Sun C++ 4.x
11407 lt_prog_compiler_pic_CXX='-pic' 11656 lt_prog_compiler_pic_CXX='-pic'
11408 lt_prog_compiler_static_CXX='-Bstatic' 11657 lt_prog_compiler_static_CXX='-Bstatic'
11409 ;; 11658 ;;
11410 lcc) 11659 lcc*)
11411 # Lucid 11660 # Lucid
11412 lt_prog_compiler_pic_CXX='-pic' 11661 lt_prog_compiler_pic_CXX='-pic'
11413 ;; 11662 ;;
@@ -11417,7 +11666,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11417 ;; 11666 ;;
11418 tandem*) 11667 tandem*)
11419 case $cc_basename in 11668 case $cc_basename in
11420 NCC) 11669 NCC*)
11421 # NonStop-UX NCC 3.20 11670 # NonStop-UX NCC 3.20
11422 lt_prog_compiler_pic_CXX='-KPIC' 11671 lt_prog_compiler_pic_CXX='-KPIC'
11423 ;; 11672 ;;
@@ -11458,18 +11707,20 @@ else
11458 # with a dollar sign (not a hyphen), so the echo should work correctly. 11707 # with a dollar sign (not a hyphen), so the echo should work correctly.
11459 # The option is referenced via a variable to avoid confusing sed. 11708 # The option is referenced via a variable to avoid confusing sed.
11460 lt_compile=`echo "$ac_compile" | $SED \ 11709 lt_compile=`echo "$ac_compile" | $SED \
11461 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11463 -e 's:$: $lt_compiler_flag:'` 11712 -e 's:$: $lt_compiler_flag:'`
11464 (eval echo "\"\$as_me:11464: $lt_compile\"" >&5) 11713 (eval echo "\"\$as_me:11713: $lt_compile\"" >&5)
11465 (eval "$lt_compile" 2>conftest.err) 11714 (eval "$lt_compile" 2>conftest.err)
11466 ac_status=$? 11715 ac_status=$?
11467 cat conftest.err >&5 11716 cat conftest.err >&5
11468 echo "$as_me:11468: \$? = $ac_status" >&5 11717 echo "$as_me:11717: \$? = $ac_status" >&5
11469 if (exit $ac_status) && test -s "$ac_outfile"; then 11718 if (exit $ac_status) && test -s "$ac_outfile"; then
11470 # The compiler can only warn and ignore the option if not recognized 11719 # The compiler can only warn and ignore the option if not recognized
11471 # So say no if there are warnings 11720 # So say no if there are warnings other than the usual output.
11472 if test ! -s conftest.err; then 11721 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11722 $SED '/^$/d' conftest.err >conftest.er2
11723 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11473 lt_prog_compiler_pic_works_CXX=yes 11724 lt_prog_compiler_pic_works_CXX=yes
11474 fi 11725 fi
11475 fi 11726 fi
@@ -11490,7 +11741,7 @@ else
11490fi 11741fi
11491 11742
11492fi 11743fi
11493case "$host_os" in 11744case $host_os in
11494 # For platforms which do not support PIC, -DPIC is meaningless: 11745 # For platforms which do not support PIC, -DPIC is meaningless:
11495 *djgpp*) 11746 *djgpp*)
11496 lt_prog_compiler_pic_CXX= 11747 lt_prog_compiler_pic_CXX=
@@ -11518,23 +11769,25 @@ else
11518 # Note that $ac_compile itself does not contain backslashes and begins 11769 # Note that $ac_compile itself does not contain backslashes and begins
11519 # with a dollar sign (not a hyphen), so the echo should work correctly. 11770 # with a dollar sign (not a hyphen), so the echo should work correctly.
11520 lt_compile=`echo "$ac_compile" | $SED \ 11771 lt_compile=`echo "$ac_compile" | $SED \
11521 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 11772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11523 -e 's:$: $lt_compiler_flag:'` 11774 -e 's:$: $lt_compiler_flag:'`
11524 (eval echo "\"\$as_me:11524: $lt_compile\"" >&5) 11775 (eval echo "\"\$as_me:11775: $lt_compile\"" >&5)
11525 (eval "$lt_compile" 2>out/conftest.err) 11776 (eval "$lt_compile" 2>out/conftest.err)
11526 ac_status=$? 11777 ac_status=$?
11527 cat out/conftest.err >&5 11778 cat out/conftest.err >&5
11528 echo "$as_me:11528: \$? = $ac_status" >&5 11779 echo "$as_me:11779: \$? = $ac_status" >&5
11529 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11530 then 11781 then
11531 # The compiler can only warn and ignore the option if not recognized 11782 # The compiler can only warn and ignore the option if not recognized
11532 # So say no if there are warnings 11783 # So say no if there are warnings
11533 if test ! -s out/conftest.err; then 11784 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11785 $SED '/^$/d' out/conftest.err >out/conftest.er2
11786 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11534 lt_cv_prog_compiler_c_o_CXX=yes 11787 lt_cv_prog_compiler_c_o_CXX=yes
11535 fi 11788 fi
11536 fi 11789 fi
11537 chmod u+w . 11790 chmod u+w . 2>&5
11538 $rm conftest* 11791 $rm conftest*
11539 # SGI C++ compiler will create directory out/ii_files/ for 11792 # SGI C++ compiler will create directory out/ii_files/ for
11540 # template instantiation 11793 # template instantiation
@@ -11589,7 +11842,7 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
11589 export_symbols_cmds_CXX="$ltdll_cmds" 11842 export_symbols_cmds_CXX="$ltdll_cmds"
11590 ;; 11843 ;;
11591 cygwin* | mingw*) 11844 cygwin* | mingw*)
11592 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11845 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'
11593 ;; 11846 ;;
11594 linux*) 11847 linux*)
11595 link_all_deplibs_CXX=no 11848 link_all_deplibs_CXX=no
@@ -11772,7 +12025,7 @@ beos*)
11772 shlibpath_var=LIBRARY_PATH 12025 shlibpath_var=LIBRARY_PATH
11773 ;; 12026 ;;
11774 12027
11775bsdi4*) 12028bsdi[45]*)
11776 version_type=linux 12029 version_type=linux
11777 need_version=no 12030 need_version=no
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -11800,7 +12053,8 @@ cygwin* | mingw* | pw32*)
11800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11801 dldir=$destdir/`dirname \$dlpath`~ 12054 dldir=$destdir/`dirname \$dlpath`~
11802 test -d \$dldir || mkdir -p \$dldir~ 12055 test -d \$dldir || mkdir -p \$dldir~
11803 $install_prog $dir/$dlname \$dldir/$dlname' 12056 $install_prog $dir/$dlname \$dldir/$dlname~
12057 chmod a+x \$dldir/$dlname'
11804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11805 dlpath=$dir/\$dldll~ 12059 dlpath=$dir/\$dldll~
11806 $rm \$dlpath' 12060 $rm \$dlpath'
@@ -11830,7 +12084,7 @@ cygwin* | mingw* | pw32*)
11830 ;; 12084 ;;
11831 pw32*) 12085 pw32*)
11832 # pw32 DLLs use 'pw' prefix rather than 'lib' 12086 # pw32 DLLs use 'pw' prefix rather than 'lib'
11833 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 12087 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11834 ;; 12088 ;;
11835 esac 12089 esac
11836 ;; 12090 ;;
@@ -11853,7 +12107,7 @@ darwin* | rhapsody*)
11853 soname_spec='${libname}${release}${major}$shared_ext' 12107 soname_spec='${libname}${release}${major}$shared_ext'
11854 shlibpath_overrides_runpath=yes 12108 shlibpath_overrides_runpath=yes
11855 shlibpath_var=DYLD_LIBRARY_PATH 12109 shlibpath_var=DYLD_LIBRARY_PATH
11856 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 12110 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11857 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 12111 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11858 if test "$GCC" = yes; then 12112 if test "$GCC" = yes; then
11859 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"` 12113 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"`
@@ -11888,8 +12142,17 @@ kfreebsd*-gnu)
11888 dynamic_linker='GNU ld.so' 12142 dynamic_linker='GNU ld.so'
11889 ;; 12143 ;;
11890 12144
11891freebsd*) 12145freebsd* | dragonfly*)
11892 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 12146 # DragonFly does not have aout. When/if they implement a new
12147 # versioning mechanism, adjust this.
12148 if test -x /usr/bin/objformat; then
12149 objformat=`/usr/bin/objformat`
12150 else
12151 case $host_os in
12152 freebsd[123]*) objformat=aout ;;
12153 *) objformat=elf ;;
12154 esac
12155 fi
11893 version_type=freebsd-$objformat 12156 version_type=freebsd-$objformat
11894 case $version_type in 12157 case $version_type in
11895 freebsd-elf*) 12158 freebsd-elf*)
@@ -11907,7 +12170,7 @@ freebsd*)
11907 freebsd2*) 12170 freebsd2*)
11908 shlibpath_overrides_runpath=yes 12171 shlibpath_overrides_runpath=yes
11909 ;; 12172 ;;
11910 freebsd3.01* | freebsdelf3.01*) 12173 freebsd3.[01]* | freebsdelf3.[01]*)
11911 shlibpath_overrides_runpath=yes 12174 shlibpath_overrides_runpath=yes
11912 hardcode_into_libs=yes 12175 hardcode_into_libs=yes
11913 ;; 12176 ;;
@@ -11934,7 +12197,7 @@ hpux9* | hpux10* | hpux11*)
11934 version_type=sunos 12197 version_type=sunos
11935 need_lib_prefix=no 12198 need_lib_prefix=no
11936 need_version=no 12199 need_version=no
11937 case "$host_cpu" in 12200 case $host_cpu in
11938 ia64*) 12201 ia64*)
11939 shrext_cmds='.so' 12202 shrext_cmds='.so'
11940 hardcode_into_libs=yes 12203 hardcode_into_libs=yes
@@ -12033,7 +12296,7 @@ linux*)
12033 12296
12034 # Append ld.so.conf contents to the search path 12297 # Append ld.so.conf contents to the search path
12035 if test -f /etc/ld.so.conf; then 12298 if test -f /etc/ld.so.conf; then
12036 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 12299 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' ' '`
12037 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12300 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12038 fi 12301 fi
12039 12302
@@ -12108,7 +12371,11 @@ nto-qnx*)
12108openbsd*) 12371openbsd*)
12109 version_type=sunos 12372 version_type=sunos
12110 need_lib_prefix=no 12373 need_lib_prefix=no
12111 need_version=yes 12374 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12375 case $host_os in
12376 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12377 *) need_version=no ;;
12378 esac
12112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12114 shlibpath_var=LD_LIBRARY_PATH 12381 shlibpath_var=LD_LIBRARY_PATH
@@ -12230,8 +12497,8 @@ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12230echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12497echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12231hardcode_action_CXX= 12498hardcode_action_CXX=
12232if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12499if test -n "$hardcode_libdir_flag_spec_CXX" || \
12233 test -n "$runpath_var CXX" || \ 12500 test -n "$runpath_var_CXX" || \
12234 test "X$hardcode_automatic_CXX"="Xyes" ; then 12501 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12235 12502
12236 # We can hardcode non-existant directories. 12503 # We can hardcode non-existant directories.
12237 if test "$hardcode_direct_CXX" != no && 12504 if test "$hardcode_direct_CXX" != no &&
@@ -12890,7 +13157,7 @@ else
12890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12891 lt_status=$lt_dlunknown 13158 lt_status=$lt_dlunknown
12892 cat > conftest.$ac_ext <<EOF 13159 cat > conftest.$ac_ext <<EOF
12893#line 12893 "configure" 13160#line 13160 "configure"
12894#include "confdefs.h" 13161#include "confdefs.h"
12895 13162
12896#if HAVE_DLFCN_H 13163#if HAVE_DLFCN_H
@@ -12956,7 +13223,7 @@ EOF
12956 ac_status=$? 13223 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13225 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12959 (./conftest; exit; ) 2>/dev/null 13226 (./conftest; exit; ) >&5 2>/dev/null
12960 lt_status=$? 13227 lt_status=$?
12961 case x$lt_status in 13228 case x$lt_status in
12962 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13229 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
@@ -12988,7 +13255,7 @@ else
12988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12989 lt_status=$lt_dlunknown 13256 lt_status=$lt_dlunknown
12990 cat > conftest.$ac_ext <<EOF 13257 cat > conftest.$ac_ext <<EOF
12991#line 12991 "configure" 13258#line 13258 "configure"
12992#include "confdefs.h" 13259#include "confdefs.h"
12993 13260
12994#if HAVE_DLFCN_H 13261#if HAVE_DLFCN_H
@@ -13054,7 +13321,7 @@ EOF
13054 ac_status=$? 13321 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13323 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13057 (./conftest; exit; ) 2>/dev/null 13324 (./conftest; exit; ) >&5 2>/dev/null
13058 lt_status=$? 13325 lt_status=$?
13059 case x$lt_status in 13326 case x$lt_status in
13060 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13327 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
@@ -13206,6 +13473,12 @@ fast_install=$enable_fast_install
13206# The host system. 13473# The host system.
13207host_alias=$host_alias 13474host_alias=$host_alias
13208host=$host 13475host=$host
13476host_os=$host_os
13477
13478# The build system.
13479build_alias=$build_alias
13480build=$build
13481build_os=$build_os
13209 13482
13210# An echo program that does not interpret backslashes. 13483# An echo program that does not interpret backslashes.
13211echo=$lt_echo 13484echo=$lt_echo
@@ -13282,7 +13555,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
13282# Does compiler simultaneously support -c and -o options? 13555# Does compiler simultaneously support -c and -o options?
13283compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13556compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13284 13557
13285# Must we lock files when doing compilation ? 13558# Must we lock files when doing compilation?
13286need_locks=$lt_need_locks 13559need_locks=$lt_need_locks
13287 13560
13288# Do we need the lib prefix for modules? 13561# Do we need the lib prefix for modules?
@@ -13563,12 +13836,35 @@ LTCC=${LTCC-"$CC"}
13563compiler=$CC 13836compiler=$CC
13564 13837
13565 13838
13839# save warnings/boilerplate of simple test code
13840ac_outfile=conftest.$ac_objext
13841printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13842eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13843_lt_compiler_boilerplate=`cat conftest.err`
13844$rm conftest*
13845
13846ac_outfile=conftest.$ac_objext
13847printf "$lt_simple_link_test_code" >conftest.$ac_ext
13848eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13849_lt_linker_boilerplate=`cat conftest.err`
13850$rm conftest*
13851
13852
13566# Allow CC to be a program name with arguments. 13853# Allow CC to be a program name with arguments.
13567lt_save_CC="$CC" 13854lt_save_CC="$CC"
13568CC=${F77-"f77"} 13855CC=${F77-"f77"}
13569compiler=$CC 13856compiler=$CC
13570compiler_F77=$CC 13857compiler_F77=$CC
13571cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 13858for cc_temp in $compiler""; do
13859 case $cc_temp in
13860 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13861 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13862 \-*) ;;
13863 *) break;;
13864 esac
13865done
13866cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13867
13572 13868
13573echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13869echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13574echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13870echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
@@ -13581,7 +13877,7 @@ test "$can_build_shared" = "no" && enable_shared=no
13581 13877
13582# On AIX, shared libraries and static libraries use the same namespace, and 13878# On AIX, shared libraries and static libraries use the same namespace, and
13583# are all built from PIC. 13879# are all built from PIC.
13584case "$host_os" in 13880case $host_os in
13585aix3*) 13881aix3*)
13586 test "$enable_shared" = yes && enable_static=no 13882 test "$enable_shared" = yes && enable_static=no
13587 if test -n "$RANLIB"; then 13883 if test -n "$RANLIB"; then
@@ -13590,7 +13886,9 @@ aix3*)
13590 fi 13886 fi
13591 ;; 13887 ;;
13592aix4* | aix5*) 13888aix4* | aix5*)
13593 test "$enable_shared" = yes && enable_static=no 13889 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13890 test "$enable_shared" = yes && enable_static=no
13891 fi
13594 ;; 13892 ;;
13595esac 13893esac
13596echo "$as_me:$LINENO: result: $enable_shared" >&5 13894echo "$as_me:$LINENO: result: $enable_shared" >&5
@@ -13667,7 +13965,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13667 hpux*) 13965 hpux*)
13668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13669 # not for PA HP-UX. 13967 # not for PA HP-UX.
13670 case "$host_cpu" in 13968 case $host_cpu in
13671 hppa*64*|ia64*) 13969 hppa*64*|ia64*)
13672 # +Z the default 13970 # +Z the default
13673 ;; 13971 ;;
@@ -13693,6 +13991,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13693 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13991 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13694 fi 13992 fi
13695 ;; 13993 ;;
13994 darwin*)
13995 # PIC is the default on this platform
13996 # Common symbols not allowed in MH_DYLIB files
13997 case $cc_basename in
13998 xlc*)
13999 lt_prog_compiler_pic_F77='-qnocommon'
14000 lt_prog_compiler_wl_F77='-Wl,'
14001 ;;
14002 esac
14003 ;;
13696 14004
13697 mingw* | pw32* | os2*) 14005 mingw* | pw32* | os2*)
13698 # This hack is so that the source file can tell whether it is being 14006 # This hack is so that the source file can tell whether it is being
@@ -13704,7 +14012,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13704 lt_prog_compiler_wl_F77='-Wl,' 14012 lt_prog_compiler_wl_F77='-Wl,'
13705 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14013 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13706 # not for PA HP-UX. 14014 # not for PA HP-UX.
13707 case "$host_cpu" in 14015 case $host_cpu in
13708 hppa*64*|ia64*) 14016 hppa*64*|ia64*)
13709 # +Z the default 14017 # +Z the default
13710 ;; 14018 ;;
@@ -13728,12 +14036,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13728 ;; 14036 ;;
13729 14037
13730 linux*) 14038 linux*)
13731 case $CC in 14039 case $cc_basename in
13732 icc* | ecc*) 14040 icc* | ecc*)
13733 lt_prog_compiler_wl_F77='-Wl,' 14041 lt_prog_compiler_wl_F77='-Wl,'
13734 lt_prog_compiler_pic_F77='-KPIC' 14042 lt_prog_compiler_pic_F77='-KPIC'
13735 lt_prog_compiler_static_F77='-static' 14043 lt_prog_compiler_static_F77='-static'
13736 ;; 14044 ;;
14045 pgcc* | pgf77* | pgf90* | pgf95*)
14046 # Portland Group compilers (*not* the Pentium gcc compiler,
14047 # which looks to be a dead project)
14048 lt_prog_compiler_wl_F77='-Wl,'
14049 lt_prog_compiler_pic_F77='-fpic'
14050 lt_prog_compiler_static_F77='-Bstatic'
14051 ;;
13737 ccc*) 14052 ccc*)
13738 lt_prog_compiler_wl_F77='-Wl,' 14053 lt_prog_compiler_wl_F77='-Wl,'
13739 # All Alpha code is PIC. 14054 # All Alpha code is PIC.
@@ -13754,9 +14069,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13754 ;; 14069 ;;
13755 14070
13756 solaris*) 14071 solaris*)
13757 lt_prog_compiler_wl_F77='-Wl,'
13758 lt_prog_compiler_pic_F77='-KPIC' 14072 lt_prog_compiler_pic_F77='-KPIC'
13759 lt_prog_compiler_static_F77='-Bstatic' 14073 lt_prog_compiler_static_F77='-Bstatic'
14074 case $cc_basename in
14075 f77* | f90* | f95*)
14076 lt_prog_compiler_wl_F77='-Qoption ld ';;
14077 *)
14078 lt_prog_compiler_wl_F77='-Wl,';;
14079 esac
13760 ;; 14080 ;;
13761 14081
13762 sunos4*) 14082 sunos4*)
@@ -13778,6 +14098,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13778 fi 14098 fi
13779 ;; 14099 ;;
13780 14100
14101 unicos*)
14102 lt_prog_compiler_wl_F77='-Wl,'
14103 lt_prog_compiler_can_build_shared_F77=no
14104 ;;
14105
13781 uts4*) 14106 uts4*)
13782 lt_prog_compiler_pic_F77='-pic' 14107 lt_prog_compiler_pic_F77='-pic'
13783 lt_prog_compiler_static_F77='-Bstatic' 14108 lt_prog_compiler_static_F77='-Bstatic'
@@ -13812,18 +14137,20 @@ else
13812 # with a dollar sign (not a hyphen), so the echo should work correctly. 14137 # with a dollar sign (not a hyphen), so the echo should work correctly.
13813 # The option is referenced via a variable to avoid confusing sed. 14138 # The option is referenced via a variable to avoid confusing sed.
13814 lt_compile=`echo "$ac_compile" | $SED \ 14139 lt_compile=`echo "$ac_compile" | $SED \
13815 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13817 -e 's:$: $lt_compiler_flag:'` 14142 -e 's:$: $lt_compiler_flag:'`
13818 (eval echo "\"\$as_me:13818: $lt_compile\"" >&5) 14143 (eval echo "\"\$as_me:14143: $lt_compile\"" >&5)
13819 (eval "$lt_compile" 2>conftest.err) 14144 (eval "$lt_compile" 2>conftest.err)
13820 ac_status=$? 14145 ac_status=$?
13821 cat conftest.err >&5 14146 cat conftest.err >&5
13822 echo "$as_me:13822: \$? = $ac_status" >&5 14147 echo "$as_me:14147: \$? = $ac_status" >&5
13823 if (exit $ac_status) && test -s "$ac_outfile"; then 14148 if (exit $ac_status) && test -s "$ac_outfile"; then
13824 # The compiler can only warn and ignore the option if not recognized 14149 # The compiler can only warn and ignore the option if not recognized
13825 # So say no if there are warnings 14150 # So say no if there are warnings other than the usual output.
13826 if test ! -s conftest.err; then 14151 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14152 $SED '/^$/d' conftest.err >conftest.er2
14153 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13827 lt_prog_compiler_pic_works_F77=yes 14154 lt_prog_compiler_pic_works_F77=yes
13828 fi 14155 fi
13829 fi 14156 fi
@@ -13844,7 +14171,7 @@ else
13844fi 14171fi
13845 14172
13846fi 14173fi
13847case "$host_os" in 14174case $host_os in
13848 # For platforms which do not support PIC, -DPIC is meaningless: 14175 # For platforms which do not support PIC, -DPIC is meaningless:
13849 *djgpp*) 14176 *djgpp*)
13850 lt_prog_compiler_pic_F77= 14177 lt_prog_compiler_pic_F77=
@@ -13872,23 +14199,25 @@ else
13872 # Note that $ac_compile itself does not contain backslashes and begins 14199 # Note that $ac_compile itself does not contain backslashes and begins
13873 # with a dollar sign (not a hyphen), so the echo should work correctly. 14200 # with a dollar sign (not a hyphen), so the echo should work correctly.
13874 lt_compile=`echo "$ac_compile" | $SED \ 14201 lt_compile=`echo "$ac_compile" | $SED \
13875 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13877 -e 's:$: $lt_compiler_flag:'` 14204 -e 's:$: $lt_compiler_flag:'`
13878 (eval echo "\"\$as_me:13878: $lt_compile\"" >&5) 14205 (eval echo "\"\$as_me:14205: $lt_compile\"" >&5)
13879 (eval "$lt_compile" 2>out/conftest.err) 14206 (eval "$lt_compile" 2>out/conftest.err)
13880 ac_status=$? 14207 ac_status=$?
13881 cat out/conftest.err >&5 14208 cat out/conftest.err >&5
13882 echo "$as_me:13882: \$? = $ac_status" >&5 14209 echo "$as_me:14209: \$? = $ac_status" >&5
13883 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13884 then 14211 then
13885 # The compiler can only warn and ignore the option if not recognized 14212 # The compiler can only warn and ignore the option if not recognized
13886 # So say no if there are warnings 14213 # So say no if there are warnings
13887 if test ! -s out/conftest.err; then 14214 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14215 $SED '/^$/d' out/conftest.err >out/conftest.er2
14216 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13888 lt_cv_prog_compiler_c_o_F77=yes 14217 lt_cv_prog_compiler_c_o_F77=yes
13889 fi 14218 fi
13890 fi 14219 fi
13891 chmod u+w . 14220 chmod u+w . 2>&5
13892 $rm conftest* 14221 $rm conftest*
13893 # SGI C++ compiler will create directory out/ii_files/ for 14222 # SGI C++ compiler will create directory out/ii_files/ for
13894 # template instantiation 14223 # template instantiation
@@ -13964,6 +14293,16 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
13964 # rely on this symbol name, it's probably fine to never include it in 14293 # rely on this symbol name, it's probably fine to never include it in
13965 # preloaded symbol tables. 14294 # preloaded symbol tables.
13966 extract_expsyms_cmds= 14295 extract_expsyms_cmds=
14296 # Just being paranoid about ensuring that cc_basename is set.
14297 for cc_temp in $compiler""; do
14298 case $cc_temp in
14299 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14300 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14301 \-*) ;;
14302 *) break;;
14303 esac
14304done
14305cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13967 14306
13968 case $host_os in 14307 case $host_os in
13969 cygwin* | mingw* | pw32*) 14308 cygwin* | mingw* | pw32*)
@@ -13984,6 +14323,27 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
13984 # If archive_cmds runs LD, not CC, wlarc should be empty 14323 # If archive_cmds runs LD, not CC, wlarc should be empty
13985 wlarc='${wl}' 14324 wlarc='${wl}'
13986 14325
14326 # Set some defaults for GNU ld with shared library support. These
14327 # are reset later if shared libraries are not supported. Putting them
14328 # here allows them to be overridden if necessary.
14329 runpath_var=LD_RUN_PATH
14330 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14331 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14332 # ancient GNU ld didn't support --whole-archive et. al.
14333 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14334 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14335 else
14336 whole_archive_flag_spec_F77=
14337 fi
14338 supports_anon_versioning=no
14339 case `$LD -v 2>/dev/null` in
14340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14343 *\ 2.11.*) ;; # other 2.11 versions
14344 *) supports_anon_versioning=yes ;;
14345 esac
14346
13987 # See if GNU ld supports shared libraries. 14347 # See if GNU ld supports shared libraries.
13988 case $host_os in 14348 case $host_os in
13989 aix3* | aix4* | aix5*) 14349 aix3* | aix4* | aix5*)
@@ -14034,7 +14394,7 @@ EOF
14034 allow_undefined_flag_F77=unsupported 14394 allow_undefined_flag_F77=unsupported
14035 always_export_symbols_F77=no 14395 always_export_symbols_F77=no
14036 enable_shared_with_static_runtimes_F77=yes 14396 enable_shared_with_static_runtimes_F77=yes
14037 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14397 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14038 14398
14039 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14399 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14040 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14400 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
@@ -14048,7 +14408,39 @@ EOF
14048 fi~ 14408 fi~
14049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14409 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14050 else 14410 else
14051 ld_shlibs=no 14411 ld_shlibs_F77=no
14412 fi
14413 ;;
14414
14415 linux*)
14416 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14417 tmp_addflag=
14418 case $cc_basename,$host_cpu in
14419 pgcc*) # Portland Group C compiler
14420 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14421 tmp_addflag=' $pic_flag'
14422 ;;
14423 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14424 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14425 tmp_addflag=' $pic_flag -Mnomain' ;;
14426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14427 tmp_addflag=' -i_dynamic' ;;
14428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14429 tmp_addflag=' -i_dynamic -nofor_main' ;;
14430 ifc* | ifort*) # Intel Fortran compiler
14431 tmp_addflag=' -nofor_main' ;;
14432 esac
14433 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14434
14435 if test $supports_anon_versioning = yes; then
14436 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14437 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14438 $echo "local: *; };" >> $output_objdir/$libname.ver~
14439 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14440 fi
14441 link_all_deplibs_F77=no
14442 else
14443 ld_shlibs_F77=no
14052 fi 14444 fi
14053 ;; 14445 ;;
14054 14446
@@ -14090,32 +14482,6 @@ EOF
14090 hardcode_shlibpath_var_F77=no 14482 hardcode_shlibpath_var_F77=no
14091 ;; 14483 ;;
14092 14484
14093 linux*)
14094 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14095 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14096 archive_cmds_F77="$tmp_archive_cmds"
14097 supports_anon_versioning=no
14098 case `$LD -v 2>/dev/null` in
14099 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14100 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14101 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14102 *\ 2.11.*) ;; # other 2.11 versions
14103 *) supports_anon_versioning=yes ;;
14104 esac
14105 if test $supports_anon_versioning = yes; then
14106 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14107cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14108$echo "local: *; };" >> $output_objdir/$libname.ver~
14109 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14110 else
14111 archive_expsym_cmds_F77="$tmp_archive_cmds"
14112 fi
14113 link_all_deplibs_F77=no
14114 else
14115 ld_shlibs_F77=no
14116 fi
14117 ;;
14118
14119 *) 14485 *)
14120 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14486 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14121 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
@@ -14126,16 +14492,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
14126 ;; 14492 ;;
14127 esac 14493 esac
14128 14494
14129 if test "$ld_shlibs_F77" = yes; then 14495 if test "$ld_shlibs_F77" = no; then
14130 runpath_var=LD_RUN_PATH 14496 runpath_var=
14131 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14497 hardcode_libdir_flag_spec_F77=
14132 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14498 export_dynamic_flag_spec_F77=
14133 # ancient GNU ld didn't support --whole-archive et. al. 14499 whole_archive_flag_spec_F77=
14134 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14135 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14136 else
14137 whole_archive_flag_spec_F77=
14138 fi
14139 fi 14500 fi
14140 else 14501 else
14141 # PORTME fill in a description of your system's linker (not GNU ld) 14502 # PORTME fill in a description of your system's linker (not GNU ld)
@@ -14199,7 +14560,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
14199 link_all_deplibs_F77=yes 14560 link_all_deplibs_F77=yes
14200 14561
14201 if test "$GCC" = yes; then 14562 if test "$GCC" = yes; then
14202 case $host_os in aix4.012|aix4.012.*) 14563 case $host_os in aix4.[012]|aix4.[012].*)
14203 # We only want to do this on AIX 4.2 and lower, the check 14564 # We only want to do this on AIX 4.2 and lower, the check
14204 # below for broken collect2 doesn't work under 4.3+ 14565 # below for broken collect2 doesn't work under 4.3+
14205 collect2name=`${CC} -print-prog-name=collect2` 14566 collect2name=`${CC} -print-prog-name=collect2`
@@ -14220,6 +14581,9 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
14220 fi 14581 fi
14221 esac 14582 esac
14222 shared_flag='-shared' 14583 shared_flag='-shared'
14584 if test "$aix_use_runtimelinking" = yes; then
14585 shared_flag="$shared_flag "'${wl}-G'
14586 fi
14223 else 14587 else
14224 # not using gcc 14588 # not using gcc
14225 if test "$host_cpu" = ia64; then 14589 if test "$host_cpu" = ia64; then
@@ -14344,7 +14708,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14344 # Exported symbols can be pulled into shared objects from archives 14708 # Exported symbols can be pulled into shared objects from archives
14345 whole_archive_flag_spec_F77=' ' 14709 whole_archive_flag_spec_F77=' '
14346 archive_cmds_need_lc_F77=yes 14710 archive_cmds_need_lc_F77=yes
14347 # This is similar to how AIX traditionally builds it's shared libraries. 14711 # This is similar to how AIX traditionally builds its shared libraries.
14348 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' 14712 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'
14349 fi 14713 fi
14350 fi 14714 fi
@@ -14358,7 +14722,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14358 ld_shlibs_F77=no 14722 ld_shlibs_F77=no
14359 ;; 14723 ;;
14360 14724
14361 bsdi4*) 14725 bsdi[45]*)
14362 export_dynamic_flag_spec_F77=-rdynamic 14726 export_dynamic_flag_spec_F77=-rdynamic
14363 ;; 14727 ;;
14364 14728
@@ -14379,57 +14743,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14379 old_archive_From_new_cmds_F77='true' 14743 old_archive_From_new_cmds_F77='true'
14380 # FIXME: Should let the user specify the lib program. 14744 # FIXME: Should let the user specify the lib program.
14381 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14745 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14382 fix_srcfile_path='`cygpath -w "$srcfile"`' 14746 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14383 enable_shared_with_static_runtimes_F77=yes 14747 enable_shared_with_static_runtimes_F77=yes
14384 ;; 14748 ;;
14385 14749
14386 darwin* | rhapsody*) 14750 darwin* | rhapsody*)
14387 if test "$GXX" = yes ; then 14751 case $host_os in
14388 archive_cmds_need_lc_F77=no 14752 rhapsody* | darwin1.[012])
14389 case "$host_os" in 14753 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14390 rhapsody* | darwin1.[012]) 14754 ;;
14391 allow_undefined_flag_F77='-undefined suppress' 14755 *) # Darwin 1.3 on
14392 ;; 14756 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14393 *) # Darwin 1.3 on 14757 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14394 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14758 else
14395 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 14759 case ${MACOSX_DEPLOYMENT_TARGET} in
14396 else 14760 10.[012])
14397 case ${MACOSX_DEPLOYMENT_TARGET} in 14761 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14398 10.[012]) 14762 ;;
14399 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 14763 10.*)
14400 ;; 14764 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14401 10.*) 14765 ;;
14402 allow_undefined_flag_F77='-undefined dynamic_lookup' 14766 esac
14403 ;; 14767 fi
14404 esac 14768 ;;
14405 fi
14406 ;;
14407 esac 14769 esac
14408 lt_int_apple_cc_single_mod=no 14770 archive_cmds_need_lc_F77=no
14409 output_verbose_link_cmd='echo'
14410 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14411 lt_int_apple_cc_single_mod=yes
14412 fi
14413 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14414 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14415 else
14416 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14417 fi
14418 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14419 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14420 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14421 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14422 else
14423 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14424 fi
14425 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}'
14426 hardcode_direct_F77=no 14771 hardcode_direct_F77=no
14427 hardcode_automatic_F77=yes 14772 hardcode_automatic_F77=yes
14428 hardcode_shlibpath_var_F77=unsupported 14773 hardcode_shlibpath_var_F77=unsupported
14429 whole_archive_flag_spec_F77='-all_load $convenience' 14774 whole_archive_flag_spec_F77=''
14430 link_all_deplibs_F77=yes 14775 link_all_deplibs_F77=yes
14776 if test "$GCC" = yes ; then
14777 output_verbose_link_cmd='echo'
14778 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14779 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14780 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14781 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14782 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}'
14431 else 14783 else
14432 ld_shlibs_F77=no 14784 case $cc_basename in
14785 xlc*)
14786 output_verbose_link_cmd='echo'
14787 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14788 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14789 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14790 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}'
14791 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}'
14792 ;;
14793 *)
14794 ld_shlibs_F77=no
14795 ;;
14796 esac
14433 fi 14797 fi
14434 ;; 14798 ;;
14435 14799
@@ -14463,7 +14827,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14463 ;; 14827 ;;
14464 14828
14465 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14829 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14466 freebsd* | kfreebsd*-gnu) 14830 freebsd* | kfreebsd*-gnu | dragonfly*)
14467 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14831 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14468 hardcode_libdir_flag_spec_F77='-R$libdir' 14832 hardcode_libdir_flag_spec_F77='-R$libdir'
14469 hardcode_direct_F77=yes 14833 hardcode_direct_F77=yes
@@ -14488,7 +14852,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14488 14852
14489 hpux10* | hpux11*) 14853 hpux10* | hpux11*)
14490 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14854 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14491 case "$host_cpu" in 14855 case $host_cpu in
14492 hppa*64*|ia64*) 14856 hppa*64*|ia64*)
14493 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14857 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14494 ;; 14858 ;;
@@ -14497,7 +14861,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14497 ;; 14861 ;;
14498 esac 14862 esac
14499 else 14863 else
14500 case "$host_cpu" in 14864 case $host_cpu in
14501 hppa*64*|ia64*) 14865 hppa*64*|ia64*)
14502 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14866 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14503 ;; 14867 ;;
@@ -14507,7 +14871,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14507 esac 14871 esac
14508 fi 14872 fi
14509 if test "$with_gnu_ld" = no; then 14873 if test "$with_gnu_ld" = no; then
14510 case "$host_cpu" in 14874 case $host_cpu in
14511 hppa*64*) 14875 hppa*64*)
14512 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14876 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14513 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14877 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
@@ -14574,6 +14938,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14574 hardcode_shlibpath_var_F77=no 14938 hardcode_shlibpath_var_F77=no
14575 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14939 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14576 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14940 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14941 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14577 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14942 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14578 export_dynamic_flag_spec_F77='${wl}-E' 14943 export_dynamic_flag_spec_F77='${wl}-E'
14579 else 14944 else
@@ -14619,7 +14984,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14619 allow_undefined_flag_F77=' -expect_unresolved \*' 14984 allow_undefined_flag_F77=' -expect_unresolved \*'
14620 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14985 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14621 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 14986 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14622 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 14987 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14623 14988
14624 # Both c and cxx compiler support -rpath directly 14989 # Both c and cxx compiler support -rpath directly
14625 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14990 hardcode_libdir_flag_spec_F77='-rpath $libdir'
@@ -14638,10 +15003,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14638 solaris*) 15003 solaris*)
14639 no_undefined_flag_F77=' -z text' 15004 no_undefined_flag_F77=' -z text'
14640 if test "$GCC" = yes; then 15005 if test "$GCC" = yes; then
15006 wlarc='${wl}'
14641 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15007 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14642 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15008 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14643 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15009 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14644 else 15010 else
15011 wlarc=''
14645 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15012 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14646 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15013 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14647 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15014 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
@@ -14650,8 +15017,18 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14650 hardcode_shlibpath_var_F77=no 15017 hardcode_shlibpath_var_F77=no
14651 case $host_os in 15018 case $host_os in
14652 solaris2.[0-5] | solaris2.[0-5].*) ;; 15019 solaris2.[0-5] | solaris2.[0-5].*) ;;
14653 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 15020 *)
14654 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15021 # The compiler driver will combine linker options so we
15022 # cannot just pass the convience library names through
15023 # without $wl, iff we do not link with $LD.
15024 # Luckily, gcc supports the same syntax we need for Sun Studio.
15025 # Supported since Solaris 2.6 (maybe 2.5.1?)
15026 case $wlarc in
15027 '')
15028 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15029 *)
15030 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' ;;
15031 esac ;;
14655 esac 15032 esac
14656 link_all_deplibs_F77=yes 15033 link_all_deplibs_F77=yes
14657 ;; 15034 ;;
@@ -14925,7 +15302,7 @@ beos*)
14925 shlibpath_var=LIBRARY_PATH 15302 shlibpath_var=LIBRARY_PATH
14926 ;; 15303 ;;
14927 15304
14928bsdi4*) 15305bsdi[45]*)
14929 version_type=linux 15306 version_type=linux
14930 need_version=no 15307 need_version=no
14931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -14953,7 +15330,8 @@ cygwin* | mingw* | pw32*)
14953 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14954 dldir=$destdir/`dirname \$dlpath`~ 15331 dldir=$destdir/`dirname \$dlpath`~
14955 test -d \$dldir || mkdir -p \$dldir~ 15332 test -d \$dldir || mkdir -p \$dldir~
14956 $install_prog $dir/$dlname \$dldir/$dlname' 15333 $install_prog $dir/$dlname \$dldir/$dlname~
15334 chmod a+x \$dldir/$dlname'
14957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14958 dlpath=$dir/\$dldll~ 15336 dlpath=$dir/\$dldll~
14959 $rm \$dlpath' 15337 $rm \$dlpath'
@@ -14983,7 +15361,7 @@ cygwin* | mingw* | pw32*)
14983 ;; 15361 ;;
14984 pw32*) 15362 pw32*)
14985 # pw32 DLLs use 'pw' prefix rather than 'lib' 15363 # pw32 DLLs use 'pw' prefix rather than 'lib'
14986 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 15364 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14987 ;; 15365 ;;
14988 esac 15366 esac
14989 ;; 15367 ;;
@@ -15006,7 +15384,7 @@ darwin* | rhapsody*)
15006 soname_spec='${libname}${release}${major}$shared_ext' 15384 soname_spec='${libname}${release}${major}$shared_ext'
15007 shlibpath_overrides_runpath=yes 15385 shlibpath_overrides_runpath=yes
15008 shlibpath_var=DYLD_LIBRARY_PATH 15386 shlibpath_var=DYLD_LIBRARY_PATH
15009 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 15387 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15010 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15388 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15011 if test "$GCC" = yes; then 15389 if test "$GCC" = yes; then
15012 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"` 15390 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"`
@@ -15041,8 +15419,17 @@ kfreebsd*-gnu)
15041 dynamic_linker='GNU ld.so' 15419 dynamic_linker='GNU ld.so'
15042 ;; 15420 ;;
15043 15421
15044freebsd*) 15422freebsd* | dragonfly*)
15045 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 15423 # DragonFly does not have aout. When/if they implement a new
15424 # versioning mechanism, adjust this.
15425 if test -x /usr/bin/objformat; then
15426 objformat=`/usr/bin/objformat`
15427 else
15428 case $host_os in
15429 freebsd[123]*) objformat=aout ;;
15430 *) objformat=elf ;;
15431 esac
15432 fi
15046 version_type=freebsd-$objformat 15433 version_type=freebsd-$objformat
15047 case $version_type in 15434 case $version_type in
15048 freebsd-elf*) 15435 freebsd-elf*)
@@ -15060,7 +15447,7 @@ freebsd*)
15060 freebsd2*) 15447 freebsd2*)
15061 shlibpath_overrides_runpath=yes 15448 shlibpath_overrides_runpath=yes
15062 ;; 15449 ;;
15063 freebsd3.01* | freebsdelf3.01*) 15450 freebsd3.[01]* | freebsdelf3.[01]*)
15064 shlibpath_overrides_runpath=yes 15451 shlibpath_overrides_runpath=yes
15065 hardcode_into_libs=yes 15452 hardcode_into_libs=yes
15066 ;; 15453 ;;
@@ -15087,7 +15474,7 @@ hpux9* | hpux10* | hpux11*)
15087 version_type=sunos 15474 version_type=sunos
15088 need_lib_prefix=no 15475 need_lib_prefix=no
15089 need_version=no 15476 need_version=no
15090 case "$host_cpu" in 15477 case $host_cpu in
15091 ia64*) 15478 ia64*)
15092 shrext_cmds='.so' 15479 shrext_cmds='.so'
15093 hardcode_into_libs=yes 15480 hardcode_into_libs=yes
@@ -15186,7 +15573,7 @@ linux*)
15186 15573
15187 # Append ld.so.conf contents to the search path 15574 # Append ld.so.conf contents to the search path
15188 if test -f /etc/ld.so.conf; then 15575 if test -f /etc/ld.so.conf; then
15189 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 15576 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' ' '`
15190 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15577 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15191 fi 15578 fi
15192 15579
@@ -15261,7 +15648,11 @@ nto-qnx*)
15261openbsd*) 15648openbsd*)
15262 version_type=sunos 15649 version_type=sunos
15263 need_lib_prefix=no 15650 need_lib_prefix=no
15264 need_version=yes 15651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15652 case $host_os in
15653 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15654 *) need_version=no ;;
15655 esac
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15267 shlibpath_var=LD_LIBRARY_PATH 15658 shlibpath_var=LD_LIBRARY_PATH
@@ -15383,8 +15774,8 @@ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15383echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15774echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15384hardcode_action_F77= 15775hardcode_action_F77=
15385if test -n "$hardcode_libdir_flag_spec_F77" || \ 15776if test -n "$hardcode_libdir_flag_spec_F77" || \
15386 test -n "$runpath_var F77" || \ 15777 test -n "$runpath_var_F77" || \
15387 test "X$hardcode_automatic_F77"="Xyes" ; then 15778 test "X$hardcode_automatic_F77" = "Xyes" ; then
15388 15779
15389 # We can hardcode non-existant directories. 15780 # We can hardcode non-existant directories.
15390 if test "$hardcode_direct_F77" != no && 15781 if test "$hardcode_direct_F77" != no &&
@@ -15561,6 +15952,12 @@ fast_install=$enable_fast_install
15561# The host system. 15952# The host system.
15562host_alias=$host_alias 15953host_alias=$host_alias
15563host=$host 15954host=$host
15955host_os=$host_os
15956
15957# The build system.
15958build_alias=$build_alias
15959build=$build
15960build_os=$build_os
15564 15961
15565# An echo program that does not interpret backslashes. 15962# An echo program that does not interpret backslashes.
15566echo=$lt_echo 15963echo=$lt_echo
@@ -15637,7 +16034,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
15637# Does compiler simultaneously support -c and -o options? 16034# Does compiler simultaneously support -c and -o options?
15638compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16035compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15639 16036
15640# Must we lock files when doing compilation ? 16037# Must we lock files when doing compilation?
15641need_locks=$lt_need_locks 16038need_locks=$lt_need_locks
15642 16039
15643# Do we need the lib prefix for modules? 16040# Do we need the lib prefix for modules?
@@ -15875,7 +16272,7 @@ objext_GCJ=$objext
15875lt_simple_compile_test_code="class foo {}\n" 16272lt_simple_compile_test_code="class foo {}\n"
15876 16273
15877# Code to be used in simple link tests 16274# Code to be used in simple link tests
15878lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 16275lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15879 16276
15880# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16277# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15881 16278
@@ -15886,15 +16283,41 @@ LTCC=${LTCC-"$CC"}
15886compiler=$CC 16283compiler=$CC
15887 16284
15888 16285
16286# save warnings/boilerplate of simple test code
16287ac_outfile=conftest.$ac_objext
16288printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16289eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16290_lt_compiler_boilerplate=`cat conftest.err`
16291$rm conftest*
16292
16293ac_outfile=conftest.$ac_objext
16294printf "$lt_simple_link_test_code" >conftest.$ac_ext
16295eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16296_lt_linker_boilerplate=`cat conftest.err`
16297$rm conftest*
16298
16299
15889# Allow CC to be a program name with arguments. 16300# Allow CC to be a program name with arguments.
15890lt_save_CC="$CC" 16301lt_save_CC="$CC"
15891CC=${GCJ-"gcj"} 16302CC=${GCJ-"gcj"}
15892compiler=$CC 16303compiler=$CC
15893compiler_GCJ=$CC 16304compiler_GCJ=$CC
16305for cc_temp in $compiler""; do
16306 case $cc_temp in
16307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16309 \-*) ;;
16310 *) break;;
16311 esac
16312done
16313cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16314
15894 16315
15895# GCJ did not exist at the time GCC didn't implicitly link libc in. 16316# GCJ did not exist at the time GCC didn't implicitly link libc in.
15896archive_cmds_need_lc_GCJ=no 16317archive_cmds_need_lc_GCJ=no
15897 16318
16319old_archive_cmds_GCJ=$old_archive_cmds
16320
15898 16321
15899lt_prog_compiler_no_builtin_flag_GCJ= 16322lt_prog_compiler_no_builtin_flag_GCJ=
15900 16323
@@ -15917,18 +16340,20 @@ else
15917 # with a dollar sign (not a hyphen), so the echo should work correctly. 16340 # with a dollar sign (not a hyphen), so the echo should work correctly.
15918 # The option is referenced via a variable to avoid confusing sed. 16341 # The option is referenced via a variable to avoid confusing sed.
15919 lt_compile=`echo "$ac_compile" | $SED \ 16342 lt_compile=`echo "$ac_compile" | $SED \
15920 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15922 -e 's:$: $lt_compiler_flag:'` 16345 -e 's:$: $lt_compiler_flag:'`
15923 (eval echo "\"\$as_me:15923: $lt_compile\"" >&5) 16346 (eval echo "\"\$as_me:16346: $lt_compile\"" >&5)
15924 (eval "$lt_compile" 2>conftest.err) 16347 (eval "$lt_compile" 2>conftest.err)
15925 ac_status=$? 16348 ac_status=$?
15926 cat conftest.err >&5 16349 cat conftest.err >&5
15927 echo "$as_me:15927: \$? = $ac_status" >&5 16350 echo "$as_me:16350: \$? = $ac_status" >&5
15928 if (exit $ac_status) && test -s "$ac_outfile"; then 16351 if (exit $ac_status) && test -s "$ac_outfile"; then
15929 # The compiler can only warn and ignore the option if not recognized 16352 # The compiler can only warn and ignore the option if not recognized
15930 # So say no if there are warnings 16353 # So say no if there are warnings other than the usual output.
15931 if test ! -s conftest.err; then 16354 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16355 $SED '/^$/d' conftest.err >conftest.er2
16356 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15932 lt_cv_prog_compiler_rtti_exceptions=yes 16357 lt_cv_prog_compiler_rtti_exceptions=yes
15933 fi 16358 fi
15934 fi 16359 fi
@@ -16005,7 +16430,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16005 hpux*) 16430 hpux*)
16006 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16431 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16007 # not for PA HP-UX. 16432 # not for PA HP-UX.
16008 case "$host_cpu" in 16433 case $host_cpu in
16009 hppa*64*|ia64*) 16434 hppa*64*|ia64*)
16010 # +Z the default 16435 # +Z the default
16011 ;; 16436 ;;
@@ -16031,6 +16456,16 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16031 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16456 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16032 fi 16457 fi
16033 ;; 16458 ;;
16459 darwin*)
16460 # PIC is the default on this platform
16461 # Common symbols not allowed in MH_DYLIB files
16462 case $cc_basename in
16463 xlc*)
16464 lt_prog_compiler_pic_GCJ='-qnocommon'
16465 lt_prog_compiler_wl_GCJ='-Wl,'
16466 ;;
16467 esac
16468 ;;
16034 16469
16035 mingw* | pw32* | os2*) 16470 mingw* | pw32* | os2*)
16036 # This hack is so that the source file can tell whether it is being 16471 # This hack is so that the source file can tell whether it is being
@@ -16042,7 +16477,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16042 lt_prog_compiler_wl_GCJ='-Wl,' 16477 lt_prog_compiler_wl_GCJ='-Wl,'
16043 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16478 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16044 # not for PA HP-UX. 16479 # not for PA HP-UX.
16045 case "$host_cpu" in 16480 case $host_cpu in
16046 hppa*64*|ia64*) 16481 hppa*64*|ia64*)
16047 # +Z the default 16482 # +Z the default
16048 ;; 16483 ;;
@@ -16066,12 +16501,19 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16066 ;; 16501 ;;
16067 16502
16068 linux*) 16503 linux*)
16069 case $CC in 16504 case $cc_basename in
16070 icc* | ecc*) 16505 icc* | ecc*)
16071 lt_prog_compiler_wl_GCJ='-Wl,' 16506 lt_prog_compiler_wl_GCJ='-Wl,'
16072 lt_prog_compiler_pic_GCJ='-KPIC' 16507 lt_prog_compiler_pic_GCJ='-KPIC'
16073 lt_prog_compiler_static_GCJ='-static' 16508 lt_prog_compiler_static_GCJ='-static'
16074 ;; 16509 ;;
16510 pgcc* | pgf77* | pgf90* | pgf95*)
16511 # Portland Group compilers (*not* the Pentium gcc compiler,
16512 # which looks to be a dead project)
16513 lt_prog_compiler_wl_GCJ='-Wl,'
16514 lt_prog_compiler_pic_GCJ='-fpic'
16515 lt_prog_compiler_static_GCJ='-Bstatic'
16516 ;;
16075 ccc*) 16517 ccc*)
16076 lt_prog_compiler_wl_GCJ='-Wl,' 16518 lt_prog_compiler_wl_GCJ='-Wl,'
16077 # All Alpha code is PIC. 16519 # All Alpha code is PIC.
@@ -16092,9 +16534,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16092 ;; 16534 ;;
16093 16535
16094 solaris*) 16536 solaris*)
16095 lt_prog_compiler_wl_GCJ='-Wl,'
16096 lt_prog_compiler_pic_GCJ='-KPIC' 16537 lt_prog_compiler_pic_GCJ='-KPIC'
16097 lt_prog_compiler_static_GCJ='-Bstatic' 16538 lt_prog_compiler_static_GCJ='-Bstatic'
16539 case $cc_basename in
16540 f77* | f90* | f95*)
16541 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16542 *)
16543 lt_prog_compiler_wl_GCJ='-Wl,';;
16544 esac
16098 ;; 16545 ;;
16099 16546
16100 sunos4*) 16547 sunos4*)
@@ -16116,6 +16563,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16116 fi 16563 fi
16117 ;; 16564 ;;
16118 16565
16566 unicos*)
16567 lt_prog_compiler_wl_GCJ='-Wl,'
16568 lt_prog_compiler_can_build_shared_GCJ=no
16569 ;;
16570
16119 uts4*) 16571 uts4*)
16120 lt_prog_compiler_pic_GCJ='-pic' 16572 lt_prog_compiler_pic_GCJ='-pic'
16121 lt_prog_compiler_static_GCJ='-Bstatic' 16573 lt_prog_compiler_static_GCJ='-Bstatic'
@@ -16150,18 +16602,20 @@ else
16150 # with a dollar sign (not a hyphen), so the echo should work correctly. 16602 # with a dollar sign (not a hyphen), so the echo should work correctly.
16151 # The option is referenced via a variable to avoid confusing sed. 16603 # The option is referenced via a variable to avoid confusing sed.
16152 lt_compile=`echo "$ac_compile" | $SED \ 16604 lt_compile=`echo "$ac_compile" | $SED \
16153 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16154 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16155 -e 's:$: $lt_compiler_flag:'` 16607 -e 's:$: $lt_compiler_flag:'`
16156 (eval echo "\"\$as_me:16156: $lt_compile\"" >&5) 16608 (eval echo "\"\$as_me:16608: $lt_compile\"" >&5)
16157 (eval "$lt_compile" 2>conftest.err) 16609 (eval "$lt_compile" 2>conftest.err)
16158 ac_status=$? 16610 ac_status=$?
16159 cat conftest.err >&5 16611 cat conftest.err >&5
16160 echo "$as_me:16160: \$? = $ac_status" >&5 16612 echo "$as_me:16612: \$? = $ac_status" >&5
16161 if (exit $ac_status) && test -s "$ac_outfile"; then 16613 if (exit $ac_status) && test -s "$ac_outfile"; then
16162 # The compiler can only warn and ignore the option if not recognized 16614 # The compiler can only warn and ignore the option if not recognized
16163 # So say no if there are warnings 16615 # So say no if there are warnings other than the usual output.
16164 if test ! -s conftest.err; then 16616 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16617 $SED '/^$/d' conftest.err >conftest.er2
16618 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16165 lt_prog_compiler_pic_works_GCJ=yes 16619 lt_prog_compiler_pic_works_GCJ=yes
16166 fi 16620 fi
16167 fi 16621 fi
@@ -16182,7 +16636,7 @@ else
16182fi 16636fi
16183 16637
16184fi 16638fi
16185case "$host_os" in 16639case $host_os in
16186 # For platforms which do not support PIC, -DPIC is meaningless: 16640 # For platforms which do not support PIC, -DPIC is meaningless:
16187 *djgpp*) 16641 *djgpp*)
16188 lt_prog_compiler_pic_GCJ= 16642 lt_prog_compiler_pic_GCJ=
@@ -16210,23 +16664,25 @@ else
16210 # Note that $ac_compile itself does not contain backslashes and begins 16664 # Note that $ac_compile itself does not contain backslashes and begins
16211 # with a dollar sign (not a hyphen), so the echo should work correctly. 16665 # with a dollar sign (not a hyphen), so the echo should work correctly.
16212 lt_compile=`echo "$ac_compile" | $SED \ 16666 lt_compile=`echo "$ac_compile" | $SED \
16213 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 16667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16215 -e 's:$: $lt_compiler_flag:'` 16669 -e 's:$: $lt_compiler_flag:'`
16216 (eval echo "\"\$as_me:16216: $lt_compile\"" >&5) 16670 (eval echo "\"\$as_me:16670: $lt_compile\"" >&5)
16217 (eval "$lt_compile" 2>out/conftest.err) 16671 (eval "$lt_compile" 2>out/conftest.err)
16218 ac_status=$? 16672 ac_status=$?
16219 cat out/conftest.err >&5 16673 cat out/conftest.err >&5
16220 echo "$as_me:16220: \$? = $ac_status" >&5 16674 echo "$as_me:16674: \$? = $ac_status" >&5
16221 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16675 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16222 then 16676 then
16223 # The compiler can only warn and ignore the option if not recognized 16677 # The compiler can only warn and ignore the option if not recognized
16224 # So say no if there are warnings 16678 # So say no if there are warnings
16225 if test ! -s out/conftest.err; then 16679 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16680 $SED '/^$/d' out/conftest.err >out/conftest.er2
16681 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16226 lt_cv_prog_compiler_c_o_GCJ=yes 16682 lt_cv_prog_compiler_c_o_GCJ=yes
16227 fi 16683 fi
16228 fi 16684 fi
16229 chmod u+w . 16685 chmod u+w . 2>&5
16230 $rm conftest* 16686 $rm conftest*
16231 # SGI C++ compiler will create directory out/ii_files/ for 16687 # SGI C++ compiler will create directory out/ii_files/ for
16232 # template instantiation 16688 # template instantiation
@@ -16302,6 +16758,16 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
16302 # rely on this symbol name, it's probably fine to never include it in 16758 # rely on this symbol name, it's probably fine to never include it in
16303 # preloaded symbol tables. 16759 # preloaded symbol tables.
16304 extract_expsyms_cmds= 16760 extract_expsyms_cmds=
16761 # Just being paranoid about ensuring that cc_basename is set.
16762 for cc_temp in $compiler""; do
16763 case $cc_temp in
16764 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16765 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16766 \-*) ;;
16767 *) break;;
16768 esac
16769done
16770cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16305 16771
16306 case $host_os in 16772 case $host_os in
16307 cygwin* | mingw* | pw32*) 16773 cygwin* | mingw* | pw32*)
@@ -16322,6 +16788,27 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar
16322 # If archive_cmds runs LD, not CC, wlarc should be empty 16788 # If archive_cmds runs LD, not CC, wlarc should be empty
16323 wlarc='${wl}' 16789 wlarc='${wl}'
16324 16790
16791 # Set some defaults for GNU ld with shared library support. These
16792 # are reset later if shared libraries are not supported. Putting them
16793 # here allows them to be overridden if necessary.
16794 runpath_var=LD_RUN_PATH
16795 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16796 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16797 # ancient GNU ld didn't support --whole-archive et. al.
16798 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16799 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16800 else
16801 whole_archive_flag_spec_GCJ=
16802 fi
16803 supports_anon_versioning=no
16804 case `$LD -v 2>/dev/null` in
16805 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16806 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16807 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16808 *\ 2.11.*) ;; # other 2.11 versions
16809 *) supports_anon_versioning=yes ;;
16810 esac
16811
16325 # See if GNU ld supports shared libraries. 16812 # See if GNU ld supports shared libraries.
16326 case $host_os in 16813 case $host_os in
16327 aix3* | aix4* | aix5*) 16814 aix3* | aix4* | aix5*)
@@ -16372,7 +16859,7 @@ EOF
16372 allow_undefined_flag_GCJ=unsupported 16859 allow_undefined_flag_GCJ=unsupported
16373 always_export_symbols_GCJ=no 16860 always_export_symbols_GCJ=no
16374 enable_shared_with_static_runtimes_GCJ=yes 16861 enable_shared_with_static_runtimes_GCJ=yes
16375 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16862 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16376 16863
16377 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16864 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16378 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16865 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
@@ -16386,7 +16873,39 @@ EOF
16386 fi~ 16873 fi~
16387 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16874 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16388 else 16875 else
16389 ld_shlibs=no 16876 ld_shlibs_GCJ=no
16877 fi
16878 ;;
16879
16880 linux*)
16881 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16882 tmp_addflag=
16883 case $cc_basename,$host_cpu in
16884 pgcc*) # Portland Group C compiler
16885 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16886 tmp_addflag=' $pic_flag'
16887 ;;
16888 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16889 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16890 tmp_addflag=' $pic_flag -Mnomain' ;;
16891 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16892 tmp_addflag=' -i_dynamic' ;;
16893 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16894 tmp_addflag=' -i_dynamic -nofor_main' ;;
16895 ifc* | ifort*) # Intel Fortran compiler
16896 tmp_addflag=' -nofor_main' ;;
16897 esac
16898 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16899
16900 if test $supports_anon_versioning = yes; then
16901 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16902 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16903 $echo "local: *; };" >> $output_objdir/$libname.ver~
16904 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16905 fi
16906 link_all_deplibs_GCJ=no
16907 else
16908 ld_shlibs_GCJ=no
16390 fi 16909 fi
16391 ;; 16910 ;;
16392 16911
@@ -16428,32 +16947,6 @@ EOF
16428 hardcode_shlibpath_var_GCJ=no 16947 hardcode_shlibpath_var_GCJ=no
16429 ;; 16948 ;;
16430 16949
16431 linux*)
16432 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16433 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16434 archive_cmds_GCJ="$tmp_archive_cmds"
16435 supports_anon_versioning=no
16436 case `$LD -v 2>/dev/null` in
16437 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16438 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16439 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16440 *\ 2.11.*) ;; # other 2.11 versions
16441 *) supports_anon_versioning=yes ;;
16442 esac
16443 if test $supports_anon_versioning = yes; then
16444 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16445cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16446$echo "local: *; };" >> $output_objdir/$libname.ver~
16447 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16448 else
16449 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16450 fi
16451 link_all_deplibs_GCJ=no
16452 else
16453 ld_shlibs_GCJ=no
16454 fi
16455 ;;
16456
16457 *) 16950 *)
16458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16459 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16952 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
@@ -16464,16 +16957,11 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
16464 ;; 16957 ;;
16465 esac 16958 esac
16466 16959
16467 if test "$ld_shlibs_GCJ" = yes; then 16960 if test "$ld_shlibs_GCJ" = no; then
16468 runpath_var=LD_RUN_PATH 16961 runpath_var=
16469 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16962 hardcode_libdir_flag_spec_GCJ=
16470 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16963 export_dynamic_flag_spec_GCJ=
16471 # ancient GNU ld didn't support --whole-archive et. al. 16964 whole_archive_flag_spec_GCJ=
16472 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16473 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16474 else
16475 whole_archive_flag_spec_GCJ=
16476 fi
16477 fi 16965 fi
16478 else 16966 else
16479 # PORTME fill in a description of your system's linker (not GNU ld) 16967 # PORTME fill in a description of your system's linker (not GNU ld)
@@ -16537,7 +17025,7 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
16537 link_all_deplibs_GCJ=yes 17025 link_all_deplibs_GCJ=yes
16538 17026
16539 if test "$GCC" = yes; then 17027 if test "$GCC" = yes; then
16540 case $host_os in aix4.012|aix4.012.*) 17028 case $host_os in aix4.[012]|aix4.[012].*)
16541 # We only want to do this on AIX 4.2 and lower, the check 17029 # We only want to do this on AIX 4.2 and lower, the check
16542 # below for broken collect2 doesn't work under 4.3+ 17030 # below for broken collect2 doesn't work under 4.3+
16543 collect2name=`${CC} -print-prog-name=collect2` 17031 collect2name=`${CC} -print-prog-name=collect2`
@@ -16558,6 +17046,9 @@ $echo "local: *; };" >> $output_objdir/$libname.ver~
16558 fi 17046 fi
16559 esac 17047 esac
16560 shared_flag='-shared' 17048 shared_flag='-shared'
17049 if test "$aix_use_runtimelinking" = yes; then
17050 shared_flag="$shared_flag "'${wl}-G'
17051 fi
16561 else 17052 else
16562 # not using gcc 17053 # not using gcc
16563 if test "$host_cpu" = ia64; then 17054 if test "$host_cpu" = ia64; then
@@ -16702,7 +17193,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16702 # Exported symbols can be pulled into shared objects from archives 17193 # Exported symbols can be pulled into shared objects from archives
16703 whole_archive_flag_spec_GCJ=' ' 17194 whole_archive_flag_spec_GCJ=' '
16704 archive_cmds_need_lc_GCJ=yes 17195 archive_cmds_need_lc_GCJ=yes
16705 # This is similar to how AIX traditionally builds it's shared libraries. 17196 # This is similar to how AIX traditionally builds its shared libraries.
16706 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' 17197 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'
16707 fi 17198 fi
16708 fi 17199 fi
@@ -16716,7 +17207,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16716 ld_shlibs_GCJ=no 17207 ld_shlibs_GCJ=no
16717 ;; 17208 ;;
16718 17209
16719 bsdi4*) 17210 bsdi[45]*)
16720 export_dynamic_flag_spec_GCJ=-rdynamic 17211 export_dynamic_flag_spec_GCJ=-rdynamic
16721 ;; 17212 ;;
16722 17213
@@ -16737,57 +17228,57 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16737 old_archive_From_new_cmds_GCJ='true' 17228 old_archive_From_new_cmds_GCJ='true'
16738 # FIXME: Should let the user specify the lib program. 17229 # FIXME: Should let the user specify the lib program.
16739 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17230 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16740 fix_srcfile_path='`cygpath -w "$srcfile"`' 17231 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16741 enable_shared_with_static_runtimes_GCJ=yes 17232 enable_shared_with_static_runtimes_GCJ=yes
16742 ;; 17233 ;;
16743 17234
16744 darwin* | rhapsody*) 17235 darwin* | rhapsody*)
16745 if test "$GXX" = yes ; then 17236 case $host_os in
16746 archive_cmds_need_lc_GCJ=no 17237 rhapsody* | darwin1.[012])
16747 case "$host_os" in 17238 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16748 rhapsody* | darwin1.[012]) 17239 ;;
16749 allow_undefined_flag_GCJ='-undefined suppress' 17240 *) # Darwin 1.3 on
16750 ;; 17241 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16751 *) # Darwin 1.3 on 17242 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16752 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17243 else
16753 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 17244 case ${MACOSX_DEPLOYMENT_TARGET} in
16754 else 17245 10.[012])
16755 case ${MACOSX_DEPLOYMENT_TARGET} in 17246 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16756 10.[012]) 17247 ;;
16757 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 17248 10.*)
16758 ;; 17249 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16759 10.*) 17250 ;;
16760 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 17251 esac
16761 ;; 17252 fi
16762 esac 17253 ;;
16763 fi
16764 ;;
16765 esac 17254 esac
16766 lt_int_apple_cc_single_mod=no 17255 archive_cmds_need_lc_GCJ=no
16767 output_verbose_link_cmd='echo'
16768 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16769 lt_int_apple_cc_single_mod=yes
16770 fi
16771 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16772 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16773 else
16774 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16775 fi
16776 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16777 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16778 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16779 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16780 else
16781 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16782 fi
16783 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}'
16784 hardcode_direct_GCJ=no 17256 hardcode_direct_GCJ=no
16785 hardcode_automatic_GCJ=yes 17257 hardcode_automatic_GCJ=yes
16786 hardcode_shlibpath_var_GCJ=unsupported 17258 hardcode_shlibpath_var_GCJ=unsupported
16787 whole_archive_flag_spec_GCJ='-all_load $convenience' 17259 whole_archive_flag_spec_GCJ=''
16788 link_all_deplibs_GCJ=yes 17260 link_all_deplibs_GCJ=yes
17261 if test "$GCC" = yes ; then
17262 output_verbose_link_cmd='echo'
17263 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17264 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17265 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17266 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17267 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}'
16789 else 17268 else
16790 ld_shlibs_GCJ=no 17269 case $cc_basename in
17270 xlc*)
17271 output_verbose_link_cmd='echo'
17272 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17273 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17274 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17275 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}'
17276 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}'
17277 ;;
17278 *)
17279 ld_shlibs_GCJ=no
17280 ;;
17281 esac
16791 fi 17282 fi
16792 ;; 17283 ;;
16793 17284
@@ -16821,7 +17312,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16821 ;; 17312 ;;
16822 17313
16823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16824 freebsd* | kfreebsd*-gnu) 17315 freebsd* | kfreebsd*-gnu | dragonfly*)
16825 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17316 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16826 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17317 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16827 hardcode_direct_GCJ=yes 17318 hardcode_direct_GCJ=yes
@@ -16846,7 +17337,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16846 17337
16847 hpux10* | hpux11*) 17338 hpux10* | hpux11*)
16848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16849 case "$host_cpu" in 17340 case $host_cpu in
16850 hppa*64*|ia64*) 17341 hppa*64*|ia64*)
16851 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17342 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16852 ;; 17343 ;;
@@ -16855,7 +17346,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16855 ;; 17346 ;;
16856 esac 17347 esac
16857 else 17348 else
16858 case "$host_cpu" in 17349 case $host_cpu in
16859 hppa*64*|ia64*) 17350 hppa*64*|ia64*)
16860 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17351 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16861 ;; 17352 ;;
@@ -16865,7 +17356,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16865 esac 17356 esac
16866 fi 17357 fi
16867 if test "$with_gnu_ld" = no; then 17358 if test "$with_gnu_ld" = no; then
16868 case "$host_cpu" in 17359 case $host_cpu in
16869 hppa*64*) 17360 hppa*64*)
16870 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17361 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16871 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17362 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
@@ -16932,6 +17423,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16932 hardcode_shlibpath_var_GCJ=no 17423 hardcode_shlibpath_var_GCJ=no
16933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17424