pkgsrc/x11/wterm/patches/patch-ac
bouyer c3966e4795 Add explicit --enable-transparency to configure args.
Add a check for openpty() in libutil in configure, instead of hardcoding it.
2002-10-27 13:44:19 +00:00

19 lines
503 B
Text

$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,