configure.ac: added switch for test programs
The switch syntax is "--enable-test". There are no test programs yet.
This commit is contained in:
parent
fcf65de46b
commit
54387d1451
16
Makefile.am
16
Makefile.am
@ -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
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user