Changeset - r22916:38da1c0411d2
[Not reviewed]
master
0 1 0
glx - 6 years ago 2018-06-16 23:28:08
glx@openttd.org
Fix: library detection on MSYS2 file system
1 file changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -2664,12 +2664,17 @@ detect_library() {
 
			log 2 "  trying /usr/local/include/$4$5... no"
 
			eval "$2=`ls -1 /mingw/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
 
		fi
 
		eval "res=\$$2"
 
		if [ -z "$res" ]; then
 
			log 2 "  trying /mingw/include/$4$5... no"
 
			eval "$2=`ls -1 /mingw$cpu_type/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
 
		fi
 
		eval "res=\$$2"
 
		if [ -z "$res" ]; then
 
			log 2 "  trying /mingw$cpu_type/include/$4$5... no"
 
			eval "$2=`ls -1 /opt/local/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`"
 
		fi
 
		eval "res=\$$2"
 
		if [ -z "$res" ]; then
 
			log 2 "  trying /opt/local/include/$4$5... no"
 
		fi
 
@@ -2712,12 +2717,17 @@ detect_library() {
 
				log 2 "  trying /usr/local/lib/$3... no"
 
				eval "$2=`ls /mingw/lib/*.a 2>/dev/null | egrep \"\/$3\$\"`"
 
			fi
 
			eval "res=\$$2"
 
			if [ -z "$res" ]; then
 
				log 2 "  trying /mingw/lib/$3... no"
 
				eval "$2=`ls /mingw$cpu_type/lib/*.a 2>/dev/null | egrep \"\/$3\$\"`"
 
			fi
 
			eval "res=\$$2"
 
			if [ -z "$res" ]; then
 
				log 2 "  trying /mingw$cpu_type/lib/$3... no"
 
				log 1 "configure: error: $2 couldn't be found"
 
				log 1 "configure: error: you requested a static link, but I can't find $3"
 

	
 
				exit 1
 
			fi
 
		fi
0 comments (0 inline, 0 general)