--- Imakefile.orig	2009-01-12 06:30:54.603258900 +0900
+++ Imakefile	2009-01-12 06:45:23.991164903 +0900
@@ -13,6 +13,17 @@
       XPOLL_DEF = -DNO_XPOLL_H
 #endif
 
+#ifdef USE_XAW3DLIB
+#undef XawClientLibs
+#define XawClientLibs	-lXaw3d $(XMULIB) $(XTOOLLIB) $(XLIB)
+#endif
+
+#ifdef USE_NEXTAWLIB
+#undef XawClientLibs
+#define XawClientLibs	-lneXtaw $(XMULIB) $(XTOOLLIB) $(XLIB)
+#endif
+
+
 /*
  * add -DWTMP and -DLASTLOG if you want them.
  */
@@ -72,7 +83,7 @@
 #endif
 #endif
 
-     TERMCAPLIB = TermcapLibrary
+     TERMCAPLIB = TermcapLibrary -lutil
 
 AllTarget($(PROGRAMS))
 
