aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2011-11-26 15:39:43 +0100
committerWillem Jan Palenstijn2011-11-26 15:40:49 +0100
commit9e1829173ce4d79effd5b669cbfbe5ac3c7444ec (patch)
tree84be4abe01dcd7db4177239f509bbadc01c26206
parentaa20b8cf42cff774fd8d4031a85a4288895ae496 (diff)
downloadscummvm-rg350-9e1829173ce4d79effd5b669cbfbe5ac3c7444ec.tar.gz
scummvm-rg350-9e1829173ce4d79effd5b669cbfbe5ac3c7444ec.tar.bz2
scummvm-rg350-9e1829173ce4d79effd5b669cbfbe5ac3c7444ec.zip
BUILD: Report more specific errors for configure engine options
-rwxr-xr-xconfigure21
1 files changed, 18 insertions, 3 deletions
diff --git a/configure b/configure
index 4fc24b1d7c..2acb24d5d3 100755
--- a/configure
+++ b/configure
@@ -428,6 +428,21 @@ Try \`$0 --help' for more information." >&2
exit 1
}
+# Show an error about an unknown engine
+engine_option_error() {
+ echo "error: unrecognised engine: $1
+Try \`$0 --help' for more information." >&2
+ exit 1
+}
+
+# Show an error about an invalid subengine option
+subengine_option_error() {
+ echo "error: this option is invalid for the subengine $1: $ac_option
+Try \`$0 --help' for more information." >&2
+ exit 1
+}
+
+
#
# Engine handling functions
@@ -490,7 +505,7 @@ engine_enable() {
# Filter the parameter for the subengines
if test "`get_engine_sub ${engine}`" != "no" -a "$opt" != "yes" ; then
- option_error
+ subengine_option_error ${engine}
return
fi
@@ -498,7 +513,7 @@ engine_enable() {
if test "`get_engine_name ${engine}`" != "" ; then
set_var _engine_${engine}_build "$opt"
else
- option_error
+ engine_option_error ${engine}
fi
else
option_error
@@ -517,7 +532,7 @@ engine_disable() {
if test "`get_engine_name ${engine}`" != "" ; then
set_var _engine_${engine}_build "no"
else
- option_error
+ engine_option_error ${engine}
fi
}