configure.ac: added all to --enable-object

The options cannot be repeated for configure, like
`--enable-object=a --enable-object=b` to enable both a and b
(`--enable-object=a,b` is needed). This may be sometimes impractical,
when the command-line args are appended incrementally.

As a workaround, at least `--enable-output=all` is added. As it is not
a solution, it still (with `--disable-all`) removes most unneeded code
(with dependencies), while compiling all the non-essential objs without
deps.
This commit is contained in:
Martin Pulec
2024-05-16 10:55:25 +02:00
parent 71a5f2d78a
commit 83d5a90b5b

View File

@@ -3263,15 +3263,17 @@ AC_SUBST(REFLECTOR_REQ)
# Non-essential objs
# ------------------------------------------------------------------------------
AC_ARG_ENABLE(object,
AS_HELP_STRING([--enable-object], [enable specific object(s) compilation (typically when disabled non-essential features with --disable-all; comma-separated)]),
AS_HELP_STRING([--enable-object], [enable specific object(s) ]
[compilation (typically when disabled non-essential features with ]
[--disable-all; comma-separated, "all" to enable all)]),
[req_files=$enableval],
[req_files=])
if test -n "$req_files"; then
if test -n "$req_files" && test "$req_files" != all; then
OBJS="$OBJS $(echo "$req_files" | sed 's/,/ /g')"
fi
if test "$build_default" != no; then
if test "$build_default" != no || test $req_files = all; then
ULTRAGRID_OBJS="$ULTRAGRID_OBJS
src/audio/playback/dump.o
src/audio/playback/mixer.o