$NetBSD: patch-am,v 1.2 2011/11/30 21:22:41 wiz Exp $ --- configure.orig 2011-08-22 22:03:55.000000000 +0000 +++ configure @@ -7706,6 +7706,9 @@ echo "$ac_t""$cf_cv_ncurses_h2" 1>&6 if test -n "$cf_1st_incdir" ; then for cf_add_incdir in $cf_1st_incdir do + if ! [ -d $cf_add_incdir ]; then + continue; + fi while test $cf_add_incdir != /usr/include do if test -d $cf_add_incdir @@ -8803,7 +8806,6 @@ printf("%s\n", NCURSES_VERSION); #ifdef __NCURSES_H printf("old\n"); #else - make an error #endif #endif