diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-11-11 14:58:44 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-11-11 14:58:44 (GMT) |
commit | 01c04013a79555ce82dcaab7dc0907f3b4b28034 (patch) | |
tree | 915ed0e57c376461926d202a725a6278a2fc522d /configure.in | |
parent | bddf5a57ca94b93d251492b5adc50814e891e7f2 (diff) | |
download | cpython-01c04013a79555ce82dcaab7dc0907f3b4b28034.zip cpython-01c04013a79555ce82dcaab7dc0907f3b4b28034.tar.gz cpython-01c04013a79555ce82dcaab7dc0907f3b4b28034.tar.bz2 |
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Fixes #636431.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/configure.in b/configure.in index 07f452d..2bfe8c3 100644 --- a/configure.in +++ b/configure.in @@ -2445,25 +2445,16 @@ then [Define if WINDOW in curses.h offers a field _flags.]) fi -# THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! -# Add sys/socket.h to confdefs.h -cat >> confdefs.h <<\EOF +AC_CHECK_TYPE(socklen_t,, + AC_DEFINE(socklen_t,int, + Define to `int' if <sys/socket.h> does not define.),[ +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif -EOF -AC_CHECK_TYPE(socklen_t, int) - -#AC_MSG_CHECKING(for Modules/Setup) -#if test ! -f Modules/Setup ; then -# if test ! -d Modules ; then -# mkdir Modules -# fi -# cp "$srcdir/Modules/Setup.dist" Modules/Setup -# AC_MSG_RESULT(creating) -#else -# AC_MSG_RESULT(already exists) -#fi +]) AC_SUBST(THREADHEADERS) |