diff --git a/configure.ac b/configure.ac index 5235d5f..12b0277 100644 --- a/configure.ac +++ b/configure.ac @@ -207,17 +207,16 @@ AC_SUBST(LIBEVENT_CFLAGS) AC_SUBST(LIBEVENT_LIBS) if test x${compile_python} = xyes; then - AM_PATH_PYTHON([2.6]) - - if test "$bwin32" = true; then - # set pyexecdir to somewhere like /c/Python26/Lib/site-packages - pyexecdir=${PYTHON_DIR}/Lib/site-packages - pythondir=${pyexecdir} - pkgpyexecdir=${pyexecdir}/${PACKAGE} - pkgpythondir=${pythondir}/${PACKAGE} - - fi # end for bwin32 - + AM_PATH_PYTHON([2.6]) + if test "$bwin32" = true; then + if test x$PYTHON_DIR != x; then + # set pyexecdir to somewhere like /c/Python26/Lib/site-packages + pyexecdir=${PYTHON_DIR}/Lib/site-packages + pythondir=${pyexecdir} + pkgpyexecdir=${pyexecdir}/${PACKAGE} + pkgpythondir=${pythondir}/${PACKAGE} + fi + fi fi mysql="yes"