[patch #8525] Macro to test execinfo size type

anonymous <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
URL:
  <http://savannah.gnu.org/patch/?8525>

                 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: [email protected]
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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:
None

<http://savannah.gnu.org/patch/download.php?file_id=32012>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8525>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.