AM_PATH_PYTHON for python2 and python3
问题 I am using automake's macro AM_PATH_PYTHON to find the pythondir variable. Till now I have been calling it without arguments which defaults to python 2.7 on Ubuntu. Now I also want to build it for python3.x (3.3 specifically). Is there a way where I can call AM_PATH_PYTHON([3]) to get python3.3 , store all the generated variables using AC_SUBST in a python3 specific variable and then call AM_PATH_PYTHON([2]) for python2 . I am doing this AM_PATH_PYTHON([3]) AC_SUBST(PYTHON3,$PYTHON) AC_SUBST