From: Ulrich Drepper Date: Fri, 11 Dec 1998 18:04:12 +0000 (+0000) Subject: (HAVE_DWARF2_UNWIND_INFO): Check for it. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74600f090eda05a215141f77284eff0667a2a086;p=thirdparty%2Fglibc.git (HAVE_DWARF2_UNWIND_INFO): Check for it. (HAVE_DWARF2_UNWIND_INFO_STATIC): Check for it. --- diff --git a/configure.in b/configure.in index 4a0df548594..d0065302122 100644 --- a/configure.in +++ b/configure.in @@ -759,6 +759,61 @@ fi rm -f conftest*]) AC_SUBST(libc_cv_ld_no_whole_archive)dnl +AC_CACHE_CHECK(for DWARF2 unwind info support, libc_cv_gcc_dwarf2_unwind_info, +[cat > conftest.c <&AC_FD_CC]); then + libc_cv_gcc_dwarf2_unwind_info=static +else + libc_cv_gcc_dwarf2_unwind_info=no +fi +if test $libc_cv_gcc_dwarf2_unwind_info = no; then + if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame + -nostdlib -nostartfiles + -o conftest conftest.c -lgcc >&AC_FD_CC]); then + libc_cv_gcc_dwarf2_unwind_info=yes + else + libc_cv_gcc_dwarf2_unwind_info=no + fi +fi +rm -f conftest*]) +case $libc_cv_gcc_dwarf2_unwind_info in +yes) + AC_DEFINE(HAVE_DWARF2_UNWIND_INFO) + ;; +static) + AC_DEFINE(HAVE_DWARF2_UNWIND_INFO) + AC_DEFINE(HAVE_DWARF2_UNWIND_INFO_STATIC) + ;; +esac + AC_CACHE_CHECK(for gcc -fno-exceptions, libc_cv_gcc_no_exceptions, [dnl cat > conftest.c <<\EOF _start () {}