summaryrefslogtreecommitdiff
path: root/x11/wterm/patches/patch-ac
blob: 86e9114abdf845792b3888d023a2de8e6593c891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ac,v 1.1 2002/10/27 13:44:20 bouyer Exp $

--- autoconf/configure.in.orig	Wed Oct 16 18:31:29 2002
+++ autoconf/configure.in	Wed Oct 16 18:46:43 2002
@@ -381,8 +381,14 @@
 	unsetenv \
 	setutent \
 	seteuid \
+	openpty \
 )
 
+if test $ac_cv_func_openpty = no; then
+    # not in libc, check for libutil
+    AC_CHECK_LIB(util, openpty, [LIBS="$LIBS -lutil"; break])
+fi
+
 dnl# check for host field in utmp structure
 
 AC_CACHE_CHECK(for host in utmp struct, wterm_cv_struct_utmp_host,