Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(40362)

Side by Side Diff: configure.in

Issue 11863: Enforce PEP 11 - remove support for legacy systems
Patch Set: Created 8 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Include/Python.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dnl *********************************************** 1 dnl ***********************************************
2 dnl * Please run autoreconf to test your changes! * 2 dnl * Please run autoreconf to test your changes! *
3 dnl *********************************************** 3 dnl ***********************************************
4 4
5 # Set VERSION so we only need to edit in one place (i.e., here) 5 # Set VERSION so we only need to edit in one place (i.e., here)
6 m4_define(PYTHON_VERSION, 3.3) 6 m4_define(PYTHON_VERSION, 3.3)
7 7
8 AC_PREREQ(2.65) 8 AC_PREREQ(2.65)
9 9
10 AC_REVISION($Revision$) 10 AC_REVISION($Revision$)
(...skipping 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 dnl int foo; 1267 dnl int foo;
1268 dnl struct {char *name; int *addr; char *doc;} desc = spam(foo, "something"); 1268 dnl struct {char *name; int *addr; char *doc;} desc = spam(foo, "something");
1269 dnl ]], [[;]])],[cpp_type=ansi],[AC_DEFINE(HAVE_OLD_CPP) cpp_type=traditional]) 1269 dnl ]], [[;]])],[cpp_type=ansi],[AC_DEFINE(HAVE_OLD_CPP) cpp_type=traditional])
1270 dnl AC_MSG_RESULT($cpp_type) 1270 dnl AC_MSG_RESULT($cpp_type)
1271 1271
1272 # checks for header files 1272 # checks for header files
1273 AC_HEADER_STDC 1273 AC_HEADER_STDC
1274 AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ 1274 AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
1275 fcntl.h grp.h \ 1275 fcntl.h grp.h \
1276 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ 1276 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \
1277 shadow.h signal.h stdint.h stropts.h termios.h thread.h \ 1277 shadow.h signal.h stdint.h stropts.h termios.h \
1278 unistd.h utime.h \ 1278 unistd.h utime.h \
1279 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ 1279 sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \
1280 sys/lock.h sys/mkdev.h sys/modem.h \ 1280 sys/lock.h sys/mkdev.h sys/modem.h \
1281 sys/param.h sys/poll.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ 1281 sys/param.h sys/poll.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
1282 sys/stat.h sys/termio.h sys/time.h \ 1282 sys/stat.h sys/termio.h sys/time.h \
1283 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ 1283 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
1284 libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ 1284 libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
1285 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h) 1285 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h)
1286 AC_HEADER_DIRENT 1286 AC_HEADER_DIRENT
1287 AC_HEADER_MAJOR 1287 AC_HEADER_MAJOR
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
1993 fi 1993 fi
1994 1994
1995 # This is used to generate Setup.config 1995 # This is used to generate Setup.config
1996 AC_SUBST(USE_THREAD_MODULE) 1996 AC_SUBST(USE_THREAD_MODULE)
1997 USE_THREAD_MODULE="" 1997 USE_THREAD_MODULE=""
1998 1998
1999 AC_SUBST(LDLAST) 1999 AC_SUBST(LDLAST)
2000 2000
2001 # Templates for things AC_DEFINEd more than once. 2001 # Templates for things AC_DEFINEd more than once.
2002 # For a single AC_DEFINE, no template is needed. 2002 # For a single AC_DEFINE, no template is needed.
2003 AH_TEMPLATE(C_THREADS,[Define if you have the Mach cthreads package])
2004 AH_TEMPLATE(_REENTRANT, 2003 AH_TEMPLATE(_REENTRANT,
2005 [Define to force use of thread-safe errno, h_errno, and other functions]) 2004 [Define to force use of thread-safe errno, h_errno, and other functions])
2006 AH_TEMPLATE(WITH_THREAD, 2005 AH_TEMPLATE(WITH_THREAD,
2007 [Define if you want to compile in rudimentary thread support]) 2006 [Define if you want to compile in rudimentary thread support])
2008 2007
2009 AC_MSG_CHECKING(for --with-threads) 2008 AC_MSG_CHECKING(for --with-threads)
2010 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output 2009 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
2011 AC_ARG_WITH(threads, 2010 AC_ARG_WITH(threads,
2012 AS_HELP_STRING([--with(out)-threads@<:@=DIRECTORY@:>@], [disable/ena ble thread support])) 2011 AS_HELP_STRING([--with(out)-threads@<:@=DIRECTORY@:>@], [disable/ena ble thread support]))
2013 2012
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
2075 AC_EGREP_CPP(yes, 2074 AC_EGREP_CPP(yes,
2076 [ 2075 [
2077 #include <unistd.h> 2076 #include <unistd.h>
2078 #ifdef _POSIX_THREADS 2077 #ifdef _POSIX_THREADS
2079 yes 2078 yes
2080 #endif 2079 #endif
2081 ], unistd_defines_pthreads=yes, unistd_defines_pthreads=no) 2080 ], unistd_defines_pthreads=yes, unistd_defines_pthreads=no)
2082 AC_MSG_RESULT($unistd_defines_pthreads) 2081 AC_MSG_RESULT($unistd_defines_pthreads)
2083 2082
2084 AC_DEFINE(_REENTRANT) 2083 AC_DEFINE(_REENTRANT)
2085 AC_CHECK_HEADER(cthreads.h, [AC_DEFINE(WITH_THREAD)
2086 AC_DEFINE(C_THREADS)
2087 AC_DEFINE(HURD_C_THREADS, 1,
2088 [Define if you are using Mach cthreads directly under /include])
2089 LIBS="$LIBS -lthreads"
2090 THREADOBJ="Python/thread.o"],[
2091 AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
2092 AC_DEFINE(C_THREADS)
2093 AC_DEFINE(MACH_C_THREADS, 1,
2094 [Define if you are using Mach cthreads under mach /])
2095 THREADOBJ="Python/thread.o"],[
2096 # Just looking for pthread_create in libpthread is not enough: 2084 # Just looking for pthread_create in libpthread is not enough:
2097 # on HP/UX, pthread.h renames pthread_create to a different symbol name. 2085 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
2098 # So we really have to include pthread.h, and then link. 2086 # So we really have to include pthread.h, and then link.
2099 _libs=$LIBS 2087 _libs=$LIBS
2100 LIBS="$LIBS -lpthread" 2088 LIBS="$LIBS -lpthread"
2101 AC_MSG_CHECKING([for pthread_create in -lpthread]) 2089 AC_MSG_CHECKING([for pthread_create in -lpthread])
2102 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h> 2090 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
2103 2091
2104 void * start_routine (void *arg) { exit (0); }]], [[ 2092 void * start_routine (void *arg) { exit (0); }]], [[
2105 pthread_create (NULL, NULL, start_routine, NULL)]])],[ 2093 pthread_create (NULL, NULL, start_routine, NULL)]])],[
(...skipping 2132 matching lines...) Expand 10 before | Expand all | Expand 10 after
4238 if test ! -f Modules/Setup.local 4226 if test ! -f Modules/Setup.local
4239 then 4227 then
4240 echo "# Edit this file for local setup changes" >Modules/Setup.local 4228 echo "# Edit this file for local setup changes" >Modules/Setup.local
4241 fi 4229 fi
4242 4230
4243 echo "creating Makefile" 4231 echo "creating Makefile"
4244 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 4232 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
4245 -s Modules Modules/Setup.config \ 4233 -s Modules Modules/Setup.config \
4246 Modules/Setup.local Modules/Setup 4234 Modules/Setup.local Modules/Setup
4247 mv config.c Modules 4235 mv config.c Modules
OLDNEW
« no previous file with comments | « no previous file | Include/Python.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+