mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-09-21 02:29:57 +02:00
BAT: Add Makefile and configures
Add Makefile and configures that enable BAT on alsa-utils Signed-off-by: Lu, Han <han.lu@intel.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@intel.com> Signed-off-by: Bernard Gautier <bernard.gautier@intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
d727c9d90e
commit
226ad884d2
3 changed files with 35 additions and 1 deletions
|
@ -18,6 +18,9 @@ SUBDIRS += aplay iecset speaker-test
|
||||||
if ALSALOOP
|
if ALSALOOP
|
||||||
SUBDIRS += alsaloop
|
SUBDIRS += alsaloop
|
||||||
endif
|
endif
|
||||||
|
if BAT
|
||||||
|
SUBDIRS += bat
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
if HAVE_SEQ
|
if HAVE_SEQ
|
||||||
SUBDIRS += seq
|
SUBDIRS += seq
|
||||||
|
|
14
bat/Makefile.am
Normal file
14
bat/Makefile.am
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
bin_PROGRAMS = bat
|
||||||
|
|
||||||
|
bat_SOURCES = \
|
||||||
|
bat.c \
|
||||||
|
common.c \
|
||||||
|
analyze.c \
|
||||||
|
signal.c \
|
||||||
|
convert.c \
|
||||||
|
alsa.c
|
||||||
|
|
||||||
|
AM_CPPFLAGS = \
|
||||||
|
-Wall -I$(top_srcdir)/include
|
||||||
|
|
||||||
|
bat_LDADD = -lasound
|
19
configure.ac
19
configure.ac
|
@ -63,6 +63,23 @@ AM_CONDITIONAL(HAVE_UCM, test "$have_ucm" = "yes")
|
||||||
AM_CONDITIONAL(HAVE_TOPOLOGY, test "$have_topology" = "yes")
|
AM_CONDITIONAL(HAVE_TOPOLOGY, test "$have_topology" = "yes")
|
||||||
AM_CONDITIONAL(HAVE_SAMPLERATE, test "$have_samplerate" = "yes")
|
AM_CONDITIONAL(HAVE_SAMPLERATE, test "$have_samplerate" = "yes")
|
||||||
|
|
||||||
|
AC_CHECK_LIB([fftw3], [fftw_malloc], , [AC_MSG_ERROR([Error: need FFTW3 library])])
|
||||||
|
AC_CHECK_LIB([m], [sqrtf], , [AC_MSG_ERROR([Error: Need sqrtf])])
|
||||||
|
AC_CHECK_LIB([pthread], [pthread_create], , [AC_MSG_ERROR([Error: need PTHREAD library])])
|
||||||
|
|
||||||
|
dnl Disable bat
|
||||||
|
bat=
|
||||||
|
if test "$have_pcm" = "yes"; then
|
||||||
|
AC_ARG_ENABLE(bat,
|
||||||
|
AS_HELP_STRING([--disable-bat], [Disable bat compilation]),
|
||||||
|
[case "${enableval}" in
|
||||||
|
yes) bat=true ;;
|
||||||
|
no) bat=false ;;
|
||||||
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-bat) ;;
|
||||||
|
esac],[bat=true])
|
||||||
|
fi
|
||||||
|
AM_CONDITIONAL(BAT, test x$bat = xtrue)
|
||||||
|
|
||||||
dnl Check for librt
|
dnl Check for librt
|
||||||
LIBRT=""
|
LIBRT=""
|
||||||
AC_MSG_CHECKING(for librt)
|
AC_MSG_CHECKING(for librt)
|
||||||
|
@ -361,7 +378,7 @@ AC_OUTPUT(Makefile alsactl/Makefile alsactl/init/Makefile \
|
||||||
m4/Makefile po/Makefile.in \
|
m4/Makefile po/Makefile.in \
|
||||||
alsaconf/alsaconf alsaconf/Makefile \
|
alsaconf/alsaconf alsaconf/Makefile \
|
||||||
alsaconf/po/Makefile \
|
alsaconf/po/Makefile \
|
||||||
alsaucm/Makefile topology/Makefile \
|
alsaucm/Makefile topology/Makefile bat/Makefile \
|
||||||
aplay/Makefile include/Makefile iecset/Makefile utils/Makefile \
|
aplay/Makefile include/Makefile iecset/Makefile utils/Makefile \
|
||||||
utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile \
|
utils/alsa-utils.spec seq/Makefile seq/aconnect/Makefile \
|
||||||
seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile \
|
seq/aplaymidi/Makefile seq/aseqdump/Makefile seq/aseqnet/Makefile \
|
||||||
|
|
Loading…
Reference in a new issue