diff --git a/configure.ac b/configure.ac index b8ca184e..a4cf2757 100644 --- a/configure.ac +++ b/configure.ac @@ -250,6 +250,7 @@ if test "x$want_python" = "xyes"; then pythondir=`echo ${pythondir} | sed -e 's,[$][{]prefix[}],${pyprefix},g'` pyexecdir=`echo ${pyexecdir} | sed -e 's,[$][{]exec_prefix[}],${pyprefix},g'` fi + PYTHON_PREFIX=$($PYTHON -c 'import sys; print sys.prefix') PYTHON_EXEC_PREFIX=$($PYTHON -c 'import sys; print sys.exec_prefix') else # Namespace support requires Python support diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 2818d88b..a623aaa1 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -7,7 +7,7 @@ # Makefile for building netns components. # -PYSBINDIR = ${PYTHON_EXEC_PREFIX}/sbin +PYSBINDIR = ${PYTHON_PREFIX}/sbin if WANT_NETNS SUBDIRS = src ns3