[issue43617] Missing definition in configure.ac causing autoreconf to create damaged configure script

Cong Ma report at bugs.python.org
Wed Mar 24 10:52:18 EDT 2021


New submission from Cong Ma <m.cong at protonmail.ch>:

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.

----------
components: Build
messages: 389463
nosy: congma
priority: normal
severity: normal
status: open
title: Missing definition in configure.ac causing autoreconf to create damaged configure script

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43617>
_______________________________________


More information about the Python-bugs-list mailing list