mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
Add config and plugin directory options to configure
Added --with-configdir and --with-plugindir options to configure which specify the directories for config files and plugin objects respectively. The default paths when these options are not specified are unchanged.
This commit is contained in:
parent
4c9e869ea3
commit
21888c5f50
14 changed files with 51 additions and 31 deletions
|
|
@ -2080,13 +2080,13 @@ static int snd_pcm_open_conf(snd_pcm_t **pcmp, const char *name,
|
|||
build_in++;
|
||||
}
|
||||
if (*build_in == NULL) {
|
||||
buf1 = malloc(strlen(str) + sizeof(PKGLIBDIR) + 32);
|
||||
buf1 = malloc(strlen(str) + sizeof(ALSA_PLUGIN_DIR) + 32);
|
||||
if (buf1 == NULL) {
|
||||
err = -ENOMEM;
|
||||
goto _err;
|
||||
}
|
||||
lib = buf1;
|
||||
sprintf(buf1, "%s/libasound_module_pcm_%s.so", PKGLIBDIR, str);
|
||||
sprintf(buf1, "%s/libasound_module_pcm_%s.so", ALSA_PLUGIN_DIR, str);
|
||||
}
|
||||
}
|
||||
#ifndef PIC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue