[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #8525] Macro to test execinfo size type

From: anonymous
Subject: [patch #8525] Macro to test execinfo size type
Date: Mon, 01 Sep 2014 15:47:37 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0


                 Summary: Macro to test execinfo size type
                 Project: GNU Autoconf Archive
            Submitted by: None
            Submitted on: Mon 01 Sep 2014 03:47:36 PM UTC
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any



execinfo.h has been available on a number of systems now, but unfortunately
different systems use different types to represent the size of the backtrace,
with netBSD and FreeBSD using size_t and Linux, Mac OS X. To build calls that
work with both
implementations without warning, this macro not only checks if the execinfo
header is available but also what type is used for the len argument of
backtrace_symbols and the return value of backtrace.

All in all this macro defines

* HAVE_EXECINFO_H if execinfo.h can be included,
* backtrace_size_t to the len argument type, i.e. int or size_t,
* HAVE_BACKTRACE to 1 if the function can be linked to,

and append any library needed to LIBS (e.g. some BSD's need -lexecinfo).


File Attachments:

Date: Mon 01 Sep 2014 03:47:36 PM UTC  Name: ax_execinfo.m4  Size: 2kB   By:



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]