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