Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8522

Modified Files:
        configure 
Log Message:
Support NetBSD 6 which will now have its own terminfo (yay).



Index: configure
===================================================================
RCS file: /cvsroot/tmux/tmux/configure,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- configure   5 Apr 2010 22:28:25 -0000       1.49
+++ configure   23 Apr 2010 07:29:39 -0000      1.50
@@ -234,7 +234,6 @@
     NetBSD)
        cat <<EOF >>$CONFIG_H
 #define HAVE_ASPRINTF
-#define HAVE_BROKEN_CURSES_H
 #define HAVE_BZERO
 #define HAVE_DAEMON
 #define HAVE_FGETLN
@@ -250,10 +249,23 @@
 #define HAVE_UTIL_H
 #define HAVE_U_INT
 EOF
-       cat <<EOF >>$CONFIG_MK
+       # NetBSD-6 has its own terminfo implementation
+       if test -f /lib/libterminfo.so; then
+           cat <<EOF >>$CONFIG_MK
+LIBS+= -lterminfo
+EOF
+       else
+           cat <<EOF >>$CONFIG_MK
 CPPFLAGS+= -I/usr/pkg/include
 LDFLAGS+= -L/usr/pkg/lib
-LIBS+= -lncurses -lcrypt -lutil -levent
+LIBS+= -lncurses
+EOF
+           cat <<EOF >>$CONFIG_H
+#define HAVE_BROKEN_CURSES_H
+EOF
+       fi
+       cat <<EOF >>$CONFIG_MK
+LIBS+= -lcrypt -lutil -levent
 SRCS+= osdep-netbsd.c \
        compat/strtonum.c \
        compat/vis.c \


------------------------------------------------------------------------------
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to