hc
2024-07-16 5fbd6e2385615a225453562361c4bdab3b15fda1
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
From eae97632157b73f0ca7c099232617b2777d0fa54 Mon Sep 17 00:00:00 2001
From: Sergio Prado <sergio.prado@e-labworks.com>
Date: Sat, 21 Dec 2019 12:00:42 -0300
Subject: [PATCH] Fix error when building on a Fedora host machine.
 
Remove the code that adds unsafe header/library path when
cross-compiling on a Fedora host machine.
 
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
[Fabrice: Update for 2.9.18.1 (also fix build on Centos host machine)]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 configure.in | 24 ------------------------
 1 file changed, 24 deletions(-)
 
diff --git a/configure.in b/configure.in
index e6586f399898..fb35d4d7e3e3 100644
--- a/configure.in
+++ b/configure.in
@@ -957,54 +957,6 @@ if test "x$enable_dlclose" = "xno"; then
     AC_DEFINE([DISABLE_DLCLOSE_FOR_VALGRIND_TESTING],[1],[Don't close opened shared objects for valgrind leak testing of dynamic libraries])
 fi
 
-##################################################
-# Fedora 28+ does not have inbuilt SunRPC support#
-# in glibc and is separately availble in tirpc   #
-# package. Make sure we've got the library and   #
-# link it                                        #
-##################################################
-
-if test -f /etc/fedora-release ; then
-    DISTRO_VERSION=$(awk '{ print $3 }' /etc/fedora-release)
-    if test $DISTRO_VERSION -ge 28 ; then
-        TIRPC=""
-        AC_CHECK_LIB(tirpc,bindresvport,, TIRPC="no")
-        echo "$TIRPC"
-        if test "x$TIRPC" = "xno"; then
-            echo
-            echo " ERROR! tirpc not found, get it by running "
-            echo " yum install libtirpc-devel "
-            exit
-        fi
-        LIBS="${LIBS} -ltirpc"
-        extra_incl="-I/usr/include/tirpc"
-    fi
-fi
-
-##################################################
-# Centos 8+ does not have inbuilt SunRPC support  #
-# in glibc and is separately availble in tirpc   #
-# package. Make sure we've got the library and   #
-# link it                                        #
-##################################################
-if test -f /etc/centos-release ; then
-    LINUX_FLAVOUR=$(awk '{ print $1 }' /etc/centos-release)
-    DISTRO_VERSION=`cut -d ' ' -f 4 /etc/centos-release | cut -d '.' -f 1`
-    if [[ "$LINUX_FLAVOUR" == "CentOS" ]] && [[ $DISTRO_VERSION -ge 8 ]]; then
-        TIRPC=""
-        AC_CHECK_LIB(tirpc,bindresvport,, TIRPC="no")
-        echo "$TIRPC"
-        if test "x$TIRPC" = "xno"; then
-            echo
-            echo " ERROR! tirpc not found, get it by running "
-            echo " yum install libtirpc-devel or dnf install libtirpc-devel"
-            exit
-        fi
-        LIBS="${LIBS} -ltirpc"
-        extra_incl="-I/usr/include/tirpc"
-    fi
-fi
-
 Z_LIB=""
 AC_CHECK_HEADERS(zlib.h,, Z_LIB="no")
 if test "x$Z_LIB" = "xno"; then
-- 
2.17.1