If prefix set then high chance of libs being there

If they are compiling to target an alternative directory there are likely dependencies to the same target.  Test for PREFIX/lib and PREFIX/include to be sure.
This commit is contained in:
x0x7 2016-01-01 04:20:55 -05:00
parent 6af2e98559
commit c7c010e273

8
configure vendored
View file

@ -127,6 +127,14 @@ if [ -d "/Library/Developer/CommandLineTools/usr/lib" ]; then
fi
LIBDIRS="$LIBDIRS /lib /usr/lib /usr/local/lib /opt/local/lib"
INCDIRS="/usr/include /usr/local/include /opt/include /opt/local/include"
if [ -n "$PREFIX" ]; then
if [ -d "$PREFIX/lib"]; then
LIBDIRS="$LIBDIRS $PREFIX/lib"
fi
if [ -d "$PREFIX/include"]; then
INCDIRS="$INCDIRS $PREFIX/include"
fi
fi
STRIP="strip"
echo