mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
test FIONREAD ioctl presence in an alternate header for Solaris 10 (and perhaps earlier versions)
Original commit message from CVS: test FIONREAD ioctl presence in an alternate header for Solaris 10 (and perhaps earlier versions)
This commit is contained in:
parent
46a2167e88
commit
ae2727b00b
2 changed files with 45 additions and 0 deletions
|
@ -95,6 +95,9 @@ if test "x$GST_CVS" = "xyes"; then
|
|||
AC_DEFINE(GST_LEVEL_DEFAULT, GST_LEVEL_ERROR, [Default errorlevel to use])
|
||||
fi
|
||||
|
||||
dnl Check for FIONREAD ioctl declaration :
|
||||
HAVE_FIONREAD()
|
||||
|
||||
dnl ############################################
|
||||
dnl # Super Duper options for plug-in building #
|
||||
dnl ############################################
|
||||
|
|
42
m4/gst-fionread.m4
Normal file
42
m4/gst-fionread.m4
Normal file
|
@ -0,0 +1,42 @@
|
|||
AC_DEFUN([HAVE_FIONREAD], [
|
||||
|
||||
AC_MSG_CHECKING(for FIONREAD in sys/ioctl.h)
|
||||
AC_CACHE_VAL(GST_FIONREAD_IN_SYS_IOCTL, [
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
], [
|
||||
int x = FIONREAD;
|
||||
if ( x )
|
||||
return 0;
|
||||
], GST_FIONREAD_IN_SYS_IOCTL="yes",GST_FIONREAD_IN_SYS_IOCTL="no")
|
||||
])
|
||||
|
||||
AC_MSG_RESULT($GST_FIONREAD_IN_SYS_IOCTL)
|
||||
|
||||
if test "$GST_FIONREAD_IN_SYS_IOCTL" = "yes"; then
|
||||
AC_DEFINE([FIONREAD_IN_SYS_IOCTL], 1, [FIONREAD ioctl found in sys/ioclt.h])
|
||||
|
||||
else
|
||||
|
||||
AC_MSG_CHECKING(for FIONREAD in sys/filio.h)
|
||||
AC_CACHE_VAL(GST_FIONREAD_IN_SYS_FILIO, [
|
||||
AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/filio.h>
|
||||
], [
|
||||
int x = FIONREAD;
|
||||
if ( x )
|
||||
return 0;
|
||||
], GST_FIONREAD_IN_SYS_FILIO="yes",GST_FIONREAD_IN_SYS_FILIO="no")
|
||||
])
|
||||
|
||||
AC_MSG_RESULT($GST_FIONREAD_IN_SYS_FILIO)
|
||||
|
||||
if test "$GST_FIONREAD_IN_SYS_FILIO" = "yes"; then
|
||||
AC_DEFINE([FIONREAD_IN_SYS_FILIO], 1, [FIONREAD ioctl found in sys/filio.h])
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
])
|
Loading…
Reference in a new issue