mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:25:42 +01:00
alsactl - install initialization files
Also, spearate SOUNDSDIR and DATADIR in configure.in. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
21bb9fb975
commit
9957c66e46
4 changed files with 17 additions and 4 deletions
|
@ -1,3 +1,5 @@
|
|||
SUBDIRS = init
|
||||
|
||||
sbin_PROGRAMS=alsactl
|
||||
man_MANS=alsactl.1 alsactl_init.7
|
||||
EXTRA_DIST=alsactl.1 alsactl_init.xml
|
||||
|
|
7
alsactl/init/Makefile.am
Normal file
7
alsactl/init/Makefile.am
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
init_files = \
|
||||
00main help info test \
|
||||
hda
|
||||
EXTRA_DIRST = $(init_files)
|
||||
alsainitdir = $(datadir)/alsa/init
|
||||
alsainit_DATA = $(init_files)
|
10
configure.in
10
configure.in
|
@ -93,8 +93,11 @@ case "$dir" in
|
|||
*) dir="$prefix/share"
|
||||
esac
|
||||
|
||||
dir="$dir/sounds/alsa"
|
||||
AC_DEFINE_UNQUOTED(DATADIR, "$dir", [directory containing sample data])
|
||||
soundsdir="$dir/sounds/alsa"
|
||||
AC_DEFINE_UNQUOTED(SOUNDSDIR, "$soundsdir", [directory containing sample data])
|
||||
|
||||
mydatadir="$dir/alsa"
|
||||
AC_DEFINE_UNQUOTED(DATADIR, "$mydatadir", [directory containing alsa configuration])
|
||||
|
||||
AC_ARG_WITH(testsound,
|
||||
[ --with-testsound=file give the path of test sound file for alsaconf],
|
||||
|
@ -117,7 +120,8 @@ AC_SYS_LARGEFILE
|
|||
|
||||
SAVE_UTIL_VERSION
|
||||
|
||||
AC_OUTPUT(Makefile alsactl/Makefile alsamixer/Makefile amidi/Makefile amixer/Makefile \
|
||||
AC_OUTPUT(Makefile alsactl/Makefile alsactl/init/Makefile \
|
||||
alsamixer/Makefile amidi/Makefile amixer/Makefile \
|
||||
m4/Makefile po/Makefile.in \
|
||||
alsaconf/alsaconf alsaconf/Makefile \
|
||||
alsaconf/po/Makefile \
|
||||
|
|
|
@ -81,7 +81,7 @@ static pink_noise_t pink;
|
|||
static snd_pcm_uframes_t buffer_size;
|
||||
static snd_pcm_uframes_t period_size;
|
||||
static const char *given_test_wav_file = NULL;
|
||||
static char *wav_file_dir = DATADIR;
|
||||
static char *wav_file_dir = SOUNDSDIR;
|
||||
|
||||
static const char *channel_name[MAX_CHANNELS] = {
|
||||
N_("Front Left"),
|
||||
|
|
Loading…
Reference in a new issue