2 diff -u configure.orig configure
3 --- configure.orig Tue Mar 11 08:53:20 2003
4 +++ configure Sun Sep 3 21:07:20 2006
6 ac_cv_flavor_gethostbyaddr=unknown
8 cat > conftest.$ac_ext <<EOF
9 -#line 2637 "configure"
10 +#line 2648 "configure"
11 +#include "confdefs.h"
14 + #include <sys/types.h>
15 + #include <sys/socket.h>
17 + struct hostent *gethostbyaddr(const void *addr, int len, int type) {
21 + (void)gethostbyaddr(NULL, 0, 0);
26 +if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
28 + ac_cv_flavor_gethostbyaddr=freebsd6
30 + echo "configure: failed program was:" >&5
31 + cat conftest.$ac_ext >&5
36 + if test "$cross_compiling" = yes; then
37 + ac_cv_flavor_gethostbyaddr=unknown
39 + cat > conftest.$ac_ext <<EOF
40 +#line 2678 "configure"
44 @@ -2675,6 +2716,10 @@
45 ac_cv_type_ghba_addr_t='const char *'
46 ac_cv_type_ghba_addrlen_t='size_t'
49 + ac_cv_type_ghba_addr_t='const void *'
50 + ac_cv_type_ghba_addrlen_t='int'
53 ac_cv_type_ghba_addr_t='const char *'
54 ac_cv_type_ghba_addrlen_t='int'