@@ -3445,7 +3445,7 @@ if test x"${nut_with_nut_monitor}" != xno ; then
34453445 PYTHON2_TEST_MODULES="re,glob,codecs,gtk,gtk.glade,gobject,ConfigParser"
34463446 PYTHON3_TEST_MODULES_QT5="re,glob,codecs,PyQt5.uic,configparser"
34473447 PYTHON3_TEST_MODULES_QT6="re,glob,codecs,PyQt6.uic,configparser"
3448- if test -n "${PYTHON2_VERSION_INFO_REPORT}" ; then
3448+ if test -n "${PYTHON2_VERSION_INFO_REPORT}" -a -n "${PYTHON2}" ; then
34493449 AC_MSG_CHECKING ( [ if we have Python2 prerequisites for NUT-Monitor desktop application] )
34503450 if ${PYTHON2} -c "import ${PYTHON2_TEST_MODULES}" 1>&5 2>&5 \
34513451 ; then
@@ -3499,7 +3499,7 @@ if test x"${nut_with_nut_monitor}" != xno ; then
34993499 fi
35003500 fi
35013501
3502- if test -n "${PYTHON3_VERSION_INFO_REPORT}" ; then
3502+ if test -n "${PYTHON3_VERSION_INFO_REPORT}" -a -n "${PYTHON3}" ; then
35033503 AC_MSG_CHECKING ( [ if we have Python3 Qt5 prerequisites for NUT-Monitor desktop application] )
35043504 if ${PYTHON3} -c "import ${PYTHON3_TEST_MODULES_QT5}" 1>&5 2>&5 \
35053505 ; then
@@ -3515,7 +3515,7 @@ if test x"${nut_with_nut_monitor}" != xno ; then
35153515 fi
35163516 fi
35173517
3518- if test -n "${PYTHON3_VERSION_INFO_REPORT}" ; then
3518+ if test -n "${PYTHON3_VERSION_INFO_REPORT}" -a -n "${PYTHON3}" ; then
35193519 AC_MSG_CHECKING ( [ if we have Python3 Qt6 prerequisites for NUT-Monitor desktop application] )
35203520 if ${PYTHON3} -c "import ${PYTHON3_TEST_MODULES_QT6}" 1>&5 2>&5 \
35213521 ; then
@@ -3533,7 +3533,7 @@ if test x"${nut_with_nut_monitor}" != xno ; then
35333533
35343534 dnl Fall back to default interpreter
35353535 if test -z "${nut_with_nut_monitor_py2gtk2}${nut_with_nut_monitor_py3qt5}${nut_with_nut_monitor_py3qt6}" \
3536- && test -n "${PYTHON_VERSION_INFO_REPORT}" \
3536+ && test -n "${PYTHON_VERSION_INFO_REPORT}" -a -n "${PYTHON}" \
35373537 && test x"${PYTHON_VERSION_INFO_REPORT}" != x"${PYTHON3_VERSION_INFO_REPORT}" \
35383538 && test x"${PYTHON_VERSION_INFO_REPORT}" != x"${PYTHON2_VERSION_INFO_REPORT}" \
35393539 ; then
@@ -6749,10 +6749,13 @@ AS_CASE([${target_os}],
67496749 AC_MSG_NOTICE ( [ FWIW, assuming ABS_TOP_SRCDIR="$ABS_TOP_SRCDIR" and ABS_TOP_BUILDDIR="$ABS_TOP_BUILDDIR"] )
67506750] )
67516751
6752- dnl Use these at best for tests (e.g. nutconf), not production code:
6752+ dnl Use these at best for tests (e.g. nutconf, NIT ), not production code:
67536753AC_DEFINE_UNQUOTED ( [ ABS_TOP_SRCDIR] , [ "${ABS_TOP_SRCDIR}"] , [ NUT source directory when the build was configured] )
67546754AC_DEFINE_UNQUOTED ( [ ABS_TOP_BUILDDIR] , [ "${ABS_TOP_BUILDDIR}"] , [ NUT build directory when the build was configured] )
67556755
6756+ AC_SUBST ( ABS_TOP_SRCDIR )
6757+ AC_SUBST ( ABS_TOP_BUILDDIR )
6758+
67566759dnl ---------------------------------------------------------------------
67576760AC_MSG_CHECKING ( [ whether to install External API integration script: Enphase Monitor] )
67586761nut_with_extapi_enphase="no"
0 commit comments