summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvik/m4/xdvi-sys-streams.m4
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/xdvik/m4/xdvi-sys-streams.m4')
-rw-r--r--Build/source/texk/xdvik/m4/xdvi-sys-streams.m429
1 files changed, 19 insertions, 10 deletions
diff --git a/Build/source/texk/xdvik/m4/xdvi-sys-streams.m4 b/Build/source/texk/xdvik/m4/xdvi-sys-streams.m4
index 2548c5d96c4..b347b4d9223 100644
--- a/Build/source/texk/xdvik/m4/xdvi-sys-streams.m4
+++ b/Build/source/texk/xdvik/m4/xdvi-sys-streams.m4
@@ -1,16 +1,25 @@
-dnl ### Check for at-least-pretend Streams capability
+# Autoconf macros for xdvik.
+# Copyright (C) 1999 - 2009 Paul Vojta <xdvi-core@lists.sourceforge.net>
+#
+# This file is free software; the copyright holder
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+# XDVI_SYS_STREAMS
+# ----------------
+# Check for at-least-pretend Streams capability.
AC_DEFUN([XDVI_SYS_STREAMS],
-[AC_CACHE_CHECK([for stropts.h and isastream()], xdvi_cv_sys_streams,
-[AC_TRY_LINK(
-[#include <stropts.h>
-], [#ifndef I_SETSIG
+[AC_CACHE_CHECK([for stropts.h and isastream()],
+ [xdvi_cv_sys_streams],
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stropts.h>]],
+ [[#ifndef I_SETSIG
choke me
#else
isastream(0);
-#endif], xdvi_cv_sys_streams=yes, xdvi_cv_sys_streams=no)])
-if test $xdvi_cv_sys_streams = yes; then
+#endif]])],
+ [xdvi_cv_sys_streams=yes],
+ [xdvi_cv_sys_streams=no])])
+if test "x$xdvi_cv_sys_streams" = xyes; then
AC_DEFINE([HAVE_STREAMS], 1, [Define if your system has STREAMS (and if X uses it).])
-fi])
-
-
+fi
+]) # XDVI_SYS_STREAMS