From mboxrd@z Thu Jan 1 00:00:00 1970 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) To: randolph@tausq.org Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfa] configure check for curses library Date: Sun, 16 May 2004 08:06:00 -0000 Message-id: <20040516080546.468724B104@berman.michael-chastain.com> X-SW-Source: 2004-05/msg00459.html > 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