mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-24 01:40:07 -05:00
rewrite with AC_SEARCH_LIBS
This commit is contained in:
parent
e855b2cb31
commit
ca60f90480
1 changed files with 3 additions and 12 deletions
15
configure.ac
15
configure.ac
|
|
@ -255,19 +255,10 @@ AC_ARG_WITH(libdl,
|
||||||
[ have_libdl="$withval" ], [ have_libdl="yes" ])
|
[ have_libdl="$withval" ], [ have_libdl="yes" ])
|
||||||
HAVE_LIBDL=
|
HAVE_LIBDL=
|
||||||
if test "$have_libdl" = "yes"; then
|
if test "$have_libdl" = "yes"; then
|
||||||
case $host_os in
|
AC_SEARCH_LIBS([dlsym], [dl], [HAVE_LIBDL="yes"])
|
||||||
netbsd* | freebsd* | dragonfly* | openbsd*)
|
if test "$HAVE_LIBDL" = "yes" ; then
|
||||||
HAVE_LIBDL=yes
|
|
||||||
AC_DEFINE([HAVE_LIBDL], 1, [Have libdl])
|
AC_DEFINE([HAVE_LIBDL], 1, [Have libdl])
|
||||||
;;
|
fi
|
||||||
*)
|
|
||||||
AC_CHECK_LIB([dl], [dlsym], [HAVE_LIBDL="yes"])
|
|
||||||
if test "$HAVE_LIBDL" = "yes" ; then
|
|
||||||
ALSA_DEPLIBS="$ALSA_DEPLIBS -ldl"
|
|
||||||
AC_DEFINE([HAVE_LIBDL], 1, [Have libdl])
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue