diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 96 |
1 files changed, 84 insertions, 12 deletions
| @@ -2960,6 +2960,7 @@ as_fn_append ac_header_list " getopt.h" | |||
| 2960 | as_fn_append ac_func_list " lstat" | 2960 | as_fn_append ac_func_list " lstat" |
| 2961 | as_fn_append ac_func_list " alarm" | 2961 | as_fn_append ac_func_list " alarm" |
| 2962 | as_fn_append ac_func_list " readlink" | 2962 | as_fn_append ac_func_list " readlink" |
| 2963 | as_fn_append ac_header_list " sys/socket.h" | ||
| 2963 | as_fn_append ac_header_list " wchar.h" | 2964 | as_fn_append ac_header_list " wchar.h" |
| 2964 | as_fn_append ac_header_list " stdint.h" | 2965 | as_fn_append ac_header_list " stdint.h" |
| 2965 | as_fn_append ac_func_list " tzset" | 2966 | as_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 | ||
| 7967 | fi | 7969 | fi |
| 7968 | 7970 | ||
| 7969 | for ac_header in sys/socket.h | ||
| 7970 | do : | ||
| 7971 | ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" | ||
| 7972 | if 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 | |||
| 7977 | fi | ||
| 7978 | |||
| 7979 | done | ||
| 7980 | |||
| 7981 | for ac_header in net/if.h | 7971 | for ac_header in net/if.h |
| 7982 | do : | 7972 | do : |
| 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 | ||
| 14782 | do : | ||
| 14783 | ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" | ||
| 14784 | if test "x$ac_cv_header_ws2tcpip_h" = xyes; then : | ||
| 14785 | cat >>confdefs.h <<_ACEOF | ||
| 14786 | #define HAVE_WS2TCPIP_H 1 | ||
| 14787 | _ACEOF | ||
| 14788 | |||
| 14789 | fi | ||
| 14790 | |||
| 14791 | done | ||
| 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; } |
| 14789 | if ${ac_cv_header_stdbool_h+:} false; then : | 14797 | if ${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 | " | ||
| 16380 | if test "x$ac_cv_type_socklen_t" = xyes; then : | ||
| 16381 | |||
| 16382 | else | ||
| 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 | ||
| 16387 | else | ||
| 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 *); | ||
| 16399 | int | ||
| 16400 | main () | ||
| 16401 | { | ||
| 16402 | $t len; | ||
| 16403 | getpeername (0, 0, &len); | ||
| 16404 | ; | ||
| 16405 | return 0; | ||
| 16406 | } | ||
| 16407 | _ACEOF | ||
| 16408 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 16409 | gl_cv_socklen_t_equiv="$t" | ||
| 16410 | fi | ||
| 16411 | rm -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 | |||
| 16417 | fi | ||
| 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 | |||
| 16425 | cat >>confdefs.h <<_ACEOF | ||
| 16426 | #define socklen_t $gl_cv_socklen_t_equiv | ||
| 16427 | _ACEOF | ||
| 16428 | |||
| 16429 | fi | ||
| 16430 | |||
| 16359 | # Code from module stat: | 16431 | # Code from module stat: |
| 16360 | 16432 | ||
| 16361 | 16433 | ||