Blame view

buildroot/buildroot-2016.08.1/package/nfs-utils/0003-Let-the-configure-script-find-getrpcbynumber-in-libt.patch 1.77 KB
6b13f685e   김민수   BSP 최초 추가
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
  From 87f88b28ac01b6449463f00b660fe7416d7f9a55 Mon Sep 17 00:00:00 2001
  From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  Date: Sat, 10 Nov 2012 18:53:03 +0100
  Subject: [PATCH] Let the configure script find getrpcbynumber in libtirpc
  
  The getrpcbynumber() function may not be available in the C library,
  but only in the libtirpc library. Take this into account when checking
  for the existence of getrpcbynumber() and getrpcbynumber_r().
  
  Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  ---
   configure.ac | 14 +++++++++++++-
   1 file changed, 13 insertions(+), 1 deletion(-)
  
  diff --git a/configure.ac b/configure.ac
  index 8e427e3..6e42c96 100644
  --- a/configure.ac
  +++ b/configure.ac
  @@ -433,11 +433,23 @@ AC_FUNC_STAT
   AC_FUNC_VPRINTF
   AC_CHECK_FUNCS([alarm atexit dup2 fdatasync ftruncate getcwd \
                  gethostbyaddr gethostbyname gethostname getmntent \
  -               getnameinfo getrpcbyname getrpcbynumber getrpcbynumber_r getifaddrs \
  +               getnameinfo getrpcbyname getifaddrs \
                  gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
                  ppoll realpath rmdir select socket strcasecmp strchr strdup \
                  strerror strrchr strtol strtoul sigprocmask name_to_handle_at])
  
  +save_CFLAGS=$CFLAGS
  +save_LIBS=$LIBS
  +CFLAGS="$CFLAGS $AM_CPPFLAGS"
  +LIBS="$LIBS $LIBTIRPC"
  +AC_CHECK_FUNCS([getrpcbynumber getrpcbynumber_r])
  +CFLAGS=$save_CFLAGS
  +LIBS=$save_LIBS
  +
  +if test "$ac_cv_func_getrpcbynumber_r" != "yes" -a "$ac_cv_func_getrpcbynumber" != "yes"; then
  +   AC_MSG_ERROR([Neither getrpcbynumber_r nor getrpcbynumber are available])
  +fi
  +
   dnl *************************************************************
   dnl Check for data sizes
   dnl *************************************************************
  --
  2.1.0