360 |
# will find an echo command which doesn;t interpret backslashes. |
# will find an echo command which doesn;t interpret backslashes. |
361 |
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
362 |
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
363 |
[AC_DIVERT_PUSH(NOTICE)]) |
[AC_DIVERT_PUSH(NOTICE)]) |
364 |
_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR |
_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR |
365 |
|
|
366 |
# Check that we are running under the correct shell. |
# Check that we are running under the correct shell. |
626 |
*) |
*) |
627 |
AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load", |
AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load", |
628 |
[AC_CHECK_LIB(dld, shl_load, |
[AC_CHECK_LIB(dld, shl_load, |
629 |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"], |
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"], |
630 |
[AC_CHECK_LIB(dl, dlopen, |
[AC_CHECK_LIB(dl, dlopen, |
631 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
632 |
[AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen", |
[AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen", |
633 |
[AC_CHECK_LIB(svld, dlopen, |
[AC_CHECK_LIB(svld, dlopen, |
634 |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"]) |
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"]) |
635 |
]) |
]) |
636 |
]) |
]) |
637 |
]) |
]) |
638 |
]) |
]) |
639 |
;; |
;; |
640 |
esac |
esac |
796 |
|
|
797 |
## FIXME: this should be a separate macro |
## FIXME: this should be a separate macro |
798 |
## |
## |
799 |
AC_ARG_WITH(pic, |
AC_ARG_WITH(pic, |
800 |
[ --with-pic try to use only PIC/non-PIC objects [default=use both]], |
[ --with-pic try to use only PIC/non-PIC objects [default=use both]], |
801 |
pic_mode="$withval", pic_mode=default) |
pic_mode="$withval", pic_mode=default) |
802 |
test -z "$pic_mode" && pic_mode=default |
test -z "$pic_mode" && pic_mode=default |
862 |
lt_cv_prog_cc_wl='-Wl,' |
lt_cv_prog_cc_wl='-Wl,' |
863 |
# All AIX code is PIC. |
# All AIX code is PIC. |
864 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
865 |
# AIX 5 now supports IA64 processor |
# AIX 5 now supports IA64 processor |
866 |
lt_cv_prog_cc_static='-Bstatic' |
lt_cv_prog_cc_static='-Bstatic' |
867 |
else |
else |
868 |
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
869 |
fi |
fi |
870 |
;; |
;; |
871 |
|
|
921 |
lt_cv_prog_cc_pic='-KPIC' |
lt_cv_prog_cc_pic='-KPIC' |
922 |
lt_cv_prog_cc_static='-Bstatic' |
lt_cv_prog_cc_static='-Bstatic' |
923 |
if test "x$host_vendor" = xsni; then |
if test "x$host_vendor" = xsni; then |
924 |
lt_cv_prog_cc_wl='-LD' |
lt_cv_prog_cc_wl='-LD' |
925 |
else |
else |
926 |
lt_cv_prog_cc_wl='-Wl,' |
lt_cv_prog_cc_wl='-Wl,' |
927 |
fi |
fi |
928 |
;; |
;; |
929 |
|
|
1310 |
# is EXPORTS), use it as is. |
# is EXPORTS), use it as is. |
1311 |
# If DATA tags from a recent dlltool are present, honour them! |
# If DATA tags from a recent dlltool are present, honour them! |
1312 |
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then |
1313 |
cp $export_symbols $output_objdir/$soname-def; |
cp $export_symbols $output_objdir/$soname-def; |
1314 |
else |
else |
1315 |
echo EXPORTS > $output_objdir/$soname-def; |
echo EXPORTS > $output_objdir/$soname-def; |
1316 |
_lt_hint=1; |
_lt_hint=1; |
1317 |
cat $export_symbols | while read symbol; do |
cat $export_symbols | while read symbol; do |
1318 |
set dummy \$symbol; |
set dummy \$symbol; |
1319 |
case \[$]# in |
case \[$]# in |
1320 |
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
1321 |
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; |
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; |
1322 |
esac; |
esac; |
1323 |
_lt_hint=`expr 1 + \$_lt_hint`; |
_lt_hint=`expr 1 + \$_lt_hint`; |
1324 |
done; |
done; |
1325 |
fi~ |
fi~ |
1326 |
'"$ltdll_cmds"' |
'"$ltdll_cmds"' |
1327 |
$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~ |
1429 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
1430 |
# need to do runtime linking. |
# need to do runtime linking. |
1431 |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
1432 |
for ld_flag in $LDFLAGS; do |
for ld_flag in $LDFLAGS; do |
1433 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
1434 |
aix_use_runtimelinking=yes |
aix_use_runtimelinking=yes |
1435 |
break |
break |
1436 |
fi |
fi |
1437 |
done |
done |
1438 |
esac |
esac |
1439 |
|
|
1440 |
exp_sym_flag='-bexport' |
exp_sym_flag='-bexport' |
1452 |
hardcode_libdir_separator=':' |
hardcode_libdir_separator=':' |
1453 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
1454 |
case $host_os in aix4.[[012]]|aix4.[[012]].*) |
case $host_os in aix4.[[012]]|aix4.[[012]].*) |
1455 |
collect2name=`${CC} -print-prog-name=collect2` |
collect2name=`${CC} -print-prog-name=collect2` |
1456 |
if test -f "$collect2name" && \ |
if test -f "$collect2name" && \ |
1457 |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
strings "$collect2name" | grep resolve_lib_name >/dev/null |
1458 |
then |
then |
1459 |
# We have reworked collect2 |
# We have reworked collect2 |
1460 |
hardcode_direct=yes |
hardcode_direct=yes |
1461 |
else |
else |
1462 |
# We have old collect2 |
# We have old collect2 |
1463 |
hardcode_direct=unsupported |
hardcode_direct=unsupported |
1464 |
# It fails to find uninstalled libraries when the uninstalled |
# It fails to find uninstalled libraries when the uninstalled |
1465 |
# path is not listed in the libpath. Setting hardcode_minus_L |
# path is not listed in the libpath. Setting hardcode_minus_L |
1466 |
# to unsupported forces relinking |
# to unsupported forces relinking |
1467 |
hardcode_minus_L=yes |
hardcode_minus_L=yes |
1468 |
hardcode_libdir_flag_spec='-L$libdir' |
hardcode_libdir_flag_spec='-L$libdir' |
1469 |
hardcode_libdir_separator= |
hardcode_libdir_separator= |
1470 |
fi |
fi |
1471 |
esac |
esac |
1472 |
|
|
1473 |
shared_flag='-shared' |
shared_flag='-shared' |
1474 |
else |
else |
1475 |
# not using gcc |
# not using gcc |
1476 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
1477 |
shared_flag='${wl}-G' |
shared_flag='${wl}-G' |
1478 |
else |
else |
1479 |
if test "$aix_use_runtimelinking" = yes; then |
if test "$aix_use_runtimelinking" = yes; then |
1480 |
shared_flag='${wl}-G' |
shared_flag='${wl}-G' |
1481 |
else |
else |
1482 |
shared_flag='${wl}-bM:SRE' |
shared_flag='${wl}-bM:SRE' |
1483 |
fi |
fi |
1484 |
fi |
fi |
1485 |
fi |
fi |
1486 |
|
|
1495 |
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
1496 |
else |
else |
1497 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
1498 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
1499 |
allow_undefined_flag="-z nodefs" |
allow_undefined_flag="-z nodefs" |
1500 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
1501 |
else |
else |
1502 |
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
1503 |
# Warning - without using the other run time loading flags, |
# Warning - without using the other run time loading flags, |
1504 |
# -berok will link without error, but may produce a broken library. |
# -berok will link without error, but may produce a broken library. |
1505 |
allow_undefined_flag='${wl}-berok' |
allow_undefined_flag='${wl}-berok' |
1506 |
# This is a bit strange, but is similar to how AIX traditionally builds |
# This is a bit strange, but is similar to how AIX traditionally builds |
1507 |
# it's shared libraries. |
# it's shared libraries. |
1508 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
1509 |
fi |
fi |
1510 |
fi |
fi |
1511 |
;; |
;; |
1537 |
;; |
;; |
1538 |
|
|
1539 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
1540 |
allow_undefined_flag='-undefined suppress' |
case "$host_os" in |
1541 |
|
rhapsody* | darwin1.[[012]]) |
1542 |
|
allow_undefined_flag='-undefined suppress' |
1543 |
|
;; |
1544 |
|
*) # Darwin 1.3 on |
1545 |
|
allow_undefined_flag='-flat_namespace -undefined suppress' |
1546 |
|
;; |
1547 |
|
esac |
1548 |
# FIXME: Relying on posixy $() will cause problems for |
# FIXME: Relying on posixy $() will cause problems for |
1549 |
# cross-compilation, but unfortunately the echo tests do not |
# cross-compilation, but unfortunately the echo tests do not |
1550 |
# yet detect zsh echo's removal of \ escapes. |
# yet detect zsh echo's removal of \ escapes. |
1551 |
archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)' |
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' |
1552 |
# We need to add '_' to the symbols in $export_symbols first |
# We need to add '_' to the symbols in $export_symbols first |
1553 |
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
1554 |
hardcode_direct=yes |
hardcode_direct=yes |
1635 |
hardcode_shlibpath_var=no |
hardcode_shlibpath_var=no |
1636 |
case "$host_os" in |
case "$host_os" in |
1637 |
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) |
1638 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
1639 |
hardcode_libdir_flag_spec='-R$libdir' |
hardcode_libdir_flag_spec='-R$libdir' |
1640 |
;; |
;; |
1641 |
*) |
*) |
1642 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' |
1643 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
1644 |
if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
1645 |
export_dynamic_flag_spec='${wl}-E' |
export_dynamic_flag_spec='${wl}-E' |
1646 |
fi |
fi |
1647 |
;; |
;; |
1648 |
esac |
esac |
1649 |
;; |
;; |
1897 |
case $host_os in |
case $host_os in |
1898 |
[ aix4 | aix4.[01] | aix4.[01].*)] |
[ aix4 | aix4.[01] | aix4.[01].*)] |
1899 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
1900 |
echo ' yes ' |
echo ' yes ' |
1901 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
1902 |
: |
: |
1903 |
else |
else |
1904 |
can_build_shared=no |
can_build_shared=no |
1905 |
fi |
fi |
1906 |
;; |
;; |
1907 |
esac |
esac |
2755 |
# return TRUE; |
# return TRUE; |
2756 |
# } |
# } |
2757 |
# /* ltdll.c ends here */ |
# /* ltdll.c ends here */ |
2758 |
# This is a source program that is used to create import libraries |
# This is a source program that is used to create import libraries |
2759 |
# on Windows for dlls which lack them. Don't remove nor modify the |
# on Windows for dlls which lack them. Don't remove nor modify the |
2760 |
# starting and closing comments |
# starting and closing comments |
2761 |
# /* impgen.c starts here */ |
# /* impgen.c starts here */ |
2762 |
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
2763 |
# |
# |