aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2007-09-03 19:00:16 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2007-09-03 19:00:16 +0000
commit6a30b0a545185ae9b6b69744a64f3ff76312470a (patch)
tree0e9f7d88eb6fd4faa0a611b3ae55d0be9adf4444 /gdb/configure.ac
parentedff0c0a1d4dfa3bbad4a8f3bf954e86419e8067 (diff)
downloadgdb-6a30b0a545185ae9b6b69744a64f3ff76312470a.zip
gdb-6a30b0a545185ae9b6b69744a64f3ff76312470a.tar.gz
gdb-6a30b0a545185ae9b6b69744a64f3ff76312470a.tar.bz2
* configure.ac: Accept --with-system-readline.
(READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute. * configure: Regenerate. * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use substituted values. (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 651f7b9..4fdf416 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -335,6 +335,23 @@ if test "$ac_cv_search_tgetent" = no; then
AC_MSG_ERROR([no termcap library found])
fi
+AC_ARG_WITH([system-readline],
+ [AS_HELP_STRING([--with-system-readline],
+ [use installed readline library])])
+
+if test "$with_system_readline" = yes; then
+ READLINE=-lreadline
+ READLINE_DEPS=
+ READLINE_CFLAGS=
+else
+ READLINE='$(READLINE_DIR)/libreadline.a'
+ READLINE_DEPS='$(READLINE)'
+ READLINE_CFLAGS='-I$(READLINE_SRC)/..'
+fi
+AC_SUBST(READLINE)
+AC_SUBST(READLINE_DEPS)
+AC_SUBST(READLINE_CFLAGS)
+
AC_LIB_HAVE_LINKFLAGS([expat], [], [#include "expat.h"],
[XML_Parser p = XML_ParserCreate (0);])
if test "$HAVE_LIBEXPAT" != yes; then