Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 19148)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 19149)
@@ -550,6 +550,6 @@
 		if test -f "$PYTHON_ROOT/include/Python.h"; then
 			PYTHONINCL=-I$PYTHON_ROOT/include
-		else if test -f "$PYTHON_ROOT/include/python2.7/Python.h"; then
-			PYTHONINCL=-I$PYTHON_ROOT/include/python2.7
+		else if test -f "$PYTHON_ROOT/include/python$PYTHON_VERSION/Python.h"; then
+			PYTHONINCL=-I$PYTHON_ROOT/include/python$PYTHON_VERSION
 		else
 			AC_MSG_ERROR([Python.h not found, locate this file and contact ISSM developers]);
