summaryrefslogtreecommitdiffstats
path: root/libjava/configure.in
diff options
context:
space:
mode:
authoroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-21 14:26:44 +0000
committeroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-21 14:26:44 +0000
commit2e49169de64393c4ebae9e4221b650ff223e9a4a (patch)
tree936dcb136f4e1a15f7189da9628cb51caeeaf701 /libjava/configure.in
parent7ebd7b4a5cb2eb8093b5722d891eaf9c8b8aa829 (diff)
downloadppe42-gcc-2e49169de64393c4ebae9e4221b650ff223e9a4a.tar.gz
ppe42-gcc-2e49169de64393c4ebae9e4221b650ff223e9a4a.zip
* configure.in: Check for in_addr_t in netinet/in.h too. Check
for ip_mreq too. * acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t. (HAVE_STRUCT_IP_MREQ): Added. * configure, include/config.h.in: Rebuilt. * java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint if needed. * java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp): Disable if ip_mreq is not available. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28798 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/configure.in')
-rw-r--r--libjava/configure.in20
1 files changed, 19 insertions, 1 deletions
diff --git a/libjava/configure.in b/libjava/configure.in
index 51839d3bb63..99c2b9e5c47 100644
--- a/libjava/configure.in
+++ b/libjava/configure.in
@@ -547,7 +547,25 @@ dnl for now. If you change this, you also must update natFile.cc.
AC_CHECK_HEADERS(dirent.h)
AC_CHECK_TYPE([ssize_t], [int])
-AC_CHECK_TYPE([in_addr_t], [jint])
+
+AC_MSG_CHECKING([for in_addr_t])
+AC_TRY_COMPILE([#include <sys/types.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
+#if HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif], [in_addr_t foo;],
+ [AC_DEFINE([HAVE_IN_ADDR_T])
+ AC_MSG_RESULT(yes)],
+ [AC_MSG_RESULT(no)])
+
+AC_MSG_CHECKING([whether struct ip_mreq is in netinet/in.h])
+AC_TRY_COMPILE([#include <netinet/in.h>], [struct ip_mreq mreq;],
+ [AC_DEFINE(HAVE_STRUCT_IP_MREQ)
+ AC_MSG_RESULT(yes)],
+ [AC_MSG_RESULT(no)])
AC_MSG_CHECKING([whether struct sockaddr_in6 is in netinet/in.h])
AC_TRY_COMPILE([#include <netinet/in.h>], [struct sockaddr_in6 addr6;],
OpenPOWER on IntegriCloud