diff options
author | msvensson@pilot.(none) <> | 2007-06-04 16:42:42 +0200 |
---|---|---|
committer | msvensson@pilot.(none) <> | 2007-06-04 16:42:42 +0200 |
commit | 5df790445a4ce27ceb5fa18602351b22fa8bd7be (patch) | |
tree | b766785bc20f902adef60929ade6ea0795e3a4b5 /configure.in | |
parent | 7df5e05b4d76510b95275c9ff737933627d1f179 (diff) | |
download | mariadb-git-5df790445a4ce27ceb5fa18602351b22fa8bd7be.tar.gz |
Bug#10218 Command line recall rolls into Segmentation Fault(coredump)'
- Declare 'tgoto' if not already declared in system header files.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.in b/configure.in index b9f84086e28..dd3b449f9c8 100644 --- a/configure.in +++ b/configure.in @@ -1954,6 +1954,19 @@ else fi AC_SUBST(TERMCAP_LIB) +# Check if the termcap function 'tgoto' is already declared in +# system header files or if it need to be declared locally +AC_CHECK_DECLS(tgoto,,,[ +#ifdef HAVE_CURSES_H +# include <curses.h> +#elif HAVE_NCURSES_H +# include <ncurses.h> +#endif +#ifdef HAVE_TERM_H +# include <term.h> +#endif +]) + LIBEDIT_LOBJECTS="" AC_CHECK_FUNC(strunvis, ,[LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS unvis.o"]) AC_CHECK_FUNC(strvis, ,[LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS vis.o"]) |