diff options
author | SASANO Takayoshi <uaa@uaa.org.uk> | 2023-01-03 11:13:19 +0900 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2023-01-29 19:00:59 +0100 |
commit | fea9fc229892695afa4e41598ebb79ea58ffb4b2 (patch) | |
tree | b77024594d22a5326a5c49c6d818f3a645398c92 | |
parent | 2f9bbefb8d2a9766810eee3a80bdce4ec813f45a (diff) | |
download | alsa-lib-fea9fc229892695afa4e41598ebb79ea58ffb4b2.tar.gz |
configure: avoid libdl detecion on *BSD
NetBSD and OpenBSD has no libdl
FreeBSD and DragonFlyBSD has libdl but dummy
These OSes are no need to use -ldl to use dlopen()
Fixes: https://github.com/alsa-project/alsa-lib/pull/290
Signed-off-by: SASANO Takayoshi <uaa@uaa.org.uk>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | configure.ac | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 3989a743..ff82c6e8 100644 --- a/configure.ac +++ b/configure.ac @@ -255,9 +255,8 @@ AC_ARG_WITH(libdl, [ have_libdl="$withval" ], [ have_libdl="yes" ]) HAVE_LIBDL= if test "$have_libdl" = "yes"; then - AC_CHECK_LIB([dl], [dlsym], [HAVE_LIBDL="yes"]) + AC_SEARCH_LIBS([dlsym], [dl], [HAVE_LIBDL="yes"]) if test "$HAVE_LIBDL" = "yes" ; then - ALSA_DEPLIBS="$ALSA_DEPLIBS -ldl" AC_DEFINE([HAVE_LIBDL], 1, [Have libdl]) fi else |