Changeset e68398dc863a4eb87fcc804d32ab0d6eb3eae9c2
- Timestamp:
- 05/31/08 14:04:33
(3 months ago)
- Author:
- Pierre d'Herbemont <pdherbemont@videolan.org>
- git-committer:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1212235473 +0200
- git-parent:
[4af9b5114e371d07eb5c30890cdf1f8b133a563d]
- git-author:
- Pierre d'Herbemont <pdherbemont@videolan.org> 1212235473 +0200
- Message:
configure: Check for HAVE_BACKTRACE and HAVE_EXECINFO_H.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| radd88a3 |
re68398d |
|
| 1137 | 1137 | ;; |
|---|
| 1138 | 1138 | esac |
|---|
| | 1139 | |
|---|
| | 1140 | dnl Check for backtrace() support |
|---|
| | 1141 | AC_CHECK_HEADERS(execinfo.h) |
|---|
| | 1142 | AC_CHECK_FUNCS(backtrace) |
|---|
| 1139 | 1143 | |
|---|
| 1140 | 1144 | dnl |
|---|
| r1993aa3 |
re68398d |
|
| 1483 | 1483 | |
|---|
| 1484 | 1484 | #ifndef NDEBUG |
|---|
| 1485 | | # if defined(__GLIBC__) || defined(__APPLE__) |
|---|
| | 1485 | # ifdef (HAVE_EXECINFO_H) |
|---|
| 1486 | 1486 | # include <execinfo.h> |
|---|
| 1487 | 1487 | # endif |
|---|
| … | … | |
| 1542 | 1542 | fflush (stderr); |
|---|
| 1543 | 1543 | |
|---|
| 1544 | | #if defined(__GLIBC__) || defined(__APPLE__) |
|---|
| | 1544 | #ifdef HAVE_BACKTRACE |
|---|
| 1545 | 1545 | void *stack[20]; |
|---|
| 1546 | 1546 | int stackdepth = backtrace (stack, sizeof (stack) / sizeof (stack[0])); |
|---|
| r8420784 |
re68398d |
|
| 84 | 84 | } |
|---|
| 85 | 85 | |
|---|
| 86 | | #if defined(__GLIBC__) || defined(__APPLE__) |
|---|
| | 86 | #if HAVE_EXECINFO_H |
|---|
| 87 | 87 | # include <execinfo.h> |
|---|
| 88 | 88 | #endif |
|---|
| … | … | |
| 126 | 126 | #endif |
|---|
| 127 | 127 | |
|---|
| 128 | | #if defined(__GLIBC__) || defined(__APPLE__) |
|---|
| | 128 | #ifdef HAVE_BACKTRACE |
|---|
| 129 | 129 | void *stack[20]; |
|---|
| 130 | 130 | int len = backtrace (stack, sizeof (stack) / sizeof (stack[0])); |
|---|