This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients Anton.Korobeynikov, Julian, Nam.Nguyen, Oleg.Plakhotnyuk, Yury.Selivanov, barry, ezio.melotti, gvanrossum, hynek, maker, michael.foord, ned.deily, ronaldoussoren, thomaspinckney3, trent, vstinner, xapple
Date 2012-06-13.23:57:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1339631878.34.0.781273102257.issue13241@psf.upfronthosting.co.za>
In-reply-to
Content
The attached patch "issue13241-configure-version1.txt" implements a number of changes to configure (although only configure.ac is present in the patch)

1) Autodetect the compiler on OSX, in particular
   - detect llvm-gcc and use clang instead
   - use clang when gcc cannot be found
   - use xcrun to locate clang when it isn't in /usr/bin
     (no Command Line Tools for Xcode)

2) Detect the most recent working SDK, falls back to the 10.4u SDK
   when using an old version of Xcode or even '/' when that SDK isn't
   present


This patch needs work though:

* I have barely tested the patch, configure seems to generate a valid
  Makefile on OSX 10.7 with the unix tools installed, I haven't tested
  yet on older OSX versions of without the unix tools installed

* Distutils/packaging also need changes: need to detect that the 
  running system has different compiler tools than the build system.
  This is needed to be able to use the binary installers on python.org
  on systems with other compiler versions and installed SDKs
History
Date User Action Args
2012-06-13 23:57:58ronaldoussorensetrecipients: + ronaldoussoren, gvanrossum, barry, vstinner, ned.deily, trent, ezio.melotti, thomaspinckney3, michael.foord, maker, Yury.Selivanov, Julian, hynek, Nam.Nguyen, Oleg.Plakhotnyuk, xapple, Anton.Korobeynikov
2012-06-13 23:57:58ronaldoussorensetmessageid: <1339631878.34.0.781273102257.issue13241@psf.upfronthosting.co.za>
2012-06-13 23:57:57ronaldoussorenlinkissue13241 messages
2012-06-13 23:57:57ronaldoussorencreate