Commit Graph

520 Commits

Author SHA1 Message Date
Martin v. Löwis 5f5d99c215 - Test for sys/statvfs.h before including it, as statvfs is present
on some OSX installation, but its header file is not.
Will backport to 2.4
2006-05-16 07:05:37 +00:00
Ronald Oussoren 836b039b7c Rework the build system for osx applications:
* Don't use xcodebuild for building PythonLauncher, but use a normal unix
  makefile. This makes it a lot easier to use the same build flags as for the
  rest of python (e.g. make a universal version of python launcher)
* Convert the mac makefile-s to makefile.in-s and use configure to set makefile
  variables instead of forwarding them as command-line arguments
* Add a C version of pythonw, that we you can use '#!/usr/local/bin/pythonw'
* Build IDLE.app using bundlebuilder instead of BuildApplet, that will allow
  easier modification of the bundle contents later on.
2006-05-14 19:56:34 +00:00
Brett Cannon 09d1236b89 Detect if %zd is supported by printf() during configure and sets
PY_FORMAT_SIZE_T appropriately.  Removes warnings on
OS X under gcc 4.0.1 when PY_FORMAT_SIZE_T is set to "" instead of "z" as is
needed.
2006-05-11 05:11:33 +00:00
Ronald Oussoren 988117fd63 Patch 1471883: --enable-universalsdk on Mac OS X 2006-04-29 11:31:35 +00:00
Martin v. Löwis f7afe958ed Patch #1045620: Prepend Modules/ before Setup in stdout. 2006-04-14 15:16:15 +00:00
Martin v. Löwis 0f48d98b74 Patch #1324762: Change --with-cxx to --with-cxx-main. 2006-04-14 14:34:26 +00:00
Skip Montanaro 288a5be5ad If compiling with g++ don't use -Wstrict-prototpes. 2006-04-13 02:00:56 +00:00
Martin v. Löwis 9176fc1466 Patch #1464444: Add --with-system-ffi. 2006-04-11 11:12:43 +00:00
Martin v. Löwis 44fe0e4b8d Correct test whether wchar_t is unsigned. Fixed crash
in #1454485.
2006-04-11 07:15:30 +00:00
Anthony Baxter 8220174489 Python on OS X 10.3 and above now uses dlopen() (via dynload_shlib.c)
to load extension modules and now provides the dl module. As a result,
sys.setdlopenflags() now works correctly on these systems. (SF patch
#1454844)
2006-04-09 15:07:40 +00:00
Martin v. Löwis a058836e96 Revert 43615, fixing it properly through quadrigraphs.
Apparently, the code in #1416559 was not generated
through invoking autoconf.
2006-04-04 06:03:50 +00:00
Neal Norwitz e8fb992f75 Martin's change 43604 broke the Mac builds apparently due to an autoconf
bug.  I don't understand this at all, but Darwin/[78].* gets converted
to Darwin/78.* which is not correct.  Maybe I'm just clueless or overworked.
I can't see why in the original checkin this should have changed.

This hack gets the Mac build working again.  If someone figures out the
real problem, please revert this and fix for real.

Anthony is telling me that AC_PROG_CXX_WORKS which we use is broken.
I have no idea if that's related.

This change breaks up the case and fixes a typo.
2006-04-04 05:32:17 +00:00
Martin v. Löwis ff60023048 Set "not found" value for svnversion to not-found. Fixes #1463559. 2006-04-03 19:12:32 +00:00
Georg Brandl 28161e2465 patch #1416559: don't define _XOPEN_SOURCE on Mac OS Panther 2006-04-01 08:51:25 +00:00
Neal Norwitz dedeeaad04 Get gcc to do strict IEEE math. This flag was already used for cc, just not
gcc.  Without this flag, doing pretty much anything with NaNs causes
a Floating Point Exception signal.  This causes the interpreter to quit.
The failing tests this fixes are:  test_float, test_long, and test_struct.
This is somewhat equivalent to doing signal(SIGFPE, SIG_IGN).

Will verify if this is a problem in 2.4 and backport if necessary (probably).
2006-03-31 06:54:45 +00:00
Neal Norwitz 05a45599d7 Patch #1309579: wait3 and wait4 were added to the posix module by Chad J. Schroeder.
This was a fair amount of rework of the patch.  Refactored test_fork1 so it
could be reused by the new tests for wait3/4.  Also made them into new style
unittests (derive from unittest.TestCase).
2006-03-20 06:30:08 +00:00
Jack Jansen 39fd231701 On OSX, use --arch_only `arch` in stead of --arch_only ppc, so things will
build for the current CPU.
2006-02-23 15:12:19 +00:00
Martin v. Löwis 86d662602d Patch #1432345: Make python compile on DragonFly. 2006-02-17 08:40:11 +00:00
Martin v. Löwis 18e165558b Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
Martin v. Löwis 82bca63c2b Avoid linking python with readline. 2006-02-10 20:49:30 +00:00
Martin v. Löwis 4ddc78a6a1 Delete aclocal.m4, and require autoconf 2.59, fixing
#811160 in a different way.
2006-01-29 09:53:44 +00:00
Martin v. Löwis 11017b172d Patch #1103116: AF_NETLINK sockets basic support. 2006-01-14 18:12:57 +00:00
Neal Norwitz 671b9e34c6 Fix bugs #1244610, #1392915, fix build problem on OpenBSD 3.7 and 3.8.
configure would break checking curses.h.

Will backport.
2006-01-09 07:07:12 +00:00
Martin v. Löwis fd9a72ad89 Patch #881820: look for openpty and forkpty also in libbsd.
Will backport.
2006-01-08 10:07:33 +00:00
Neal Norwitz 020c46aa1f icc accepts -OPT... but generates a warning, so just disable the check 2006-01-07 21:39:28 +00:00
Neal Norwitz fe8e3d918e If there is no libtermcap all the readline tests failed.
This inappropriately disabled some capabilities which exist.

Now test for readline in -lreadline, if not found there, try it
in -ltermcap only if not in -lreadline.  If both libraries are
required, there will need to be more work, but I'm not sure
under what conditions both libraries would be required.
2006-01-07 21:07:20 +00:00
Martin v. Löwis c5bf5a00a3 Always set SVNVERSION to "exported" if it otherwise fails. 2006-01-05 10:33:59 +00:00
Martin v. Löwis dea59e5755 Stop maintaining the buildno file.
Also, stop determining Unicode sizes with PyString_GET_SIZE.
2006-01-05 10:00:36 +00:00
Martin v. Löwis d5845ec32e Use -xcode=pic32 for SunPro. Will backport to 2.4. 2005-12-30 12:31:38 +00:00
Neal Norwitz d24499dc53 Jack said we don't need the Mac/Python/ directory any more. 2005-12-18 21:36:39 +00:00
Neal Norwitz a716eabca7 Revert r41662 and the part of 41552 that originally caused the problem
(calling ftell(stdin) doesn't seem defined).  So we won't test errors
from ftell unless we can do it portably.
2005-12-15 05:25:09 +00:00
Hye-Shik Chang e237d50390 Add a workaround for file.ftell() to raise IOError for ttys.
ftell(3) on BSD doesn't set errno even for ttys and returns useless
values.
2005-12-13 16:44:02 +00:00
Martin v. Löwis 7dece6690e Patch #1227966: Do not defined _XOPEN_SOURCE_EXTENDED on Solaris 10.
Also set _XOPEN_SOURCE to 500.
Will backport to 2.4.
2005-11-26 11:38:24 +00:00
Martin v. Löwis ebd9d5ba1a Patch #1180695: Implement nanosecond stat resolution on FreeBSD,
add st_gen, st_birthtime.
2005-08-09 15:00:59 +00:00
Martin v. Löwis 147fbe5a55 Patch #1239112: Correct LINKCC C++ test. Fixes #1189330.
Backported to 2.4.
2005-08-07 21:09:30 +00:00
Hye-Shik Chang 5f937a7b8b Patch #1212117: Add optional attribute st_flags to os.stat_result
when the member is available on the platform. (Contributed by
Diego Petteno)
2005-06-02 13:09:30 +00:00
Bob Ippolito 7026a0aeef patch [1171735] - Darwin 8's headers disable functionality when
POSIX is enabled.  This prevents the toolbox glue, all of Carbon,
and various other non-POSIX features from compiling.  The POSIX
symbols are  still used by default, so turning off the #define
doesn't hurt.

Additionally, linker flags have changed for Darwin 8, and are
different for Darwin 8/gcc4 (default) and Darwin 8/gcc3.3.

Approved by Anthony
2005-03-28 23:23:47 +00:00
Martin v. Löwis 1d459061a0 Configure bug reporting address. 2005-03-14 21:23:33 +00:00
Brett Cannon 4380242580 Modified test for tzset to not rely on tm->tm_zone's existence. Also added
sanity checks on tzname if HAVE_TZNAME defined.

Closes bug #1096244.  Thanks Gregory Bond.
2005-02-10 20:48:03 +00:00
Martin v. Löwis c300175547 Patch #579435: Shadow Password Support Module 2005-01-23 09:27:24 +00:00
Jack Jansen da49e1981a Patch #1097739 by Bob Ippolito:
MacOSX: if we cannot use -undefined dynamic_lookup (such as on 10.2 or earlier)
we link extension directly against the dynamic library in the framework in
stead of against the framework. This will fix building extensions for 2.3
after 2.4 has been installed too.
2005-01-07 13:08:22 +00:00
Jack Jansen c110f8665f Always set CONFIGURE_MACOSX_DEPLOYMENT_TARGET otherwise it may be set
to an empty value and distutils will get confused lateron.
2005-01-07 10:49:32 +00:00
Jack Jansen be95462c1c After discussion on the PythonMac-SIG it was decided that it is better
to make using "-undefined dynamic_lookup" for linking extensions more
automatic on 10.3 and later. So if we're on that platform and
MACOSX_DEPLOYMENT_TARGET is not set we now set it to the current OSX
version during configure. Additionally, distutils will pick up the
configure-time value by default.

Will backport.
2004-12-26 23:07:48 +00:00
Matthias Klose 7dbeed7d2e Use = instead of == as operator to test 2004-12-24 08:22:17 +00:00
Martin v. Löwis fd1c69e7ef Bump version number to 2.5.
Fix term.h check so that HAVE_TERM_H is actually generated.
2004-11-30 22:09:37 +00:00
Brett Cannon c601e0fa0b Move the AC_MSG_RESULT function call for checking for pthread options up into
the 'if' statement that performed the test.  Not all platforms run the test and
on those tests configure outputted a rogue 'no' line.
2004-11-07 01:24:12 +00:00
Raymond Hettinger ec6eb369d5 SF patch #1035255: Remove CoreServices / CoreFoundation dependencies in core
(Contributed by Bob Ippolito.)

This patch trims down the Python core on Darwin by making it
independent of CoreFoundation and CoreServices. It does this by:

Changed linker flags in configure/configure.in
Removed the unused PyMac_GetAppletScriptFile
Moved the implementation of PyMac_StrError to the MacOS module
Moved the implementation of PyMac_GetFullPathname to the
Carbon.File module
2004-11-05 07:02:59 +00:00
Hye-Shik Chang 337614993e Patch #1044395: Allow configure option --enable-shared in FreeBSD.
(Submitted by James William Pye, Patch revised by Jiwon Seo)
2004-10-26 09:53:46 +00:00
Anthony Baxter 8a560dee72 Patch 977343, Solaris likes sys/loadavg.h. Added support for sys/loadavg.h
detection to configure &c.
2004-10-13 15:30:56 +00:00
Martin v. Löwis 5d52e781d9 Make curses.h inclusion conditional as in the original patch #1012280.
Backported to 2.3.
2004-09-18 10:07:03 +00:00