diff options
author | Dmitrij Tejblum <tejblum@yandex-team.ru> | 2011-09-15 20:00:33 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-09-27 21:45:37 +0400 |
commit | eda3529e9cf163ccbcf47c889b16fd707d2aed76 (patch) | |
tree | 60f295c940d7c17a799db549ab20f41a5707d3bc | |
parent | bcc6c59ac5e9c1e8cf9693b4768f6b8cad5e559a (diff) |
configure: test for glibc backtrace even without glibc.
Other platform may have compatible facilities.
-rwxr-xr-x | configure.ac | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac index 63e8dcf0..ad250127 100755 --- a/configure.ac +++ b/configure.ac @@ -1439,14 +1439,12 @@ AC_SUBST(LIBCAP) dnl --------------------------- dnl check for glibc 'backtrace' dnl --------------------------- -if test "${glibc}" = "yes"; then - AC_CHECK_HEADER([execinfo.h], - [AC_CHECK_FUNC([backtrace], - [AC_DEFINE(HAVE_GLIBC_BACKTRACE,,[Glibc backtrace]) - AC_DEFINE(HAVE_STACK_TRACE,,[Stack symbol decoding]) - ]) - ]) -fi +AC_CHECK_HEADER([execinfo.h], + [AC_CHECK_FUNC([backtrace], + [AC_DEFINE(HAVE_GLIBC_BACKTRACE,,[Glibc backtrace]) + AC_DEFINE(HAVE_STACK_TRACE,,[Stack symbol decoding]) + ]) +]) dnl ----------------------------------------- dnl check for malloc mallinfo struct and call |