Ensure the system declares inet_ntop, inet_pton when possible.
authorBruno Haible <bruno@clisp.org>
Tue, 29 Apr 2008 23:27:49 +0000 (01:27 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 29 Apr 2008 23:27:49 +0000 (01:27 +0200)
ChangeLog
m4/inet_ntop.m4
m4/inet_pton.m4
modules/inet_ntop
modules/inet_pton

index eb4e64bcbb17a83b6161f068221c29b3d4bb2ab2..ab0e29275a8de3db9f9a3a13e866aeeb02962297 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-04-29  Bruno Haible  <bruno@clisp.org>
+
+       * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
+       * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
+       * modules/inet_ntop (Depends-on): Add extensions.
+       * modules/inet_pton (Depends-on): Likewise.
+       Reported by Simon Josefsson.
+
 2008-04-29  Jim Meyering  <meyering@redhat.com>
 
        When the is more than one match in a block, match all of them.
index ee7ba5196c7d8e9236d43b266a7436780e6730ff..342cd28a471441185529981b723dd06b5162fc4c 100644 (file)
@@ -6,6 +6,9 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_INET_NTOP],
 [
+  dnl Persuade Solaris <arpa/inet.h> to declare inet_ntop.
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
   ARPA_INET_H='arpa/inet.h'
 
index 4ea89d26edc4003286ee6c14de256de3ab85260a..7d7f993a008f42f5ddb19efa842fb5f56b4c9b08 100644 (file)
@@ -6,6 +6,9 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_INET_PTON],
 [
+  dnl Persuade Solaris <arpa/inet.h> to declare inet_ntop.
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
   AC_REQUIRE([gl_ARPA_INET_H_DEFAULTS])
   ARPA_INET_H='arpa/inet.h'
 
index a83ea80767e797751f0ed5ca7466d39719467bac..98df38e51c1df101ff4d40146bc3fead86335d6f 100644 (file)
@@ -10,6 +10,7 @@ socklen
 sys_socket
 arpa_inet
 netinet_in
+extensions
 
 configure.ac:
 gl_INET_NTOP
index 74a68b7ae73edd34c7fdfd1762ee8e7d5b8bd0c7..642b8fc56a8d1b3bb1ceb01d42f8cb77896619b2 100644 (file)
@@ -10,6 +10,7 @@ socklen
 sys_socket
 arpa_inet
 netinet_in
+extensions
 
 configure.ac:
 gl_INET_PTON