From bb7775a32611d8cf0d674f209cdcc4f5235ac2f7 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Tue, 21 Apr 2015 18:12:30 +0200 Subject: [PATCH] Deduplicate default platform definition Actually select "pc" instead of having a "default" platform that is equivalent to "pc". --- configure.in | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index 6ccec78..a4c9c7b 100644 --- a/configure.in +++ b/configure.in @@ -30,6 +30,11 @@ AC_ARG_ENABLE(platform, [ --enable-platform=X specify the targeted platform], [GMENU2X_PLATFORM="$enableval"], [GMENU2X_PLATFORM="default"]) +if test "x$GMENU2X_PLATFORM" == xdefault ; then + AC_MSG_WARN([*** No --enable-platform specified. Defaulting to "pc".]) + GMENU2X_PLATFORM=pc +fi + case "$GMENU2X_PLATFORM" in a320) AC_DEFINE(PLATFORM_A320) @@ -52,12 +57,6 @@ case "$GMENU2X_PLATFORM" in PLATFORM="pandora" SCREEN_RES="800x480" ;; - default) - AC_MSG_WARN([*** No --enable-platform specified. Defaulting to "pc".]) - AC_DEFINE(PLATFORM_PC) - PLATFORM="pc" - SCREEN_RES="800x480" - ;; pc) AC_DEFINE(PLATFORM_PC) PLATFORM="pc"