configure: Check for socketpair() in -lsocket too

On e.g. QNX it is in an external library, not libc.

https://bugzilla.gnome.org/show_bug.cgi?id=754875
This commit is contained in:
Igor Rondarev 2015-09-11 17:58:48 +03:00 committed by Sebastian Dröge
parent eb88486288
commit 6972e7a926
2 changed files with 9 additions and 0 deletions

View file

@ -620,6 +620,14 @@ AC_CHECK_FUNCS([poll])
AC_CHECK_FUNCS([ppoll])
AC_CHECK_FUNCS([pselect])
dnl check for socketpair()
AC_CHECK_FUNC(socketpair, [], [
AC_CHECK_LIB(socket, socketpair, [
SOCKET_LIBS="-lsocket"
AC_SUBST(SOCKET_LIBS)
])
])
dnl ****************************************
dnl *** GLib POLL* compatibility defines ***
dnl ****************************************

View file

@ -151,6 +151,7 @@ libgstreamer_@GST_API_VERSION@_la_LIBADD = \
$(GST_PRINTF_LA) \
$(GST_ALL_LIBS) \
$(WIN32_LIBS) \
$(SOCKET_LIBS) \
$(LIBM)
libgstreamer_@GST_API_VERSION@_la_LDFLAGS = \