From 20ed29e1bc15bd0aa5fd91fcf951d980942878b1 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Fri, 27 May 2016 02:39:30 +0100 Subject: [PATCH] Add check for enable-frontend Signed-off-by: Ikey Doherty --- configure.ac | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/configure.ac b/configure.ac index 36c9b36..7afad1d 100644 --- a/configure.ac +++ b/configure.ac @@ -56,6 +56,22 @@ AC_SUBST(STEAMBIN) AC_DEFINE_UNQUOTED(STEAM_BINARY, "$STEAMBIN", [The location of the real Steam binary]) + + +m4_define([gtk_required_version], [3.4.0]) + +# Check if frontend is requested +have_frontend="no" +AC_ARG_ENABLE(frontend, AS_HELP_STRING([--enable-frontend], [enable GTK frontend])) +if test "x$enable_frontend" = "xyes" ; then + PKG_CHECK_MODULES([GTK], [gtk+-3.0 >= gtk_required_version]) + AC_DEFINE([HAVE_FRONTEND], [1], [Enabled GTK+ frontend]) + have_frontend="yes" + +fi +AM_CONDITIONAL([HAVE_FRONTEND], [test x$have_frontend = "xyes"]) + + AC_OUTPUT AC_MSG_RESULT([ @@ -71,6 +87,7 @@ AC_MSG_RESULT([ New C++ ABI: ${use_new_abi} Real Steam binary: ${STEAMBIN} + GTK+ Frontend: ${have_frontend} compiler: ${CC} cflags: ${CFLAGS}