summaryrefslogtreecommitdiffstats
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* 00113-more-configuration-flags.patchFedora Python maintainers2020-09-291-0/+24
| | | | | | | | | 00113 # Add configure-time support for the COUNT_ALLOCS and CALL_PROFILE options described at http://svn.python.org/projects/python/trunk/Misc/SpecialBuilds.txt so that if they are enabled, they will be in that build's pyconfig.h, so that extension modules will reliably use them Not yet sent upstream
* 00112-2.7.13-debug-build.patchFedora Python maintainers2020-09-291-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 00112 # Patch to support building both optimized vs debug stacks DSO ABIs, sharing the same .py and .pyc files, using "_d.so" to signify a debug build of an extension module. Based on Debian's patch for the same, http://patch-tracker.debian.org/patch/series/view/python2.6/2.6.5-2/debug-build.dpatch (which was itself based on the upstream Windows build), but with some changes: * Debian's patch to dynload_shlib.c looks for module_d.so, then module.so, but this can potentially find a module built against the wrong DSO ABI. We instead search for just module_d.so in a debug build * We remove this change from configure.in's build of the Makefile: SO=$DEBUG_EXT.so so that sysconfig.py:customize_compiler stays with shared_lib_extension='.so' on debug builds, so that UnixCCompiler.find_library_file can find system libraries (otherwise "make sharedlibs" fails to find system libraries, erroneously looking e.g. for "libffi_d.so" rather than "libffi.so") * We change Lib/distutils/command/build_ext.py:build_ext.get_ext_filename to add the _d there, when building an extension. This way, "make sharedlibs" can build ctypes, by finding the sysmtem libffi.so (rather than failing to find "libffi_d.so"), and builds the module as _ctypes_d.so * Similarly, update build_ext:get_libraries handling of Py_ENABLE_SHARED by appending "_d" to the python library's name for the debug configuration * We modify Modules/makesetup to add the "_d" to the generated Makefile rules for the various Modules/*.so targets This may introduce issues when building an extension that links directly against another extension (e.g. users of NumPy?), but seems more robust when searching for external libraries * We don't change Lib/distutils/command/build.py: build.build_purelib to embed plat_specifier, leaving it as is, as pure python builds should be unaffected by these differences (we'll be sharing the .py and .pyc files) * We introduce DEBUG_SUFFIX as well as DEBUG_EXT: - DEBUG_EXT is used by ELF files (names and SONAMEs); it will be "_d" for a debug build - DEBUG_SUFFIX is used by filesystem paths; it will be "-debug" for a debug build Both will be empty in an optimized build. "_d" contains characters that are valid ELF metadata, but this leads to various ugly filesystem paths (such as the include path), and DEBUG_SUFFIX allows these paths to have more natural names. Changing this requires changes elsewhere in the distutils code. * We add DEBUG_SUFFIX to PYTHON in the Makefile, so that the two configurations build parallel-installable binaries with different names ("python-debug" vs "python"). * Similarly, we add DEBUG_SUFFIX within python-config and python$(VERSION)-config, so that the two configuration get different paths for these. See also patch 130 below
* 00055-systemtap.patchFedora Python maintainers2020-09-291-0/+32
| | | | | | | | | 00055 # Systemtap support: add statically-defined probe points Patch based on upstream bug: http://bugs.python.org/issue4111 fixed up by mjw and wcohen for 2.6.2, then fixed up by dmalcolm for 2.6.4 then rewritten by mjw (attachment 390110 of rhbz 545179), then reformatted for 2.7rc1 by dmalcolm:
* python-2.6-rpath.patchFedora Python maintainers2020-09-291-1/+1
| | | | | | 00016 # Remove an "-rpath $(LIBDIR)" argument from the linkage args in configure.in: FIXME: is this for OSF, not Linux?
* [2.7] bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' ↵Jesús Cea2019-09-281-0/+3
| | | | | | | (GH-16446). (#16454) (cherry picked from commit 52d1b86bde2b772a76919c76991c326384954bf1) Co-authored-by: Jesús Cea <jcea@jcea.es>
* [2.7] closes bpo-14353: Fix detection of bind_textdomain_codeset in libintl. ↵Toshio Kuratomi2019-05-121-1/+4
| | | | | | | | | (GH-13265) In Python-2.7, we were only searching for bind_textdomain_codeset in libc. We should have also checked for it in libintl. This change from Mel Flynn https://bugs.python.org/file24918/python27-configure.in.patch fixes that.
* bpo-36605: make tags: parse Modules/_io directory (GH-12789) (GH-12815)Victor Stinner2019-04-131-1/+1
| | | | | | "make tags" and "make TAGS" now also parse Modules/_io/*.c and Modules/_io/*.h. (cherry picked from commit 21a74a9d77c5ac628808b9faace18b824ca056f7)
* bpo-34652: Use AC_CHECK_FUNCS for lchmod. (GH-12799)Joshua Root2019-04-121-1/+1
| | | | | A fix for 69e96910153219b0b15a18323b917bd74336d229, which resulted in lchmod being disabled on all platforms, not just Linux. (cherry picked from commit ed709d5699716bf7237856dc20aba321e2dfff6d)
* closes bpo-13497: Fix `broken nice` configure test. (GH-12041)Miss Islington (bot)2019-02-261-0/+2
| | | | | | | | Per POSIX, `nice(3)` requires `unistd.h` and `exit(3)` requires `stdlib.h`. Fixing the test will prevent false positives with pedantic compilers like clang. (cherry picked from commit 90c6facebd5666fec85f125ee2795b48b30319a4) Co-authored-by: ngie-eign <1574099+ngie-eign@users.noreply.github.com>
* [2.7] Docs: fix some wrong words (GH-6987) (GH-10315)Stéphane Wirtel2018-11-041-1/+1
|
* [2.7] Don't run AC_STRUCT_TIMEZONE twice. (GH-9309)Benjamin Peterson2018-09-141-5/+0
| | | (cherry picked from commit a4414ef20b971e6803309acebfa85b1621ac625e)
* [2.7] closes bpo-34652: Always disable lchmod on Linux. (GH-9242)Benjamin Peterson2018-09-121-1/+8
| | | | | (cherry picked from commit 40caa05fa4d1810a1a6bfc34e0ec930c351089b7) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [2.7] bpo-30411: Use --git-dir instead of -C to make git work under version ↵Xiang Zhang2018-08-201-3/+3
| | | | | | | below 1.8.5. (GH-8744) (GH-8838) (cherry picked from commit 4c8555773a801f957297132a92c0acb382d640e4)
* bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7825)Victor Stinner2018-06-221-0/+7
| | | Add -g to LDFLAGS when compiling with LTO to get debug symbols.
* [2.7] Backport macOS universal build and installer fixes from 3.6. (GH-6469)Ned Deily2018-04-141-130/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | These include: - bpo-32726: Provide an additional, more modern macOS installer variant that supports macOS 10.9+ systems in 64-bit mode only. Upgrade the supplied third-party libraries to OpenSSL 1.0.2n and SQLite 3.22.0. The 10.9+ installer now supplies its own private copy of Tcl/Tk 8.6.8. - bpo-24414: Default macOS deployment target is now set by ``configure`` to the build system's OS version (as is done by Python 3), not ``10.4``; override with, for example, ``./configure MACOSX_DEPLOYMENT_TARGET=10.4``. - bpo-19019: All 2.7 macOS installer variants now supply their own version of ``OpenSSL 1.0.2``; the Apple-supplied SSL libraries and root certificates are not longer used. The ``Installer Certificate`` command in ``/Applications/Python 2.7`` may be used to download and install a default set of root certificates from the third-party ``certifi`` package. - bpo-11485: python.org macOS Pythons no longer supply a default SDK value (e.g. ``-isysroot /``) or specific compiler version default (e.g. ``gcc-4.2``) when building extension modules. Use ``CC``, ``SDKROOT``, and ``DEVELOPER_DIR`` environment variables to override compilers or to use an SDK. See Apple's ``xcrun`` man page for more info. - prepare for pending Apple removal of 32-bit support in future macOS release
* bpo-32635: Fix a segfault when importing the crypt module with libxcrypt. ↵Miss Islington (bot)2018-01-241-1/+1
| | | | | | | | (GH-5284) (#5295) glibc is deprecating libcrypt in favor of libxcrypt, however python assumes that crypt.h will always be included. This change makes the header inclusion explicit when libxcrypt is present on the system. (cherry picked from commit e768c86ef442ef89004089a8a34ce5909ffb90f2)
* bpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4216)Miss Islington (bot)2017-11-011-0/+11
| | | (cherry picked from commit 894ebd065e02debf20c0657d26020ecc42b7534f)
* bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) ↵Miss Islington (bot)2017-11-011-1/+19
| | | | | | | | | | | (#4213) Modify the code to use ncurses is_pad() instead of checking WINDOW _flags field. If your platform does not provide the is_pad(), the existing way that checks the field will be enabled. Note: This change does not drop support for platforms where do not have both WINDOW _flags field and is_pad(). (cherry picked from commit 8bc7d63560024681dce9f40445f2877b2987e92c)
* [2.7] bpo-31891: Fix building the curses module on NetBSD. (GH-4165). (#4194)Serhiy Storchaka2017-10-311-0/+66
| | | (cherry picked from commit baac01e629d90f63dfde6b5cc433f4bc65c5feeb)
* [2.7] bpo-29766: Fix configure/.ac to match LTO/enable-optimizations ↵Hanno Schlichting2017-09-071-1/+0
| | | | | behavior. (#2705) See also 1f29cefc87c4c2ee629367ebe97a287d8e0b3e29. The configure.ac change was omitted from the earlier change...
* [2.7] bpo-31343: Include sys/sysmacros.h (GH-3318) (#3345)Christian Heimes2017-09-051-1/+1
| | | | | | | Include sys/sysmacros.h for major(), minor(), and makedev(). GNU C libray plans to remove the functions from sys/types.h. Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 75b961869a1184895c9d5bf41a57f3c985622662)
* bpo-23404: make touch becomes make regen-all (#1466)Victor Stinner2017-05-051-4/+3
| | | | | | | | | | | | | | | | | | | | Don't rebuild generated files based on file modification time anymore, the action is now explicit. Replace "make touch" with "make regen-all". Changes: * Remove "make touch", Tools/hg/hgtouch.py and .hgtouch * Add a new "make regen-all" command to rebuild all generated files * Add subcommands to only generate specific files: - regen-ast: Include/Python-ast.h and Python/Python-ast.c - regen-grammar: Include/graminit.h and Python/graminit.c - regen-opcode-targets: Python/opcode_targets.h * Add PYTHON_FOR_REGEN variable * pgen is now only built by by "make regen-grammar" * Add $(srcdir)/ prefix to paths to source files to handle correctly compilation outside the source directory
* bpo-30232: Support Git worktree in configure.ac (#1402)Victor Stinner2017-05-021-1/+1
| | | | Don't test if .git/HEAD file exists, but only if the .git file (or directory) exists.
* bpo-27593: Get SCM build info from git instead of hg (#1327)Victor Stinner2017-05-021-17/+14
| | | | | | | | | | | Based on commit 5c4b0d063aba0a68c325073f5f312a2c9f40d178 by Ned Deily, which is based on original patches by Brett Cannon and Steve Dower. Remove also the private _Py_svnversion() function and SVNVERSION variable. Note: Py_SubversionRevision() and Py_SubversionShortBranch() are unchanged, they are part of the public API.
* Fix "make tags" command (#1337)Victor Stinner2017-04-281-1/+1
| | | | | | | | | | | Backport enhancements from master, commits: * 9c4bfa6669e220efdd379b9f8e7db32bb4e25e72: "make tags": remove -t option of ctags. The option was kept for backward compatibility, but it was completly removed recently. Patch written by Stéphane Wirtel. * cf0ac6a71ae51249a05521f49c1a0fabbb948488: Fix "make tags": set locale to C to call sort * 8a543c0bc7347d5b333f334d157bf4a7cd33c14a: `make tags` fixes (GH-717)
* bpo-29643: Fix check for --enable-optimizations (GH-873)INADA Naoki2017-03-281-1/+1
| | | | | | The presence of the ``--enable-optimizations`` flag is indicated by the value of ``$enableval``, but the configure script was checking ``$withval``, resulting in the ``--enable-optimizations`` flag being effectively ignored. (cherry picked from commit 8cea5929f52801b0ce5928b46ef836e99a24321a)
* add a specific configure check for sys/random.h (closes #28932)Benjamin Peterson2016-12-201-1/+1
|
* Issue #10656: Fix out-of-tree building on AIXMartin Panter2016-11-201-1/+1
| | | | | The ld_so_aix script and python.exp file are created in the build directory. Patch by Tristan Carel and Michael Haubenwallner.
* Rename the new --with-optimiations flag to --enable-optimizations.Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-11-201-5/+5
|
* Issue #15819: Drop dead code; -IInclude already added unconditionallyMartin Panter2016-09-131-14/+0
|
* issue28032: never imply --with-lto as part of --with-optimizations.Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-09-081-7/+5
| | | | | | | | | | | Too many build tool chains do not properly support it, including building and linking an executable fine that simply segfaults when you try to run it (such as debian jessie 8.5's gcc 4.9). On others where it does appear to build (ubuntu 16.04's gcc 5.4) there are still test_distutils and test_gdb failures to deal with. We're not going to spend time attempting to maintain a complicated white list of what does and doesn't work in our configure.ac file.
* Fixes issue# 27983: Cause lack of llvm-profdata tool when using clang -Gregory P. Smith2016-09-081-4/+51
| | | | | | required for PGO linking - to be a configure time error rather than make time when --with-optimizations is enabled. Also improve our ability to find the llvm-profdata tool on MacOS and some Linuxes.
* Issue #26359: Add the --with-optimizations flag.Gregory P. Smith2016-09-081-0/+41
|
* do not leak addrinfo in configure testBenjamin Peterson2016-09-061-0/+2
|
* https link to the bug tracker (closes #27670)Benjamin Peterson2016-08-041-1/+1
|
* Issue #27641: Comment out regeneration rules when cross compilingMartin Panter2016-07-291-4/+4
|
* Issue #27490: Do not build pgen when cross-compilingMartin Panter2016-07-281-0/+3
| | | | | | | | The dependendency on the $(PGEN) variable must only be set when not cross-compiling. When cross-compiling, $(PGEN) will not be used, so no need to build it. Patch by Thomas Perl.
* assume egd unless OPENSSL_NO_EGD is defined—remove configure check (closes ↵Benjamin Peterson2016-07-071-3/+0
| | | | #24557)
* Issue #25702: A --with-lto configure option has been added that willGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)2016-06-021-0/+34
| | | | | | | enable link time optimizations at build time during a make profile-opt. Some compilers and toolchains are known to not produce stable code when using LTO, be sure to test things thoroughly before relying on it. It can provide a few % speed up over profile-opt alone.
* Issue #27076: Doc, comment and test function name spelling fixesMartin Panter2016-05-261-1/+1
| | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* Issue #22359: Avoid recursive $(MAKE); disable running cross-compiled pgenMartin Panter2016-04-231-0/+1
| | | | Patches by Jonas Wagner and Xavier de Gaye.
* Issue #23735: Add SIGWINCH handler for Readline 6.3+ support, by Eric PriceMartin Panter2016-04-031-0/+5
|
* Issue #17603: Check for st_blocks field without requiring fileblocks.oMartin Panter2016-03-181-1/+1
|
* Issue #25827: Add support for ICC to configureZachary Ware2015-12-211-0/+29
|
* Issue #24915: Make PGO builds support Clang and use the test suite forBrett Cannon2015-09-181-0/+45
| | | | | | profile data. Thanks to Alecsandru Patrascu of Intel for the initial patch.
* Issue #24543: Use AC_LINK instead of AC_COMPILE in order to prevent falseStefan Krah2015-07-031-1/+1
| | | | positives with the -flto option (gcc >= 4.9.0 and clang).
* backport computed gotos (#4753)Benjamin Peterson2015-05-281-0/+51
|
* - Use PLATDIR for the platform directory everywhere (refactoring only)doko@ubuntu.com2015-04-131-1/+4
|
* Issue #21356: Make ssl.RAND_egd() optional to support LibreSSL. TheVictor Stinner2015-01-061-0/+3
| | | | | availability of the function is checked during the compilation. Patch written by Bernard Spil.
* use getentropy when available (backport of 75ede5bec8db) (closes #23115)Benjamin Peterson2014-12-261-0/+1
|