diff options
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 | ||