This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] sim: erc32: fix linking against local readline on modern (ncurses) systems
On Fri, Dec 30, 2011 at 05:18, Joel Brobecker wrote:
>> 2011-12-30 ?Mike Frysinger ?<vapier@gentoo.org>
>>
>> ? ? ? * configure.ac: Change AC_CHECK_LIB to AC_SEARCH_LIBS, and add
>> ? ? ? ncurses/curses to the library search list.
>> ? ? ? * configure: Regenerated.
> [...]
>> - ?AC_CHECK_LIB(termcap, main, TERMCAP=-ltermcap, TERMCAP="")
>> + ?AC_SEARCH_LIBS(tputs, ncurses curses termcap,
>> + ? ?[TERMCAP=$ac_cv_search_tputs], [TERMCAP=""])
>
> Is this going to hurt on non-GNU/Linux systems? In particular,
> you have chosen an order that is different from the order selected
> in GDB:
i hadn't noticed GDB had a test for it. i'm fine with keeping the two in sync.
maybe extract the termcap m4 code out of gdb and put into a new m4
file in the top level config/ dir ? that way we'd know the two trees
would stay in sync.
-mike