Ticket #20608: patch-configure.diff

File patch-configure.diff, 725 bytes (added by neric27@…, 15 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