11 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
12 |
|
|
13 |
for termlib in ncurses curses termcap terminfo termlib ; do |
for termlib in ncurses curses termcap terminfo termlib ; do |
14 |
AC_CHECK_LIB(${termlib}, tgoto, |
AC_CHECK_LIB(${termlib}, tgoto, |
15 |
[LIBS="-l${termlib} $LIBS"; break]) |
[LIBS="-l${termlib} $LIBS"; break]) |
16 |
done |
done |
17 |
|
|
59 |
|
|
60 |
sigaction (SIGWINCH, NULL, &action); |
sigaction (SIGWINCH, NULL, &action); |
61 |
rl_cleanup_after_signal(); |
rl_cleanup_after_signal(); |
62 |
|
|
63 |
/* exit with 0 if readline disabled SA_RESTART */ |
/* exit with 0 if readline disabled SA_RESTART */ |
64 |
exit (action.sa_flags & SA_RESTART); |
exit (action.sa_flags & SA_RESTART); |
65 |
} |
} |
66 |
|
|
67 |
int |
int |
68 |
main () |
main () |
69 |
{ |
{ |
70 |
struct sigaction action; |
struct sigaction action; |
71 |
|
|
72 |
sigaction (SIGWINCH, NULL, &action); |
sigaction (SIGWINCH, NULL, &action); |
73 |
action.sa_flags |= SA_RESTART; |
action.sa_flags |= SA_RESTART; |
74 |
sigaction (SIGWINCH, &action, NULL); |
sigaction (SIGWINCH, &action, NULL); |
75 |
|
|
76 |
rl_pre_input_hook = hook; |
rl_pre_input_hook = hook; |
77 |
readline (""); |
readline (""); |
78 |
}], |
}], |
104 |
|
|
105 |
AC_CHECK_FUNCS(strdup) |
AC_CHECK_FUNCS(strdup) |
106 |
|
|
107 |
. ./LIBGUILEREADLINE-VERSION |
. $srcdir/LIBGUILEREADLINE-VERSION |
108 |
AC_SUBST(LIBGUILEREADLINE_INTERFACE_CURRENT) |
AC_SUBST(LIBGUILEREADLINE_INTERFACE_CURRENT) |
109 |
AC_SUBST(LIBGUILEREADLINE_INTERFACE_REVISION) |
AC_SUBST(LIBGUILEREADLINE_INTERFACE_REVISION) |
110 |
AC_SUBST(LIBGUILEREADLINE_INTERFACE_AGE) |
AC_SUBST(LIBGUILEREADLINE_INTERFACE_AGE) |