Changeset e68398dc863a4eb87fcc804d32ab0d6eb3eae9c2

Show
Ignore:
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
  • configure.ac

    radd88a3 re68398d  
    11371137    ;; 
    11381138esac 
     1139 
     1140dnl Check for backtrace() support 
     1141AC_CHECK_HEADERS(execinfo.h) 
     1142AC_CHECK_FUNCS(backtrace) 
    11391143 
    11401144dnl 
  • src/misc/objects.c

    r1993aa3 re68398d  
    14831483 
    14841484#ifndef NDEBUG 
    1485 # if defined(__GLIBC__) || defined(__APPLE__
     1485# ifdef (HAVE_EXECINFO_H
    14861486#  include <execinfo.h> 
    14871487# endif 
     
    15421542    fflush (stderr); 
    15431543 
    1544 #if defined(__GLIBC__) || defined(__APPLE__) 
     1544#ifdef HAVE_BACKTRACE 
    15451545    void *stack[20]; 
    15461546    int stackdepth = backtrace (stack, sizeof (stack) / sizeof (stack[0])); 
  • src/misc/threads.c

    r8420784 re68398d  
    8484} 
    8585 
    86 #if defined(__GLIBC__) || defined(__APPLE__) 
     86#if HAVE_EXECINFO_H 
    8787# include <execinfo.h> 
    8888#endif 
     
    126126#endif 
    127127 
    128 #if defined(__GLIBC__) || defined(__APPLE__) 
     128#ifdef HAVE_BACKTRACE 
    129129    void *stack[20]; 
    130130    int len = backtrace (stack, sizeof (stack) / sizeof (stack[0]));