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 congma
Recipients congma
Date 2021-03-24.14:52:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616597538.33.0.0386305243834.issue43617@roundup.psfhosted.org>
In-reply-to
Content
The problem
-----------

In the repository, the definition for ``AX_CHECK_COMPILE_FLAG`` in Python's ``configure.ac`` file is missing. If ``autoreconf`` is run, an invalid ``configure`` script is generated. The following is the behaviour of running ``autoreconf`` followed by ``configure``:

```
# In cpython repository top-level directory
$ autoreconf
$ mkdir build
$ cd build
$ ../configure  # <- using newly generated configure script
[... omitted ...]
checking for --enable-optimizations... no
../configure: line 6498: syntax error near unexpected token `-fno-semantic-interposition,'
../configure: line 6498: `      AX_CHECK_COMPILE_FLAG(-fno-semantic-interposition,'
```


The solution
------------

It appears a file was missing in the m4/ directory. The file matches this one from the Autoconf Archive:

https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html

Simply adding the correct m4 file to m4/ should make ``autoreconf`` work.
History
Date User Action Args
2021-03-24 14:52:18congmasetrecipients: + congma
2021-03-24 14:52:18congmasetmessageid: <1616597538.33.0.0386305243834.issue43617@roundup.psfhosted.org>
2021-03-24 14:52:18congmalinkissue43617 messages
2021-03-24 14:52:18congmacreate