changeset 5505:0208f8f3a1b7 draft

(svn r7799) -Fix (r7759): gracefully handle cases where the directory libz.a is in is given via --with-libz.
author rubidium <rubidium@openttd.org>
date Wed, 03 Jan 2007 16:36:36 +0000
parents 8a167f123c20
children ca4a5a6d12d4
files config.lib
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/config.lib
+++ b/config.lib
@@ -1672,7 +1672,12 @@
 		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" ]