Skip to content

Commit

Permalink
Add extra path info to help Mac OS X find the right Python.h and comp…
Browse files Browse the repository at this point in the history
…ile msexport. Previously, it was doing nothing because it found multiple directories where it expected one.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4991 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Mar 10, 2006
1 parent ca17401 commit fefbfcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion acinclude.m4
Expand Up @@ -696,8 +696,11 @@ AC_MSG_CHECKING(for python build information)
ax_python_bin=$PYTHON_BIN
if test x$ax_python_bin != x; then
AC_CHECK_LIB($ax_python_bin, main, ax_python_lib=$ax_python_bin, ax_python_lib=no)
if test `echo ${host} | grep '.*-darwin.*'`; then
python_prefix=/System/Library/Frameworks/Python.framework/*/
fi
AC_CHECK_HEADER([$ax_python_bin/Python.h],
[[ax_python_header=`locate $ax_python_bin/Python.h | sed -e s,/Python.h,,`]],
[[ax_python_header=`locate $python_prefix$ax_python_bin/Python.h | sed -e s,/Python.h,,`]],
ax_python_header=no)
if test $ax_python_lib != no; then
if test $ax_python_header != no; then
Expand Down

0 comments on commit fefbfcd

Please sign in to comment.