50 |
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
51 |
ifdef([LT_AC_PROG_GCJ], |
ifdef([LT_AC_PROG_GCJ], |
52 |
[define([LT_AC_PROG_GCJ], |
[define([LT_AC_PROG_GCJ], |
53 |
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
54 |
])])# AC_PROG_LIBTOOL |
])])# AC_PROG_LIBTOOL |
55 |
|
|
56 |
|
|
195 |
|
|
196 |
AC_ARG_ENABLE([libtool-lock], |
AC_ARG_ENABLE([libtool-lock], |
197 |
[AC_HELP_STRING([--disable-libtool-lock], |
[AC_HELP_STRING([--disable-libtool-lock], |
198 |
[avoid locking (might break parallel builds)])]) |
[avoid locking (might break parallel builds)])]) |
199 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
200 |
|
|
201 |
AC_ARG_WITH([pic], |
AC_ARG_WITH([pic], |
202 |
[AC_HELP_STRING([--with-pic], |
[AC_HELP_STRING([--with-pic], |
203 |
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
204 |
[pic_mode="$withval"], |
[pic_mode="$withval"], |
205 |
[pic_mode=default]) |
[pic_mode=default]) |
206 |
test -z "$pic_mode" && pic_mode=default |
test -z "$pic_mode" && pic_mode=default |
250 |
# Add some code to the start of the generated configure script which |
# Add some code to the start of the generated configure script which |
251 |
# will find an echo command which doesn't interpret backslashes. |
# will find an echo command which doesn't interpret backslashes. |
252 |
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
253 |
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
[ifdef([AC_DIVERSION_NOTICE], |
254 |
[AC_DIVERT_PUSH(NOTICE)]) |
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
255 |
|
[AC_DIVERT_PUSH(NOTICE)]) |
256 |
|
|
257 |
# Check that we are running under the correct shell. |
# Check that we are running under the correct shell. |
258 |
SHELL=${CONFIG_SHELL-/bin/sh} |
SHELL=${CONFIG_SHELL-/bin/sh} |
410 |
AC_DEFUN([_LT_AC_LOCK], |
AC_DEFUN([_LT_AC_LOCK], |
411 |
[AC_ARG_ENABLE([libtool-lock], |
[AC_ARG_ENABLE([libtool-lock], |
412 |
[AC_HELP_STRING([--disable-libtool-lock], |
[AC_HELP_STRING([--disable-libtool-lock], |
413 |
[avoid locking (might break parallel builds)])]) |
[avoid locking (might break parallel builds)])]) |
414 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
415 |
|
|
416 |
# Some flags need to be propagated to the compiler or linker for good |
# Some flags need to be propagated to the compiler or linker for good |
595 |
# maximum length that is only half of the actual maximum length, but |
# maximum length that is only half of the actual maximum length, but |
596 |
# we can't tell. |
# we can't tell. |
597 |
while test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ |
while test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ |
598 |
= "XX$testring" && |
= "XX$testring" && |
599 |
new_result=`expr "X$testring" : ".*" 2>&1` && |
new_result=`expr "X$testring" : ".*" 2>&1` && |
600 |
lt_cv_sys_max_cmd_len=$new_result && |
lt_cv_sys_max_cmd_len=$new_result && |
601 |
test $i != 17 # 1/2 MB should be enough |
test $i != 17 # 1/2 MB should be enough |
602 |
do |
do |
603 |
i=`expr $i + 1` |
i=`expr $i + 1` |
604 |
testring=$testring$testring |
testring=$testring$testring |
742 |
|
|
743 |
*) |
*) |
744 |
AC_CHECK_FUNC([shl_load], |
AC_CHECK_FUNC([shl_load], |
745 |
[lt_cv_dlopen="shl_load"], |
[lt_cv_dlopen="shl_load"], |
746 |
[AC_CHECK_LIB([dld], [shl_load], |
[AC_CHECK_LIB([dld], [shl_load], |
747 |
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
748 |
[AC_CHECK_FUNC([dlopen], |
[AC_CHECK_FUNC([dlopen], |
749 |
[lt_cv_dlopen="dlopen"], |
[lt_cv_dlopen="dlopen"], |
750 |
[AC_CHECK_LIB([dl], [dlopen], |
[AC_CHECK_LIB([dl], [dlopen], |
751 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
752 |
[AC_CHECK_LIB([svld], [dlopen], |
[AC_CHECK_LIB([svld], [dlopen], |
753 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
754 |
[AC_CHECK_LIB([dld], [dld_link], |
[AC_CHECK_LIB([dld], [dld_link], |
755 |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
756 |
]) |
]) |
757 |
]) |
]) |
758 |
]) |
]) |
827 |
cd conftest |
cd conftest |
828 |
mkdir out |
mkdir out |
829 |
ifelse([$1],[],[save_CFLAGS="$CFLAGS" |
ifelse([$1],[],[save_CFLAGS="$CFLAGS" |
830 |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"], |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"], |
831 |
[$1],[CXX],[save_CXXFLAGS="$CXXFLAGS" |
[$1],[CXX],[save_CXXFLAGS="$CXXFLAGS" |
832 |
CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"], |
CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"], |
833 |
[$1],[GCJ],[save_GCJFLAGS="$GCJFLAGS" |
[$1],[GCJ],[save_GCJFLAGS="$GCJFLAGS" |
834 |
GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"]) |
GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"]) |
835 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
836 |
|
|
837 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
853 |
fi |
fi |
854 |
fi |
fi |
855 |
ifelse([$1],[],[CFLAGS="$save_CFLAGS"], |
ifelse([$1],[],[CFLAGS="$save_CFLAGS"], |
856 |
[$1],[CXX],[CXXFLAGS="$save_CXXFLAGS"], |
[$1],[CXX],[CXXFLAGS="$save_CXXFLAGS"], |
857 |
[$1],[GCJ],[GCJFLAGS="$save_GCJFLAGS"]) |
[$1],[GCJ],[GCJFLAGS="$save_GCJFLAGS"]) |
858 |
chmod u+w . |
chmod u+w . |
859 |
$rm conftest* out/* |
$rm conftest* out/* |
860 |
rmdir out |
rmdir out |
1015 |
case $host_os in |
case $host_os in |
1016 |
aix4 | aix4.[[01]] | aix4.[[01]].*) |
aix4 | aix4.[[01]] | aix4.[[01]].*) |
1017 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
1018 |
echo ' yes ' |
echo ' yes ' |
1019 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
1020 |
: |
: |
1021 |
else |
else |
1022 |
can_build_shared=no |
can_build_shared=no |
1023 |
fi |
fi |
1024 |
;; |
;; |
1025 |
esac |
esac |
1406 |
AC_DEFUN([_LT_AC_TAGCONFIG], |
AC_DEFUN([_LT_AC_TAGCONFIG], |
1407 |
[AC_ARG_WITH([tags], |
[AC_ARG_WITH([tags], |
1408 |
[AC_HELP_STRING([--with-tags=TAGS], |
[AC_HELP_STRING([--with-tags=TAGS], |
1409 |
[include additional configurations @<:@CXX,GCJ@:>@])], |
[include additional configurations @<:@CXX,GCJ@:>@])], |
1410 |
[tagnames="$withval"], |
[tagnames="$withval"], |
1411 |
[tagnames="CXX,GCJ"]) |
[tagnames="CXX,GCJ"]) |
1412 |
|
|
1435 |
case `$echo "X$tagname" | $Xsed -e 's/[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]//g'` in |
case `$echo "X$tagname" | $Xsed -e 's/[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]//g'` in |
1436 |
"") ;; |
"") ;; |
1437 |
*) AC_MSG_ERROR([invalid tag name: $tagname]) |
*) AC_MSG_ERROR([invalid tag name: $tagname]) |
1438 |
;; |
;; |
1439 |
esac |
esac |
1440 |
|
|
1441 |
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
1449 |
|
|
1450 |
case $tagname in |
case $tagname in |
1451 |
CXX) |
CXX) |
1452 |
AC_LIBTOOL_LANG_CXX_CONFIG |
AC_LIBTOOL_LANG_CXX_CONFIG |
1453 |
;; |
;; |
1454 |
|
|
1455 |
GCJ) |
GCJ) |
1456 |
AC_LIBTOOL_LANG_GCJ_CONFIG |
AC_LIBTOOL_LANG_GCJ_CONFIG |
1457 |
;; |
;; |
1458 |
|
|
1459 |
*) |
*) |
1460 |
AC_MSG_ERROR([Unsupported tag name: $tagname]) |
AC_MSG_ERROR([Unsupported tag name: $tagname]) |
1461 |
;; |
;; |
1462 |
esac |
esac |
1463 |
|
|
1464 |
# Append the new tag name to the list of available tags. |
# Append the new tag name to the list of available tags. |
1503 |
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
1504 |
AC_ARG_ENABLE([shared], |
AC_ARG_ENABLE([shared], |
1505 |
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
1506 |
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
1507 |
[p=${PACKAGE-default} |
[p=${PACKAGE-default} |
1508 |
case $enableval in |
case $enableval in |
1509 |
yes) enable_shared=yes ;; |
yes) enable_shared=yes ;; |
1513 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
1514 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
1515 |
for pkg in $enableval; do |
for pkg in $enableval; do |
1516 |
IFS="$lt_save_ifs" |
IFS="$lt_save_ifs" |
1517 |
if test "X$pkg" = "X$p"; then |
if test "X$pkg" = "X$p"; then |
1518 |
enable_shared=yes |
enable_shared=yes |
1519 |
fi |
fi |
1520 |
done |
done |
1521 |
IFS="$lt_save_ifs" |
IFS="$lt_save_ifs" |
1522 |
;; |
;; |
1542 |
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
1543 |
AC_ARG_ENABLE([static], |
AC_ARG_ENABLE([static], |
1544 |
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
1545 |
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
1546 |
[p=${PACKAGE-default} |
[p=${PACKAGE-default} |
1547 |
case $enableval in |
case $enableval in |
1548 |
yes) enable_static=yes ;; |
yes) enable_static=yes ;; |
1552 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
1553 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
1554 |
for pkg in $enableval; do |
for pkg in $enableval; do |
1555 |
IFS="$lt_save_ifs" |
IFS="$lt_save_ifs" |
1556 |
if test "X$pkg" = "X$p"; then |
if test "X$pkg" = "X$p"; then |
1557 |
enable_static=yes |
enable_static=yes |
1558 |
fi |
fi |
1559 |
done |
done |
1560 |
IFS="$lt_save_ifs" |
IFS="$lt_save_ifs" |
1561 |
;; |
;; |
1591 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
1592 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
1593 |
for pkg in $enableval; do |
for pkg in $enableval; do |
1594 |
IFS="$lt_save_ifs" |
IFS="$lt_save_ifs" |
1595 |
if test "X$pkg" = "X$p"; then |
if test "X$pkg" = "X$p"; then |
1596 |
enable_fast_install=yes |
enable_fast_install=yes |
1597 |
fi |
fi |
1598 |
done |
done |
1599 |
IFS="$lt_save_ifs" |
IFS="$lt_save_ifs" |
1600 |
;; |
;; |
1705 |
AC_DEFUN([AC_PROG_LD], |
AC_DEFUN([AC_PROG_LD], |
1706 |
[AC_ARG_WITH([gnu-ld], |
[AC_ARG_WITH([gnu-ld], |
1707 |
[AC_HELP_STRING([--with-gnu-ld], |
[AC_HELP_STRING([--with-gnu-ld], |
1708 |
[assume the C compiler uses GNU ld @<:@default=no@:>@])], |
[assume the C compiler uses GNU ld @<:@default=no@:>@])], |
1709 |
[test "$withval" = no || with_gnu_ld=yes], |
[test "$withval" = no || with_gnu_ld=yes], |
1710 |
[with_gnu_ld=no]) |
[with_gnu_ld=no]) |
1711 |
AC_REQUIRE([AC_PROG_CC])dnl |
AC_REQUIRE([AC_PROG_CC])dnl |
2125 |
ifdef([AC_PROVIDE_IFELSE], |
ifdef([AC_PROVIDE_IFELSE], |
2126 |
[], |
[], |
2127 |
[define([AC_PROVIDE_IFELSE], |
[define([AC_PROVIDE_IFELSE], |
2128 |
[ifdef([AC_PROVIDE_$1], |
[ifdef([AC_PROVIDE_$1], |
2129 |
[$2], [$3])])]) |
[$2], [$3])])]) |
2130 |
|
|
2131 |
|
|
2132 |
# AC_LIBTOOL_CXX |
# AC_LIBTOOL_CXX |
2160 |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
2161 |
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
2162 |
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
2163 |
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
2164 |
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
2165 |
])# _LT_AC_LANG_GCJ |
])# _LT_AC_LANG_GCJ |
2166 |
|
|
2167 |
|
|
2359 |
|
|
2360 |
# ancient GNU ld didn't support --whole-archive et. al. |
# ancient GNU ld didn't support --whole-archive et. al. |
2361 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
2362 |
egrep 'no-whole-archive' > /dev/null; then |
egrep 'no-whole-archive' > /dev/null; then |
2363 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
2364 |
else |
else |
2365 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
2409 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
2410 |
# need to do runtime linking. |
# need to do runtime linking. |
2411 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
2412 |
for ld_flag in $LDFLAGS; do |
for ld_flag in $LDFLAGS; do |
2413 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
2414 |
aix_use_runtimelinking=yes |
aix_use_runtimelinking=yes |
2415 |
break |
break |
2416 |
fi |
fi |
2417 |
done |
done |
2418 |
esac |
esac |
2419 |
|
|
2420 |
exp_sym_flag='-bexport' |
exp_sym_flag='-bexport' |
2436 |
case $host_os in aix4.[012]|aix4.[012].*) |
case $host_os in aix4.[012]|aix4.[012].*) |
2437 |
# We only want to do this on AIX 4.2 and lower, the check |
# We only want to do this on AIX 4.2 and lower, the check |
2438 |
# below for broken collect2 doesn't work under 4.3+ |
# below for broken collect2 doesn't work under 4.3+ |
2439 |
collect2name=`${CC} -print-prog-name=collect2` |
collect2name=`${CC} -print-prog-name=collect2` |
2440 |
if test -f "$collect2name" && \ |
if test -f "$collect2name" && \ |
2441 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
2442 |
then |
then |
2443 |
# We have reworked collect2 |
# We have reworked collect2 |
2444 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
2445 |
else |
else |
2446 |
# We have old collect2 |
# We have old collect2 |
2447 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
2448 |
# It fails to find uninstalled libraries when the uninstalled |
# It fails to find uninstalled libraries when the uninstalled |
2451 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
2452 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2453 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
2454 |
fi |
fi |
2455 |
esac |
esac |
2456 |
shared_flag='-shared' |
shared_flag='-shared' |
2457 |
else |
else |
2459 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
2460 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
2461 |
# chokes on -Wl,-G. The following line is correct: |
# chokes on -Wl,-G. The following line is correct: |
2462 |
shared_flag='-G' |
shared_flag='-G' |
2463 |
else |
else |
2464 |
if test "$aix_use_runtimelinking" = yes; then |
if test "$aix_use_runtimelinking" = yes; then |
2465 |
shared_flag='${wl}-G' |
shared_flag='${wl}-G' |
2466 |
else |
else |
2467 |
shared_flag='${wl}-bM:SRE' |
shared_flag='${wl}-bM:SRE' |
2468 |
fi |
fi |
2469 |
fi |
fi |
2470 |
fi |
fi |
2483 |
_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(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" |
2484 |
else |
else |
2485 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
2486 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
2487 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
2488 |
_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" |
_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" |
2489 |
else |
else |
2490 |
# Determine the default libpath from the value encoded in an empty executable. |
# Determine the default libpath from the value encoded in an empty executable. |
2491 |
_LT_AC_SYS_LIBPATH_AIX |
_LT_AC_SYS_LIBPATH_AIX |
2492 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
2493 |
# Warning - without using the other run time loading flags, |
# Warning - without using the other run time loading flags, |
2494 |
# -berok will link without error, but may produce a broken library. |
# -berok will link without error, but may produce a broken library. |
2495 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
2496 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
2497 |
# -bexpall does not export symbols beginning with underscore (_) |
# -bexpall does not export symbols beginning with underscore (_) |
2498 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
2499 |
# Exported symbols can be pulled into shared objects from archives |
# Exported symbols can be pulled into shared objects from archives |
2500 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
2501 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
2502 |
# This is similar to how AIX traditionally builds it's shared libraries. |
# This is similar to how AIX traditionally builds it's shared libraries. |
2503 |
_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' |
_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' |
2504 |
fi |
fi |
2505 |
fi |
fi |
2506 |
;; |
;; |
2507 |
chorus*) |
chorus*) |
2508 |
case $cc_basename in |
case $cc_basename in |
2509 |
*) |
*) |
2510 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2511 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2512 |
;; |
;; |
2513 |
esac |
esac |
2514 |
;; |
;; |
2515 |
dgux*) |
dgux*) |
2516 |
case $cc_basename in |
case $cc_basename in |
2517 |
ec++) |
ec++) |
2518 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2519 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2520 |
;; |
;; |
2521 |
ghcx) |
ghcx) |
2522 |
# Green Hills C++ Compiler |
# Green Hills C++ Compiler |
2523 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2524 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2525 |
;; |
;; |
2526 |
*) |
*) |
2527 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2528 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2529 |
;; |
;; |
2530 |
esac |
esac |
2531 |
;; |
;; |
2532 |
freebsd[12]*) |
freebsd[12]*) |
2546 |
hpux*) |
hpux*) |
2547 |
if test $with_gnu_ld = no; then |
if test $with_gnu_ld = no; then |
2548 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
2549 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
2550 |
else |
else |
2551 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
2552 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2553 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
2554 |
fi |
fi |
2555 |
fi |
fi |
2556 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
2559 |
else |
else |
2560 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
2561 |
fi |
fi |
2562 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, but as the default |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
2563 |
# location of the library. |
# but as the default |
2564 |
|
# location of the library. |
2565 |
|
|
2566 |
case $cc_basename in |
case $cc_basename in |
2567 |
CC) |
CC) |
2568 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2569 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2570 |
;; |
;; |
2571 |
aCC) |
aCC) |
2572 |
case $host_os in |
case $host_os in |
2573 |
hpux9*) |
hpux9*) |
2574 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
2575 |
;; |
;; |
2576 |
*) |
*) |
2577 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
2578 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
2579 |
else |
else |
2580 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
2581 |
fi |
fi |
2582 |
;; |
;; |
2583 |
esac |
esac |
2584 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
2585 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
2586 |
# linking a shared library. |
# linking a shared library. |
2587 |
# |
# |
2588 |
# There doesn't appear to be a way to prevent this compiler from |
# There doesn't appear to be a way to prevent this compiler from |
2589 |
# explicitly linking system object files so we need to strip them |
# explicitly linking system object files so we need to strip them |
2590 |
# from the output so that they don't get included in the library |
# from the output so that they don't get included in the library |
2591 |
# dependencies. |
# dependencies. |
2592 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
2593 |
;; |
;; |
2594 |
*) |
*) |
2595 |
if test "$GXX" = yes; then |
if test "$GXX" = yes; then |
2596 |
if test $with_gnu_ld = no; then |
if test $with_gnu_ld = no; then |
2597 |
case $host_os in |
case $host_os in |
2598 |
hpux9*) |
hpux9*) |
2599 |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
2600 |
;; |
;; |
2601 |
*) |
*) |
2602 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
2603 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
2604 |
else |
else |
2605 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
2606 |
fi |
fi |
2607 |
;; |
;; |
2608 |
esac |
esac |
2609 |
fi |
fi |
2610 |
else |
else |
2611 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2612 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2613 |
fi |
fi |
2614 |
;; |
;; |
2615 |
esac |
esac |
2616 |
;; |
;; |
2617 |
irix5* | irix6*) |
irix5* | irix6*) |
2618 |
case $cc_basename in |
case $cc_basename in |
2619 |
CC) |
CC) |
2620 |
# SGI C++ |
# SGI C++ |
2621 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
2622 |
|
|
2623 |
# Archives containing C++ object files must be created using |
# Archives containing C++ object files must be created using |
2624 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
2627 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
2628 |
;; |
;; |
2629 |
*) |
*) |
2630 |
if test "$GXX" = yes; then |
if test "$GXX" = yes; then |
2631 |
if test "$with_gnu_ld" = no; then |
if test "$with_gnu_ld" = no; then |
2632 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
2633 |
else |
else |
2634 |
_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' |
2635 |
fi |
fi |
2636 |
fi |
fi |
2637 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
2638 |
;; |
;; |
2639 |
esac |
esac |
2640 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2641 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2643 |
linux*) |
linux*) |
2644 |
case $cc_basename in |
case $cc_basename in |
2645 |
KCC) |
KCC) |
2646 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
2647 |
|
|
2648 |
# KCC will only create a shared library if the output file |
# KCC will only create a shared library if the output file |
2649 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
2650 |
# to its proper name (with version) after linking. |
# to its proper name (with version) after linking. |
2651 |
_LT_AC_TAGVAR(archive_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
2652 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
2653 |
|
|
2654 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
2655 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
2656 |
# linking a shared library. |
# linking a shared library. |
2657 |
# |
# |
2658 |
# There doesn't appear to be a way to prevent this compiler from |
# There doesn't appear to be a way to prevent this compiler from |
2659 |
# explicitly linking system object files so we need to strip them |
# explicitly linking system object files so we need to strip them |
2660 |
# from the output so that they don't get included in the library |
# from the output so that they don't get included in the library |
2661 |
# dependencies. |
# dependencies. |
2662 |
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
2663 |
|
|
2664 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
2665 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
2666 |
|
|
2667 |
# Archives containing C++ object files must be created using |
# Archives containing C++ object files must be created using |
2668 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
2669 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
2670 |
;; |
;; |
2671 |
cxx) |
cxx) |
2672 |
# Compaq C++ |
# Compaq C++ |
2673 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
2674 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
2675 |
|
|
2676 |
runpath_var=LD_RUN_PATH |
runpath_var=LD_RUN_PATH |
2677 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
2678 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2679 |
|
|
2680 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
2681 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
2682 |
# linking a shared library. |
# linking a shared library. |
2683 |
# |
# |
2684 |
# There doesn't appear to be a way to prevent this compiler from |
# There doesn't appear to be a way to prevent this compiler from |
2685 |
# explicitly linking system object files so we need to strip them |
# explicitly linking system object files so we need to strip them |
2686 |
# from the output so that they don't get included in the library |
# from the output so that they don't get included in the library |
2687 |
# dependencies. |
# dependencies. |
2688 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
2689 |
;; |
;; |
2690 |
esac |
esac |
2691 |
;; |
;; |
2692 |
lynxos*) |
lynxos*) |
2700 |
mvs*) |
mvs*) |
2701 |
case $cc_basename in |
case $cc_basename in |
2702 |
cxx) |
cxx) |
2703 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2704 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2705 |
;; |
;; |
2706 |
*) |
*) |
2707 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2708 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2709 |
;; |
;; |
2710 |
esac |
esac |
2711 |
;; |
;; |
2712 |
netbsd*) |
netbsd*) |
2715 |
osf3*) |
osf3*) |
2716 |
case $cc_basename in |
case $cc_basename in |
2717 |
KCC) |
KCC) |
2718 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
2719 |
|
|
2720 |
# KCC will only create a shared library if the output file |
# KCC will only create a shared library if the output file |
2721 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
2722 |
# to its proper name (with version) after linking. |
# to its proper name (with version) after linking. |
2723 |
_LT_AC_TAGVAR(archive_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
2724 |
|
|
2725 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
2726 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2727 |
|
|
2728 |
# Archives containing C++ object files must be created using |
# Archives containing C++ object files must be created using |
2729 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
2730 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
2731 |
|
|
2732 |
;; |
;; |
2733 |
RCC) |
RCC) |
2734 |
# Rational C++ 2.4.1 |
# Rational C++ 2.4.1 |
2735 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2736 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2737 |
;; |
;; |
2738 |
cxx) |
cxx) |
2739 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
2740 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
2741 |
|
|
2742 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2743 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2744 |
|
|
2745 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
2746 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
2747 |
# linking a shared library. |
# linking a shared library. |
2748 |
# |
# |
2749 |
# There doesn't appear to be a way to prevent this compiler from |
# There doesn't appear to be a way to prevent this compiler from |
2750 |
# explicitly linking system object files so we need to strip them |
# explicitly linking system object files so we need to strip them |
2751 |
# from the output so that they don't get included in the library |
# from the output so that they don't get included in the library |
2752 |
# dependencies. |
# dependencies. |
2753 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
2754 |
;; |
;; |
2755 |
*) |
*) |
2756 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
2757 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
2758 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
2759 |
|
|
2760 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2761 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2762 |
|
|
2763 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
2764 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
2765 |
# linking a shared library. |
# linking a shared library. |
2766 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
2767 |
|
|
2768 |
else |
else |
2769 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2770 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2771 |
fi |
fi |
2772 |
;; |
;; |
2773 |
esac |
esac |
2774 |
;; |
;; |
2775 |
osf4* | osf5*) |
osf4* | osf5*) |
2776 |
case $cc_basename in |
case $cc_basename in |
2777 |
KCC) |
KCC) |
2778 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
2779 |
|
|
2780 |
# KCC will only create a shared library if the output file |
# KCC will only create a shared library if the output file |
2781 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
2782 |
# to its proper name (with version) after linking. |
# to its proper name (with version) after linking. |
2783 |
_LT_AC_TAGVAR(archive_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
2784 |
|
|
2785 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
2786 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2787 |
|
|
2788 |
# Archives containing C++ object files must be created using |
# Archives containing C++ object files must be created using |
2789 |
# the KAI C++ compiler. |
# the KAI C++ compiler. |
2790 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
2791 |
;; |
;; |
2792 |
RCC) |
RCC) |
2793 |
# Rational C++ 2.4.1 |
# Rational C++ 2.4.1 |
2794 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2795 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2796 |
;; |
;; |
2797 |
cxx) |
cxx) |
2798 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
2799 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
2800 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~ |
2801 |
echo "-hidden">> $lib.exp~ |
echo "-hidden">> $lib.exp~ |
2802 |
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ |
2803 |
$rm $lib.exp' |
$rm $lib.exp' |
2804 |
|
|
2805 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
2806 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2807 |
|
|
2808 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
2809 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
2810 |
# linking a shared library. |
# linking a shared library. |
2811 |
# |
# |
2812 |
# There doesn't appear to be a way to prevent this compiler from |
# There doesn't appear to be a way to prevent this compiler from |
2813 |
# explicitly linking system object files so we need to strip them |
# explicitly linking system object files so we need to strip them |
2814 |
# from the output so that they don't get included in the library |
# from the output so that they don't get included in the library |
2815 |
# dependencies. |
# dependencies. |
2816 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | sed "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
2817 |
;; |
;; |
2818 |
*) |
*) |
2819 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
2820 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
2821 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
2822 |
|
|
2823 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
2824 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
2825 |
|
|
2826 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
2827 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
2828 |
# linking a shared library. |
# linking a shared library. |
2829 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"' |
2830 |
|
|
2831 |
else |
else |
2832 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2833 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2834 |
fi |
fi |
2835 |
;; |
;; |
2836 |
esac |
esac |
2837 |
;; |
;; |
2838 |
psos*) |
psos*) |
2843 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
2844 |
case $cc_basename in |
case $cc_basename in |
2845 |
CC) |
CC) |
2846 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2847 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2848 |
;; |
;; |
2849 |
*) |
*) |
2850 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2851 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2852 |
;; |
;; |
2853 |
esac |
esac |
2854 |
;; |
;; |
2855 |
sunos4*) |
sunos4*) |
2856 |
case $cc_basename in |
case $cc_basename in |
2857 |
CC) |
CC) |
2858 |
# Sun C++ 4.x |
# Sun C++ 4.x |
2859 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2860 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2861 |
;; |
;; |
2862 |
lcc) |
lcc) |
2863 |
# Lucid |
# Lucid |
2864 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2865 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2866 |
;; |
;; |
2867 |
*) |
*) |
2868 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2869 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2870 |
;; |
;; |
2871 |
esac |
esac |
2872 |
;; |
;; |
2873 |
solaris*) |
solaris*) |
2874 |
case $cc_basename in |
case $cc_basename in |
2875 |
CC) |
CC) |
2876 |
# Sun C++ 4.2, 5.x and Centerline C++ |
# Sun C++ 4.2, 5.x and Centerline C++ |
2877 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
2878 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
2879 |
_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~ |
2880 |
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
2881 |
|
|
2882 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
2883 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
2884 |
case $host_os in |
case $host_os in |
2885 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
2886 |
*) |
*) |
2887 |
# The C++ compiler is used as linker so we must use $wl |
# The C++ compiler is used as linker so we must use $wl |
2888 |
# flag to pass the commands to the underlying system |
# flag to pass the commands to the underlying system |
2889 |
# linker. |
# linker. |
2890 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
2891 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
2892 |
;; |
;; |
2893 |
esac |
esac |
2894 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
2895 |
|
|
2896 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
2897 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
2898 |
# linking a shared library. |
# linking a shared library. |
2899 |
# |
# |
2900 |
# There doesn't appear to be a way to prevent this compiler from |
# There doesn't appear to be a way to prevent this compiler from |
2901 |
# explicitly linking system object files so we need to strip them |
# explicitly linking system object files so we need to strip them |
2902 |
# from the output so that they don't get included in the library |
# from the output so that they don't get included in the library |
2903 |
# dependencies. |
# dependencies. |
2904 |
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
2905 |
|
|
2906 |
# Archives containing C++ object files must be created using |
# Archives containing C++ object files must be created using |
2907 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
2908 |
# necessary to make sure instantiated templates are included |
# necessary to make sure instantiated templates are included |
2909 |
# in the archive. |
# in the archive. |
2910 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
2911 |
;; |
;; |
2912 |
gcx) |
gcx) |
2913 |
# Green Hills C++ Compiler |
# Green Hills C++ Compiler |
2914 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
2915 |
|
|
2916 |
# The C++ compiler must be used to create the archive. |
# The C++ compiler must be used to create the archive. |
2917 |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
2918 |
;; |
;; |
2919 |
*) |
*) |
2920 |
# GNU C++ compiler with Solaris linker |
# GNU C++ compiler with Solaris linker |
2921 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
2922 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
2923 |
if $CC --version | egrep -v '^2\.7' > /dev/null; then |
if $CC --version | egrep -v '^2\.7' > /dev/null; then |
2924 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' |
2925 |
_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~ |
2926 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' |
2927 |
|
|
2928 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
2929 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
2930 |
# linking a shared library. |
# linking a shared library. |
2931 |
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" |
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" |
2932 |
else |
else |
2933 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
2934 |
# platform. |
# platform. |
2935 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib' |
2936 |
_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~ |
2937 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp' |
2938 |
|
|
2939 |
# Commands to make compiler produce verbose output that lists |
# Commands to make compiler produce verbose output that lists |
2940 |
# what "hidden" libraries, object files and flags are used when |
# what "hidden" libraries, object files and flags are used when |
2941 |
# linking a shared library. |
# linking a shared library. |
2942 |
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" |
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\"" |
2943 |
fi |
fi |
2944 |
|
|
2945 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
2946 |
fi |
fi |
2947 |
;; |
;; |
2948 |
esac |
esac |
2949 |
;; |
;; |
2950 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
2953 |
tandem*) |
tandem*) |
2954 |
case $cc_basename in |
case $cc_basename in |
2955 |
NCC) |
NCC) |
2956 |
# NonStop-UX NCC 3.20 |
# NonStop-UX NCC 3.20 |
2957 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2958 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2959 |
;; |
;; |
2960 |
*) |
*) |
2961 |
# FIXME: insert proper C++ library support |
# FIXME: insert proper C++ library support |
2962 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
2963 |
;; |
;; |
2964 |
esac |
esac |
2965 |
;; |
;; |
2966 |
vxworks*) |
vxworks*) |
3008 |
# Some compilers place space between "-{L,R}" and the path. |
# Some compilers place space between "-{L,R}" and the path. |
3009 |
# Remove the space. |
# Remove the space. |
3010 |
if test $p = "-L" \ |
if test $p = "-L" \ |
3011 |
|| test $p = "-R"; then |
|| test $p = "-R"; then |
3012 |
prev=$p |
prev=$p |
3013 |
continue |
continue |
3014 |
else |
else |
3015 |
prev= |
prev= |
3016 |
fi |
fi |
3017 |
|
|
3018 |
if test "$pre_test_object_deps_done" = no; then |
if test "$pre_test_object_deps_done" = no; then |
3019 |
case $p in |
case $p in |
3020 |
-L* | -R*) |
-L* | -R*) |
3021 |
# Internal compiler library paths should come after those |
# Internal compiler library paths should come after those |
3022 |
# provided the user. The postdeps already come after the |
# provided the user. The postdeps already come after the |
3023 |
# user supplied libs so there is no need to process them. |
# user supplied libs so there is no need to process them. |
3024 |
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
3025 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
3026 |
else |
else |
3027 |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
3028 |
fi |
fi |
3029 |
;; |
;; |
3030 |
# The "-l" case would never come before the object being |
# The "-l" case would never come before the object being |
3031 |
# linked, so don't bother handling this case. |
# linked, so don't bother handling this case. |
3032 |
esac |
esac |
3033 |
else |
else |
3034 |
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then |
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then |
3035 |
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" |
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" |
3036 |
else |
else |
3037 |
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" |
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" |
3038 |
fi |
fi |
3039 |
fi |
fi |
3040 |
;; |
;; |
3041 |
|
|
3043 |
# This assumes that the test object file only shows up |
# This assumes that the test object file only shows up |
3044 |
# once in the compiler output. |
# once in the compiler output. |
3045 |
if test "$p" = "conftest.$objext"; then |
if test "$p" = "conftest.$objext"; then |
3046 |
pre_test_object_deps_done=yes |
pre_test_object_deps_done=yes |
3047 |
continue |
continue |
3048 |
fi |
fi |
3049 |
|
|
3050 |
if test "$pre_test_object_deps_done" = no; then |
if test "$pre_test_object_deps_done" = no; then |
3051 |
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then |
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then |
3052 |
_LT_AC_TAGVAR(predep_objects, $1)="$p" |
_LT_AC_TAGVAR(predep_objects, $1)="$p" |
3053 |
else |
else |
3054 |
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" |
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" |
3055 |
fi |
fi |
3056 |
else |
else |
3057 |
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then |
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then |
3058 |
_LT_AC_TAGVAR(postdep_objects, $1)="$p" |
_LT_AC_TAGVAR(postdep_objects, $1)="$p" |
3059 |
else |
else |
3060 |
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" |
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" |
3061 |
fi |
fi |
3062 |
fi |
fi |
3063 |
;; |
;; |
3064 |
|
|
3833 |
aix*) |
aix*) |
3834 |
# All AIX code is PIC. |
# All AIX code is PIC. |
3835 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
3836 |
# AIX 5 now supports IA64 processor |
# AIX 5 now supports IA64 processor |
3837 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3838 |
fi |
fi |
3839 |
;; |
;; |
3840 |
amigaos*) |
amigaos*) |
3862 |
;; |
;; |
3863 |
sysv4*MP*) |
sysv4*MP*) |
3864 |
if test -d /usr/nec; then |
if test -d /usr/nec; then |
3865 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
3866 |
fi |
fi |
3867 |
;; |
;; |
3868 |
hpux*) |
hpux*) |
3869 |
# PIC is the default for IA64 HP-UX, but not for PA HP-UX. |
# PIC is the default for IA64 HP-UX, but not for PA HP-UX. |
3870 |
if test "$host_cpu" != ia64; then |
if test "$host_cpu" != ia64; then |
3871 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3872 |
fi |
fi |
3873 |
;; |
;; |
3874 |
*) |
*) |
3878 |
else |
else |
3879 |
case $host_os in |
case $host_os in |
3880 |
aix4* | aix5*) |
aix4* | aix5*) |
3881 |
# All AIX code is PIC. |
# All AIX code is PIC. |
3882 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
3883 |
# AIX 5 now supports IA64 processor |
# AIX 5 now supports IA64 processor |
3884 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
3885 |
else |
else |
3886 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
3887 |
fi |
fi |
3888 |
;; |
;; |
3889 |
chorus*) |
chorus*) |
3890 |
case $cc_basename in |
case $cc_basename in |
3891 |
cxch68) |
cxch68) |
3892 |
# Green Hills C++ Compiler |
# Green Hills C++ Compiler |
3893 |
# _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" |
# _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" |
3894 |
;; |
;; |
3895 |
esac |
esac |
3896 |
;; |
;; |
3897 |
dgux*) |
dgux*) |
3898 |
case $cc_basename in |
case $cc_basename in |
3899 |
ec++) |
ec++) |
3900 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
3901 |
;; |
;; |
3902 |
ghcx) |
ghcx) |
3903 |
# Green Hills C++ Compiler |
# Green Hills C++ Compiler |
3904 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3905 |
;; |
;; |
3906 |
*) |
*) |
3907 |
;; |
;; |
3908 |
esac |
esac |
3909 |
;; |
;; |
3910 |
freebsd*) |
freebsd*) |
3911 |
# FreeBSD uses GNU C++ |
# FreeBSD uses GNU C++ |
3912 |
;; |
;; |
3913 |
hpux9* | hpux10* | hpux11*) |
hpux9* | hpux10* | hpux11*) |
3914 |
case $cc_basename in |
case $cc_basename in |
3915 |
CC) |
CC) |
3916 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3917 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
3918 |
if test "$host_cpu" != ia64; then |
if test "$host_cpu" != ia64; then |
3919 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
3920 |
fi |
fi |
3921 |
;; |
;; |
3922 |
aCC) |
aCC) |
3923 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3924 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
3925 |
if test "$host_cpu" != ia64; then |
if test "$host_cpu" != ia64; then |
3926 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
3927 |
fi |
fi |
3928 |
;; |
;; |
3929 |
*) |
*) |
3930 |
;; |
;; |
3931 |
esac |
esac |
3932 |
;; |
;; |
3933 |
irix5* | irix6*) |
irix5* | irix6*) |
3934 |
case $cc_basename in |
case $cc_basename in |
3935 |
CC) |
CC) |
3936 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3937 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3938 |
# CC pic flag -KPIC is the default. |
# CC pic flag -KPIC is the default. |
3939 |
;; |
;; |
3940 |
*) |
*) |
3941 |
;; |
;; |
3942 |
esac |
esac |
3943 |
;; |
;; |
3944 |
linux*) |
linux*) |
3945 |
case $cc_basename in |
case $cc_basename in |
3946 |
KCC) |
KCC) |
3947 |
# KAI C++ Compiler |
# KAI C++ Compiler |
3948 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
3949 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
3950 |
;; |
;; |
3951 |
cxx) |
cxx) |
3952 |
# Compaq C++ |
# Compaq C++ |
3953 |
# Make sure the PIC flag is empty. It appears that all Alpha |
# Make sure the PIC flag is empty. It appears that all Alpha |
3954 |
# Linux and Compaq Tru64 Unix objects are PIC. |
# Linux and Compaq Tru64 Unix objects are PIC. |
3955 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
3956 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3957 |
;; |
;; |
3958 |
*) |
*) |
3959 |
;; |
;; |
3960 |
esac |
esac |
3961 |
;; |
;; |
3962 |
lynxos*) |
lynxos*) |
3963 |
;; |
;; |
3964 |
m88k*) |
m88k*) |
3965 |
;; |
;; |
3966 |
mvs*) |
mvs*) |
3967 |
case $cc_basename in |
case $cc_basename in |
3968 |
cxx) |
cxx) |
3969 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
3970 |
;; |
;; |
3971 |
*) |
*) |
3972 |
;; |
;; |
3973 |
esac |
esac |
3974 |
;; |
;; |
3975 |
netbsd*) |
netbsd*) |
3976 |
;; |
;; |
3977 |
osf3* | osf4* | osf5*) |
osf3* | osf4* | osf5*) |
3978 |
case $cc_basename in |
case $cc_basename in |
3979 |
KCC) |
KCC) |
3980 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
3981 |
;; |
;; |
3982 |
RCC) |
RCC) |
3983 |
# Rational C++ 2.4.1 |
# Rational C++ 2.4.1 |
3984 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
3985 |
;; |
;; |
3986 |
cxx) |
cxx) |
3987 |
# Digital/Compaq C++ |
# Digital/Compaq C++ |
3988 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
3989 |
# Make sure the PIC flag is empty. It appears that all Alpha |
# Make sure the PIC flag is empty. It appears that all Alpha |
3990 |
# Linux and Compaq Tru64 Unix objects are PIC. |
# Linux and Compaq Tru64 Unix objects are PIC. |
3991 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= |
3992 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
3993 |
;; |
;; |
3994 |
*) |
*) |
3995 |
;; |
;; |
3996 |
esac |
esac |
3997 |
;; |
;; |
3998 |
psos*) |
psos*) |
3999 |
;; |
;; |
4000 |
sco*) |
sco*) |
4001 |
case $cc_basename in |
case $cc_basename in |
4002 |
CC) |
CC) |
4003 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4004 |
;; |
;; |
4005 |
*) |
*) |
4006 |
;; |
;; |
4007 |
esac |
esac |
4008 |
;; |
;; |
4009 |
solaris*) |
solaris*) |
4010 |
case $cc_basename in |
case $cc_basename in |
4011 |
CC) |
CC) |
4012 |
# Sun C++ 4.2, 5.x and Centerline C++ |
# Sun C++ 4.2, 5.x and Centerline C++ |
4013 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4014 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4015 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
4016 |
;; |
;; |
4017 |
gcx) |
gcx) |
4018 |
# Green Hills C++ Compiler |
# Green Hills C++ Compiler |
4019 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
4020 |
;; |
;; |
4021 |
*) |
*) |
4022 |
;; |
;; |
4023 |
esac |
esac |
4024 |
;; |
;; |
4025 |
sunos4*) |
sunos4*) |
4026 |
case $cc_basename in |
case $cc_basename in |
4027 |
CC) |
CC) |
4028 |
# Sun C++ 4.x |
# Sun C++ 4.x |
4029 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4030 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4031 |
;; |
;; |
4032 |
lcc) |
lcc) |
4033 |
# Lucid |
# Lucid |
4034 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
4035 |
;; |
;; |
4036 |
*) |
*) |
4037 |
;; |
;; |
4038 |
esac |
esac |
4039 |
;; |
;; |
4040 |
tandem*) |
tandem*) |
4041 |
case $cc_basename in |
case $cc_basename in |
4042 |
NCC) |
NCC) |
4043 |
# NonStop-UX NCC 3.20 |
# NonStop-UX NCC 3.20 |
4044 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4045 |
;; |
;; |
4046 |
*) |
*) |
4047 |
;; |
;; |
4048 |
esac |
esac |
4049 |
;; |
;; |
4050 |
unixware*) |
unixware*) |
4051 |
;; |
;; |
4052 |
vxworks*) |
vxworks*) |
4053 |
;; |
;; |
4054 |
*) |
*) |
4055 |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no |
4056 |
;; |
;; |
4057 |
esac |
esac |
4058 |
fi |
fi |
4059 |
], |
], |
4066 |
aix*) |
aix*) |
4067 |
# All AIX code is PIC. |
# All AIX code is PIC. |
4068 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
4069 |
# AIX 5 now supports IA64 processor |
# AIX 5 now supports IA64 processor |
4070 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4071 |
fi |
fi |
4072 |
;; |
;; |
4073 |
|
|
4103 |
|
|
4104 |
sysv4*MP*) |
sysv4*MP*) |
4105 |
if test -d /usr/nec; then |
if test -d /usr/nec; then |
4106 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic |
4107 |
fi |
fi |
4108 |
;; |
;; |
4109 |
|
|
4110 |
hpux*) |
hpux*) |
4111 |
# PIC is the default for IA64 HP-UX, but not for PA HP-UX. |
# PIC is the default for IA64 HP-UX, but not for PA HP-UX. |
4112 |
if test "$host_cpu" != ia64; then |
if test "$host_cpu" != ia64; then |
4113 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
4114 |
fi |
fi |
4115 |
;; |
;; |
4116 |
|
|
4124 |
aix*) |
aix*) |
4125 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4126 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
4127 |
# AIX 5 now supports IA64 processor |
# AIX 5 now supports IA64 processor |
4128 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4129 |
else |
else |
4130 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
4131 |
fi |
fi |
4132 |
;; |
;; |
4133 |
|
|
4140 |
hpux9* | hpux10* | hpux11*) |
hpux9* | hpux10* | hpux11*) |
4141 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4142 |
if test "$host_cpu" != ia64; then |
if test "$host_cpu" != ia64; then |
4143 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
4144 |
fi |
fi |
4145 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
4146 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' |
4182 |
|
|
4183 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
4184 |
if test "x$host_vendor" = xsni; then |
if test "x$host_vendor" = xsni; then |
4185 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-LD' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-LD' |
4186 |
else |
else |
4187 |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4188 |
fi |
fi |
4189 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4190 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4192 |
|
|
4193 |
sysv4*MP*) |
sysv4*MP*) |
4194 |
if test -d /usr/nec ;then |
if test -d /usr/nec ;then |
4195 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' |
4196 |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4197 |
fi |
fi |
4198 |
;; |
;; |
4199 |
|
|
4319 |
aix3* | aix4* | aix5*) |
aix3* | aix4* | aix5*) |
4320 |
# On AIX/PPC, the GNU linker is very broken |
# On AIX/PPC, the GNU linker is very broken |
4321 |
if test "$host_cpu" != ia64; then |
if test "$host_cpu" != ia64; then |
4322 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4323 |
cat <<EOF 1>&2 |
cat <<EOF 1>&2 |
4324 |
|
|
4325 |
*** 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 |
4326 |
*** to be unable to reliably create shared libraries on AIX. |
*** to be unable to reliably create shared libraries on AIX. |
4348 |
|
|
4349 |
beos*) |
beos*) |
4350 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
4351 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4352 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
4353 |
# support --undefined. This deserves some investigation. FIXME |
# support --undefined. This deserves some investigation. FIXME |
4354 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4355 |
else |
else |
4356 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4357 |
fi |
fi |
4358 |
;; |
;; |
4359 |
|
|
4365 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4366 |
|
|
4367 |
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
4368 |
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
4369 |
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
4370 |
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
4371 |
else $CC -o impgen impgen.c ; fi)~ |
else $CC -o impgen impgen.c ; fi)~ |
4372 |
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
4373 |
|
|
4374 |
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
4375 |
|
|
4380 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
4381 |
case $host_os in |
case $host_os in |
4382 |
mingw*) |
mingw*) |
4383 |
# mingw values |
# mingw values |
4384 |
dll_entry=_DllMainCRTStartup@12 |
dll_entry=_DllMainCRTStartup@12 |
4385 |
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
4386 |
;; |
;; |
4387 |
esac |
esac |
4388 |
|
|
4389 |
# mingw and cygwin differ, and it's simplest to just exclude the union |
# mingw and cygwin differ, and it's simplest to just exclude the union |
4393 |
# recent cygwin and mingw systems supply a stub DllMain which the user |
# recent cygwin and mingw systems supply a stub DllMain which the user |
4394 |
# can override, but on older systems we have to supply one (in ltdll.c) |
# can override, but on older systems we have to supply one (in ltdll.c) |
4395 |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
4396 |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
4397 |
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~ |
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~ |
4398 |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
4399 |
else |
else |
4400 |
ltdll_obj= |
ltdll_obj= |
4401 |
ltdll_cmds= |
ltdll_cmds= |
4402 |
fi |
fi |
4403 |
|
|
4404 |
# Extract the symbol export list from an `--export-all' def file, |
# Extract the symbol export list from an `--export-all' def file, |
4406 |
# the compiled dll only exports the symbol export list. |
# the compiled dll only exports the symbol export list. |
4407 |
# Be careful not to strip the DATA tag left by newer dlltools. |
# Be careful not to strip the DATA tag left by newer dlltools. |
4408 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"' |
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"' |
4409 |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
4410 |
sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
4411 |
|
|
4412 |
# If the export-symbols file already is a .def file (1st line |
# If the export-symbols file already is a .def file (1st line |
4413 |
# is EXPORTS), use it as is. |
# is EXPORTS), use it as is. |
4414 |
# If DATA tags from a recent dlltool are present, honour them! |
# If DATA tags from a recent dlltool are present, honour them! |
4415 |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
4416 |
cp $export_symbols $output_objdir/$soname-def; |
cp $export_symbols $output_objdir/$soname-def; |
4417 |
else |
else |
4418 |
echo EXPORTS > $output_objdir/$soname-def; |
echo EXPORTS > $output_objdir/$soname-def; |
4419 |
_lt_hint=1; |
_lt_hint=1; |
4420 |
cat $export_symbols | while read symbol; do |
cat $export_symbols | while read symbol; do |
4421 |
set dummy \$symbol; |
set dummy \$symbol; |
4422 |
case \[$]# in |
case \[$]# in |
4423 |
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
4424 |
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; |
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; |
4425 |
esac; |
esac; |
4426 |
_lt_hint=`expr 1 + \$_lt_hint`; |
_lt_hint=`expr 1 + \$_lt_hint`; |
4427 |
done; |
done; |
4428 |
fi~ |
fi~ |
4429 |
'"$ltdll_cmds"' |
'"$ltdll_cmds"' |
4430 |
$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~ |
$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~ |
4431 |
$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~ |
$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~ |
4432 |
$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~ |
$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~ |
4433 |
$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~ |
$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~ |
4434 |
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
4435 |
;; |
;; |
4436 |
|
|
4437 |
netbsd*) |
netbsd*) |
4438 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
4439 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
4440 |
wlarc= |
wlarc= |
4441 |
else |
else |
4442 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4443 |
_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' |
_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' |
4444 |
fi |
fi |
4445 |
;; |
;; |
4446 |
|
|
4447 |
solaris* | sysv5*) |
solaris* | sysv5*) |
4448 |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
4449 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4450 |
cat <<EOF 1>&2 |
cat <<EOF 1>&2 |
4451 |
|
|
4452 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
4453 |
*** create shared libraries on Solaris systems. Therefore, libtool |
*** create shared libraries on Solaris systems. Therefore, libtool |
4458 |
|
|
4459 |
EOF |
EOF |
4460 |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
4461 |
_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' |
4462 |
_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' |
4463 |
else |
else |
4464 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4465 |
fi |
fi |
4466 |
;; |
;; |
4467 |
|
|
4474 |
|
|
4475 |
*) |
*) |
4476 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
4477 |
_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' |
4478 |
_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' |
4479 |
else |
else |
4480 |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
4481 |
fi |
fi |
4482 |
;; |
;; |
4483 |
esac |
esac |
4488 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4489 |
case $host_os in |
case $host_os in |
4490 |
cygwin* | mingw* | pw32*) |
cygwin* | mingw* | pw32*) |
4491 |
# dlltool doesn't understand --whole-archive et. al. |
# dlltool doesn't understand --whole-archive et. al. |
4492 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
4493 |
;; |
;; |
4494 |
*) |
*) |
4495 |
# ancient GNU ld didn't support --whole-archive et. al. |
# ancient GNU ld didn't support --whole-archive et. al. |
4496 |
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
4497 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
4498 |
else |
else |
4499 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
4500 |
fi |
fi |
4501 |
;; |
;; |
4502 |
esac |
esac |
4503 |
fi |
fi |
4504 |
else |
else |
4512 |
# are no directories specified by -L. |
# are no directories specified by -L. |
4513 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4514 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
4515 |
# Neither direct hardcoding nor static linking is supported with a |
# Neither direct hardcoding nor static linking is supported with a |
4516 |
# broken collect2. |
# broken collect2. |
4517 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
4518 |
fi |
fi |
4519 |
;; |
;; |
4520 |
|
|
4521 |
aix4* | aix5*) |
aix4* | aix5*) |
4522 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
4523 |
# On IA64, the linker does run time linking by default, so we don't |
# On IA64, the linker does run time linking by default, so we don't |
4524 |
# have to do anything special. |
# have to do anything special. |
4525 |
aix_use_runtimelinking=no |
aix_use_runtimelinking=no |
4526 |
exp_sym_flag='-Bexport' |
exp_sym_flag='-Bexport' |
4527 |
no_entry_flag="" |
no_entry_flag="" |
4528 |
else |
else |
4529 |
# If we're using GNU nm, then we don't want the "-C" option. |
# If we're using GNU nm, then we don't want the "-C" option. |
4530 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
4531 |
if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then |
if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then |
4532 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
4533 |
else |
else |
4534 |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' |
4535 |
fi |
fi |
4536 |
aix_use_runtimelinking=no |
aix_use_runtimelinking=no |
4537 |
|
|
4538 |
# Test if we are trying to use run time linking or normal |
# Test if we are trying to use run time linking or normal |
4539 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
4540 |
# need to do runtime linking. |
# need to do runtime linking. |
4541 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
4542 |
for ld_flag in $LDFLAGS; do |
for ld_flag in $LDFLAGS; do |
4543 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
4544 |
aix_use_runtimelinking=yes |
aix_use_runtimelinking=yes |
4545 |
break |
break |
4546 |
fi |
fi |
4547 |
done |
done |
4548 |
esac |
esac |
4549 |
|
|
4550 |
exp_sym_flag='-bexport' |
exp_sym_flag='-bexport' |
4551 |
no_entry_flag='-bnoentry' |
no_entry_flag='-bnoentry' |
4552 |
fi |
fi |
4553 |
|
|
4554 |
# When large executables or shared objects are built, AIX ld can |
# When large executables or shared objects are built, AIX ld can |
4563 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4564 |
|
|
4565 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
4566 |
case $host_os in aix4.[012]|aix4.[012].*) |
case $host_os in aix4.[012]|aix4.[012].*) |
4567 |
# We only want to do this on AIX 4.2 and lower, the check |
# We only want to do this on AIX 4.2 and lower, the check |
4568 |
# below for broken collect2 doesn't work under 4.3+ |
# below for broken collect2 doesn't work under 4.3+ |
4569 |
collect2name=`${CC} -print-prog-name=collect2` |
collect2name=`${CC} -print-prog-name=collect2` |
4570 |
if test -f "$collect2name" && \ |
if test -f "$collect2name" && \ |
4571 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
4572 |
then |
then |
4573 |
# We have reworked collect2 |
# We have reworked collect2 |
4574 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4575 |
else |
else |
4576 |
# We have old collect2 |
# We have old collect2 |
4577 |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
4578 |
# It fails to find uninstalled libraries when the uninstalled |
# It fails to find uninstalled libraries when the uninstalled |
4581 |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4582 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4583 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
4584 |
fi |
fi |
4585 |
esac |
esac |
4586 |
shared_flag='-shared' |
shared_flag='-shared' |
4587 |
else |
else |
4588 |
# not using gcc |
# not using gcc |
4589 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
4590 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
4591 |
# chokes on -Wl,-G. The following line is correct: |
# chokes on -Wl,-G. The following line is correct: |
4592 |
shared_flag='-G' |
shared_flag='-G' |
4593 |
else |
else |
4594 |
if test "$aix_use_runtimelinking" = yes; then |
if test "$aix_use_runtimelinking" = yes; then |
4595 |
shared_flag='${wl}-G' |
shared_flag='${wl}-G' |
4596 |
else |
else |
4597 |
shared_flag='${wl}-bM:SRE' |
shared_flag='${wl}-bM:SRE' |
4598 |
fi |
fi |
4599 |
fi |
fi |
4600 |
fi |
fi |
4601 |
|
|
4602 |
# It seems that -bexpall does not export symbols beginning with |
# It seems that -bexpall does not export symbols beginning with |
4603 |
# underscore (_), so it is better to generate a list of symbols to export. |
# underscore (_), so it is better to generate a list of symbols to export. |
4604 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4605 |
if test "$aix_use_runtimelinking" = yes; then |
if test "$aix_use_runtimelinking" = yes; then |
4606 |
# Warning - without using the other runtime loading flags (-brtl), |
# Warning - without using the other runtime loading flags (-brtl), |
4607 |
# -berok will link without error, but may produce a broken library. |
# -berok will link without error, but may produce a broken library. |
4608 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
4609 |
# Determine the default libpath from the value encoded in an empty executable. |
# Determine the default libpath from the value encoded in an empty executable. |
4610 |
_LT_AC_SYS_LIBPATH_AIX |
_LT_AC_SYS_LIBPATH_AIX |
4611 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4612 |
_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(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" |
4613 |
else |
else |
4614 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
4615 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
4616 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
4617 |
_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" |
_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" |
4618 |
else |
else |
4619 |
# Determine the default libpath from the value encoded in an empty executable. |
# Determine the default libpath from the value encoded in an empty executable. |
4620 |
_LT_AC_SYS_LIBPATH_AIX |
_LT_AC_SYS_LIBPATH_AIX |
4621 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4622 |
# Warning - without using the other run time loading flags, |
# Warning - without using the other run time loading flags, |
4623 |
# -berok will link without error, but may produce a broken library. |
# -berok will link without error, but may produce a broken library. |
4624 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
4625 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
4626 |
# -bexpall does not export symbols beginning with underscore (_) |
# -bexpall does not export symbols beginning with underscore (_) |
4627 |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
_LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4628 |
# Exported symbols can be pulled into shared objects from archives |
# Exported symbols can be pulled into shared objects from archives |
4629 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
4630 |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
4631 |
# This is similar to how AIX traditionally builds it's shared libraries. |
# This is similar to how AIX traditionally builds it's shared libraries. |
4632 |
_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' |
_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' |
4633 |
fi |
fi |
4634 |
fi |
fi |
4635 |
;; |
;; |
4636 |
|
|
4667 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
4668 |
case "$host_os" in |
case "$host_os" in |
4669 |
rhapsody* | darwin1.[[012]]) |
rhapsody* | darwin1.[[012]]) |
4670 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
4671 |
;; |
;; |
4672 |
*) # Darwin 1.3 on |
*) # Darwin 1.3 on |
4673 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
4674 |
;; |
;; |
4675 |
esac |
esac |
4676 |
|
|
4677 |
# FIXME: Relying on posixy $() will cause problems for |
# FIXME: Relying on posixy $() will cause problems for |
4724 |
;; |
;; |
4725 |
|
|
4726 |
hpux9* | hpux10* | hpux11*) |
hpux9* | hpux10* | hpux11*) |
4727 |
if test "$GXX" = yes; then |
if test "$GCC" = yes; then |
4728 |
case $host_os in |
case $host_os in |
4729 |
hpux9*) |
hpux9*) |
4730 |
_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)='$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' |
4731 |
;; |
;; |
4732 |
*) |
*) |
4733 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
4734 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4735 |
else |
else |
4736 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
4737 |
fi |
fi |
4738 |
;; |
;; |
4739 |
esac |
esac |
4740 |
else |
else |
4741 |
case $host_os in |
case $host_os in |
4742 |
hpux9*) |
hpux9*) |
4743 |
_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' |
_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' |
4744 |
;; |
;; |
4745 |
*) |
*) |
4746 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
4747 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
4748 |
else |
else |
4749 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
4750 |
fi |
fi |
4751 |
;; |
;; |
4752 |
esac |
esac |
4753 |
fi |
fi |
4754 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
4755 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4756 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
_LT_AC_TAGVAR(hardcode_direct, $1)=no |
4757 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4758 |
else |
else |
4759 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4760 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4761 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4762 |
fi |
fi |
4763 |
# hardcode_minus_L: Not really in the search PATH, |
# hardcode_minus_L: Not really in the search PATH, |
4764 |
# but as the default location of the library. |
# but as the default location of the library. |
4768 |
|
|
4769 |
irix5* | irix6*) |
irix5* | irix6*) |
4770 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
4771 |
_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' |
_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' |
4772 |
else |
else |
4773 |
_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' |
_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' |
4774 |
fi |
fi |
4775 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4776 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4779 |
|
|
4780 |
netbsd*) |
netbsd*) |
4781 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
4782 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
4783 |
else |
else |
4784 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
4785 |
fi |
fi |
4786 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4787 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4801 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4802 |
|
|
4803 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4804 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
4805 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4806 |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4807 |
else |
else |
4808 |
case $host_os in |
case $host_os in |
4809 |
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
4810 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
4811 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4812 |
;; |
;; |
4813 |
*) |
*) |
4814 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
4815 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4816 |
;; |
;; |
4817 |
esac |
esac |
4818 |
fi |
fi |
4819 |
;; |
;; |
4828 |
|
|
4829 |
osf3*) |
osf3*) |
4830 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
4831 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4832 |
_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' |
_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' |
4833 |
else |
else |
4834 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4835 |
_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' |
_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' |
4836 |
fi |
fi |
4837 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4838 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4840 |
|
|
4841 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
4842 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
4843 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4844 |
_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' |
_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' |
4845 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4846 |
else |
else |
4847 |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4848 |
_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' |
_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' |
4849 |
_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_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
4850 |
$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' |
$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' |
4851 |
|
|
4852 |
# Both c and cxx compiler support -rpath directly |
# Both c and cxx compiler support -rpath directly |
4853 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
4854 |
fi |
fi |
4855 |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4856 |
;; |
;; |
4866 |
solaris*) |
solaris*) |
4867 |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
4868 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
4869 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4870 |
_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~ |
4871 |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
4872 |
else |
else |
4873 |
_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' |
4874 |
_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~ |
4875 |
$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' |
4876 |
fi |
fi |
4877 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4879 |
case $host_os in |
case $host_os in |
4880 |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
4881 |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
4882 |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
4883 |
esac |
esac |
4884 |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4885 |
;; |
;; |
4886 |
|
|
4887 |
sunos4*) |
sunos4*) |
4888 |
if test "x$host_vendor" = xsequent; then |
if test "x$host_vendor" = xsequent; then |
4889 |
# Use $CC to link under sequent, because it throws in some extra .o |
# Use $CC to link under sequent, because it throws in some extra .o |
4890 |
# files that make .init and .fini sections work. |
# files that make .init and .fini sections work. |
4891 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
4892 |
else |
else |
4893 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
4894 |
fi |
fi |
4895 |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4896 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4900 |
|
|
4901 |
sysv4) |
sysv4) |
4902 |
if test "x$host_vendor" = xsni; then |
if test "x$host_vendor" = xsni; then |
4903 |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' |
4904 |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? |
4905 |
else |
else |
4906 |
_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' |
4907 |
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie |
4908 |
fi |
fi |
4909 |
runpath_var='LD_RUN_PATH' |
runpath_var='LD_RUN_PATH' |
4910 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4918 |
|
|
4919 |
sysv4*MP*) |
sysv4*MP*) |
4920 |
if test -d /usr/nec; then |
if test -d /usr/nec; then |
4921 |
_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' |
4922 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4923 |
runpath_var=LD_RUN_PATH |
runpath_var=LD_RUN_PATH |
4924 |
hardcode_runpath_var=yes |
hardcode_runpath_var=yes |
4925 |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
4926 |
fi |
fi |
4927 |
;; |
;; |
4928 |
|
|
4938 |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
4939 |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' |
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' |
4940 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
4941 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4942 |
else |
else |
4943 |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
4944 |
fi |
fi |
4945 |
runpath_var='LD_RUN_PATH' |
runpath_var='LD_RUN_PATH' |
4946 |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |