From fa05153eba3ee259635ffb2ce2789386d339c077 Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Wed, 8 Mar 2023 17:15:22 -0800 Subject: Make checking for python more predictable. Signed-off-by: Bryan Hundven --- configure.ac | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d6e336fe..4a33c9ac 100644 --- a/configure.ac +++ b/configure.ac @@ -253,19 +253,11 @@ CTNG_PROG_VERSION([M4], [\(GNU M4\) ([2-9]\.|1\.[5-9]|1\.[1-4][0-9]|1\.4\.[2-9][0-9]|1\.4\.1[2-9])], [gnu_m4_1_4_12_or_newer]) -CTNG_PROG_VERSION([PYTHON], - [Python], - [python], - [python37 python3.7 python36 python3.6 python35 python3.5 python34 python3.4 python33 python3.3 python32 python3.2 python31 python3.1 python3 python27 python2.7 python26 python2.6 python2 python], - [^Python [23]\.], - [python]) - -CTNG_PROG_VERSION([PYTHON], - [Python >= 3.4], - [python], - [python37 python3.7 python36 python3.6 python35 python3.5 python34 python3.4 python3 python], - [^Python 3\.([4-9]|[1-9][0-9]+)\.], - [python_3_4_or_newer]) +# Check for Python +CTNG_PYTHON + +# Check for Python 3.4 or newer +CTNG_PYTHON_VERSION([3],[4]) CTNG_PROG_VERSION_REQ_ANY([BISON], [bison >= 2.7], -- cgit v1.2.3