$NetBSD: patch-ab,v 1.9 2002/10/08 11:50:04 jlam Exp $

--- cda_d/Imakefile.orig	Mon Jul 16 12:52:16 2001
+++ cda_d/Imakefile	Mon Jul 23 14:43:24 2001
@@ -50,7 +50,7 @@
 DEFINES= -DBSDCOMPAT -DUSE_TERMIOS
 #else
 #if defined(NetBSDArchitecture)
-DEFINES= -DBSDCOMPAT -DNOVISUAL -DUSE_TERMIOS
+DEFINES= -DBSDCOMPAT -DUSE_TERMIOS
 #else
 #if defined(__bsdi__)
 .if exists(/usr/include/ncurses.h)
@@ -120,11 +120,12 @@
 .endif
 #else
 #if defined(NetBSDArchitecture)
-LOCAL_LIBRARIES=
+LOCAL_LIBRARIES= ${MOTIFLIB} XawClientLibs
+LOCAL_LIBRARIES+=-lncurses
 #else
 #if defined(__bsdi__)
 .if exists(/usr/include/ncurses.h)
-LOCAL_LIBRARIES=-lncurses
+LOCAL_LIBRARIES=-I${LOCALBASE}/include -L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib -lncurses
 .else
 LOCAL_LIBRARIES=
 .endif
