[ovs-dev] [PATCH 02/18] deal with platforms where backtrace() is in a different library than libc.

YAMAMOTO Takashi yamamoto at valinux.co.jp
Thu Jan 31 10:49:36 UTC 2013

From: YAMAMOTO Takashi <yamt at mwd.biglobe.ne.jp>

execinfo for NetBSD and ubacktrace for uClibc.
i don't know if the latter is relevant to Open vSwitch, though.

Signed-off-by: YAMAMOTO Takashi <yamamoto at valinux.co.jp>
 m4/openvswitch.m4 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4
index 59cc933..189cbf6 100644
--- a/m4/openvswitch.m4
+++ b/m4/openvswitch.m4
@@ -168,10 +168,9 @@ AC_DEFUN([OVS_CHECK_DBDIR],
-dnl Defines HAVE_BACKTRACE if backtrace() is declared in <execinfo.h>
-dnl and exists in libc.
+dnl Defines HAVE_BACKTRACE if backtrace() is found.
-  [AC_CHECK_HEADER([execinfo.h], [AC_CHECK_FUNCS([backtrace])])])
+  [AC_SEARCH_LIBS([backtrace], [execinfo ubacktrace])])
 dnl Checks for __malloc_hook, etc., supported by glibc.

More information about the dev mailing list