Fix the test for socklen_t so that it searches through sys/socket.h.

This commit is contained in:
Guido van Rossum 2000-05-18 20:53:31 +00:00
parent 8c5cedee69
commit 95713eb9d6
2 changed files with 275 additions and 259 deletions

522
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -356,7 +356,7 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(dlfcn.h fcntl.h limits.h locale.h ncurses.h pthread.h \
signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h \
sys/audioio.h sys/file.h sys/lock.h \
sys/param.h sys/select.h sys/time.h sys/times.h \
sys/param.h sys/select.h sys/socket.h sys/time.h sys/times.h \
sys/un.h sys/utsname.h sys/wait.h)
AC_HEADER_DIRENT
@ -380,7 +380,6 @@ AC_TYPE_PID_T
AC_TYPE_SIGNAL
AC_TYPE_SIZE_T
AC_TYPE_UID_T
AC_CHECK_TYPE(socklen_t, int)
# Sizes of various common basic types
AC_CHECK_SIZEOF(int)
@ -1080,6 +1079,15 @@ else AC_MSG_RESULT(no)
fi],
[AC_MSG_RESULT(no)])
# THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
# Add sys/socket.h to confdefs.h
cat >> confdefs.h <<\EOF
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
EOF
AC_CHECK_TYPE(socklen_t, int)
# generate output files
AC_OUTPUT(Makefile \
Objects/Makefile \