added more formal configure option for enabling python3, avoids issues with not having a very specific name for PYTHON being set

This commit is contained in:
Blake Harnden 2019-09-27 13:08:59 -07:00
parent 03cf401639
commit 3cf557024c

View file

@ -54,6 +54,13 @@ if test "x$enable_python" = "xyes" ; then
else else
want_python=no want_python=no
fi fi
AC_ARG_ENABLE([python3],
[AS_HELP_STRING([--enable-python3],
[enable python3 default is python2])],
[enable_python3=yes], [enable_python3=no])
AM_CONDITIONAL([PYTHON3], [test "x$enable_python3" == "xyes"])
AC_ARG_ENABLE([daemon], AC_ARG_ENABLE([daemon],
[AS_HELP_STRING([--enable-daemon[=ARG]], [AS_HELP_STRING([--enable-daemon[=ARG]],
[build and install the daemon with Python modules [build and install the daemon with Python modules
@ -156,7 +163,6 @@ if test "x$enable_daemon" = "xyes"; then
CFLAGS=$CFLAGS_save CFLAGS=$CFLAGS_save
CPPFLAGS=$CPPFLAGS_save CPPFLAGS=$CPPFLAGS_save
fi fi
AM_CONDITIONAL([PYTHON3], [test "x$PYTHON" == "xpython3"])
if [ test "x$enable_daemon" = "xyes" || test "x$enable_vnodedonly" = "xyes" ] ; then if [ test "x$enable_daemon" = "xyes" || test "x$enable_vnodedonly" = "xyes" ] ; then
want_linux_netns=yes want_linux_netns=yes