fixes to be able to use libedit instead of readline; see also bug #448408

--- a/configure.ac
+++ b/configure.ac
@@ -334,8 +334,8 @@ AC_CHECK_LIB(md5, MD5Init, , 
   AC_CHECK_LIB(md, MD5Init))
 AC_CHECK_FUNCS(MD5Init)
 dnl HMS: What a hack...
-AC_CHECK_HEADERS(readline/history.h readline/readline.h)
-case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
+AC_CHECK_HEADERS(editline/history.h editline/readline.h)
+case "$ac_cv_header_editline_history_h$ac_cv_header_editline_readline_h" in
  *no*) ;;
  *) save_LIBS=$LIBS
     LIBS=
--- a/ntpdc/ntpdc.c
+++ b/ntpdc/ntpdc.c
@@ -27,8 +27,8 @@
 #endif /* SYS_WINNT */
 
 #if defined(HAVE_LIBREADLINE) || defined (HAVE_LIBEDIT)
-# include <readline/readline.h>
-# include <readline/history.h>
+# include <editline/readline.h>
+# include <editline/history.h>
 #endif /* HAVE_LIBREADLINE || HAVE_LIBEDIT */
 
 #ifdef SYS_VXWORKS
--- a/ntpq/ntpq.c
+++ b/ntpq/ntpq.c
@@ -31,8 +31,8 @@
 #endif /* SYS_WINNT */
 
 #if defined(HAVE_LIBREADLINE) || defined(HAVE_LIBEDIT)
-# include <readline/readline.h>
-# include <readline/history.h>
+# include <editline/readline.h>
+# include <editline/history.h>
 #endif /* HAVE_LIBREADLINE || HAVE_LIBEDIT */
 
 #ifdef SYS_VXWORKS

