aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntopng/files/0001-configure.ac.in-fix-configure-error.patch
blob: d4908e322735dffdc2fadea4357d0c283352223b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From 29797dd037009d38e4976249ed21b2076240751e Mon Sep 17 00:00:00 2001
From: Mingli Yu <mingli.yu@windriver.com>
Date: Wed, 4 Nov 2020 04:36:46 +0000
Subject: [PATCH] configure.ac.in: fix configure error

fix the below error:
configure: error: cannot run test program while cross compiling

Upstream-Status: Inappropriate [embedded specific]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
 configure.ac.in | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/configure.ac.in b/configure.ac.in
index a321f9bbf..03f9a31b0 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -642,18 +642,7 @@ if test x$radcli = xtrue; then
   fi
 fi
 
-AC_CACHE_CHECK([if pthread rwlocks are supported], [my_cv_rw_locks_supported], [
-  AC_TRY_RUN([
-  #include <pthread.h>
-
-  int main() {
-    pthread_rwlock_t t;
-    return 0;
-  }
-]
-, [my_cv_rw_locks_supported=yes], [my_cv_rw_locks_supported=no])
-]
-)
+AC_CACHE_CHECK([if pthread rwlocks are supported], [my_cv_rw_locks_supported])
 
 if test "$my_cv_rw_locks_supported" = yes; then
   AC_DEFINE_UNQUOTED(HAVE_RW_LOCK, 1, [pthread rwlocks supported])
-- 
2.26.2