Eugene Lee writes:
> When I built ncurses-5.2, I set the installation prefix to /usr/local.
> The libraries are in /usr/local/lib, which I expect. But the header
> files are grouped into a /usr/local/include/ncurses directory. The
> configure script for mutt-1.2.5i can't figure this out --- or maybe I
> can't figure out how to set --with-curses=DIR. Is there a nice way to
> this work? Or is it time to hack the configure script? Any suggestions
> are welcome!
Unless TED has a better suggestion :-)
--- configure.in.orig Wed Jun 13 06:30:17 2001
+++ configure.in Mon Jun 18 16:53:06 2001
@@ -173,7 +173,11 @@
fi
if test x$mutt_cv_curses != x/usr; then
LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
- CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
+ if test -d $mutt_cv_curses/include/ncurses; then
+ CPPFLAGS="$CPPFLAGS
+-I${mutt_cv_curses}/include/ncurses"
+ else
+ CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
+ fi
fi])
for cf_ncurses in ncurses ncursesw unknown