--- configure.orig	Tue Nov 23 02:13:12 1999
+++ configure	Thu Dec  2 15:17:16 1999
@@ -3579,6 +3579,7 @@
 
 case $host_os in #(vi
 freebsd*)
+if test "${with_ncurses+set}" = set; then
 	# This is only necessary if you are linking against an obsolete
 	# version of ncurses (but it should do no harm, since it's static).
 	echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
@@ -3621,6 +3622,7 @@
   echo "$ac_t""no" 1>&6
 fi
 
+fi
 	;;
 esac
 
