From 07abf9d9f0526a762ede69be0fd17b0deb82ea9c Mon Sep 17 00:00:00 2001 From: Patrick Welche Date: Wed, 4 Jun 2014 16:44:19 +0100 Subject: [PATCH] configure.ac: backtrace() may be in libexecinfo --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 85f8001..0dd5a14 100644 --- a/configure.ac +++ b/configure.ac @@ -665,7 +665,10 @@ AC_CHECK_HEADERS(sys/resource.h) AC_CHECK_HEADERS(dirent.h) -AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)]) +AC_CHECK_HEADERS([execinfo.h], + [AC_SEARCH_LIBS([backtrace], [execinfo], + [AC_DEFINE([HAVE_BACKTRACE], [1], + [Define to 1 if you have backtrace().])])]) AC_CHECK_HEADERS(errno.h) -- 1.9.3