Subject: bug#21219: automake: support for python3.4

From: Thomas Klausner <[email-masked]>
Date: Sat, 8 Aug 2015 18:59:39 +0200

Hi!

NetBSD pkgsrc (but also some Linux distributions) installs the python
interpreter from python-3.4 as "python3.4".

AM_PATH_PYTHON does not look for that name.

The attached patch (against anongit from a minute ago) fixes this.
Please include it in the next release.

Thanks,
 Thomas
>From 854141dbfecf295b2e8683836646b23d1b18b689 Mon Sep 17 00:00:00 2001
From: Thomas Klausner <[email-masked]>
Date: Sat, 8 Aug 2015 18:55:33 +0200
Subject: [PATCH] AM_PATH_PYTHON: look for python3.4 binary as well.

Signed-off-by: Thomas Klausner <[email-masked]>
---
 m4/python.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/python.m4 b/m4/python.m4
index 32c30e2..d0d27df 100644
--- a/m4/python.m4
+++ b/m4/python.m4
@@ -37,7 +37,7 @@ AC_DEFUN([AM_PATH_PYTHON],
   dnl Find a Python interpreter.  Python versions prior to 2.0 are not
   dnl supported. (2.0 was released on October 16, 2000).
   m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
-[python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
+[python python2 python3 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 dnl
  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0])
 
   AC_ARG_VAR([PYTHON], [the Python interpreter])
-- 
2.5.0