Skip to content

Commit

Permalink
configure: Always let automake set python vars
Browse files Browse the repository at this point in the history
Some vars like PYTHON_VERSION was unset when PYTHON is passed to
configure script.

Solution is to let automake fill them.

Signed-off-by: Jan Friesse <[email protected]>
  • Loading branch information
jfriesse committed Jun 30, 2020
1 parent f7da924 commit cca6bee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ PKG_CHECK_MODULES([PCMK], [pacemaker-service],,
# Python casing, prefer 3.3+ to 2.{6...}
if test "x$PYTHON" = "x"; then
AM_PATH_PYTHON([3.3],, [AM_PATH_PYTHON([2.6])])
else
# Just set Automake variables (mainly PYTHON_VERSION)
AM_PATH_PYTHON
fi
PYTHON_SHEBANG="$PYTHON ${PYTHON_OPTS--Es}"
AC_SUBST([PYTHON_SHEBANG])
Expand Down

0 comments on commit cca6bee

Please sign in to comment.