AC_CHECK_HEADERS(execinfo.h)
AC_SEARCH_LIBS_EXT(backtrace, [execinfo], EXECINFO_LIBS)
AC_CHECK_FUNC_EXT(backtrace, $EXECINFO_LIBS)
SMB_EXT_LIB(EXECINFO,[${EXECINFO_LIBS}])
SMB_ENABLE(EXECINFO)