Browse Source

set the Makefile python-related variables if AM_PATH_PYTHON is not used
does not do version and platform checks yet


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1497 e5f2f494-b856-4b98-b285-d166d9295462

Jelte Jansen 15 years ago
parent
commit
ad1500ec7a
1 changed files with 14 additions and 0 deletions
  1. 14 0
      configure.ac

+ 14 - 0
configure.ac

@@ -25,6 +25,20 @@ if test "$python_path" = auto; then
 else
 	PYTHON=$python_path
 	AC_SUBST(PYTHON)
+	PYTHON_PREFIX='${prefix}'
+	AC_SUBST(PYTHON_PREFIX)
+	PYTHON_EXEC_PREFIX='$(exec_prefix)'
+	AC_SUBST(PYTHON_EXEC_PREFIX)
+	PYTHON_PLATFORM="todo"
+	AC_SUBST(PYTHON_PLATFORM)
+	pythondir='${prefix}/lib/python3.1/site-packages'
+	AC_SUBST(pythondir)
+	pkgpythondir='${pythondir}/bind10'
+	AC_SUBST(pkgpythondir)
+	pyexecdir='${exec_prefix}/lib/python3.1/site-packages'
+	AC_SUBST(pyexecdir)
+	pkgpyexecdir='${pyexecdir}/bind10'
+	AC_SUBST(pkgpyexecdir)
 fi
 
 # TODO: check for _sqlite3.py module