Ignore:
Timestamp:
19/02/2011 17:25:33 (15 months ago)
Author:
jamesog
Message:

Fix backtrace by linking to libexecinfo when execinfo.h is found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/configure.ac

    r2824 r2860  
    123123AC_HEADER_STDC 
    124124AC_HEADER_SYS_WAIT 
    125 AC_CHECK_HEADERS([dlfcn.h execinfo.h getopt.h process.h pwd.h signal.h]) 
     125AC_CHECK_HEADERS([dlfcn.h getopt.h process.h pwd.h signal.h]) 
    126126AC_CHECK_HEADERS([syslog.h time.h cxxabi.h]) 
    127127AC_CHECK_HEADERS([netinet/in.h]) 
     
    129129AC_CHECK_HEADERS([sys/uio.h sys/xattr.h]) 
    130130AC_CHECK_HEADERS([bsd/unistd.h]) 
     131 
     132AC_CHECK_HEADERS([execinfo.h], [have_execinfo_h=yes]) 
     133 
     134if test "$have_execinfo_h" = "yes"; then 
     135  AC_SEARCH_LIBS([backtrace],[execinfo]) 
     136fi 
    131137 
    132138AC_CHECK_HEADER([regex.h], [have_regex_h=yes]) 
Note: See TracChangeset for help on using the changeset viewer.