New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20608: patch-configure.diff

File patch-configure.diff, 0.7 KB (added by neric27@…, 3 years ago)

enable configure to find python libraries, even if it's a link

  • configure

    old new  
    2072520725        python_path=`dirname $PYTHON | sed "s,/bin.*$,,"` 
    2072620726        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 
    2072720727                if test -e "$i"; then 
    20728                         python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"` 
     20728                        python_path=`find $i -type l -name libpython$PYTHON_VERSION.* -print | sed "1q"` 
    2072920729                        if test -n "$python_path" ; then 
    2073020730                                python_lib="python$PYTHON_VERSION" 
    2073120731                                break