Here's a patch that fixes the compilation error when disabling readline on
OSX (and possibly non-OSX as well?).
Regards,
Elias
Index: src/Input.cc
===================================================================
--- src/Input.cc (revision 392)
+++ src/Input.cc (working copy)
@@ -110,6 +110,7 @@
void
Input::init(bool do_read_history)
{
+#if HAVE_LIBREADLINE
if (use_readline)
{
rl_readline_name = strdup("GnuAPL");
@@ -123,6 +124,7 @@
rl_startup_hook = (rl_hook_func_t *)(Input::init_readline_control_C);
// rl_function_dumper(1);
}
+#endif
}
//-----------------------------------------------------------------------------
int
@@ -382,6 +384,7 @@
tcsetattr(STDIN_FILENO, TCSANOW, &tios);
}
//-----------------------------------------------------------------------------
+#if HAVE_LIBREADLINE
int
Input::init_readline_control_C()
{
@@ -395,7 +398,9 @@
rl_startup_hook = 0;
return 0;
}
+#endif
//-----------------------------------------------------------------------------
+#if HAVE_LIBREADLINE
int
Input::readline_control_C(int count, int key)
{
@@ -410,3 +415,4 @@
return 0;
}
//-----------------------------------------------------------------------------
+#endif