aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure96
1 files changed, 84 insertions, 12 deletions
diff --git a/configure b/configure
index 57ecd9d52eb..e51bb0c1a57 100755
--- a/configure
+++ b/configure
@@ -2960,6 +2960,7 @@ as_fn_append ac_header_list " getopt.h"
2960as_fn_append ac_func_list " lstat" 2960as_fn_append ac_func_list " lstat"
2961as_fn_append ac_func_list " alarm" 2961as_fn_append ac_func_list " alarm"
2962as_fn_append ac_func_list " readlink" 2962as_fn_append ac_func_list " readlink"
2963as_fn_append ac_header_list " sys/socket.h"
2963as_fn_append ac_header_list " wchar.h" 2964as_fn_append ac_header_list " wchar.h"
2964as_fn_append ac_header_list " stdint.h" 2965as_fn_append ac_header_list " stdint.h"
2965as_fn_append ac_func_list " tzset" 2966as_fn_append ac_func_list " tzset"
@@ -6141,6 +6142,7 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6141 # Code from module mktime: 6142 # Code from module mktime:
6142 # Code from module multiarch: 6143 # Code from module multiarch:
6143 # Code from module readlink: 6144 # Code from module readlink:
6145 # Code from module socklen:
6144 # Code from module stat: 6146 # Code from module stat:
6145 # Code from module stdbool: 6147 # Code from module stdbool:
6146 # Code from module stddef: 6148 # Code from module stddef:
@@ -7966,18 +7968,6 @@ $as_echo "#define NO_MATHERR 1" >>confdefs.h
7966 7968
7967fi 7969fi
7968 7970
7969for ac_header in sys/socket.h
7970do :
7971 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7972if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7973 cat >>confdefs.h <<_ACEOF
7974#define HAVE_SYS_SOCKET_H 1
7975_ACEOF
7976
7977fi
7978
7979done
7980
7981for ac_header in net/if.h 7971for ac_header in net/if.h
7982do : 7972do :
7983 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 7973 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
@@ -14784,6 +14774,24 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14784 14774
14785 14775
14786 14776
14777
14778
14779
14780 if test $ac_cv_header_sys_socket_h = no; then
14781 for ac_header in ws2tcpip.h
14782do :
14783 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
14784if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
14785 cat >>confdefs.h <<_ACEOF
14786#define HAVE_WS2TCPIP_H 1
14787_ACEOF
14788
14789fi
14790
14791done
14792
14793 fi
14794
14787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 14795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14788$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 14796$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14789if ${ac_cv_header_stdbool_h+:} false; then : 14797if ${ac_cv_header_stdbool_h+:} false; then :
@@ -16356,6 +16364,70 @@ $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16356 16364
16357 16365
16358 16366
16367 # Code from module socklen:
16368 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16369/* <sys/types.h> is not needed according to POSIX, but the
16370 <sys/socket.h> in i386-unknown-freebsd4.10 and
16371 powerpc-apple-darwin5.5 required it. */
16372#include <sys/types.h>
16373#if HAVE_SYS_SOCKET_H
16374# include <sys/socket.h>
16375#elif HAVE_WS2TCPIP_H
16376# include <ws2tcpip.h>
16377#endif
16378
16379"
16380if test "x$ac_cv_type_socklen_t" = xyes; then :
16381
16382else
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
16384$as_echo_n "checking for socklen_t equivalent... " >&6; }
16385 if ${gl_cv_socklen_t_equiv+:} false; then :
16386 $as_echo_n "(cached) " >&6
16387else
16388 # Systems have either "struct sockaddr *" or
16389 # "void *" as the second argument to getpeername
16390 gl_cv_socklen_t_equiv=
16391 for arg2 in "struct sockaddr" void; do
16392 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394/* end confdefs.h. */
16395#include <sys/types.h>
16396 #include <sys/socket.h>
16397
16398 int getpeername (int, $arg2 *, $t *);
16399int
16400main ()
16401{
16402$t len;
16403 getpeername (0, 0, &len);
16404 ;
16405 return 0;
16406}
16407_ACEOF
16408if ac_fn_c_try_compile "$LINENO"; then :
16409 gl_cv_socklen_t_equiv="$t"
16410fi
16411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 test "$gl_cv_socklen_t_equiv" != "" && break
16413 done
16414 test "$gl_cv_socklen_t_equiv" != "" && break
16415 done
16416
16417fi
16418
16419 if test "$gl_cv_socklen_t_equiv" = ""; then
16420 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
16421 fi
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
16423$as_echo "$gl_cv_socklen_t_equiv" >&6; }
16424
16425cat >>confdefs.h <<_ACEOF
16426#define socklen_t $gl_cv_socklen_t_equiv
16427_ACEOF
16428
16429fi
16430
16359 # Code from module stat: 16431 # Code from module stat:
16360 16432
16361 16433