Commit Graph

676 Commits

Author SHA1 Message Date
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
Alexandre Vassalotti 30267d6516 Double-quote the test cases for chflags() and lchflags()
to ensure they don't get mangled.
2009-07-17 06:10:06 +00:00
Alexandre Vassalotti 0090089f8f Cache the results of all runtime checks.
This will be helpful to people who want to compile Python with a
cross-compiler. Now you can upload the configure script on your host
machine, run it with caching enabled, and download the cached results
on your build machine.
2009-07-17 05:26:39 +00:00
Alexandre Vassalotti 856782e45e Rename the useless AC_INCLUDES_DEFAULT and protect the includes.
This is mostly an aesthetic change.
2009-07-17 04:59:05 +00:00
Alexandre Vassalotti 786c29e39e Use AC_CHECK_SIZEOF to find the size of off_t, pthread_t and time_t. 2009-07-17 04:24:45 +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
Tarek Ziadé e2be83def8 Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used 2009-05-09 08:28:53 +00:00
Tarek Ziadé 99f660af3f Fixed #5941: added ARFLAGS for the archiver command. 2009-05-07 21:20:34 +00:00
Matthias Klose 61dbdb9677 - configure.in: Don't error, when no --with-dbmliborder option is present 2009-04-29 20:09:50 +00:00
Matthias Klose 51c614e3bf - Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
the order that backends for the dbm extension are checked.
2009-04-29 19:52:49 +00:00
Matthias Klose 10cbe4886e - Issue #4587: Add configure option --with-dbmliborder=db1:db2:... to specify
the order that backends for the dbm extension are checked.
2009-04-29 17:18:19 +00:00
Mark Dickinson 8e5446f902 Backport r71704 (add configure check for C99 round function) to trunk. 2009-04-18 14:41:37 +00:00
Jesse Noller 355b1264b8 issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help 2009-04-02 00:03:28 +00:00
Georg Brandl bcd64a3fc7 #1676135: remove trailing slashes from --prefix argument. 2009-03-31 21:45:18 +00:00
Ronald Oussoren bb8cb0e192 Fix issue where 'make altinstall' or 'make install' would install everything
that needs to be installed on OSX (depending on the configure flags)
2009-03-30 17:53:39 +00:00
Mark Dickinson efc82f7e8e Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.
Backport of r70459.
2009-03-20 15:51:55 +00:00
Mark Dickinson 1de3327015 It's wrong to use AC_REPLACE_FUNCS for hypot, since there's no longer any
Python/hypot.c replacement file.  Use AC_CHECK_FUNCS instead.  This change
should be backported to 2.6 and 3.0.
2009-01-04 20:19:41 +00:00
Mark Dickinson d181e3a246 isinf and isnan are macros, not functions; fix configure script
to use AC_CHECK_DECLS instead of AC_CHECK_FUNCS for these.
(See discussion in issue #4506)
2009-01-04 13:57:26 +00:00
Mark Dickinson 04b272336d Add autoconf test to detect x87-style double rounding, as described in
issue #2937.  This information can be helpful for diagnosing platform-
specific problems in math and cmath.  The result of the test also
serves as a fairly reliable indicator of whether the x87 floating-point
instructions (as opposed to SSE2) are in use on Intel x86/x86_64 systems.
2009-01-04 12:29:36 +00:00
Skip Montanaro 516144fef7 If user configures --without-gcc give preference to $CC instead of blindly
assuming the compiler will be "cc".
2009-01-04 10:36:58 +00:00
Ronald Oussoren 79f90498bc Fix for issue4472: "configure --enable-shared doesn't work on OSX" 2009-01-02 10:44:46 +00:00
Skip Montanaro 4d756afd68 typo in comment 2008-12-01 01:55:22 +00:00
Benjamin Peterson 98b1b02fbf note the version that works 2008-11-30 14:43:23 +00:00
Georg Brandl 4b9bcfc98d #4316: fix configure.in markup problem. 2008-11-16 08:00:17 +00:00
Martin v. Löwis bb86d83134 Issue #4204: Fixed module build errors on FreeBSD 4. 2008-11-04 20:40:09 +00:00
Martin v. Löwis 174440b5ec Bump version to 2.7. Regenerate. 2008-10-03 08:59:41 +00:00
Gregory P. Smith 29ec750a86 bugfix to r66283 (see issue #1204). 2008-09-07 19:18:16 +00:00
Gregory P. Smith 980b99b529 - Issue #1204: The configure script now tests for additional libraries
that may be required when linking against readline.  This fixes issues
  with x86_64 builds on some platforms (at least a few Linux flavors as
  well as OpenBSD/amd64).
2008-09-07 05:15:18 +00:00
Gregory P. Smith ff7b2d5ac6 Fix issue 3645: OpenBSD required -lcurses when linking with readline
to get the correct completion_matches function to avoid crashes on
x86_64 (amd64).

I don't have OpenBSD to test myself.  I tested that it does not break
anything on linux.  It is simple.
2008-09-03 05:57:48 +00:00
Ronald Oussoren a4cb472fb0 Fix typo in the `arch` commandline 2008-08-12 12:29:13 +00:00
Ronald Oussoren 5a849d4911 Fix buglet in fix for issue3381 2008-07-22 07:06:00 +00:00
Benjamin Peterson 4347c44f18 #3381 fix framework builds on 10.4 2008-07-17 15:59:24 +00:00
Benjamin Peterson 0e6ea5d715 fix framework install on Mac 10.4 2008-07-16 20:17:04 +00:00
Mark Dickinson dc1688adbf Fix typo in configure.in, and propagate configure.in changes from r64002
to configure and pyconfig.h.in.
2008-06-27 22:20:14 +00:00
Travis E. Oliphant 711c9e954e Add long double check support to configure test. 2008-06-06 22:33:21 +00:00
Ronald Oussoren 0d236eb05a Fix build issue on OSX 10.4 2008-06-06 21:31:33 +00:00
Neal Norwitz 2a3e3d0446 Aldo Cortesi confirmed this is still needed for OpenBSD 4.2 and 4.3.
(I didn't regen configure, since I don't have a working autoconf.)
2008-06-06 04:47:01 +00:00
Ronald Oussoren 5640ce2f1e MacOS X: Enable 4-way universal builds
This patch adds a new configure argument on OSX:
        --with-universal-archs=[32-bit|64-bit|all]

When used with the --enable-universalsdk option this controls which
CPU architectures are includes in the framework. The default is 32-bit,
meaning i386 and ppc. The most useful alternative is 'all', which includes
all 4 CPU architectures supported by MacOS X (i386, ppc, x86_64 and ppc64).

This includes limited support for the Carbon bindings in 64-bit mode as well,
limited because (a) I haven't done extensive testing and (b) a large portion
of the Carbon API's aren't available in 64-bit mode anyway.

I've also duplicated a feature of Apple's build of python: setting the
environment variable 'ARCHFLAGS' controls the '-arch' flags used for building
extensions using distutils.
2008-06-05 12:58:24 +00:00
Benjamin Peterson 8b12ee1072 fix typo (thank Georg) 2008-05-26 14:51:54 +00:00
Benjamin Peterson d7c778477e put a big note on configure.in asking people to run autoconf 2008-05-26 13:01:25 +00:00
Mark Dickinson 0b334a64f2 Revert temporary checkin in revision 63545. 2008-05-23 18:04:06 +00:00
Martin v. Löwis 8c255e4173 Patch #1722225: Support QNX 6. 2008-05-23 15:06:50 +00:00
Mark Dickinson 8f66a4a3db Temporary checkin to get configure to report more
information about the processor on the Debian/alpha
buildbot.  (I'm still trying to track down the cause
of the test_math failures for this machine.)  This
checkin will be reverted within the next 48 hours.
2008-05-23 04:22:50 +00:00
Ronald Oussoren 580c7fec67 Fix for issue #2573: Can't change the framework name on OS X builds
This introduces a new configure option: --with-framework-name=NAME
(defaulting to 'Python'). This allows you to install several copies
of the Python framework with different names (such as a normal build
and a debug build).
2008-05-02 19:45:11 +00:00
Mark Dickinson 6513466270 Issue #1496032. Add -mieee to BASECFLAGS on alpha, when gcc is
the compiler.  This should(?) help to fix failures in test_math
and test_cmath on Linux/alpha.

Also add configure message reporting the result of uname -m, as
a debugging aid.
2008-04-25 16:11:04 +00:00
Mark Dickinson 7a3d8641a9 Make configure test for tanh(-0.) == -0. committed in r62447 actually
work.  (The test wasn't properly linked with libm.  Sigh.)
2008-04-22 00:54:27 +00:00
Mark Dickinson 265d7384b9 test_math and test_cmath are failing on the FreeBSD 6.2 trunk buildbot,
apparently because tanh(-0.) loses the sign of zero on that platform.
If true, this is a bug in FreeBSD.

Added a configure test to verify this.  I still need to figure out
how best to deal with this failure.
2008-04-21 22:32:24 +00:00
Thomas Heller dc96a77c3a Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when gcc
is used as compiler.
2008-04-04 10:07:55 +00:00
Neal Norwitz 9fdfaaf9af Fix compiler warning about finite() missing on Solaris. 2008-03-28 05:34:59 +00:00
Martin v. Löwis aef18b1c67 Patch #2240: Implement signal.setitimer and signal.getitimer. 2008-03-24 13:31:16 +00:00
Christian Heimes 0e9ab5f2f0 Applied patch #1657 epoll and kqueue wrappers for the select module
The patch adds wrappers for the Linux epoll syscalls and the BSD kqueue syscalls. Thanks to Thomas Herve and the Twisted people for their support and help.
TODO: Finish documentation documentation
2008-03-21 23:49:44 +00:00
Brett Cannon aa5778d1b8 Remove our implementation of memmove() and strerror(); both are in the C89
standard library.
2008-03-18 04:09:00 +00:00
Jeffrey Yasskin 1b4e45bab9 Allow Gnu gcc's to build python on OSX by removing -Wno-long-double,
-no-cpp-precomp, and -mno-fused-madd from configure.
 * r22183 added -no-cpp-precomp, which
   http://gcc.gnu.org/ml/gcc/2005-12/msg00368.html claims hasn't been
   needed since gcc-3.1.
 * r25607 added -Wno-long-double to avoid a warning in
   Include/objimpl.h (issue 525481). The long double is still there,
   but OSX 10.4's gcc no longer warns about it.
 * r33666 fixed issue 775892 on OSX 10.3 by adding -mno-fused-madd,
   which changed the sign of some float 0s. Tim Peters said it wasn't
   a real issue anyway, and it no longer causes test failures.
Fixes issue #1779871.
2008-03-17 14:40:53 +00:00
Thomas Heller 8bdf81d2df Merged changes from libffi3-branch.
The bundled libffi copy is now in sync with the recently released
libffi3.0.4 version, apart from some small changes to
Modules/_ctypes/libffi/configure.ac.

I gave up on using libffi3 files on os x.
Instead, static configuration with files from pyobjc is used.
2008-03-04 20:09:11 +00:00
Brett Cannon 91a1dec492 Fix --enable-universalsdk and its comment line so that zsh's flag completion
works.

Thanks to Jeroen Ruigrok van der Werven for the fix.
2008-02-13 19:15:44 +00:00
Brett Cannon 9a8bb0e316 Fix a minor typo. 2008-02-03 02:07:55 +00:00
Christian Heimes 951cc0f474 Fixed bug #1983: Return from fork() is pid_t, not int 2008-01-31 23:08:23 +00:00
Christian Heimes cba36bbe65 Bug #1234: Fixed semaphore errors on AIX 5.2 2008-01-30 22:54:18 +00:00
Christian Heimes 487235109b Fixed a wrong assumption in configure.in and Include/pyport.h. The is finite function is not called isfinite() but finite(). Sorry, my fault. :) 2008-01-20 14:28:28 +00:00
Christian Heimes fb2d25a154 Issue #1646: Make socket support TIPC. The socket module now has support
for TIPC under Linux, see http://tipc.sf.net/ for more information.
Thanks to Alberto Bertogli for the patch
2008-01-07 16:12:44 +00:00
Martin v. Löwis cb78de6d25 Bug #1699: Define _BSD_SOURCE only on OpenBSD. 2007-12-29 18:49:21 +00:00
Christian Heimes 0a8143f646 Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).
The patch unifies float("inf") and repr(float("inf")) on all platforms.
2007-12-18 23:22:54 +00:00
Christian Heimes db3d6cbce0 Fixed #1638: %zd configure test fails on Linux 2007-12-16 21:39:43 +00:00
Guido van Rossum 7c862f8077 Patch #1608. Someone with access to autoconf 2.61 or higher needs to
run it and check in the resulting configure file.
2007-12-13 20:50:10 +00:00
Martin v. Löwis a51d5c8c15 Fix chflags issue on Tru64, from #1490190. 2007-12-04 08:37:59 +00:00
Christian Heimes 3628187b66 Fix for feature request #1528 Add os.fchmod
Georg Brandl has added fchmod() and fchown(). I've contributed lchown but I'm not able to test it on Linux. However it should be available on Mac and some other flavors of Unix.
I've made a quick test of fchmod() and fchown() on my system. They are working as expected.
2007-11-30 21:11:28 +00:00
Thomas Heller 486b1b0268 Issue #1292: On alpha, arm, ppc, and s390 linux systems the
--with-system-ffi configure option defaults to "yes" because the
bundled libffi sources are too old.
2007-11-02 19:10:24 +00:00
Matthias Klose 6e183f8f44 - Build using system ffi library on arm*-linux*, pass --with-system-ffi to CONFIG_ARGS 2007-10-25 06:37:24 +00:00
Matthias Klose 9afb9850f2 - Build using system ffi library on arm*-linux*. 2007-10-24 20:00:44 +00:00
Martin v. Löwis 58bd49f5fe Patch #1388440: Add set_completion_display_matches_hook and
get_completion_type to readline.
2007-09-04 13:13:14 +00:00
Ronald Oussoren 38f1b98cc3 Macosx: this patch ensures that the value of MACOSX_DEPLOYMENT_TARGET used
by the Makefile is also used at configure-time.
2007-09-02 09:46:07 +00:00
Martin v. Löwis eba40650b5 Bump autoconf minimum version to 2.61. 2007-08-30 20:10:57 +00:00
Skip Montanaro 7221d93aca Note that BeOS is unsupported as of Python 2.6. 2007-08-22 19:02:16 +00:00
Martin v. Löwis 76760b0e8f Define _BSD_SOURCE, to get access to POSIX extensions on OpenBSD 4.1+. 2007-07-31 19:57:56 +00:00
Brett Cannon 19fab761b7 Have configure raise an error when building on AtheOS. Code specific to AtheOS
will be removed in Python 2.7.
2007-06-02 03:02:29 +00:00
Martin v. Löwis eb62357a2e Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86. 2007-03-12 10:50:39 +00:00
Martin v. Löwis 382abeff0f Patch #1490190: posixmodule now includes os.chflags() and os.lchflags()
functions on platforms where the underlying system calls are available.
2007-02-19 10:55:19 +00:00
Martin v. Löwis aef4c6bc00 Patch #1610575: Add support for _Bool to struct. 2007-01-21 09:33:07 +00:00
Martin v. Löwis 4d542ec13c Disable _XOPEN_SOURCE on NetBSD 1.x.
Will backport to 2.5
2006-11-25 15:39:19 +00:00
Martin v. Löwis 0347a9a491 Get DBL_MAX from float.h not values.h. Will backport. 2006-10-27 07:06:52 +00:00
Martin v. Löwis 443ccc73f3 Check for values.h. Will backport. 2006-10-27 06:42:27 +00:00
Martin v. Löwis c1d7597b1d Restore CFLAGS after checking for __attribute__ 2006-10-19 16:01:37 +00:00
Martin v. Löwis aac1316222 Add check for the PyArg_ParseTuple format, and declare
it if it is supported.
2006-10-19 10:58:46 +00:00
Martin v. Löwis fefbc2029c Forward-port r52358:
- Bug #1578513: Cross compilation was broken by a change to configure.
Repair so that it's back to how it was in 2.4.3.
2006-10-17 18:59:23 +00:00
Martin v. Löwis 40e9aed050 Guard uintptr_t test with HAVE_STDINT_H, test for
stdint.h. Will backport.
2006-10-02 15:20:37 +00:00
Martin v. Löwis ebe26709d2 Fix test for uintptr_t. Fixes #1568842.
Will backport.
2006-10-02 14:55:51 +00:00
Neal Norwitz 4a8fbdb1b2 Fix %zd string formatting on Mac OS X so it prints negative numbers.
In addition to testing positive numbers, verify negative numbers work in configure.
In order to avoid compiler warnings on OS X 10.4, also change the order of the check
for the format character to use (PY_FORMAT_SIZE_T) in the sprintf format
for Py_ssize_t.  This patch changes PY_FORMAT_SIZE_T from "" to "l" if it wasn't
defined at configure time.  Need to verify the buildbot results.

Backport candidate (if everyone thinks this patch can't be improved).
2006-09-22 08:16:26 +00:00
Neal Norwitz 4bc2c0919b Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34]. 2006-09-05 02:57:01 +00:00
Neal Norwitz 9be573201e Try to get Unix bots install working again. 2006-08-18 05:39:20 +00:00
Ronald Oussoren c95f7569e8 It's unlikely that future versions will require _POSIX_C_SOURCE 2006-08-09 14:56:33 +00:00
Martin v. Löwis 0907f4dc5b Drop usage of test -e in configure as it is not portable.
Fixes #1439538
Will backport to 2.4
Also regenerate pyconfig.h.in.
2006-07-30 14:09:47 +00:00
Ronald Oussoren f875264278 This patch solves the problem Skip was seeing with zlib, this patch ensures that
configure uses similar compiler flags as setup.py when doing the zlib test.

Without this patch configure would use the first shared library on the linker
path, with this patch it uses the first shared or static library on that path
just like setup.py.
2006-07-06 10:13:35 +00:00
Walter Dörwald 05fdbf15ba Make check order match in configure and configure.in. 2006-06-19 08:14:09 +00:00
Walter Dörwald 4994d9546c Patch #1506645: add Python wrappers for the curses functions
is_term_resized, resize_term and resizeterm. This uses three
separate configure checks (one for each function).
2006-06-19 08:07:50 +00:00
Neal Norwitz 6e73aaab47 Patch #1503046, Conditional compilation of zlib.(de)compressobj.copy
copy is only in newer versions of zlib.  This should allow zlibmodule
to work with older versions like the Tru64 buildbot.
2006-06-12 03:33:09 +00:00
Neal Norwitz 7659f0fc26 Fix typo. Backport if anyone cares. :-) 2006-06-12 02:09:03 +00:00