786 |
# Check to see if options -c and -o are simultaneously supported by compiler |
# Check to see if options -c and -o are simultaneously supported by compiler |
787 |
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
788 |
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
|
|
|
789 |
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
790 |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
791 |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
793 |
mkdir conftest |
mkdir conftest |
794 |
cd conftest |
cd conftest |
795 |
mkdir out |
mkdir out |
796 |
save_CFLAGS="$CFLAGS" |
ifelse([$1],[],[save_CFLAGS="$CFLAGS" |
797 |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"], |
798 |
|
[$1],[CXX],[save_CXXFLAGS="$CXXFLAGS" |
799 |
|
CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"], |
800 |
|
[$1],[GCJ],[save_GCJFLAGS="$GCJFLAGS" |
801 |
|
GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"]) |
802 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
803 |
|
|
804 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
819 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
820 |
fi |
fi |
821 |
fi |
fi |
822 |
CFLAGS="$save_CFLAGS" |
ifelse([$1],[],[CFLAGS="$save_CFLAGS"], |
823 |
|
[$1],[CXX],[CXXFLAGS="$save_CXXFLAGS"], |
824 |
|
[$1],[GCJ],[GCJFLAGS="$save_GCJFLAGS"]) |
825 |
chmod u+w . |
chmod u+w . |
826 |
$rm conftest* out/* |
$rm conftest* out/* |
827 |
rmdir out |
rmdir out |
882 |
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
883 |
[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
884 |
_LT_AC_TAGVAR(hardcode_action, $1)= |
_LT_AC_TAGVAR(hardcode_action, $1)= |
885 |
if test -n "$hardcode_libdir_flag_spec" || \ |
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
886 |
test -n "$runpath_var"; then |
test -n "$_LT_AC_TAGVAR(runpath_var $1)"; then |
887 |
|
|
888 |
# We can hardcode non-existant directories. |
# We can hardcode non-existant directories. |
889 |
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
1154 |
version_type=irix |
version_type=irix |
1155 |
need_lib_prefix=no |
need_lib_prefix=no |
1156 |
need_version=no |
need_version=no |
1157 |
soname_spec='${libname}${release}.so.$major' |
soname_spec='${libname}${release}.so$major' |
1158 |
library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
1159 |
case $host_os in |
case $host_os in |
1160 |
irix5*) |
irix5*) |
1161 |
libsuff= shlibsuff= |
libsuff= shlibsuff= |
2164 |
## the running order or otherwise move them around unless you know exactly |
## the running order or otherwise move them around unless you know exactly |
2165 |
## what you are doing... |
## what you are doing... |
2166 |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
2167 |
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
2168 |
AC_LIBTOOL_PROG_CC_C_O($1) |
AC_LIBTOOL_PROG_CC_C_O($1) |
2169 |
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
2170 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
2171 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
2172 |
AC_LIBTOOL_SYS_LIB_STRIP |
AC_LIBTOOL_SYS_LIB_STRIP |
2539 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib' |
2540 |
fi |
fi |
2541 |
fi |
fi |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
2542 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
2543 |
;; |
;; |
2544 |
esac |
esac |
2545 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2546 |
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2547 |
;; |
;; |
2548 |
linux*) |
linux*) |
2549 |
case $cc_basename in |
case $cc_basename in |
2992 |
## There is no encapsulation within the following macros, do not change |
## There is no encapsulation within the following macros, do not change |
2993 |
## the running order or otherwise move them around unless you know exactly |
## the running order or otherwise move them around unless you know exactly |
2994 |
## what you are doing... |
## what you are doing... |
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
2995 |
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
2996 |
AC_LIBTOOL_PROG_CC_C_O($1) |
AC_LIBTOOL_PROG_CC_C_O($1) |
2997 |
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
2998 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
2999 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3000 |
AC_LIBTOOL_SYS_LIB_STRIP |
AC_LIBTOOL_SYS_LIB_STRIP |
3048 |
## the running order or otherwise move them around unless you know exactly |
## the running order or otherwise move them around unless you know exactly |
3049 |
## what you are doing... |
## what you are doing... |
3050 |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
3051 |
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
AC_LIBTOOL_PROG_COMPILER_PIC($1) |
3052 |
AC_LIBTOOL_PROG_CC_C_O($1) |
AC_LIBTOOL_PROG_CC_C_O($1) |
3053 |
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
3054 |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3055 |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3056 |
AC_LIBTOOL_SYS_LIB_STRIP |
AC_LIBTOOL_SYS_LIB_STRIP |
3724 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
3725 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= |
3726 |
|
|
3727 |
AC_MSG_CHECKING([for $compiler option to produce PIC]) |
ifelse([$1],[CXX],[ |
3728 |
if test "$GCC" = yes; then |
# C++ specific cases for pic, static, wl, etc. |
3729 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
if test "$GXX" = yes; then |
3730 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3731 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
3732 |
case $host_os in |
|
3733 |
|
case $host_os in |
3734 |
aix*) |
aix*) |
3735 |
# All AIX code is PIC. |
# All AIX code is PIC. |
3736 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
3737 |
# AIX 5 now supports IA64 processor |
# AIX 5 now supports IA64 processor |
3738 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3739 |
else |
fi |
3740 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
;; |
3741 |
fi |
amigaos*) |
3742 |
;; |
# FIXME: we need at least 68020 code to build shared libraries, but |
3743 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
3744 |
amigaos*) |
# like `-m68040'. |
3745 |
# FIXME: we need at least 68020 code to build shared libraries, but |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
3746 |
# adding the `-m68020' flag to GCC prevents building anything better, |
;; |
3747 |
# like `-m68040'. |
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
3748 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
# PIC is the default for these OSes. |
3749 |
;; |
;; |
3750 |
|
cygwin* | mingw* | os2*) |
3751 |
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
# This hack is so that the source file can tell whether it is being |
3752 |
# PIC is the default for these OSes. |
# built for inclusion in a dll (and should export symbols for example). |
3753 |
;; |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
3754 |
|
;; |
3755 |
cygwin* | mingw* | pw32* | os2*) |
darwin* | rhapsody*) |
3756 |
# This hack is so that the source file can tell whether it is being |
# PIC is the default on this platform |
3757 |
# built for inclusion in a dll (and should export symbols for example). |
# Common symbols not allowed in MH_DYLIB files |
3758 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
3759 |
;; |
;; |
3760 |
|
*djgpp*) |
3761 |
darwin* | rhapsody*) |
# DJGPP does not support shared libraries at all |
3762 |
# PIC is the default on this platform |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
3763 |
# Common symbols not allowed in MH_DYLIB files |
;; |
3764 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
sysv4*MP*) |
3765 |
;; |
if test -d /usr/nec; then |
3766 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
3767 |
msdosdjgpp*) |
fi |
3768 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
;; |
3769 |
# on systems that don't support them. |
*) |
3770 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3771 |
enable_shared=no |
;; |
3772 |
;; |
esac |
3773 |
|
else |
3774 |
sysv4*MP*) |
case $host_os in |
3775 |
if test -d /usr/nec; then |
aix4* | aix5*) |
3776 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
# All AIX code is PIC. |
3777 |
fi |
if test "$host_cpu" = ia64; then |
3778 |
;; |
# AIX 5 now supports IA64 processor |
3779 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3780 |
*) |
else |
3781 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
3782 |
;; |
fi |
3783 |
esac |
;; |
3784 |
else |
chorus*) |
3785 |
# PORTME Check for flag to pass linker flags through the system compiler. |
case $cc_basename in |
3786 |
case $host_os in |
cxch68) |
3787 |
aix*) |
# Green Hills C++ Compiler |
3788 |
|
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--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" |
3789 |
|
;; |
3790 |
|
esac |
3791 |
|
;; |
3792 |
|
dgux*) |
3793 |
|
case $cc_basename in |
3794 |
|
ec++) |
3795 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3796 |
|
;; |
3797 |
|
ghcx) |
3798 |
|
# Green Hills C++ Compiler |
3799 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3800 |
|
;; |
3801 |
|
*) |
3802 |
|
;; |
3803 |
|
esac |
3804 |
|
;; |
3805 |
|
freebsd*) |
3806 |
|
# FreeBSD uses GNU C++ |
3807 |
|
;; |
3808 |
|
hpux9* | hpux10* | hpux11*) |
3809 |
|
case $cc_basename in |
3810 |
|
CC) |
3811 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3812 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
3813 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
3814 |
|
;; |
3815 |
|
aCC) |
3816 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3817 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
3818 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
3819 |
|
;; |
3820 |
|
*) |
3821 |
|
;; |
3822 |
|
esac |
3823 |
|
;; |
3824 |
|
irix5* | irix6*) |
3825 |
|
case $cc_basename in |
3826 |
|
CC) |
3827 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3828 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3829 |
|
# CC pic flag -KPIC is the default. |
3830 |
|
;; |
3831 |
|
*) |
3832 |
|
;; |
3833 |
|
esac |
3834 |
|
;; |
3835 |
|
linux*) |
3836 |
|
case $cc_basename in |
3837 |
|
KCC) |
3838 |
|
# KAI C++ Compiler |
3839 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
3840 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3841 |
|
;; |
3842 |
|
cxx) |
3843 |
|
# Compaq C++ |
3844 |
|
# Make sure the PIC flag is empty. It appears that all Alpha |
3845 |
|
# Linux and Compaq Tru64 Unix objects are PIC. |
3846 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
3847 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3848 |
|
;; |
3849 |
|
*) |
3850 |
|
;; |
3851 |
|
esac |
3852 |
|
;; |
3853 |
|
lynxos*) |
3854 |
|
;; |
3855 |
|
m88k*) |
3856 |
|
;; |
3857 |
|
mvs*) |
3858 |
|
case $cc_basename in |
3859 |
|
cxx) |
3860 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
3861 |
|
;; |
3862 |
|
*) |
3863 |
|
;; |
3864 |
|
esac |
3865 |
|
;; |
3866 |
|
netbsd*) |
3867 |
|
;; |
3868 |
|
osf3* | osf4* | osf5*) |
3869 |
|
case $cc_basename in |
3870 |
|
KCC) |
3871 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
3872 |
|
;; |
3873 |
|
RCC) |
3874 |
|
# Rational C++ 2.4.1 |
3875 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3876 |
|
;; |
3877 |
|
cxx) |
3878 |
|
# Digital/Compaq C++ |
3879 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3880 |
|
# Make sure the PIC flag is empty. It appears that all Alpha |
3881 |
|
# Linux and Compaq Tru64 Unix objects are PIC. |
3882 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
3883 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3884 |
|
;; |
3885 |
|
*) |
3886 |
|
;; |
3887 |
|
esac |
3888 |
|
;; |
3889 |
|
psos*) |
3890 |
|
;; |
3891 |
|
sco*) |
3892 |
|
case $cc_basename in |
3893 |
|
CC) |
3894 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3895 |
|
;; |
3896 |
|
*) |
3897 |
|
;; |
3898 |
|
esac |
3899 |
|
;; |
3900 |
|
solaris*) |
3901 |
|
case $cc_basename in |
3902 |
|
CC) |
3903 |
|
# Sun C++ 4.2, 5.x and Centerline C++ |
3904 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3905 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3906 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
3907 |
|
;; |
3908 |
|
gcx) |
3909 |
|
# Green Hills C++ Compiler |
3910 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
3911 |
|
;; |
3912 |
|
*) |
3913 |
|
;; |
3914 |
|
esac |
3915 |
|
;; |
3916 |
|
sunos4*) |
3917 |
|
case $cc_basename in |
3918 |
|
CC) |
3919 |
|
# Sun C++ 4.x |
3920 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3921 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3922 |
|
;; |
3923 |
|
lcc) |
3924 |
|
# Lucid |
3925 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3926 |
|
;; |
3927 |
|
*) |
3928 |
|
;; |
3929 |
|
esac |
3930 |
|
;; |
3931 |
|
tandem*) |
3932 |
|
case $cc_basename in |
3933 |
|
NCC) |
3934 |
|
# NonStop-UX NCC 3.20 |
3935 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3936 |
|
;; |
3937 |
|
*) |
3938 |
|
;; |
3939 |
|
esac |
3940 |
|
;; |
3941 |
|
unixware*) |
3942 |
|
;; |
3943 |
|
vxworks*) |
3944 |
|
;; |
3945 |
|
*) |
3946 |
|
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
3947 |
|
;; |
3948 |
|
esac |
3949 |
|
fi |
3950 |
|
], |
3951 |
|
[AC_MSG_CHECKING([for $compiler option to produce PIC]) |
3952 |
|
if test "$GCC" = yes; then |
3953 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3954 |
if test "$host_cpu" = ia64; then |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
3955 |
# AIX 5 now supports IA64 processor |
|
3956 |
|
case $host_os in |
3957 |
|
aix*) |
3958 |
|
# All AIX code is PIC. |
3959 |
|
if test "$host_cpu" = ia64; then |
3960 |
|
# AIX 5 now supports IA64 processor |
3961 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3962 |
|
else |
3963 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
3964 |
|
fi |
3965 |
|
;; |
3966 |
|
|
3967 |
|
amigaos*) |
3968 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
3969 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
3970 |
|
# like `-m68040'. |
3971 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' |
3972 |
|
;; |
3973 |
|
|
3974 |
|
beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
3975 |
|
# PIC is the default for these OSes. |
3976 |
|
;; |
3977 |
|
|
3978 |
|
cygwin* | mingw* | pw32* | os2*) |
3979 |
|
# This hack is so that the source file can tell whether it is being |
3980 |
|
# built for inclusion in a dll (and should export symbols for example). |
3981 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
3982 |
|
;; |
3983 |
|
|
3984 |
|
darwin* | rhapsody*) |
3985 |
|
# PIC is the default on this platform |
3986 |
|
# Common symbols not allowed in MH_DYLIB files |
3987 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
3988 |
|
;; |
3989 |
|
|
3990 |
|
msdosdjgpp*) |
3991 |
|
# Just because we use GCC doesn't mean we suddenly get shared libraries |
3992 |
|
# on systems that don't support them. |
3993 |
|
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
3994 |
|
enable_shared=no |
3995 |
|
;; |
3996 |
|
|
3997 |
|
sysv4*MP*) |
3998 |
|
if test -d /usr/nec; then |
3999 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
4000 |
|
fi |
4001 |
|
;; |
4002 |
|
|
4003 |
|
*) |
4004 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4005 |
|
;; |
4006 |
|
esac |
4007 |
|
else |
4008 |
|
# PORTME Check for flag to pass linker flags through the system compiler. |
4009 |
|
case $host_os in |
4010 |
|
aix*) |
4011 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4012 |
|
if test "$host_cpu" = ia64; then |
4013 |
|
# AIX 5 now supports IA64 processor |
4014 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4015 |
|
else |
4016 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
4017 |
|
fi |
4018 |
|
;; |
4019 |
|
|
4020 |
|
cygwin* | mingw* | pw32* | os2*) |
4021 |
|
# This hack is so that the source file can tell whether it is being |
4022 |
|
# built for inclusion in a dll (and should export symbols for example). |
4023 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
4024 |
|
;; |
4025 |
|
|
4026 |
|
hpux9* | hpux10* | hpux11*) |
4027 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4028 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4029 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
4030 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4031 |
|
;; |
4032 |
|
|
4033 |
|
irix5* | irix6*) |
4034 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4035 |
|
# PIC (with -KPIC) is the default. |
4036 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4037 |
|
;; |
4038 |
|
|
4039 |
|
newsos6) |
4040 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4041 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4042 |
else |
;; |
4043 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
|
4044 |
fi |
osf3* | osf4* | osf5*) |
|
;; |
|
|
|
|
|
cygwin* | mingw* | pw32* | os2*) |
|
|
# This hack is so that the source file can tell whether it is being |
|
|
# built for inclusion in a dll (and should export symbols for example). |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' |
|
|
;; |
|
|
|
|
|
hpux9* | hpux10* | hpux11*) |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
|
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
|
|
;; |
|
|
|
|
|
irix5* | irix6*) |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
# PIC (with -KPIC) is the default. |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
|
|
;; |
|
|
|
|
|
newsos6) |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
|
;; |
|
|
|
|
|
osf3* | osf4* | osf5*) |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
# All OSF/1 code is PIC. |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
|
|
;; |
|
|
|
|
|
sco3.2v5*) |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' |
|
|
;; |
|
|
|
|
|
solaris*) |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
|
;; |
|
|
|
|
|
sunos4*) |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
|
|
;; |
|
|
|
|
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
if test "x$host_vendor" = xsni; then |
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-LD' |
|
|
else |
|
4045 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4046 |
fi |
# All OSF/1 code is PIC. |
4047 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4048 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
;; |
4049 |
;; |
|
4050 |
|
sco3.2v5*) |
4051 |
sysv4*MP*) |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' |
4052 |
if test -d /usr/nec ;then |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' |
4053 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
;; |
4054 |
|
|
4055 |
|
solaris*) |
4056 |
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4057 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4058 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4059 |
fi |
;; |
4060 |
;; |
|
4061 |
|
sunos4*) |
4062 |
uts4*) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4063 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4064 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4065 |
;; |
;; |
4066 |
|
|
4067 |
*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
4068 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
if test "x$host_vendor" = xsni; then |
4069 |
;; |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-LD' |
4070 |
esac |
else |
4071 |
fi |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4072 |
|
fi |
4073 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4074 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4075 |
|
;; |
4076 |
|
|
4077 |
|
sysv4*MP*) |
4078 |
|
if test -d /usr/nec ;then |
4079 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
4080 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4081 |
|
fi |
4082 |
|
;; |
4083 |
|
|
4084 |
|
uts4*) |
4085 |
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4086 |
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4087 |
|
;; |
4088 |
|
|
4089 |
|
*) |
4090 |
|
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4091 |
|
;; |
4092 |
|
esac |
4093 |
|
fi |
4094 |
|
]) |
4095 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) |
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) |
4096 |
|
|
4097 |
# |
# |
4125 |
# See if the linker supports building shared libraries. |
# See if the linker supports building shared libraries. |
4126 |
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], |
4127 |
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4128 |
|
ifelse([$1],[CXX],[],[ |
4129 |
runpath_var= |
runpath_var= |
4130 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
4131 |
|
|
4132 |
_LT_AC_TAGVAR(archive_cmds, $1)= |
_LT_AC_TAGVAR(archive_cmds, $1)= |
4133 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)= |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)= |
4134 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
4135 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= |
4136 |
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= |
4137 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
4138 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
4139 |
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)= |
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)= |
4140 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4141 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
4142 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
4143 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
4144 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4145 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
4146 |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
4147 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
4148 |
# include_expsyms should be a list of space-separated symbols to be *always* |
# include_expsyms should be a list of space-separated symbols to be *always* |
4149 |
# included in the symbol list |
# included in the symbol list |
4150 |
_LT_AC_TAGVAR(include_expsyms, $1)= |
_LT_AC_TAGVAR(include_expsyms, $1)= |
4151 |
# exclude_expsyms can be an egrep regular expression of symbols to exclude |
# exclude_expsyms can be an egrep regular expression of symbols to exclude |
4152 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
4153 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
4154 |
# as well as any symbol that contains `d'. |
# as well as any symbol that contains `d'. |
4155 |
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" |
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" |
4156 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
4157 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
# platforms (ab)use it in PIC code, but their linkers get confused if |
4158 |
# the symbol is explicitly referenced. Since portable code cannot |
# the symbol is explicitly referenced. Since portable code cannot |
4159 |
# rely on this symbol name, it's probably fine to never include it in |
# rely on this symbol name, it's probably fine to never include it in |
4160 |
# preloaded symbol tables. |
# preloaded symbol tables. |
4161 |
extract_expsyms_cmds= |
extract_expsyms_cmds= |
4162 |
|
|
|
case $host_os in |
|
|
cygwin* | mingw* | pw32*) |
|
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
# When not using gcc, we currently assume that we are using |
|
|
# Microsoft Visual C++. |
|
|
if test "$GCC" != yes; then |
|
|
with_gnu_ld=no |
|
|
fi |
|
|
;; |
|
|
openbsd*) |
|
|
with_gnu_ld=no |
|
|
;; |
|
|
esac |
|
|
|
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
|
|
if test "$with_gnu_ld" = yes; then |
|
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
wlarc='${wl}' |
|
|
|
|
|
# See if GNU ld supports shared libraries. |
|
4163 |
case $host_os in |
case $host_os in |
4164 |
aix3* | aix4* | aix5*) |
cygwin* | mingw* | pw32*) |
4165 |
# On AIX/PPC, the GNU linker is very broken |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
4166 |
if test "$host_cpu" != ia64; then |
# When not using gcc, we currently assume that we are using |
4167 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
# Microsoft Visual C++. |
4168 |
cat <<EOF 1>&2 |
if test "$GCC" != yes; then |
4169 |
|
with_gnu_ld=no |
4170 |
|
fi |
4171 |
|
;; |
4172 |
|
openbsd*) |
4173 |
|
with_gnu_ld=no |
4174 |
|
;; |
4175 |
|
esac |
4176 |
|
|
4177 |
|
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
4178 |
|
if test "$with_gnu_ld" = yes; then |
4179 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
4180 |
|
wlarc='${wl}' |
4181 |
|
|
4182 |
|
# See if GNU ld supports shared libraries. |
4183 |
|
case $host_os in |
4184 |
|
aix3* | aix4* | aix5*) |
4185 |
|
# On AIX/PPC, the GNU linker is very broken |
4186 |
|
if test "$host_cpu" != ia64; then |
4187 |
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4188 |
|
cat <<EOF 1>&2 |
4189 |
|
|
4190 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
4191 |
*** to be unable to reliably create shared libraries on AIX. |
*** to be unable to reliably create shared libraries on AIX. |
4194 |
*** so that a non-GNU linker is found, and then restart. |
*** so that a non-GNU linker is found, and then restart. |
4195 |
|
|
4196 |
EOF |
EOF |
4197 |
fi |
fi |
|
;; |
|
|
|
|
|
amigaos*) |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
|
|
|
|
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
# to version 4, is to share data among multiple programs linked |
|
|
# with the same dynamic library. Since this doesn't match the |
|
|
# behavior of shared libraries on other platforms, we can't use |
|
|
# them. |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
;; |
|
|
|
|
|
beos*) |
|
|
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
|
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
# support --undefined. This deserves some investigation. FIXME |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
else |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
fi |
|
|
;; |
|
|
|
|
|
cygwin* | mingw* | pw32*) |
|
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, as there is |
|
|
# no search path for DLLs. |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
|
|
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
|
|
|
|
|
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
|
|
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
|
|
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
|
|
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
|
|
else $CC -o impgen impgen.c ; fi)~ |
|
|
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
|
|
|
|
|
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
|
|
|
|
|
# cygwin and mingw dlls have different entry points and sets of symbols |
|
|
# to exclude. |
|
|
# FIXME: what about values for MSVC? |
|
|
dll_entry=__cygwin_dll_entry@12 |
|
|
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
|
|
case $host_os in |
|
|
mingw*) |
|
|
# mingw values |
|
|
dll_entry=_DllMainCRTStartup@12 |
|
|
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
|
4198 |
;; |
;; |
4199 |
esac |
|
4200 |
|
amigaos*) |
4201 |
# mingw and cygwin differ, and it's simplest to just exclude the union |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
4202 |
# of the two symbol sets. |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4203 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4204 |
|
|
4205 |
# recent cygwin and mingw systems supply a stub DllMain which the user |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
4206 |
# can override, but on older systems we have to supply one (in ltdll.c) |
# that the semantics of dynamic libraries on AmigaOS, at least up |
4207 |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
# to version 4, is to share data among multiple programs linked |
4208 |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
# with the same dynamic library. Since this doesn't match the |
4209 |
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
# behavior of shared libraries on other platforms, we can't use |
4210 |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
# them. |
|
else |
|
|
ltdll_obj= |
|
|
ltdll_cmds= |
|
|
fi |
|
|
|
|
|
# Extract the symbol export list from an `--export-all' def file, |
|
|
# then regenerate the def file from the symbol export list, so that |
|
|
# the compiled dll only exports the symbol export list. |
|
|
# Be careful not to strip the DATA tag left by newer dlltools. |
|
|
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"' |
|
|
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
|
|
[sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"] < $output_objdir/$soname-def > $export_symbols' |
|
|
|
|
|
# If the export-symbols file already is a .def file (1st line |
|
|
# is EXPORTS), use it as is. |
|
|
# If DATA tags from a recent dlltool are present, honour them! |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
|
|
cp $export_symbols $output_objdir/$soname-def; |
|
|
else |
|
|
echo EXPORTS > $output_objdir/$soname-def; |
|
|
_lt_hint=1; |
|
|
cat $export_symbols | while read symbol; do |
|
|
set dummy \$symbol; |
|
|
case \[$]# in |
|
|
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
|
|
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; |
|
|
esac; |
|
|
_lt_hint=`expr 1 + \$_lt_hint`; |
|
|
done; |
|
|
fi~ |
|
|
'"$ltdll_cmds"' |
|
|
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
|
|
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
|
|
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
|
|
;; |
|
|
|
|
|
darwin* | rhapsody*) |
|
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
|
|
# FIXME: Relying on posixy $() will cause problems for |
|
|
# cross-compilation, but unfortunately the echo tests do not |
|
|
# yet detect zsh echo's removal of \ escapes. |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)' |
|
|
# We need to add '_' to the symbols in $export_symbols first |
|
|
#_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$_LT_AC_TAGVAR(archive_cmds, $1)"' && strip -s $export_symbols' |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
|
|
;; |
|
|
|
|
|
netbsd*) |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
wlarc= |
|
|
else |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
fi |
|
|
;; |
|
|
|
|
|
solaris* | sysv5*) |
|
|
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
|
4211 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4212 |
cat <<EOF 1>&2 |
;; |
4213 |
|
|
4214 |
|
beos*) |
4215 |
|
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
4216 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4217 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
4218 |
|
# support --undefined. This deserves some investigation. FIXME |
4219 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4220 |
|
else |
4221 |
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4222 |
|
fi |
4223 |
|
;; |
4224 |
|
|
4225 |
|
cygwin* | mingw* | pw32*) |
4226 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, as there is |
4227 |
|
# no search path for DLLs. |
4228 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4229 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4230 |
|
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4231 |
|
|
4232 |
|
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
4233 |
|
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
4234 |
|
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
4235 |
|
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
4236 |
|
else $CC -o impgen impgen.c ; fi)~ |
4237 |
|
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
4238 |
|
|
4239 |
|
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
4240 |
|
|
4241 |
|
# cygwin and mingw dlls have different entry points and sets of symbols |
4242 |
|
# to exclude. |
4243 |
|
# FIXME: what about values for MSVC? |
4244 |
|
dll_entry=__cygwin_dll_entry@12 |
4245 |
|
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
4246 |
|
case $host_os in |
4247 |
|
mingw*) |
4248 |
|
# mingw values |
4249 |
|
dll_entry=_DllMainCRTStartup@12 |
4250 |
|
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
4251 |
|
;; |
4252 |
|
esac |
4253 |
|
|
4254 |
|
# mingw and cygwin differ, and it's simplest to just exclude the union |
4255 |
|
# of the two symbol sets. |
4256 |
|
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
4257 |
|
|
4258 |
|
# recent cygwin and mingw systems supply a stub DllMain which the user |
4259 |
|
# can override, but on older systems we have to supply one (in ltdll.c) |
4260 |
|
if test "x$lt_cv_need_dllmain" = "xyes"; then |
4261 |
|
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
4262 |
|
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
4263 |
|
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
4264 |
|
else |
4265 |
|
ltdll_obj= |
4266 |
|
ltdll_cmds= |
4267 |
|
fi |
4268 |
|
|
4269 |
|
# Extract the symbol export list from an `--export-all' def file, |
4270 |
|
# then regenerate the def file from the symbol export list, so that |
4271 |
|
# the compiled dll only exports the symbol export list. |
4272 |
|
# Be careful not to strip the DATA tag left by newer dlltools. |
4273 |
|
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"' |
4274 |
|
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
4275 |
|
[sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"] < $output_objdir/$soname-def > $export_symbols' |
4276 |
|
|
4277 |
|
# If the export-symbols file already is a .def file (1st line |
4278 |
|
# is EXPORTS), use it as is. |
4279 |
|
# If DATA tags from a recent dlltool are present, honour them! |
4280 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
4281 |
|
cp $export_symbols $output_objdir/$soname-def; |
4282 |
|
else |
4283 |
|
echo EXPORTS > $output_objdir/$soname-def; |
4284 |
|
_lt_hint=1; |
4285 |
|
cat $export_symbols | while read symbol; do |
4286 |
|
set dummy \$symbol; |
4287 |
|
case \[$]# in |
4288 |
|
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
4289 |
|
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; |
4290 |
|
esac; |
4291 |
|
_lt_hint=`expr 1 + \$_lt_hint`; |
4292 |
|
done; |
4293 |
|
fi~ |
4294 |
|
'"$ltdll_cmds"' |
4295 |
|
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
4296 |
|
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
4297 |
|
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
4298 |
|
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
4299 |
|
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
4300 |
|
;; |
4301 |
|
|
4302 |
|
darwin* | rhapsody*) |
4303 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
4304 |
|
# FIXME: Relying on posixy $() will cause problems for |
4305 |
|
# cross-compilation, but unfortunately the echo tests do not |
4306 |
|
# yet detect zsh echo's removal of \ escapes. |
4307 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)' |
4308 |
|
# We need to add '_' to the symbols in $export_symbols first |
4309 |
|
#_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$_LT_AC_TAGVAR(archive_cmds, $1)"' && strip -s $export_symbols' |
4310 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4311 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4312 |
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
4313 |
|
;; |
4314 |
|
|
4315 |
|
netbsd*) |
4316 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
4317 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
4318 |
|
wlarc= |
4319 |
|
else |
4320 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4321 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
4322 |
|
fi |
4323 |
|
;; |
4324 |
|
|
4325 |
|
solaris* | sysv5*) |
4326 |
|
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
4327 |
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4328 |
|
cat <<EOF 1>&2 |
4329 |
|
|
4330 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
4331 |
*** create shared libraries on Solaris systems. Therefore, libtool |
*** create shared libraries on Solaris systems. Therefore, libtool |
4332 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
*** is disabling shared libraries support. We urge you to upgrade GNU |
4333 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
*** binutils to release 2.9.1 or newer. Another option is to modify |
4334 |
*** your PATH or compiler configuration so that the native linker is |
*** your PATH or compiler configuration so that the native linker is |
4335 |
*** used, and then restart. |
*** used, and then restart. |
4336 |
|
|
4337 |
EOF |
EOF |
4338 |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
4339 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4340 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
4341 |
else |
else |
4342 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4343 |
fi |
fi |
4344 |
;; |
;; |
4345 |
|
|
4346 |
sunos4*) |
sunos4*) |
4347 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
4348 |
wlarc= |
wlarc= |
4349 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4350 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
;; |
|
|
|
|
|
*) |
|
|
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
else |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
fi |
|
|
;; |
|
|
esac |
|
|
|
|
|
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
|
|
runpath_var=LD_RUN_PATH |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
|
|
case $host_os in |
|
|
cygwin* | mingw* | pw32*) |
|
|
# dlltool doesn't understand --whole-archive et. al. |
|
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
|
4351 |
;; |
;; |
4352 |
|
|
4353 |
*) |
*) |
4354 |
# ancient GNU ld didn't support --whole-archive et. al. |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
4355 |
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4356 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
4357 |
else |
else |
4358 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4359 |
fi |
fi |
4360 |
;; |
;; |
4361 |
esac |
esac |
4362 |
fi |
|
4363 |
else |
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
4364 |
# PORTME fill in a description of your system's linker (not GNU ld) |
runpath_var=LD_RUN_PATH |
4365 |
case $host_os in |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
4366 |
aix3*) |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4367 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
case $host_os in |
4368 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
cygwin* | mingw* | pw32*) |
4369 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
# dlltool doesn't understand --whole-archive et. al. |
4370 |
# Note: this linker hardcodes the directories in LIBPATH if there |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
4371 |
# are no directories specified by -L. |
;; |
4372 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
*) |
4373 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
# ancient GNU ld didn't support --whole-archive et. al. |
4374 |
# Neither direct hardcoding nor static linking is supported with a |
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
4375 |
# broken collect2. |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
|
|
fi |
|
|
;; |
|
|
|
|
|
aix4* | aix5*) |
|
|
if test "$host_cpu" = ia64; then |
|
|
# On IA64, the linker does run time linking by default, so we don't |
|
|
# have to do anything special. |
|
|
aix_use_runtimelinking=no |
|
|
exp_sym_flag='-Bexport' |
|
|
no_entry_flag="" |
|
|
else |
|
|
aix_use_runtimelinking=no |
|
|
|
|
|
# Test if we are trying to use run time linking or normal |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
# need to do runtime linking. |
|
|
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
|
|
for ld_flag in $LDFLAGS; do |
|
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
|
aix_use_runtimelinking=yes |
|
|
break |
|
|
fi |
|
|
done |
|
|
esac |
|
|
|
|
|
exp_sym_flag='-bexport' |
|
|
no_entry_flag='-bnoentry' |
|
|
fi |
|
|
|
|
|
# When large executables or shared objects are built, AIX ld can |
|
|
# have problems creating the table of contents. If linking a library |
|
|
# or program results in "error TOC overflow" add -mminimal-toc to |
|
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
|
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='' |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
|
|
|
if test "$GCC" = yes; then |
|
|
case $host_os in aix4.[012]|aix4.[012].*) |
|
|
# We only want to do this on AIX 4.2 and lower, the check |
|
|
# below for broken collect2 doesn't work under 4.3+ |
|
|
collect2name=`${CC} -print-prog-name=collect2` |
|
|
if test -f "$collect2name" && \ |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
then |
|
|
# We have reworked collect2 |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
4376 |
else |
else |
4377 |
# We have old collect2 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
|
|
# It fails to find uninstalled libraries when the uninstalled |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L |
|
|
# to unsupported forces relinking |
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
|
4378 |
fi |
fi |
4379 |
|
;; |
4380 |
esac |
esac |
4381 |
shared_flag='-shared' |
fi |
4382 |
else |
else |
4383 |
# not using gcc |
# PORTME fill in a description of your system's linker (not GNU ld) |
4384 |
|
case $host_os in |
4385 |
|
aix3*) |
4386 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4387 |
|
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4388 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
4389 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
4390 |
|
# are no directories specified by -L. |
4391 |
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4392 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
4393 |
|
# Neither direct hardcoding nor static linking is supported with a |
4394 |
|
# broken collect2. |
4395 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
4396 |
|
fi |
4397 |
|
;; |
4398 |
|
|
4399 |
|
aix4* | aix5*) |
4400 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
4401 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
# On IA64, the linker does run time linking by default, so we don't |
4402 |
# chokes on -Wl,-G. The following line is correct: |
# have to do anything special. |
4403 |
shared_flag='-G' |
aix_use_runtimelinking=no |
4404 |
|
exp_sym_flag='-Bexport' |
4405 |
|
no_entry_flag="" |
4406 |
else |
else |
4407 |
if test "$aix_use_runtimelinking" = yes; then |
aix_use_runtimelinking=no |
4408 |
shared_flag='${wl}-G' |
|
4409 |
else |
# Test if we are trying to use run time linking or normal |
4410 |
shared_flag='${wl}-bM:SRE' |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
4411 |
fi |
# need to do runtime linking. |
4412 |
|
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
4413 |
|
for ld_flag in $LDFLAGS; do |
4414 |
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
4415 |
|
aix_use_runtimelinking=yes |
4416 |
|
break |
4417 |
|
fi |
4418 |
|
done |
4419 |
|
esac |
4420 |
|
|
4421 |
|
exp_sym_flag='-bexport' |
4422 |
|
no_entry_flag='-bnoentry' |
4423 |
fi |
fi |
4424 |
fi |
|
4425 |
|
# When large executables or shared objects are built, AIX ld can |
4426 |
# It seems that -bexpall does not export symbols beginning with |
# have problems creating the table of contents. If linking a library |
4427 |
# underscore (_), so it is better to generate a list of symbols to export. |
# or program results in "error TOC overflow" add -mminimal-toc to |
4428 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
4429 |
if test "$aix_use_runtimelinking" = yes; then |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
4430 |
# Warning - without using the other runtime loading flags (-brtl), |
|
4431 |
# -berok will link without error, but may produce a broken library. |
_LT_AC_TAGVAR(archive_cmds, $1)='' |
4432 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4433 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:/usr/lib:/lib' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
4434 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4435 |
else |
|
4436 |
if test "$host_cpu" = ia64; then |
if test "$GCC" = yes; then |
4437 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
case $host_os in aix4.[012]|aix4.[012].*) |
4438 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
# We only want to do this on AIX 4.2 and lower, the check |
4439 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
# below for broken collect2 doesn't work under 4.3+ |
4440 |
|
collect2name=`${CC} -print-prog-name=collect2` |
4441 |
|
if test -f "$collect2name" && \ |
4442 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
4443 |
|
then |
4444 |
|
# We have reworked collect2 |
4445 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4446 |
|
else |
4447 |
|
# We have old collect2 |
4448 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
4449 |
|
# It fails to find uninstalled libraries when the uninstalled |
4450 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
4451 |
|
# to unsupported forces relinking |
4452 |
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4453 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4454 |
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
4455 |
|
fi |
4456 |
|
esac |
4457 |
|
shared_flag='-shared' |
4458 |
else |
else |
4459 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:/usr/lib:/lib' |
# not using gcc |
4460 |
# Warning - without using the other run time loading flags, |
if test "$host_cpu" = ia64; then |
4461 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
4462 |
|
# chokes on -Wl,-G. The following line is correct: |
4463 |
|
shared_flag='-G' |
4464 |
|
else |
4465 |
|
if test "$aix_use_runtimelinking" = yes; then |
4466 |
|
shared_flag='${wl}-G' |
4467 |
|
else |
4468 |
|
shared_flag='${wl}-bM:SRE' |
4469 |
|
fi |
4470 |
|
fi |
4471 |
|
fi |
4472 |
|
|
4473 |
|
# It seems that -bexpall does not export symbols beginning with |
4474 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
4475 |
|
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4476 |
|
if test "$aix_use_runtimelinking" = yes; then |
4477 |
|
# Warning - without using the other runtime loading flags (-brtl), |
4478 |
# -berok will link without error, but may produce a broken library. |
# -berok will link without error, but may produce a broken library. |
4479 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bnoerok' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
4480 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:/usr/lib:/lib' |
4481 |
# -bexpall does not export symbols beginning with underscore (_) |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
4482 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
else |
4483 |
# Exported symbols can be pulled into shared objects from archives |
if test "$host_cpu" = ia64; then |
4484 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
4485 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
4486 |
# This is similar to how AIX traditionally builds it's shared libraries. |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
4487 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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' |
else |
4488 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:/usr/lib:/lib' |
4489 |
|
# Warning - without using the other run time loading flags, |
4490 |
|
# -berok will link without error, but may produce a broken library. |
4491 |
|
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bnoerok' |
4492 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
4493 |
|
# -bexpall does not export symbols beginning with underscore (_) |
4494 |
|
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4495 |
|
# Exported symbols can be pulled into shared objects from archives |
4496 |
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
4497 |
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
4498 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
4499 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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' |
4500 |
|
fi |
4501 |
fi |
fi |
4502 |
fi |
;; |
4503 |
;; |
|
4504 |
|
amigaos*) |
4505 |
amigaos*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
4506 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4507 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4508 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
# see comment about different semantics on the GNU ld section |
4509 |
# see comment about different semantics on the GNU ld section |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4510 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; |
4511 |
;; |
|
4512 |
|
bsdi4*) |
4513 |
bsdi4*) |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
4514 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
;; |
4515 |
;; |
|
4516 |
|
cygwin* | mingw* | pw32*) |
4517 |
cygwin* | mingw* | pw32*) |
# When not using gcc, we currently assume that we are using |
4518 |
# When not using gcc, we currently assume that we are using |
# Microsoft Visual C++. |
4519 |
# Microsoft Visual C++. |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
4520 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
# no search path for DLLs. |
4521 |
# no search path for DLLs. |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
4522 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4523 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
# Tell ltmain to make .lib files, not .a files. |
4524 |
# Tell ltmain to make .lib files, not .a files. |
libext=lib |
4525 |
libext=lib |
# FIXME: Setting linknames here is a bad hack. |
4526 |
# FIXME: Setting linknames here is a bad hack. |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
4527 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
# The linker will automatically build a .lib file if we build a DLL. |
4528 |
# The linker will automatically build a .lib file if we build a DLL. |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
4529 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
# FIXME: Should let the user specify the lib program. |
4530 |
# FIXME: Should let the user specify the lib program. |
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
4531 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
4532 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
;; |
4533 |
;; |
|
4534 |
|
dgux*) |
4535 |
dgux*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4536 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4537 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4538 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
;; |
4539 |
;; |
|
4540 |
|
freebsd1*) |
4541 |
freebsd1*) |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4542 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; |
4543 |
;; |
|
4544 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
4545 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
# support. Future versions do this automatically, but an explicit c++rt0.o |
4546 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
# does not break anything, and helps significantly (at the cost of a little |
4547 |
# does not break anything, and helps significantly (at the cost of a little |
# extra space). |
4548 |
# extra space). |
freebsd2.2*) |
4549 |
freebsd2.2*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
4550 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4551 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4552 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4553 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
;; |
4554 |
;; |
|
4555 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
4556 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
freebsd2*) |
4557 |
freebsd2*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
4558 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4559 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4560 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4561 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
;; |
4562 |
;; |
|
4563 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
4564 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
freebsd*) |
4565 |
freebsd*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
4566 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4567 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4568 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4569 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
;; |
4570 |
;; |
|
4571 |
|
hpux9* | hpux10* | hpux11*) |
4572 |
hpux9* | hpux10* | hpux11*) |
if test $GXX = yes; then |
4573 |
if test $with_gcc = yes; then |
case $host_os in |
4574 |
case $host_os in |
hpux9*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
4575 |
hpux9*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; |
4576 |
*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; |
esac |
4577 |
|
else |
4578 |
|
case $host_os in |
4579 |
|
hpux9*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
4580 |
|
*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
4581 |
|
esac |
4582 |
|
fi |
4583 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4584 |
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4585 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4586 |
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, but as the default |
4587 |
|
# location of the library. |
4588 |
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4589 |
|
;; |
4590 |
|
|
4591 |
|
irix5* | irix6*) |
4592 |
|
if test "$GCC" = yes; then |
4593 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
4594 |
|
else |
4595 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
4596 |
|
fi |
4597 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4598 |
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4599 |
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4600 |
|
;; |
4601 |
|
|
4602 |
|
netbsd*) |
4603 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
4604 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
4605 |
|
else |
4606 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
4607 |
|
fi |
4608 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4609 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4610 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4611 |
|
;; |
4612 |
|
|
4613 |
|
newsos6) |
4614 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
4615 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4616 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4617 |
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4618 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4619 |
|
;; |
4620 |
|
|
4621 |
|
openbsd*) |
4622 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4623 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4624 |
|
|
4625 |
|
case "$host_os" in |
4626 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
4627 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
4628 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4629 |
|
;; |
4630 |
|
*) |
4631 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
4632 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4633 |
|
if [ "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ]; then |
4634 |
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4635 |
|
fi |
4636 |
|
;; |
4637 |
esac |
esac |
4638 |
else |
;; |
4639 |
|
|
4640 |
|
os2*) |
4641 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4642 |
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4643 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4644 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
4645 |
|
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
4646 |
|
;; |
4647 |
|
|
4648 |
|
osf3*) |
4649 |
|
if test "$GCC" = yes; then |
4650 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4651 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
4652 |
|
else |
4653 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4654 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
4655 |
|
fi |
4656 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4657 |
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4658 |
|
;; |
4659 |
|
|
4660 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
4661 |
|
if test "$GCC" = yes; then |
4662 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4663 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
4664 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4665 |
|
else |
4666 |
|
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4667 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$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' |
4668 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
4669 |
|
$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' |
4670 |
|
|
4671 |
|
# Both c and cxx compiler support -rpath directly |
4672 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
4673 |
|
fi |
4674 |
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4675 |
|
;; |
4676 |
|
|
4677 |
|
sco3.2v5*) |
4678 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4679 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4680 |
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
4681 |
|
runpath_var=LD_RUN_PATH |
4682 |
|
hardcode_runpath_var=yes |
4683 |
|
;; |
4684 |
|
|
4685 |
|
solaris*) |
4686 |
|
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z defs' |
4687 |
|
if test "$GXX" = yes; then |
4688 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4689 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4690 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
4691 |
|
else |
4692 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4693 |
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4694 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
4695 |
|
fi |
4696 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4697 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4698 |
case $host_os in |
case $host_os in |
4699 |
hpux9*) _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
[solaris2.[0-5] | solaris2.[0-5].*]) ;; |
4700 |
*) _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
4701 |
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
4702 |
esac |
esac |
4703 |
fi |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4704 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
;; |
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, but as the default |
|
|
# location of the library. |
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
|
|
;; |
|
|
|
|
|
irix5* | irix6*) |
|
|
if test "$GCC" = yes; then |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
else |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
fi |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
;; |
|
|
|
|
|
netbsd*) |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
else |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
fi |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
;; |
|
|
|
|
|
newsos6) |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
|
|
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
;; |
|
|
|
|
|
openbsd*) |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
4705 |
|
|
4706 |
case "$host_os" in |
sunos4*) |
4707 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
if test "x$host_vendor" = xsequent; then |
4708 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
# Use $CC to link under sequent, because it throws in some extra .o |
4709 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
# files that make .init and .fini sections work. |
4710 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
4711 |
|
else |
4712 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
4713 |
|
fi |
4714 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4715 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4716 |
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4717 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4718 |
;; |
;; |
4719 |
*) |
|
4720 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
sysv4) |
4721 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
if test "x$host_vendor" = xsni; then |
4722 |
if [ "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ]; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
4723 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
4724 |
fi |
else |
4725 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4726 |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
4727 |
|
fi |
4728 |
|
runpath_var='LD_RUN_PATH' |
4729 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4730 |
;; |
;; |
4731 |
esac |
|
4732 |
;; |
sysv4.3*) |
4733 |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4734 |
os2*) |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4735 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' |
4736 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
;; |
4737 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
|
4738 |
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
sysv4*MP*) |
4739 |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
if test -d /usr/nec; then |
4740 |
;; |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4741 |
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4742 |
osf3*) |
runpath_var=LD_RUN_PATH |
4743 |
if test "$GCC" = yes; then |
hardcode_runpath_var=yes |
4744 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
4745 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
fi |
4746 |
else |
;; |
4747 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
|
4748 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
sysv4.2uw2*) |
4749 |
fi |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
4750 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4751 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
4752 |
;; |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4753 |
|
hardcode_runpath_var=yes |
4754 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
runpath_var=LD_RUN_PATH |
4755 |
if test "$GCC" = yes; then |
;; |
4756 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
|
4757 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
sysv5uw7* | unixware7*) |
4758 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' |
4759 |
else |
if test "$GCC" = yes; then |
4760 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4761 |
_LT_AC_TAGVAR(archive_cmds, $1)='$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' |
else |
4762 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4763 |
$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' |
fi |
4764 |
|
runpath_var='LD_RUN_PATH' |
4765 |
# Both c and cxx compiler support -rpath directly |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4766 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
;; |
4767 |
fi |
|
4768 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
sysv5*) |
4769 |
;; |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
4770 |
|
# $CC -shared without GNU ld will not create a library from C++ |
4771 |
sco3.2v5*) |
# object files and a static libstdc++, better avoid it by now |
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' |
|
|
runpath_var=LD_RUN_PATH |
|
|
hardcode_runpath_var=yes |
|
|
;; |
|
|
|
|
|
solaris*) |
|
|
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z defs' |
|
|
if test "$with_gcc" = yes; then |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
|
else |
|
4772 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4773 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4774 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
4775 |
fi |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4776 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4777 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
runpath_var='LD_RUN_PATH' |
4778 |
case $host_os in |
;; |
4779 |
[solaris2.[0-5] | solaris2.[0-5].*]) ;; |
|
4780 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
uts4*) |
|
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
|
|
esac |
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
|
|
;; |
|
|
|
|
|
sunos4*) |
|
|
if test "x$host_vendor" = xsequent; then |
|
|
# Use $CC to link under sequent, because it throws in some extra .o |
|
|
# files that make .init and .fini sections work. |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
else |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
fi |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
;; |
|
|
|
|
|
sysv4) |
|
|
if test "x$host_vendor" = xsni; then |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
|
|
else |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
|
|
fi |
|
|
runpath_var='LD_RUN_PATH' |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
;; |
|
|
|
|
|
sysv4.3*) |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' |
|
|
;; |
|
|
|
|
|
sysv4*MP*) |
|
|
if test -d /usr/nec; then |
|
4781 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4782 |
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4783 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4784 |
runpath_var=LD_RUN_PATH |
;; |
4785 |
hardcode_runpath_var=yes |
|
4786 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
*) |
4787 |
fi |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4788 |
;; |
;; |
4789 |
|
esac |
4790 |
sysv4.2uw2*) |
fi |
4791 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
]) |
|
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
|
|
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
hardcode_runpath_var=yes |
|
|
runpath_var=LD_RUN_PATH |
|
|
;; |
|
|
|
|
|
sysv5uw7* | unixware7*) |
|
|
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' |
|
|
if test "$GCC" = yes; then |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
else |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
fi |
|
|
runpath_var='LD_RUN_PATH' |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
;; |
|
|
|
|
|
sysv5*) |
|
|
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
|
|
# $CC -shared without GNU ld will not create a library from C++ |
|
|
# object files and a static libstdc++, better avoid it by now |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
runpath_var='LD_RUN_PATH' |
|
|
;; |
|
|
|
|
|
uts4*) |
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
;; |
|
|
|
|
|
*) |
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
;; |
|
|
esac |
|
|
fi |
|
4792 |
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
4793 |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
4794 |
|
|