path: root/acinclude.m4
diff options
authorAndy Wingo <>2010-07-09 16:48:30 +0200
committerAndy Wingo <>2010-07-09 17:05:25 +0200
commitddfb5e2bb02e167c734af5091d40d7db4ffeffa1 (patch)
tree33ed9c9d6bd735935cd50c62e8765adb1dba964e /acinclude.m4
parentadb825b6780b52a19291420c8699900d56de748d (diff)
readline only handles SIGWINCH
* acinclude.m4 (GUILE_READLINE): Check for rl_catch_signals and rl_catch_sigwinch. * guile-readline/readline.c (scm_init_readline): If we can, turn off readline's signal handling, because we can do our own. (scm_readline): Use dynwinds to handle resetting readline's state on nonlocal exit, not catches. (unwind_readline): Rename from handle_error.
Diffstat (limited to 'acinclude.m4')
1 files changed, 3 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 8cfe1d41f..e00bc976a 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -395,6 +395,9 @@ AC_DEFUN([GUILE_READLINE], [
dnl Check for modern readline naming
+ AC_CHECK_DECLS([rl_catch_signals, rl_catch_sigwinch], [], [],
+ [[#include <stdio.h>]
+ [#include <readline/readline.h>]])
dnl Check for rl_get_keymap. We only use this for deciding whether to
dnl install paren matching on the Guile command line (when using