blob: 38e7c362272c70a23aedf1898edb46516d9989f4 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 0780b7053fb0d33d721aa70ab2ecd75299e5ba31 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 24 Jul 2018 15:03:39 +0800
Brad Bishopd7bf8c12018-02-25 22:55:05 -05004Subject: [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>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080014
15update to new version 3.0.17 to fix patch warning
16Signed-off-by: Changqing Li <changqing.li@windriver.com>
Brad Bishopd7bf8c12018-02-25 22:55:05 -050017---
18 src/modules/rlm_krb5/configure.ac | 3 ++-
19 1 file changed, 2 insertions(+), 1 deletion(-)
20
21diff --git a/src/modules/rlm_krb5/configure.ac b/src/modules/rlm_krb5/configure.ac
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080022index efc9f29..98a97e4 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050023--- a/src/modules/rlm_krb5/configure.ac
24+++ b/src/modules/rlm_krb5/configure.ac
25@@ -137,7 +137,8 @@ if test x$with_[]modname != xno; then
26 FR_SMART_CHECK_LIB(krb5, krb5_is_thread_safe)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080027 if test "x$ac_cv_lib_krb5_krb5_is_thread_safe" = xyes; then
Brad Bishopd7bf8c12018-02-25 22:55:05 -050028 AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <krb5.h>]], [[return krb5_is_thread_safe() ? 0 : 1]])],
29- [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])])
30+ [krb5threadsafe="-DKRB5_IS_THREAD_SAFE"], [AC_MSG_WARN([[libkrb5 is not threadsafe]])],
31+ [AC_MSG_WARN(cross compiling: not checking)])
32 fi
33 else
34 krb5threadsafe=""
35--
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800362.7.4
Brad Bishopd7bf8c12018-02-25 22:55:05 -050037