From 472dbc4a84997e5efe83331f6e2e1e5c079f26ca Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 4 Jan 2016 10:30:13 +0100 Subject: [PATCH] CONFIGURE: Abort configure stage when invalid OpenGL mode is specified. --- configure | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure b/configure index f6cac34fbfe..d42fb3caf3e 100755 --- a/configure +++ b/configure @@ -4232,6 +4232,11 @@ case $_opengl_mode in echo "yes (OpenGL ES 2)" add_line_to_config_h "#define USE_GLES_MODE 2" ;; + + *) + echo "invalid mode specification '$_opengl_mode'. Aborting." + exit 1 + ;; esac define_in_config_if_yes "$_opengl" "USE_OPENGL"