1 AC_DEFUN([GST_CHECK_FIONREAD], [
3 AC_MSG_CHECKING(for FIONREAD in sys/ioctl.h)
4 AC_CACHE_VAL(_cv_gst_fionread_in_sys_ioctl, [
12 ], _cv_gst_fionread_in_sys_ioctl="yes",_cv_gst_fionread_in_sys_ioctl="no")
15 AC_MSG_RESULT($_cv_gst_fionread_in_sys_ioctl)
17 if test "$_cv_gst_fionread_in_sys_ioctl" = "yes"; then
18 AC_DEFINE([HAVE_FIONREAD_IN_SYS_IOCTL], 1, [FIONREAD ioctl found in sys/ioclt.h])
22 AC_MSG_CHECKING(for FIONREAD in sys/filio.h)
23 AC_CACHE_VAL(_cv_gst_fionread_in_sys_filio, [
25 #include <sys/types.h>
26 #include <sys/filio.h>
31 ], _cv_gst_fionread_in_sys_filio="yes",_cv_gst_fionread_in_sys_filio="no")
34 AC_MSG_RESULT($_cv_gst_fionread_in_sys_filio)
36 if test "$_cv_gst_fionread_in_sys_filio" = "yes"; then
37 AC_DEFINE([HAVE_FIONREAD_IN_SYS_FILIO], 1, [FIONREAD ioctl found in sys/filio.h])