aboutsummaryrefslogtreecommitdiffstats
path: root/m4/python.m4 (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-03-22python: Improve Python detection.Justus Winter1-2/+4
* m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Prefer the generic 'pythonX' over 'pythonX.Y'. This way we select the users preferred version for both flavors. Prefer 'python' over 'python3' but not over 'python2' so that the algorithm still finds a 'python2' even if 'python' is a Python3. Fixes-commit: 5189c08af9468cdeb6f16a6ecd0fee53e1e3aa0e Signed-off-by: Justus Winter <[email protected]>
2017-03-14build: Tune M4 macros for our needs.Justus Winter1-2/+2
* m4/ax_python_devel.m4: Do not emit 'HAVE_PYTHON'. * m4/python.m4 (_AM_PYTHON_INTERPRETER_LIST): Add newer Python versions, drop older ones. Also, sort the list with older versions at the front, newer and generic versions towards the end. This makes the algorithm pick the lowest version that meets the version requirement. Signed-off-by: Justus Winter <[email protected]>
2017-03-14build: Add M4 macros for python.Justus Winter1-0/+239
* m4/python.m4: New file. Signed-off-by: Justus Winter <[email protected]>