Changeset - r7424:d6a9f8809837
[Not reviewed]
master
0 1 0
truelight - 17 years ago 2007-08-07 20:42:02
truelight@openttd.org
(svn r10822) -Fix: OSX makes --endian set to PREPROCESSOR, which wasn't an allowed value, making reconfigures to fail (special commit for Bjarni, now he should fix things too :p)
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -305,17 +305,22 @@ check_params() {
 
	os=`echo $os | tr '[a-z]' '[A-Z]'`
 
	cpu_type=`echo $cpu_type | tr '[a-z]' '[A-Z]'`
 

	
 
	# Check if all params have valid values
 

	
 
	# Endian only allows AUTO, LE and, BE
 
	if [ -z "`echo $endian | egrep '^(AUTO|LE|BE)$'`" ]; then
 
	if [ -z "`echo $endian | egrep '^(AUTO|LE|BE|PREPROCESSOR)$'`" ]; then
 
		echo "configure: error: invalid option --endian=$endian"
 
		echo " Available options are: --endian=[AUTO|LE|BE]"
 
		exit 1
 
	fi
 
	if [ "$endian" = "PREPROCESSOR" ] && [ "$os" != "OSX" ]; then
 
		echo "configure: error: invalid option --endian=$endian"
 
		echo " PREPROCESSOR is only available for OSX"
 
		exit 1
 
	fi
 
	# OS only allows DETECT, UNIX, OSX, FREEBSD, OPENBSD, MORPHOS, BEOS, SUNOS, CYGWIN, MINGW, OS2, WINCE, and PSP
 
	if [ -z "`echo $os | egrep '^(DETECT|UNIX|OSX|FREEBSD|OPENBSD|MORPHOS|BEOS|SUNOS|CYGWIN|MINGW|OS2|WINCE|PSP)$'`" ]; then
 
		echo "configure: error: invalid option --os=$os"
 
		echo " Available options are: --os=[DETECT|UNIX|OSX|FREEBSD|OPENBSD|MORPHOS|BEOS|SUNOS|CYGWIN|MINGW|OS2|WINCE|PSP]"
 
		exit 1
 
	fi
0 comments (0 inline, 0 general)