Next: , Previous: , Up: The Macros  





Checks for execinfo.h header and if the len parameter/return type can be found from a list, also define backtrace_size_t to that type.

By default the list of types to try contains int and size_t, but should some yet undiscovered system use e.g. unsigned, the 3rd argument can be used for extensions. I’d like to hear of further suggestions.

Executes ACTION-IF-EXECINFO-H-IS-FOUND when present and the execinfo.h header is found or ACTION-IF-EXECINFO-H-IS-NOT-FOUND in case the header seems unavailable.

Also adds -lexecinfo to LIBS on BSD if needed.

Source Code

Download the latest version of ax_execinfo.m4 or browse the macro’s revision history.


Copyright © 2014 Thomas Jahns

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.