Changeset - r19086:cf77bf636a75
[Not reviewed]
master
0 1 0
michi_cc - 13 years ago 2012-02-15 21:39:10
michi_cc@openttd.org
(svn r23954) -Fix (r23952): Update required grfcodec version.
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -3099,51 +3099,51 @@ detect_sort() {
 
	fi
 
}
 

	
 
detect_grfcodec() {
 
	# 0 means no, 1 is auto-detect, 2 is force
 
	if [ "$with_grfcodec" = "0" ]; then
 
		log 1 "checking grfcodec... disabled"
 

	
 
		grfcodec=""
 
		return 0
 
	fi
 

	
 
	if [ "$with_grfcodec" = "1" ] || [ "$with_grfcodec" = "" ] || [ "$with_grfcodec" = "2" ]; then
 
		grfcodec="grfcodec"
 
	else
 
		grfcodec="$with_grfcodec"
 
	fi
 

	
 
	version=`$grfcodec -v 2>/dev/null | $awk '{print $3}' | sed 's/[rM]//g;s/-/0/'`
 
	ret=$?
 
	log 2 "executing grfcodec -v"
 
	log 2 "  returned $version"
 
	log 2 "  exit code $ret"
 

	
 
	if [ -z "$version" ] || [ "$ret" != "0" ] || [ "$version" -lt "846" ]; then
 
		if [ -n "$version" ] && [ "$version" -lt "846" ]; then
 
			log 1 "checking grfcodec... needs at least version 5.1.3 (r846), disabled"
 
	if [ -z "$version" ] || [ "$ret" != "0" ] || [ "$version" -lt "897" ]; then
 
		if [ -n "$version" ] && [ "$version" -lt "897" ]; then
 
			log 1 "checking grfcodec... needs at least version 5.1.4 (r897), disabled"
 
		else
 
			log 1 "checking grfcodec... not found"
 
		fi
 

	
 
		# It was forced, so it should be found.
 
		if [ "$with_grfcodec" != "1" ]; then
 
			log 1 "configure: error: grfcodec couldn't be found"
 
			log 1 "configure: error: you supplied '$with_grfcodec', but it seems invalid"
 
			exit 1
 
		fi
 

	
 
		grfcodec=""
 
		return 0
 
	fi
 

	
 
	log 1 "checking grfcodec... found"
 
}
 

	
 
detect_nforenum() {
 
	# 0 means no, 1 is auto-detect, 2 is force
 
	if [ "$with_nforenum" = "0" ]; then
 
		log 1 "checking nforenum... disabled"
 

	
 
		nforenum=""
0 comments (0 inline, 0 general)