Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 344231 | Differences between
and this patch

Collapse All | Expand All

(-)acinclude.m4.old (-8 / +2 lines)
Lines 85-98 Link Here
85
85
86
	# Check for Python library path
86
	# Check for Python library path
87
        AC_MSG_CHECKING([for Python library path])
87
        AC_MSG_CHECKING([for Python library path])
88
        python_path=`echo $PYTHON | sed "s,/bin.*$,,"`
88
	python_path=`$PYTHON -c 'import distutils.sysconfig; \python_path=`$PYTHON -c 'import distutils.sysconfig; \
89
        for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
89
		print(distutils.sysconfig.get_python_inc())'`
90
                python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
91
                if test -n "$python_path" ; then
92
                        break
93
                fi
94
        done
95
        python_path=`echo $python_path | sed "s,/libpython.*$,,"`
96
        AC_MSG_RESULT([$python_path])
90
        AC_MSG_RESULT([$python_path])
97
        if test -z "$python_path" ; then
91
        if test -z "$python_path" ; then
98
                AC_MSG_ERROR([cannot find Python library path])
92
                AC_MSG_ERROR([cannot find Python library path])

Return to bug 344231