From cbdb12dec1284048430dbd9c354475ddffd7047e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 15 Dec 2004 18:54:41 +0000 Subject: Update. 2004-09-08 H.J. Lu * Makeconfig (libunwind): New. (libgcc_eh): Add $(libunwind). (gnulib): Always set to -lgcc $(libgcc_eh). (static-gnulib): Always set to -lgcc -lgcc_eh $(libunwind). (libc.so-gnulib): New. * Makerules (LDLIBS-c.so): Use $(libc.so-gnulib) instead of $(static-gnulib). * configure.in (libc_cv_cc_with_libunwind): Set to yes if gcc uses -lunwind for static binaries. --- configure.in | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 9b8a1eb26d..559bee0173 100644 --- a/configure.in +++ b/configure.in @@ -1260,13 +1260,17 @@ EOF fi AC_CACHE_CHECK(for libunwind-support in compiler, - libc_cv_cc_with_libunwind, [dnl - AC_TRY_LINK([#include ], [ - unw_context_t uc; - unw_cursor_t c; - unw_getcontext (&uc); - unw_init_local (&c, &uc)], - libc_cv_cc_with_libunwind=yes, libc_cv_cc_with_libunwind=no)]) + libc_cv_cc_with_libunwind, [ + cat > conftest.c <&1 >/dev/null | grep -q " -lunwind "; then + libc_cv_cc_with_libunwind=yes + else + libc_cv_cc_with_libunwind=no + fi + rm -f conftest*]) AC_SUBST(libc_cv_cc_with_libunwind) if test $libc_cv_cc_with_libunwind = yes; then AC_DEFINE(HAVE_CC_WITH_LIBUNWIND) -- cgit v1.2.3