This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfa] configure check for curses library
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: randolph at tausq dot org
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 16 May 2004 04:05:46 -0400 (EDT)
- Subject: Re: [patch/rfa] configure check for curses library
> so i guess my fix is not really correct; we should make configure use
> the correct header. But how?
We had a similar discussion about alpha*-dec-osf5.1 recently.
I think the right approach is to use 'curses' by default and
let the user specify a --with-curses option if their curses library
is located somewhere else. Perhaps --with-curses-header=...
and --with-curses-library=....
configure will never be smart enough to distinguish all the cases
of which curses library is installed and whether it is correctly
installed. Plus there are cases where the user actually wants to
specify their own specific curses library (like I build ncurses 5.4
from source and I want to use that).
Daniel J pointed out that one can override CPPFLAGS and LDFLFAGS
to get this effect, and I filed a PR that this mechanism does
not work.
Michael C