mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
1115b7b342
These configure checks have the correct flags at configure time, so let's pass them through so they are used at compile time.
16 lines
483 B
Plaintext
16 lines
483 B
Plaintext
AC_CHECK_HEADERS(execinfo.h)
|
|
AC_SEARCH_LIBS_EXT(backtrace, [execinfo], EXECINFO_LIBS)
|
|
AC_CHECK_FUNC_EXT(backtrace, $EXECINFO_LIBS)
|
|
|
|
|
|
if test x"$ac_cv_header_execinfo_h" = x"yes" -a x"$ac_cv_func_ext_backtrace" = x"yes";then
|
|
SMB_ENABLE(EXECINFO, YES)
|
|
EXECINFO_CFLAGS="$CFLAGS"
|
|
EXECINFO_CPPFLAGS="$CPPFLAGS"
|
|
EXECINFO_LDFLAGS="$LDFLAGS"
|
|
else
|
|
SMB_ENABLE(EXECINFO,NO)
|
|
fi
|
|
|
|
SMB_EXT_LIB(EXECINFO, [${EXECINFO_LIBS}], [${EXECINFO_CFLAGS}], [${EXECINFO_CPPFLAGS}], [${EXECINFO_LDFLAGS}])
|