Commit Graph

674 Commits

Author SHA1 Message Date
Jesus Cea 616de77779 Issue #3928: Support 'os.mknod()' in Solaris 2010-04-28 10:32:30 +00:00
Matthias Klose 5183ebdaa7 - Issue #8509: Fix quoting in help strings and code snippets in configure.in. 2010-04-24 16:38:36 +00:00
Ronald Oussoren 974eb5eace Add the OSX universal binary related options
to CFLAGS instead of BASECFLAGS.

This fixes issue 8366 and is needed due to
changes introduced in the fix for issue 1628484.
2010-04-18 17:59:37 +00:00
Ronald Oussoren 7591285fc3 This check-in fixes two problems:
1) A non-critical off-by-one error in pythonw

2) A problem in the configure script that caused
   builds with '--enable-framework --enable-universalsdk=/'
   to fail on OSX 10.6.
2010-04-08 08:13:31 +00:00
Tarek Ziadé 0000295fe3 Issue #1222585: Added LDCXXSHARED for C++ support 2010-04-03 08:37:59 +00:00
Victor Stinner 6cbf90fc0f Issue #8211: Save/restore CFLAGS around AC_PROG_CC in configure.in, compiler
optimizations are disabled when --with-pydebug is used.
2010-03-25 00:21:53 +00:00
Benjamin Peterson d4b721bc00 the == test doesn't work on Solaris #8210 2010-03-23 20:58:37 +00:00
Benjamin Peterson 3b2abe95e5 fix quotes 2010-03-14 15:06:14 +00:00
Benjamin Peterson 11d932372b fix freebsd linking #7705 2010-03-14 14:24:31 +00:00
Benjamin Peterson e9e07bf5c9 fix ugly configure output (follow up to #6943) 2010-03-09 21:46:54 +00:00
Benjamin Peterson 3281067e09 handle an empty OPT variable correctly #8100 2010-03-09 21:43:36 +00:00
Ezio Melotti 5820efb5c3 Show an error when the value passed to --enable-unicode is not ucs2 or ucs4 (lowercase). 2010-02-27 00:05:42 +00:00
Martin v. Löwis 7875ef67cd Issue #7903: Define _BSD_SOURCE through OpenBSD 4.9. 2010-02-15 21:41:12 +00:00
Martin v. Löwis 5e2dd866a8 Issue #3920: Define _BSD_SOURCE on OpenBSD 4.4. 2010-02-15 08:32:00 +00:00
Ronald Oussoren bc0e83c2b9 Finish fix for issue 7715, after explicit search for calls to `arch` 2010-02-11 13:26:54 +00:00
Ronald Oussoren 9922f178d3 Fix copy&paste error in the definition of ARCH_RUN_32BIT for a 3-way universal
build (all other definition where correct).
2010-02-11 13:19:34 +00:00
Ronald Oussoren 92397ce93f Explicitly use /usr/bin/arch on OSX, fixes issue 7715 2010-01-17 19:32:00 +00:00
Ronald Oussoren 3c0a1265c1 This patch ensures that the configure-script mentions checking for --enable-universalsdk
and that it doesn't default to the 10.4u SDK when that SDK does not exist.

(This affects OSX)

This patch should fix most of issue 4834, although I haven't gotten enough
information from the user to be sure.
2010-01-17 19:27:57 +00:00
Ronald Oussoren a55af9a9db - Issue #7658: Ensure that the new pythonw executable works on OSX 10.4
- Issue #7714: Use ``gcc -dumpversion`` to detect the version of GCC on
  MacOSX.

- Make configure look for util.h as well as libutil.h. The former
  is the header file that on OSX contains the defition of openpty.

  (Needed to compile for OSX 10.4 on OSX 10.6)

- Use the correct definition of CC to compile the pythonw executable
2010-01-17 16:25:57 +00:00
Benjamin Peterson 1c335e63c9 use pkg-config to find the libffi headers when --with-system-ffi is used #6943 2010-01-01 15:16:29 +00:00
Mark Dickinson 0ef0b910ce More configure fixes: avoid sh 'integer argument expected' error when 'long long' type doesn't exist. 2009-12-31 21:11:48 +00:00
Mark Dickinson 5ce8474cc7 Add missing quotes. 2009-12-31 20:48:04 +00:00
Benjamin Peterson 2c19674b51 add a --with-system-expat option to build pyexpat against the system's lib #7609 2009-12-31 03:17:18 +00:00
Ronald Oussoren 92919a66d2 Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
The previous implementation used execv(2) to run the real interpreter, which means that
you cannot use the arch(1) tool to select the architecture you want to use for a
universal build because that only affects the python/pythonw wrapper and not the actual
interpreter.

The new version uses posix_spawnv with a number of OSX-specific options that ensure that
the real interpreter is started using the same CPU architecture as the wrapper, and that
means that 'arch -ppc python' now actually works.

I've also changed the way that the wrapper looks for the framework: it is now linked to
the framework rather than hardcoding the framework path. This should make it easier to
provide pythonw support in tools like virtualenv.
2009-12-24 13:30:58 +00:00
Mark Dickinson 59dc89e87d Issue #7492: Autoconf tests were leaving semaphore files behind. Add
sem_unlink calls to delete those semaphore files.
2009-12-13 21:06:06 +00:00
Benjamin Peterson 91c12ebc3d disable pymalloc tricks with the --with-valgrind option #2422
Patch from James Henstridge.
2009-12-03 02:52:39 +00:00
Antoine Pitrou 30b3b35cba Issue #7333: The `posix` module gains an `initgroups()` function providing
access to the initgroups(3) C library call on Unix systems which implement
it.  Patch by Jean-Paul Calderone.
2009-12-02 20:37:54 +00:00
Mark Dickinson c63392c152 Multiprocessing configure checks don't need LIBM 2009-11-28 13:13:13 +00:00
Mark Dickinson 5afa6d4dcf Issue #7272, continued: don't re-use existing HAVE_BROKEN_POSIX_SEMAPHORES
to indicate that semaphores aren't available;  define a new variable
POSIX_SEMAPHORES_NOT_ENABLED instead.
2009-11-28 10:44:20 +00:00
Martin v. Löwis 50ea4565bd Issue #6508: Add posix.{getresuid,getresgid,setresuid,setresgid}. 2009-11-27 13:56:01 +00:00
Mark Dickinson c4920e86ef Issue #7272: Add configure test to detect whether sem_open works
properly, and use this to skip test_multiprocessing on platforms
where sem_open raises a signal.  This should fix some FreeBSD buildbot
failures for test_multiprocessing.
2009-11-20 19:30:22 +00:00
Ronald Oussoren 315cd0c739 Fix for issue #7085
On MacOSX 10.6 the CoreFoundation framework must be initialized on the main
thread, the constructor function in that framework will cause an SIGABRT when
it is called on any other thread.

Because a number of extension link (indirectly) to CoreFoundation and the
Python core itself didn't the interpreter crashed when importing some
extensions, such as _locale, on a secondary thread.

This fix ensures that Python is linked to CoreFoundation on OSX, which results
in the CoreFoundation constructor being called when Python is loaded. This
does not require code changes.
2009-11-19 16:25:21 +00:00
Mark Dickinson 82864d1ab1 Issue #7228: Add '%lld' and '%llu' support to PyFormat_FromString,
PyFormat_FromStringV and PyErr_Format.
2009-11-15 16:18:58 +00:00
Mark Dickinson a548deeb29 Issue #5792: Extend short float repr support to x86 platforms using suncc or icc.
Many thanks Stefan Krah for help and OpenSolaris testing.
2009-11-15 13:12:43 +00:00
Gregory P. Smith d8cb2d9c59 see issue1006238, this merges in the following patch to ease cross
compiling the printf %zd check.

 http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/files/python-2.5-cross-printf.patch?rev=1.1&view=markup
2009-11-02 02:02:38 +00:00
Gregory P. Smith bb21389202 see http://bugs.python.org/issue1006238 this merges in the following
patch to make cross compilation of the chflags check easier:

 http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/python/files/python-2.6-chflags-cross.patch?rev=1.1
2009-11-02 01:37:37 +00:00
Gregory P. Smith ec3b8bd3a9 issue1115: convert some AC_TRY_RUNs into AC_TRY_COMPILEs. 2009-11-01 21:02:52 +00:00
Antoine Pitrou d9ff74e51d Some platforms have rl_completion_append_character but not rl_completion_suppress_append.
Reported by Mark D.
2009-10-26 19:16:46 +00:00
Mark Dickinson 99abd145dc Configure check for double rounding should take BASECFLAGS into account 2009-10-24 13:44:16 +00:00
Mark Dickinson 1d6e2e1833 Issue #7117 (backport py3k float repr) continued:
- add double endianness detection to configure script
 - add configure-time check to see whether we can use inline
   assembly to get and set x87 control word in configure script
 - add functions to get and set x87 control word in Python/pymath.c
 - add pyport.h logic to determine whether it's safe to use the
   short float repr or not
2009-10-24 13:28:38 +00:00
Ronald Oussoren 9ebd242fbb * Update the Mac/README file. Add the list of OSX-specific configure options
to that README file with some explanation.

* Be more strict in the configure script: complain loudly when the user has
  specified invalid combinations of OSX-specific configure arguments.

  The error message refers to the Mac/README file for more information.
2009-09-29 13:00:44 +00:00
Ronald Oussoren a9cfbded4b Fix typo in error message 2009-09-20 20:05:44 +00:00
Ronald Oussoren 84ddd72312 This is an update to r74701. How hard can it be to get a configure test right.
This patch has already been backported as part of the backport of r74701,
which is how I found this problem.
2009-09-08 07:17:10 +00:00
Ronald Oussoren 23d925311d Fix typo in configure.in 2009-09-07 06:12:00 +00:00
Ronald Oussoren 2596758cb4 Fix build issues on OSX 10.6 (issue 6802) 2009-09-06 10:00:26 +00:00
Mark Dickinson 65898e08a7 Add configure-time checks for gamma and error functions. 2009-09-05 10:27:00 +00:00
Georg Brandl fe18a11858 #5047: remove Monterey support from configure. 2009-09-04 07:55:14 +00:00
Alexandre Vassalotti 130ae15183 Add a check to ensure the correct autoconf version is used
for generating the configure script.

Original idea by Martin von Löwis.
2009-07-18 00:31:06 +00:00
Alexandre Vassalotti e7cf1183fe Double-quote the test case for %zd printf() format support to avoid
mangling the array declarations in it.
2009-07-17 06:33:51 +00:00
Alexandre Vassalotti 66da2635ff Clean up the test case for broken poll(). 2009-07-17 06:17:33 +00:00