|
@@ -12,6 +12,8 @@ FR_SMART_CHECK_LIB can find an incompatible library.
|
|
|
|
|
|
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
|
|
Upstream: https://github.com/FreeRADIUS/freeradius-server/pull/4632
|
|
|
+[Fabrice: update for 3.2.3]
|
|
|
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
---
|
|
|
configure.ac | 38 +++++++++++++++++++-------------------
|
|
|
1 file changed, 19 insertions(+), 19 deletions(-)
|
|
@@ -20,7 +22,7 @@ diff --git a/configure.ac b/configure.ac
|
|
|
index f431da6db5..faa7cfc2b4 100644
|
|
|
--- a/configure.ac
|
|
|
+++ b/configure.ac
|
|
|
-@@ -2165,26 +2165,26 @@ dnl #
|
|
|
+@@ -2165,21 +2165,21 @@ dnl #
|
|
|
smart_try_dir=$execinfo_include_dir
|
|
|
FR_SMART_CHECK_INCLUDE(execinfo.h)
|
|
|
if test "x$ac_cv_header_execinfo_h" = "xyes"; then
|
|
@@ -28,39 +30,29 @@ index f431da6db5..faa7cfc2b4 100644
|
|
|
- FR_SMART_CHECK_LIB(execinfo, backtrace_symbols)
|
|
|
+ dnl # Might be provided as part of libc
|
|
|
+ AC_MSG_CHECKING([if execinfo provided as part of libc])
|
|
|
-+ AC_TRY_LINK(
|
|
|
-+ [
|
|
|
++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
|
|
+ #include <execinfo.h>
|
|
|
-+ ],
|
|
|
-+ [
|
|
|
++ ]], [[
|
|
|
+ void *sym[1];
|
|
|
-+ backtrace_symbols(&sym, sizeof(sym)) ],
|
|
|
-+ [
|
|
|
++ backtrace_symbols(&sym, sizeof(sym)) ]])],[
|
|
|
+ AC_MSG_RESULT(yes)
|
|
|
+ ac_cv_lib_execinfo_backtrace_symbols="yes"
|
|
|
-+ ],
|
|
|
-+ [
|
|
|
++ ],[
|
|
|
+ AC_MSG_RESULT(no)
|
|
|
-+ ]
|
|
|
-+ )
|
|
|
++ ])
|
|
|
if test "x$ac_cv_lib_execinfo_backtrace_symbols" != "xyes"; then
|
|
|
- dnl # Might be provided as part of libc
|
|
|
- AC_MSG_CHECKING([if execinfo provided as part of libc])
|
|
|
-- AC_TRY_LINK(
|
|
|
-- [
|
|
|
+- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
|
|
- #include <execinfo.h>
|
|
|
-- ],
|
|
|
-- [
|
|
|
+- ]], [[
|
|
|
- void *sym[1];
|
|
|
-- backtrace_symbols(&sym, sizeof(sym)) ],
|
|
|
-- [
|
|
|
+- backtrace_symbols(&sym, sizeof(sym)) ]])],[
|
|
|
- AC_MSG_RESULT(yes)
|
|
|
- ac_cv_lib_execinfo_backtrace_symbols="yes"
|
|
|
-- ],
|
|
|
-- [
|
|
|
+- ],[
|
|
|
- AC_MSG_RESULT(no)
|
|
|
-- ]
|
|
|
-- )
|
|
|
+- ])
|
|
|
+ smart_try_dir=$execinfo_lib_dir
|
|
|
+ FR_SMART_CHECK_LIB(execinfo, backtrace_symbols)
|
|
|
fi
|