From 0c5a964e63f31c989943b9bbe461561bba4414f2 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 23 Apr 2010 07:29:39 +0000 Subject: [PATCH] Support NetBSD 6 which will now have its own terminfo (yay). --- configure | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 307164b6..68436797 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: configure,v 1.49 2010-04-05 22:28:25 nicm Exp $ +# $Id: configure,v 1.50 2010-04-23 07:29:39 nicm Exp $ # # Copyright (c) 2009 Nicholas Marriott # @@ -234,7 +234,6 @@ EOF NetBSD) cat <>$CONFIG_H #define HAVE_ASPRINTF -#define HAVE_BROKEN_CURSES_H #define HAVE_BZERO #define HAVE_DAEMON #define HAVE_FGETLN @@ -250,10 +249,23 @@ EOF #define HAVE_UTIL_H #define HAVE_U_INT EOF - cat <>$CONFIG_MK + # NetBSD-6 has its own terminfo implementation + if test -f /lib/libterminfo.so; then + cat <>$CONFIG_MK +LIBS+= -lterminfo +EOF + else + cat <>$CONFIG_MK CPPFLAGS+= -I/usr/pkg/include LDFLAGS+= -L/usr/pkg/lib -LIBS+= -lncurses -lcrypt -lutil -levent +LIBS+= -lncurses +EOF + cat <>$CONFIG_H +#define HAVE_BROKEN_CURSES_H +EOF + fi + cat <>$CONFIG_MK +LIBS+= -lcrypt -lutil -levent SRCS+= osdep-netbsd.c \ compat/strtonum.c \ compat/vis.c \