aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-11-14 21:17:51 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-11-14 21:17:51 +0000
commit0e5d83e3b65b364eadc28d31007be1f284a651d3 (patch)
tree6b22699780a664879b585b92ff5a9de0ad9b9897 /gdb/configure.in
parent287a334e725d8a095303b6017b725e511319ff8a (diff)
downloadgdb-0e5d83e3b65b364eadc28d31007be1f284a651d3.zip
gdb-0e5d83e3b65b364eadc28d31007be1f284a651d3.tar.gz
gdb-0e5d83e3b65b364eadc28d31007be1f284a651d3.tar.bz2
2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
* libunwind-frame.c: New file. * libunwind-frame.h: New file. * acconfig.h (HAVE_LIBUNWIND): #undef reference added. * configure.in: Add --with-libunwind option support. Define HAVE_LIBUNWIND if libunwind support selected / defaulted. Also check for libunwind.h and libunwind-ia64.h headers. * configure: Regenerated. * Makefile.in: Add support for libunwind-frame.o. * config.in: Regenerated.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 544b6de..128c744 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -192,6 +192,30 @@ case $host_os in
enable_gdbtk=no ;;
esac
+# Libunwind support.
+AC_ARG_WITH(libunwind,
+[ --with-libunwind Use libunwind frame unwinding support],
+[case "${withval}" in
+ yes) enable_libunwind=yes ;;
+ no) enable_libunwind=no ;;
+ *) AC_MSG_ERROR(bad value ${withval} for GDB with-libunwind option) ;;
+esac],[
+ AC_CHECK_HEADERS(libunwind.h)
+ AC_CHECK_HEADERS(libunwind-ia64.h)
+ if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
+ enable_libunwind=yes;
+ fi
+])
+
+if test x"$enable_libunwind" = xyes; then
+ AC_CHECK_HEADERS(libunwind.h)
+ AC_CHECK_HEADERS(libunwind-ia64.h)
+ AC_DEFINE(HAVE_LIBUNWIND, 1)
+ CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
+ CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
+ CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
+fi
+
# Profiling support.
AC_ARG_ENABLE(profiling,
[ --enable-profiling enable profiling of GDB],