420 |
SAVE_CFLAGS="$CFLAGS" |
SAVE_CFLAGS="$CFLAGS" |
421 |
CFLAGS="$CFLAGS -belf" |
CFLAGS="$CFLAGS -belf" |
422 |
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
423 |
[AC_LANG_SAVE |
[AC_LANG_PUSH(C) |
|
AC_LANG_C |
|
424 |
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
425 |
AC_LANG_RESTORE]) |
AC_LANG_POP]) |
426 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
427 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
428 |
CFLAGS="$SAVE_CFLAGS" |
CFLAGS="$SAVE_CFLAGS" |
481 |
# So say no if there are warnings |
# So say no if there are warnings |
482 |
if test -s conftest.err; then |
if test -s conftest.err; then |
483 |
# Append any errors to the config.log. |
# Append any errors to the config.log. |
484 |
cat conftest.err 1>&AC_FD_CC |
cat conftest.err 1>&AS_MESSAGE_LOG_FD() |
485 |
else |
else |
486 |
$2=yes |
$2=yes |
487 |
fi |
fi |
513 |
# So say no if there are warnings |
# So say no if there are warnings |
514 |
if test -s conftest.err; then |
if test -s conftest.err; then |
515 |
# Append any errors to the config.log. |
# Append any errors to the config.log. |
516 |
cat conftest.err 1>&AC_FD_CC |
cat conftest.err 1>&AS_MESSAGE_LOG_FD() |
517 |
else |
else |
518 |
$2=yes |
$2=yes |
519 |
fi |
fi |
797 |
# So say no if there are warnings |
# So say no if there are warnings |
798 |
if test -s out/conftest.err; then |
if test -s out/conftest.err; then |
799 |
# Append any errors to the config.log. |
# Append any errors to the config.log. |
800 |
cat out/conftest.err 1>&AC_FD_CC |
cat out/conftest.err 1>&AS_MESSAGE_LOG_FD() |
801 |
else |
else |
802 |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
803 |
fi |
fi |
832 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
833 |
AC_MSG_RESULT([$hard_links]) |
AC_MSG_RESULT([$hard_links]) |
834 |
if test "$hard_links" = no; then |
if test "$hard_links" = no; then |
835 |
AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe]) |
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
836 |
need_locks=warn |
need_locks=warn |
837 |
fi |
fi |
838 |
else |
else |
1328 |
|
|
1329 |
if test -f "$ltmain" && test -n "$tagnames"; then |
if test -f "$ltmain" && test -n "$tagnames"; then |
1330 |
if test ! -f "${ofile}"; then |
if test ! -f "${ofile}"; then |
1331 |
AC_MSG_WARN([output file \`$ofile' does not exist]) |
AC_MSG_WARN([output file `$ofile' does not exist]) |
1332 |
fi |
fi |
1333 |
|
|
1334 |
if test -z "$LTCC"; then |
if test -z "$LTCC"; then |
1335 |
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
1336 |
if test -z "$LTCC"; then |
if test -z "$LTCC"; then |
1337 |
AC_MSG_WARN([output file \`$ofile' does not look like a libtool script]) |
AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
1338 |
else |
else |
1339 |
AC_MSG_WARN([using \`LTCC=$LTCC', extracted from \`$ofile']) |
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
1340 |
fi |
fi |
1341 |
fi |
fi |
1342 |
|
|
1626 |
# find a file program which can recognise a shared library |
# find a file program which can recognise a shared library |
1627 |
AC_DEFUN([AC_PATH_MAGIC], |
AC_DEFUN([AC_PATH_MAGIC], |
1628 |
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl |
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl |
|
AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl |
|
1629 |
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin${PATH_SEPARATOR-:}$PATH) |
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin${PATH_SEPARATOR-:}$PATH) |
1630 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
1631 |
if test -n "$ac_tool_prefix"; then |
if test -n "$ac_tool_prefix"; then |
2092 |
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
2093 |
AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
2094 |
[lt_save_CC="$CC" |
[lt_save_CC="$CC" |
2095 |
AC_LANG_SAVE |
AC_LANG_PUSH(C) |
|
AC_LANG_C |
|
2096 |
|
|
2097 |
# Source file extension for C test sources. |
# Source file extension for C test sources. |
2098 |
ac_ext=c |
ac_ext=c |
2121 |
esac |
esac |
2122 |
fi |
fi |
2123 |
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
2124 |
AC_MSG_WARN([\`$CC' requires \`$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
2125 |
if echo "$old_CC $old_CFLAGS " | [egrep -e "[ ]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]"] >/dev/null; then : |
if echo "$old_CC $old_CFLAGS " | [egrep -e "[ ]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]"] >/dev/null; then : |
2126 |
else |
else |
2127 |
AC_MSG_WARN([add \`$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
2128 |
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
2129 |
fi |
fi |
2130 |
fi |
fi |
2160 |
|
|
2161 |
AC_LIBTOOL_CONFIG($1) |
AC_LIBTOOL_CONFIG($1) |
2162 |
|
|
2163 |
AC_LANG_RESTORE |
AC_LANG_POP |
2164 |
CC="$lt_save_CC" |
CC="$lt_save_CC" |
2165 |
])# AC_LIBTOOL_LANG_C_CONFIG |
])# AC_LIBTOOL_LANG_C_CONFIG |
2166 |
|
|
2172 |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
2173 |
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
2174 |
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
2175 |
[AC_LANG_SAVE |
[AC_LANG_PUSH(C++) |
|
AC_LANG_CPLUSPLUS |
|
2176 |
AC_REQUIRE([AC_PROG_CXX]) |
AC_REQUIRE([AC_PROG_CXX]) |
2177 |
AC_REQUIRE([AC_PROG_CXXCPP]) |
AC_REQUIRE([AC_PROG_CXXCPP]) |
2178 |
|
|
2941 |
|
|
2942 |
AC_LIBTOOL_CONFIG($1) |
AC_LIBTOOL_CONFIG($1) |
2943 |
|
|
2944 |
AC_LANG_RESTORE |
AC_LANG_POP |
2945 |
CC="$lt_save_CC" |
CC="$lt_save_CC" |
2946 |
])# AC_LIBTOOL_LANG_CXX_CONFIG |
])# AC_LIBTOOL_LANG_CXX_CONFIG |
2947 |
|
|
3085 |
[cfgfile="${ofile}T" |
[cfgfile="${ofile}T" |
3086 |
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
3087 |
$rm -f "$cfgfile" |
$rm -f "$cfgfile" |
3088 |
echo creating $ofile], |
AC_MSG_NOTICE([creating $ofile])], |
3089 |
[cfgfile="$ofile"]) |
[cfgfile="$ofile"]) |
3090 |
|
|
3091 |
cat <<__EOF__ >> "$cfgfile" |
cat <<__EOF__ >> "$cfgfile" |
3614 |
LIBS="$lt_save_LIBS" |
LIBS="$lt_save_LIBS" |
3615 |
CFLAGS="$lt_save_CFLAGS" |
CFLAGS="$lt_save_CFLAGS" |
3616 |
else |
else |
3617 |
echo "cannot find nm_test_func in $nlist" >&AC_FD_CC |
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD() |
3618 |
fi |
fi |
3619 |
else |
else |
3620 |
echo "cannot find nm_test_var in $nlist" >&AC_FD_CC |
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD() |
3621 |
fi |
fi |
3622 |
else |
else |
3623 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD() |
3624 |
fi |
fi |
3625 |
else |
else |
3626 |
echo "$progname: failed program was:" >&AC_FD_CC |
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD() |
3627 |
cat conftest.$ac_ext >&5 |
cat conftest.$ac_ext >&5 |
3628 |
fi |
fi |
3629 |
rm -f conftest* conftst* |
rm -f conftest* conftst* |