mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-05 06:05:53 +00:00
decklink: Check for pthread.h and link with -lpthread
This commit is contained in:
parent
2f74b2d90e
commit
7a9aba912f
13
configure.ac
13
configure.ac
|
@ -710,16 +710,23 @@ AG_GST_CHECK_FEATURE(DC1394, [libdc1394], dc1394, [
|
||||||
dnl *** decklink ***
|
dnl *** decklink ***
|
||||||
translit(dnm, m, l) AM_CONDITIONAL(USE_DECKLINK, true)
|
translit(dnm, m, l) AM_CONDITIONAL(USE_DECKLINK, true)
|
||||||
AG_GST_CHECK_FEATURE(DECKLINK, [decklink], decklink, [
|
AG_GST_CHECK_FEATURE(DECKLINK, [decklink], decklink, [
|
||||||
|
HAVE_DECKLINK=no
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-*linux*)
|
*-*linux*)
|
||||||
HAVE_DECKLINK=yes
|
if test "x$HAVE_PTHREAD_H" = "xyes"; then
|
||||||
|
AC_CHECK_LIB(dl, dlopen,
|
||||||
|
[
|
||||||
|
HAVE_DECKLINK=yes
|
||||||
|
DECKLINK_CXXFLAGS=
|
||||||
|
DECKLINK_LIBS="-lpthread -ldl"
|
||||||
|
])
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
HAVE_DECKLINK=no
|
HAVE_DECKLINK=no
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
DECKLINK_CXXFLAGS=
|
|
||||||
DECKLINK_LIBS=
|
|
||||||
AC_SUBST(DECKLINK_CXXFLAGS)
|
AC_SUBST(DECKLINK_CXXFLAGS)
|
||||||
AC_SUBST(DECKLINK_LIBS)
|
AC_SUBST(DECKLINK_LIBS)
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue