changeset 3903:16c96a2353e8

added test for inet_pton()
author pl
date Sun, 30 Dec 2001 19:38:28 +0000
parents 9c4a5c4e00b1
children 848d848521b9
files configure
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Dec 30 19:17:10 2001 +0000
+++ b/configure	Sun Dec 30 19:38:28 2001 +0000
@@ -1093,6 +1093,27 @@
 fi
 
 
+echocheck "inet_pton()"
+cat > $TMPC << EOF
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
+int main(void) { (void) inet_pton(0, 0, 0); return 0; }
+EOF
+if cc_check $_ld_sock ; then
+  # NOTE: Linux has libresolv but does not need it
+  :
+  echores "yes (using $_ld_sock)"
+elif cc_check $_ld_sock -lresolv ; then
+  # NOTE: needed for SunOS at least
+  _ld_sock="$_ld_sock -lresolv"
+  echores "yes (using $_ld_sock)"
+else
+  echores "no (=> streaming support disabled)"
+  _streaming=no
+fi
+
+
 echocheck "malloc.h"
 cat > $TMPC << EOF
 #include <malloc.h>