[BACK]Return to patch-am CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / news / tin / patches

File: [cvs.NetBSD.org] / pkgsrc / news / tin / patches / Attic / patch-am (download)

Revision 1.1, Thu Feb 25 16:05:57 2010 UTC (14 years, 1 month ago) by drochner
Branch: MAIN
CVS Tags: pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1

fix a configure check which could easily get into an endless loop,
and remove a pointless test for a __NCURSES_H symbol in the curses header,
now this can build against NetBSD's wide curses

$NetBSD: patch-am,v 1.1 2010/02/25 16:05:57 drochner Exp $

--- configure.orig	2009-02-11 20:29:48.000000000 +0000
+++ configure
@@ -7996,6 +7996,9 @@ test "$cf_cv_curses_dir" != "no" && { \
 if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
   for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
   do
+    if ! [ -d $cf_add_incdir ]; then
+      continue;
+    fi
 	while test $cf_add_incdir != /usr/include
 	do
 	  if test -d $cf_add_incdir
@@ -8093,7 +8096,6 @@ printf("%s\n", NCURSES_VERSION);
 #ifdef __NCURSES_H
 printf("old\n");
 #else
-	make an error
 #endif
 #endif