(svn r7799) -Fix (r7759): gracefully handle cases where the directory libz.a is in is given via --with-libz.

This commit is contained in:
rubidium 2007-01-03 16:36:36 +00:00
parent 346a0df0b7
commit 98be57246e

View File

@ -1672,7 +1672,12 @@ detect_zlib() {
fi
else
# Make sure it exists
zlib=`ls $with_zlib 2>/dev/null`
if [ -f "$zlib" ]
then
zlib=`ls $with_zlib 2>/dev/null`
else
zlib=`ls $with_zlib/libz.a 2>/dev/null`
fi
fi
if [ -z "$zlib" ]