Allow build without libdl and libpthread

Allow building alsa-lib without libdl and libpthread.
Added new options to configure, --with-libdl and --with-pthread.
This commit is contained in:
Takashi Iwai 2007-03-22 00:48:18 +01:00
parent 9a75eec664
commit 70e4ec9d08
21 changed files with 118 additions and 25 deletions

View file

@ -29,7 +29,6 @@
*/
#include <inttypes.h>
#include <byteswap.h>
#include <dlfcn.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "pcm_rate.h"
@ -1326,7 +1325,7 @@ int snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name, snd_pcm_format_t sform
free(rate);
return -ENOENT;
}
open_func = dlsym(h, open_name);
open_func = snd_dlsym(h, open_name, NULL);
if (! open_func) {
SNDERR("Cannot find function %s", open_name);
snd_dlclose(h);