diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-10-08 10:05:13 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:57 -0500 |
commit | f7c3cd1350a40efbac362f72fe2d9dcde1bce7ad (patch) | |
tree | 8589169c6e0e76d7aa5ae334350ae0963a0bd179 | |
parent | 0df01cee47c07df1238b24eb94b3d7fac1c59973 (diff) | |
download | samba-f7c3cd1350a40efbac362f72fe2d9dcde1bce7ad.tar.gz samba-f7c3cd1350a40efbac362f72fe2d9dcde1bce7ad.tar.bz2 samba-f7c3cd1350a40efbac362f72fe2d9dcde1bce7ad.zip |
r25566: Use -lexecinfo for backtraces on FreeBSD. Patch by Timur I. Bakeyev <timur@com.bat.ru>
(This used to be commit 8d4a435601c1af42a4a6704b3181e194eb40f75a)
-rw-r--r-- | source4/lib/util/config.mk | 2 | ||||
-rw-r--r-- | source4/lib/util/fault.m4 | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/source4/lib/util/config.mk b/source4/lib/util/config.mk index a20f9d5dc6..0691bd7889 100644 --- a/source4/lib/util/config.mk +++ b/source4/lib/util/config.mk @@ -32,7 +32,7 @@ OBJ_FILES = xfile.o \ PUBLIC_DEPENDENCIES = \ LIBTALLOC LIBCRYPTO \ SOCKET_WRAPPER EXT_NSL \ - CHARSET + CHARSET EXECINFO [SUBSYSTEM::UNIX_PRIVS] PRIVATE_PROTO_HEADER = unix_privs.h diff --git a/source4/lib/util/fault.m4 b/source4/lib/util/fault.m4 index 6d2c4f2a6a..b24e63641c 100644 --- a/source4/lib/util/fault.m4 +++ b/source4/lib/util/fault.m4 @@ -1,2 +1,5 @@ -AC_CHECK_HEADER(execinfo.h) -AC_CHECK_FUNCS(backtrace) +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) |