From cb8d96d210db6d1d9863a58e24f0cd54c01bbf53 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 8 Aug 2023 13:55:41 +0200 Subject: [PATCH] configure: option to disable reflector The option will likely not be used alone but rather implicitly by --disable-all and it can be used to speed-up the compilation if reflector is not needed (and maybe also if its compilation is failing). --- Makefile.in | 2 ++ configure.ac | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/Makefile.in b/Makefile.in index 733f97f20..0562db395 100644 --- a/Makefile.in +++ b/Makefile.in @@ -52,7 +52,9 @@ SYSTEM = @system@ GUI_EXE ?= @GUI_EXE@ GUI_TARGET = @GUI_TARGET@ QT_CFLAGS = @QT_CFLAGS@ +ifeq (@REFLECTOR_REQ@,yes) REFLECTOR_TARGET ?= bin/hd-rum-transcode$(EXEEXT) +endif TEST_TARGET = bin/run_tests$(EXEEXT) PACKAGE_TARNAME ?= @PACKAGE_TARNAME@ diff --git a/configure.ac b/configure.ac index 8dbda96d2..93b4c9b13 100644 --- a/configure.ac +++ b/configure.ac @@ -3245,6 +3245,18 @@ fi ENSURE_FEATURE_PRESENT([$sdl_mixer_req], [$sdl_mixer], [SDL_mixer deps not found!]) +# ----------------------------------------------------------------------------- +# Reflector +# ----------------------------------------------------------------------------- +AC_ARG_ENABLE(reflector, + AS_HELP_STRING([--disable-reflector], [disables reflector (default is enabled)]), + [reflector_req=$enableval], + [reflector_req=$build_default]) +if test "$reflector_req" != no; then + REFLECTOR_REQ=yes +fi +AC_SUBST(REFLECTOR_REQ) + # ------------------------------------------------------------------------------------------------- # We need to add libraries then # -------------------------------------------------------------------------------------------------