Commit 54387d14 authored by Max Kellermann's avatar Max Kellermann

configure.ac: added switch for test programs

The switch syntax is "--enable-test". There are no test programs yet.
parent fcf65de4
...@@ -7,6 +7,22 @@ EXTRA_DIST = $(doc_DATA) autogen.sh \ ...@@ -7,6 +7,22 @@ EXTRA_DIST = $(doc_DATA) autogen.sh \
$(wildcard scripts/*.sh) scripts/mpd.spec \ $(wildcard scripts/*.sh) scripts/mpd.spec \
.gitignore .gitignore
AM_CFLAGS = -I$(srcdir)/src $(GLIB_CFLAGS)
AM_LDFLAGS = $(GLIB_LIBS)
#
# Test programs
#
if ENABLE_TEST
noinst_PROGRAMS =
endif
sparse-check test: sparse-check test:
$(MAKE) -C src $@ $(MAKE) -C src $@
......
...@@ -1123,6 +1123,13 @@ if test "x$ENABLE_GPROF" = xyes; then ...@@ -1123,6 +1123,13 @@ if test "x$ENABLE_GPROF" = xyes; then
MPD_CFLAGS="$MPD_CFLAGS -pg" MPD_CFLAGS="$MPD_CFLAGS -pg"
fi fi
AC_ARG_ENABLE(test,
AS_HELP_STRING([--enable-test],
[Build the test programs (default: disabled)]),,
enable_test=no)
AM_CONDITIONAL(ENABLE_TEST, test "x$enable_test" = xyes)
dnl dnl
dnl CFLAGS dnl CFLAGS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment