$NetBSD$

--- telnet/configure.orig	1998-12-11 01:07:03.000000000 +0000
+++ telnet/configure
@@ -2428,7 +2428,7 @@ case "${host}" in
 EOF
 
     ;;
-  *bsd*)
+  *bsd* | dragonfly*)
     cat >> confdefs.h <<EOF
 #define DEFAULT_IM "\r\n${version_num}BSD UNIX (%h) (%t)\r\n\r\r\n\r"
 EOF
@@ -2539,7 +2539,7 @@ EOF
 esac
 
 case "${host}" in
-  *bsd* | *unicos* | *reno* | *tahoe*)
+  *bsd* | *unicos* | *reno* | *tahoe* | dragonfly*)
     cat >> confdefs.h <<\EOF
 #define LINEMODE 1
 EOF
@@ -2566,7 +2566,7 @@ EOF
 esac
 
 case "${host}" in
-  *bsd* | *reno* | *unicos6* | *sunos4* | *solaris2* | *linux* | *ultrix* | *irix* | *osf* | *hpux*)
+  *bsd* | *reno* | *unicos6* | *sunos4* | *solaris2* | *linux* | *ultrix* | *irix* | *osf* | *hpux* | dragonfly*)
     cat >> confdefs.h <<\EOF
 #define USE_TERMIO 1
 EOF
@@ -2612,7 +2612,7 @@ EOF
 EOF
 
     fi;;
-  *bsd* | *reno* | *tahoe* | *solaris2* | *linux* | *hpux* | *dynix* | *osf* | *next*)
+  *bsd* | *reno* | *tahoe* | *solaris2* | *linux* | *hpux* | *dynix* | *osf* | *next* | dragonfly*)
     if test "$enable_loginf" = "no"
     then
       cat >> confdefs.h <<\EOF
@@ -2653,7 +2653,7 @@ EOF
 EOF
 
     ;;
-  *bsd* | *reno* | *tahoe* | *unicos7-9* | *sunos4* | *solaris2* | *linux* | *dynix* | *osf* | *next* | *convex*)
+  *bsd* | *reno* | *tahoe* | *unicos7-9* | *sunos4* | *solaris2* | *linux* | *dynix* | *osf* | *next* | *convex* | dragonfly*)
     ;;
   *)
     cat >> confdefs.h <<\EOF
