1From ba1390a80662ff2ab7bfda978cde7df9a871f6ae Mon Sep 17 00:00:00 2001 2From: Changqing Li <changqing.li@windriver.com> 3Date: Tue, 24 Jul 2018 15:03:39 +0800 4Subject: [PATCH] configure.ac: allow cross-compilation 5 6The checking OpenSSL library and header version consistency will 7always fail in cross compiling, skip the check and give a warning 8instead for cross compiling. 9 10Upstream-Status: Inappropriate [embedded specific] 11 12Signed-off-by: Jackie Huang <jackie.huang@windriver.com> 13Signed-off-by: Yi Zhao <yi.zhao@windriver.com> 14 15Update to new version 3.0.17 to fix patch warning 16Signed-off-by: Changqing Li <changqing.li@windriver.com> 17 18Rebased for 3.2.3 19Signed-off-by: Randy MacLeod <randy.macleod@windriver.com> 20Signed-off-by: Robert Yang <liezhi.yang@windriver.com> 21 22--- 23 src/modules/rlm_krb5/configure.ac | 3 ++- 24 1 file changed, 2 insertions(+), 1 deletion(-) 25 26diff --git a/src/modules/rlm_krb5/configure.ac b/src/modules/rlm_krb5/configure.ac 27index 9ee6379ea4..1dad481da8 100644 28--- a/src/modules/rlm_krb5/configure.ac 29+++ b/src/modules/rlm_krb5/configure.ac 30@@ -143,7 +143,8 @@ if test "$krb5threadsafe" != "no"; then 31 FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe) 32 if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then 33 AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])], 34- [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])]) 35+ [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])], 36+ [AC_MSG_WARN(cross compiling: not checking)]) 37 fi 38 else 39 krb5threadsafe="" 40