summaryrefslogtreecommitdiff
path: root/bin/bbackupquery
diff options
context:
space:
mode:
authorMartin Ebourne <martin@ebourne.me.uk>2006-01-04 00:31:49 +0000
committerMartin Ebourne <martin@ebourne.me.uk>2006-01-04 00:31:49 +0000
commitbf4817a8f69bc96a62e2c916011c2f4fab89fee8 (patch)
tree5f2594c7d9af0fff2bdaa9f5080f71abe59fb05f /bin/bbackupquery
parent2f1076aa7e8c531ec7e4405965753d204aa7a242 (diff)
Rewrite configure check for readline lib to match libraries to headers and be more selective.
Also changes --enable-gnu-readline which intentionally used to prefer editline over readline even when specified (for licence goodness), to now prefer readline if requested. This is probably less confusing to a user.
Diffstat (limited to 'bin/bbackupquery')
-rw-r--r--bin/bbackupquery/bbackupquery.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bbackupquery/bbackupquery.cpp b/bin/bbackupquery/bbackupquery.cpp
index d76664fb..629f0eeb 100644
--- a/bin/bbackupquery/bbackupquery.cpp
+++ b/bin/bbackupquery/bbackupquery.cpp
@@ -15,6 +15,8 @@
#ifdef HAVE_LIBREADLINE
#ifdef HAVE_READLINE_READLINE_H
#include <readline/readline.h>
+ #elif defined(HAVE_EDITLINE_READLINE_H)
+ #include <editline/readline.h>
#elif defined(HAVE_READLINE_H)
#include <readline.h>
#endif