From 166e82431e8e7113ed94e70f93d58dc4d3aa4caf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sun, 31 May 1998 16:06:50 +0200
Subject: [PATCH] Added check for existance of in_addr_t.

Rev: src/modules/system/configure.in:1.24
---
 src/modules/system/configure.in | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/src/modules/system/configure.in b/src/modules/system/configure.in
index aacafd29a8..e84f5eecfa 100644
--- a/src/modules/system/configure.in
+++ b/src/modules/system/configure.in
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.23 1998/05/22 12:43:13 grubba Exp $
+# $Id: configure.in,v 1.24 1998/05/31 14:06:50 grubba Exp $
 AC_INIT(system.c)
 AC_CONFIG_HEADER(system_machine.h)
 
@@ -93,6 +93,27 @@ else
   AC_MSG_RESULT(no)
 fi
 
+AC_MSG_CHECKING(for in_addr_t)
+AC_CACHE_VAL(pike_cv_type_in_addr_t,
+[
+AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <netdb.h>
+],[
+  in_addr_t foo;
+],pike_cv_type_in_addr_t=yes,pike_cv_type_in_addr_t=no)
+])
+ 
+if test "$pike_cv_type_in_addr_t" = yes; then
+  AC_MSG_RESULT(yes)
+  AC_DEFINE(HAVE_IN_ADDR_T)
+else
+  AC_MSG_RESULT(no)
+fi
+
 AC_MSG_CHECKING(whether struct passwd has the pw_gecos field)
 AC_CACHE_VAL(pike_cv_struct_has_pw_gecos,
 [
-- 
GitLab