Commit Graph

645 Commits

Author SHA1 Message Date
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
Benjamin Peterson 8b65054fea run autoconf 2010-02-27 00:11: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
Mark Dickinson ab44226198 Regenerate configure with GNU autoconf 2.61. 2009-11-20 19:27:43 +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 c9ff3a7941 regenerated from r76052 2009-11-02 02:03:16 +00:00
Gregory P. Smith 49437c20fd build using r76050 2009-11-02 01:38:35 +00:00
Gregory P. Smith 373469a251 configure generated from r76028 2009-11-01 21:03:38 +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 2ccefe1430 Regenerate configure script using autoconf 2.61. 2009-07-17 23:17:48 +00:00
Alexandre Vassalotti bd7569b4de Revert r74048. 2009-07-17 23:09:02 +00:00
Alexandre Vassalotti a2db687368 Regenerate configure script. 2009-07-17 07:46:46 +00:00
Ronald Oussoren 450d561028 This is a fix for Issue5809: you shouldn't specify both --enable-framework and
--enable-shared
2009-06-08 21:12:41 +00:00
Antoine Pitrou f2caeed9c6 Issue #3585: Add pkg-config support.
It creates a python-2.7.pc file and a python.pc symlink in the
$(LIBDIR)/pkgconfig directory. Patch by Clinton Roy.
2009-05-24 20:23:57 +00:00
Benjamin Peterson e5afa3b24b support building with subversion 1.7 #6094 2009-05-23 19:24:37 +00:00
Georg Brandl 464432d181 Update bug tracker URL. 2009-05-20 18:24:08 +00:00