summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-08-07 20:42:02 +0000
committertruelight <truelight@openttd.org>2007-08-07 20:42:02 +0000
commitfcf9130ee5e684e60134eb0988f0e5508e15db61 (patch)
tree4bcd9fce1baf8a07e74d3a3ea65f67b7214e1b99
parent5f920e91c7c4fe3b0744caa02f279d09a0cd59ed (diff)
downloadopenttd-fcf9130ee5e684e60134eb0988f0e5508e15db61.tar.xz
(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)
-rw-r--r--config.lib7
1 files changed, 6 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index e814df7ef..bd3fbdb9c 100644
--- a/config.lib
+++ b/config.lib
@@ -308,11 +308,16 @@ check_params() {
# 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"