diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-12-15 11:09:41 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-12-15 11:09:41 +0000 |
commit | 978044a70e29219f2d795d97dd9397f40658c71c (patch) | |
tree | 41de4644b4a23f1d1383b41b41bd8159e58c524d /configure.in | |
parent | 14cbd70aa6ab1b1fcb77b4f2ab53e2954ea081e9 (diff) | |
download | glibc-978044a70e29219f2d795d97dd9397f40658c71c.tar.gz glibc-978044a70e29219f2d795d97dd9397f40658c71c.tar.xz glibc-978044a70e29219f2d795d97dd9397f40658c71c.zip |
2004-09-08 H.J. Lu <hongjiu.lu@intel.com>
* 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: Regenerated.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 18 |
1 files changed, 11 insertions, 7 deletions
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 <libunwind.h>], [ - 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 <<EOF +int main (void) { return 0; } +EOF + if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \ + conftest.c -v 2>&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) |