Index: /issm/trunk-jpl/m4/issm_options.m4
===================================================================
--- /issm/trunk-jpl/m4/issm_options.m4	(revision 26926)
+++ /issm/trunk-jpl/m4/issm_options.m4	(revision 26927)
@@ -205,5 +205,5 @@
 	AC_MSG_RESULT([${IS_MAC}])
 
-	dnl If macOS, check if system copy of libc has fmemopen (if it is not 
+	dnl If macOS, check if system copy of libc has fmemopen (if it is not
 	dnl macOS, we do not check, but still must set SYSTEM_HAS_FMEMOPEN)
 	AC_MSG_CHECKING([if system copy of libc has fmemopen])
@@ -604,9 +604,9 @@
 		AC_MSG_CHECKING(for Dakota version)
 		dnl TODO:
-		dnl - Check if this method applies to all other versions of Dakota (it 
-		dnl   should as long as the Dakota binaries have been compiled). If so, 
+		dnl - Check if this method applies to all other versions of Dakota (it
+		dnl   should as long as the Dakota binaries have been compiled). If so,
 		dnl   we can remove the other methods of getting the version.
-		dnl - Modify src/wrappers/IssmConfig/IssmConfig.cpp so that strlen is 
-		dnl   not called with _DAKOTA_VERSION_ as an argument so that we can 
+		dnl - Modify src/wrappers/IssmConfig/IssmConfig.cpp so that strlen is
+		dnl   not called with _DAKOTA_VERSION_ as an argument so that we can
 		dnl   do,
 		dnl
@@ -818,4 +818,6 @@
 		fi
 		AC_MSG_RESULT([found])
+
+		AC_MSG_CHECKING([for Python libraries libpython])
 		if ls ${PYTHON_ROOT}/lib/x86_64-linux-gnu/libpython${PYTHON_VERSION}m.* 1> /dev/null 2>&1; then
 			PYTHONLIB="-L${PYTHON_ROOT}/lib/x86_64-linux-gnu -lpython${PYTHON_VERSION}m"
@@ -824,7 +826,11 @@
 		elif ls ${PYTHON_ROOT}/lib/libpython${PYTHON_VERSION}m.* 1> /dev/null 2>&1; then
 			PYTHONLIB="-L${PYTHON_ROOT}/lib -lpython${PYTHON_VERSION}m"
+		elif ls ${PYTHON_ROOT}/lib64/libpython${PYTHON_VERSION}m.* 1> /dev/null 2>&1; then
+			PYTHONLIB="-L${PYTHON_ROOT}/lib64 -lpython${PYTHON_VERSION}m"
 		else
-			PYTHONLIB="-L${PYTHON_ROOT}/lib -lpython${PYTHON_VERSION}"
-		fi
+			AC_MSG_ERROR([libpython not found! Please locate this file and contact ISSM developers via forum or email.]);
+		fi
+		AC_MSG_RESULT([found])
+
 		PYTHONEXT=.so
 		case "${host_os}" in
@@ -2596,5 +2602,5 @@
 		AC_MSG_RESULT([${GMSH_VERSION_MAJOR}])
 		AC_DEFINE_UNQUOTED([_GMSH_VERSION_MAJOR_], ${GMSH_VERSION_MAJOR}, [Gmsh major version])
-	fi	
+	fi
 	dnl }}}
 	dnl Capabilities
