Hello, Mathieu Lirzin writes: >>> On 09/15/17 11:17, Mathieu Lirzin wrote: >>>> Instead of preemptively adding possible future version of Python that >>>> hopefully would be released, I would prefer a solution that removes the >>>> need to hard-code them. > > It seems that GNU Pyconfigure has already found a way to build that list > dynamically in m4. Please see PC_PROG_PYTHON macro here: > > https://git.savannah.gnu.org/cgit/pyconfigure.git/tree/src/m4/python.m4 I have adapted this to fit Automake context. I am going to apply the following patch in the following days. Comments welcome.