From: Eric Bollengier Date: Mon, 21 Feb 2011 17:51:39 +0000 (+0100) Subject: Add HAVE_BACKTRACE in configure.in X-Git-Tag: Release-7.0.0~1114 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=29d169fdb241d53b13945600a743edbc082a0c79;p=bacula%2Fbacula Add HAVE_BACKTRACE in configure.in --- diff --git a/bacula/autoconf/config.h.in b/bacula/autoconf/config.h.in index c84e7e8b12..c0fe5e92a3 100644 --- a/bacula/autoconf/config.h.in +++ b/bacula/autoconf/config.h.in @@ -1104,3 +1104,5 @@ /* Define to the type of an unsigned integer type wide enough to hold a pointer, if such a type exists, and if the system does not define it. */ #undef uintptr_t + +#undef HAVE_BACKTRACE diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 690b548e60..df417d386d 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -2104,6 +2104,10 @@ AC_MSG_RESULT($fstype) AC_CHECK_HEADER(sys/statvfs.h, [ AC_DEFINE(HAVE_SYS_STATVFS_H,1,[Defines if your system have the sys/statvfs.h header file])] , ) +AC_LANG_PUSH(C++) +AC_CHECK_HEADERS([cxxabi.h execinfo.h], [ AC_DEFINE(HAVE_BACKTRACE,1,[Defines if your system have the cxxabi.h and execinfo.h header files for backtrace()])] , ) +AC_LANG_POP(C++) + dnl -------------------------------------------------------------------------- dnl CHECKING FOR TYPEDEFS, STRUCTURES, AND COMPILER CHARACTERISTICS. dnl --------------------------------------------------------------------------