Skip to content

Commit

Permalink
added additional checks for homebrew installed python libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
justinh2002 committed Jan 30, 2025
1 parent fa63b27 commit 2a32551
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions m4/issm_options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,8 @@ AC_DEFUN([ISSM_OPTIONS],[
PYTHONINCL=-I${PYTHON_ROOT}/include/python${PYTHON_VERSION}m
elif test -f "${PYTHON_ROOT}/Headers/Python.h"; then
PYTHONINCL=-I${PYTHON_ROOT}/include/python${PYTHON_VERSION}m
elif test -f "${PYTHON_ROOT}/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/include/python${PYTHON_VERSION}/Python.h"; then
PYTHONINCL=-I${PYTHON_ROOT}/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/include/python${PYTHON_VERSION}
else
AC_MSG_ERROR([Python.h not found! Please locate this file and contact ISSM developers via forum or email.]);
fi
Expand All @@ -732,6 +734,8 @@ AC_DEFUN([ISSM_OPTIONS],[
PYTHONLIB="-L${PYTHON_ROOT}/lib64 -lpython${PYTHON_VERSION}m"
elif ls ${PYTHON_ROOT}/lib64/libpython${PYTHON_VERSION}.* 1> /dev/null 2>&1; then
PYTHONLIB="-L${PYTHON_ROOT}/lib64 -lpython${PYTHON_VERSION}"
elif ls ${PYTHON_ROOT}/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/lib/libpython${PYTHON_VERSION}.* 1> /dev/null 2>&1; then
PYTHONLIB="-L${PYTHON_ROOT}/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/lib -lpython${PYTHON_VERSION}"
else
AC_MSG_ERROR([libpython not found! Please locate this file and contact ISSM developers via forum or email.]);
fi
Expand Down

0 comments on commit 2a32551

Please sign in to comment.