[v2] configure.ac: Cygwin now has ncurses not termcap. Use standard logic.
Commit Message
sim/erc32/Changelog:
2018-10-25 Joel Sherrill <joel@rtems.org>
* configure.ac: Cygwin has removed libtermcap.a and now has
libncurses.a. Remove the Cygwin specific hack and use the standard
logic to determine which library to use.
* configure: Regenerate.
---
sim/erc32/ChangeLog | 7 +++++++
sim/erc32/configure | 10 +++++-----
sim/erc32/configure.ac | 9 ++++-----
3 files changed, 16 insertions(+), 10 deletions(-)
Comments
Merged:
https://sourceware.org/ml/gdb-patches/2018-10/msg00715.html
Thanks,
Pedro Alves
On Tue, Oct 30, 2018 at 12:29 PM Pedro Alves <palves@redhat.com> wrote:
> Merged:
> https://sourceware.org/ml/gdb-patches/2018-10/msg00715.html
>
>
Thank you. I realized I had been asked to revise the commit message and then
sent the updated patch to the RTEMS patch list. Which didn't help with a
gdb patch. :)
--joel
> Thanks,
> Pedro Alves
>
@@ -1,3 +1,10 @@
+2018-10-25 Joel Sherrill <joel@rtems.org>
+
+ * configure.ac: Cygwin has removed libtermcap.a and now has
+ libncurses.a. Remove the Cygwin specific hack and use the standard
+ logic to determine which library to use.
+ * configure: Regenerate.
+
2017-09-06 John Baldwin <jhb@FreeBSD.org>
* configure: Regenerate.
@@ -13548,11 +13548,9 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_os_cygwin" >&5
$as_echo "$sim_cv_os_cygwin" >&6; }
-if test x$sim_cv_os_cygwin = xyes; then
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
-else
- # Keep in sync with gdb's configure.ac list.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
+
+# Keep in sync with gdb's configure.ac list.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
$as_echo_n "checking for library containing tgetent... " >&6; }
if ${ac_cv_search_tgetent+:} false; then :
$as_echo_n "(cached) " >&6
@@ -13610,6 +13608,8 @@ else
TERMCAP=""
fi
+if test x$sim_cv_os_cygwin = xyes; then
+ TERMCAP="${TERMCAP} -luser32"
fi
@@ -26,12 +26,11 @@ AC_CACHE_CHECK([for cygwin], sim_cv_os_cygwin,
lose
#endif],[sim_cv_os_cygwin=yes],[sim_cv_os_cygwin=no])])
+# Keep in sync with gdb's configure.ac list.
+AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],
+ [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])
if test x$sim_cv_os_cygwin = xyes; then
- TERMCAP='`if test -r ../../libtermcap/libtermcap.a; then echo ../../libtermcap/libtermcap.a; else echo -ltermcap; fi` -luser32'
-else
- # Keep in sync with gdb's configure.ac list.
- AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncurses],
- [TERMCAP=$ac_cv_search_tgetent], [TERMCAP=""])
+ TERMCAP="${TERMCAP} -luser32"
fi
AC_SUBST(TERMCAP)