Debian Codegraph @

texk/xdvik/m4/xdvi-sys-streams.m4

raw
1 # Autoconf macros for xdvik.
2 # Copyright (C) 1999 - 2009 Paul Vojta <[email protected]>
3 #
4 # This file is free software; the copyright holder
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # XDVI_SYS_STREAMS
9 # ----------------
10 # Check for at-least-pretend Streams capability.
11 AC_DEFUN([XDVI_SYS_STREAMS],
12 [AC_CACHE_CHECK([for stropts.h and isastream()],
13 [xdvi_cv_sys_streams],
14 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stropts.h>]],
15 [[#ifndef I_SETSIG
16 choke me
17 #else
18 isastream(0);
19 #endif]])],
20 [xdvi_cv_sys_streams=yes],
21 [xdvi_cv_sys_streams=no])])
22 if test "x$xdvi_cv_sys_streams" = xyes; then
23 AC_DEFINE([HAVE_STREAMS], 1, [Define if your system has STREAMS (and if X uses it).])
24 fi
25 ]) # XDVI_SYS_STREAMS