From a957abd1fd1bd891354abb1a3590627ae06a45e9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 29 Jul 1998 07:02:06 +0000 Subject: test for a broken inet_ntoa and replace it if necessary (for IRIX+gcc-2.8.1) (This used to be commit ddffbcbcb1284b6ead5f7f7b6665ba2456c0071a) --- source3/configure.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'source3/configure.in') diff --git a/source3/configure.in b/source3/configure.in index 5cdc3425d6..a7cba67688 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -217,6 +217,19 @@ AC_TRY_RUN([#include "tests/getgroups.c"], echo no) +echo $ac_n "checking for broken inet_ntoa ... $ac_c" +AC_TRY_RUN([ +#include +#include +#include +#include +main() { struct in_addr ip; ip.s_addr = 0x12345678; +if (strcmp(inet_ntoa(ip),"18.52.86.120") && + strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); } +exit(1);}], + echo yes;AC_DEFINE(REPLACE_INET_NTOA), + echo no) + echo $ac_n "checking for root ... $ac_c" AC_TRY_RUN([main() { exit(getuid() != 0); }], echo yes;AC_DEFINE(HAVE_ROOT), -- cgit