From: stolz Date: Sat, 19 Oct 2002 10:42:24 +0000 (+0000) Subject: [project @ 2002-10-19 10:42:23 by stolz] X-Git-Tag: Approx_11550_changesets_converted~1529 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=241e4b617e86fde448adecf320c5d4d01c220bdb [project @ 2002-10-19 10:42:23 by stolz] Retro Police: There are hosts w/o in_addr_t (e.g. SuSE 7.0) --- diff --git a/configure.in b/configure.in index 04a79c8..2c0518e 100644 --- a/configure.in +++ b/configure.in @@ -1162,6 +1162,14 @@ case "$cv_func_usleep_return_type" in esac dnl -------------------------------------------------- +dnl * test for in_addr_t +dnl -------------------------------------------------- +AC_MSG_CHECKING(for in_addr_t in netinet/in.h) +AC_EGREP_HEADER(in_addr_t, netinet/in.h, + [ AC_DEFINE(HAVE_IN_ADDR_T) AC_MSG_RESULT(yes) ], + AC_MSG_RESULT(no)) + +dnl -------------------------------------------------- dnl * test for GTK+ dnl -------------------------------------------------- diff --git a/mk/config.h.in b/mk/config.h.in index 7efbc2b..b776a11 100644 --- a/mk/config.h.in +++ b/mk/config.h.in @@ -385,6 +385,9 @@ /* Define if usleep returns void */ #undef USLEEP_RETURNS_VOID +/*Define if in_addr_t available */ +#undef HAVE_IN_ADDR_T + /* Define if C compiler supports long long types */ #undef HAVE_LONG_LONG