diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2009-05-19 22:32:10 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2009-05-19 22:32:10 (GMT) |
commit | 50b3ff7b91e78a61aca93247bee586d6d7eb27c8 (patch) | |
tree | db4c7eee24479ac7ee6888ce1562facf60159b71 /gl/m4/inet_ntop.m4 | |
parent | 2701ccd500e60537a8c2977a81549ff33eeaef3f (diff) | |
download | monitoring-plugins-50b3ff7b91e78a61aca93247bee586d6d7eb27c8.tar.gz |
Sync with the latest Gnulib code (cb75dc5)
Signed-off-by: Holger Weiss <holger@zedat.fu-berlin.de>
Diffstat (limited to 'gl/m4/inet_ntop.m4')
-rw-r--r-- | gl/m4/inet_ntop.m4 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/gl/m4/inet_ntop.m4 b/gl/m4/inet_ntop.m4 index 42bfc5e..2bbdca1 100644 --- a/gl/m4/inet_ntop.m4 +++ b/gl/m4/inet_ntop.m4 | |||
@@ -1,4 +1,4 @@ | |||
1 | # inet_ntop.m4 serial 8 | 1 | # inet_ntop.m4 serial 9 |
2 | dnl Copyright (C) 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2005, 2006, 2008, 2009 Free Software Foundation, Inc. |
3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
@@ -11,7 +11,18 @@ AC_DEFUN([gl_INET_NTOP], | |||
11 | 11 | ||
12 | gl_REPLACE_ARPA_INET_H | 12 | gl_REPLACE_ARPA_INET_H |
13 | 13 | ||
14 | AC_REPLACE_FUNCS([inet_ntop]) | 14 | dnl The AC_SEARCH_LIBS call is a hack to persuade the Solaris 8 linker to |
15 | dnl find inet_ntop. | ||
16 | dnl | ||
17 | dnl It is the responsibility of gl_INET_NTOP's caller to arrange for | ||
18 | dnl -lnsl if it is needed. Normally -lnsl is not needed on Solaris 8, | ||
19 | dnl since inet_ntop is needed only by getaddrinfo, and getaddrinfo | ||
20 | dnl isn't built on Solaris 8. | ||
21 | gl_save_LIBS=$LIBS | ||
22 | AC_SEARCH_LIBS([inet_ntop], [nsl], [], | ||
23 | [AC_REPLACE_FUNCS([inet_ntop])]) | ||
24 | LIBS=$gl_save_LIBS | ||
25 | |||
15 | gl_PREREQ_INET_NTOP | 26 | gl_PREREQ_INET_NTOP |
16 | ]) | 27 | ]) |
17 | 28 | ||