aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2015-01-19 16:34:29 +0100
committerJoel Brobecker <brobecker@adacore.com>2015-01-19 16:35:11 +0100
commit63413d85873c450fa4ed2494f21fb1a65bdaf554 (patch)
tree53d1be7fc9e9447ab0575c712babb896ce4f6c21 /gdb/configure
parent1f99f6d0689d20db44c0c7d88e8af1ebe900d187 (diff)
downloadgdb-63413d85873c450fa4ed2494f21fb1a65bdaf554.zip
gdb-63413d85873c450fa4ed2494f21fb1a65bdaf554.tar.gz
gdb-63413d85873c450fa4ed2494f21fb1a65bdaf554.tar.bz2
Don't use windows-termcap.c when linking against a curses library
gdb/ 2015-01-17 Eli Zaretskii <eliz@gnu.org> * configure.ac [*mingw32*]: Only add windows-termcap.o to CONFIG_OBS if not building with a curses library. * configure: Regenerate. * windows-termcap.c: Include defs.h. Make the whole body empty if either one of HAVE_CURSES_H or HAVE_NCURSES_H or HAVE_NCURSES_NCURSES_H is defined.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/configure b/gdb/configure
index f62d5a0..fb2480c 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -7188,9 +7188,10 @@ case $host_os in
ac_cv_search_tgetent="none required"
;;
*mingw32*)
- ac_cv_search_tgetent="none required"
- CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
- ;;
+ if test x"$prefer_curses" != xyes; then
+ ac_cv_search_tgetent="none required"
+ CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
+ fi ;;
esac
# These are the libraries checked by Readline.