319.1.1
by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_ |
1 |
AC_DEFUN([DRIZZLE_CHECK_READLINE_DECLARES_HIST_ENTRY], [ |
1
by brian
clean slate |
2 |
AC_CACHE_CHECK([HIST_ENTRY is declared in readline/readline.h], mysql_cv_hist_entry_declared, |
3 |
AC_TRY_COMPILE( |
|
4 |
[ |
|
5 |
#include "stdio.h"
|
|
6 |
#include "readline/readline.h"
|
|
7 |
], |
|
8 |
[ |
|
9 |
HIST_ENTRY entry;
|
|
10 |
], |
|
11 |
[ |
|
12 |
mysql_cv_hist_entry_declared=yes
|
|
13 |
AC_DEFINE_UNQUOTED(HAVE_HIST_ENTRY, [1], |
|
14 |
[HIST_ENTRY is defined in the outer libeditreadline]) |
|
15 |
], |
|
16 |
[mysql_cv_libedit_interface=no] |
|
17 |
) |
|
18 |
) |
|
19 |
]) |
|
20 |
||
319.1.1
by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_ |
21 |
AC_DEFUN([DRIZZLE_CHECK_NEW_RL_INTERFACE], [ |
1
by brian
clean slate |
22 |
AC_CACHE_CHECK([defined rl_compentry_func_t and rl_completion_func_t], mysql_cv_new_rl_interface, |
23 |
AC_TRY_COMPILE( |
|
24 |
[ |
|
25 |
#include "stdio.h"
|
|
26 |
#include "readline/readline.h"
|
|
27 |
], |
|
28 |
[ |
|
29 |
rl_completion_func_t *func1= (rl_completion_func_t*)0;
|
|
30 |
rl_compentry_func_t *func2= (rl_compentry_func_t*)0;
|
|
31 |
], |
|
32 |
[ |
|
33 |
mysql_cv_new_rl_interface=yes
|
|
34 |
AC_DEFINE_UNQUOTED([USE_NEW_READLINE_INTERFACE], [1], |
|
35 |
[used new readline interface (are rl_completion_func_t and rl_compentry_func_t defined)]) |
|
36 |
], |
|
37 |
[mysql_cv_new_rl_interface=no] |
|
38 |
) |
|
39 |
) |
|
40 |
]) |
|
41 |
||
42 |
dnl
|
|
43 |
dnl check for availability of multibyte characters and functions |
|
44 |
dnl (Based on BASH_CHECK_MULTIBYTE in aclocal.m4 of readline-5.0) |
|
45 |
dnl
|
|
319.1.1
by Grant Limberg
renamed all instances of MYSQL_ to DRIZZLE_ |
46 |
AC_DEFUN([DRIZZLE_CHECK_MULTIBYTE], |
1
by brian
clean slate |
47 |
[
|
48 |
AC_CHECK_HEADERS(wctype.h)
|
|
49 |
AC_CHECK_HEADERS(wchar.h)
|
|
50 |
AC_CHECK_HEADERS(langinfo.h)
|
|
51 |
||
52 |
AC_CHECK_FUNC(mbsrtowcs, AC_DEFINE([HAVE_MBSRTOWCS],[],[Define if you have mbsrtowcs])) |
|
53 |
AC_CHECK_FUNC(mbrtowc, AC_DEFINE([HAVE_MBRTOWC],[],[Define if you have mbrtowc])) |
|
54 |
AC_CHECK_FUNC(mbrlen, AC_DEFINE([HAVE_MBRLEN],[],[Define if you have mbrlen])) |
|
55 |
AC_CHECK_FUNC(wctomb, AC_DEFINE([HAVE_WCTOMB],[],[Define if you have wctomb])) |
|
56 |
AC_CHECK_FUNC(wcwidth, AC_DEFINE([HAVE_WCWIDTH],[],[Define if you have wcwidth])) |
|
57 |
AC_CHECK_FUNC(wcsdup, AC_DEFINE([HAVE_WCSDUP],[],[Define if you check wcsdup])) |
|
58 |
||
59 |
AC_CACHE_CHECK([for mbstate_t], mysql_cv_have_mbstate_t, |
|
60 |
[AC_TRY_COMPILE([ |
|
61 |
#include <wchar.h>], [ |
|
62 |
mbstate_t ps;
|
|
63 |
mbstate_t *psp;
|
|
64 |
psp = (mbstate_t *)0;
|
|
65 |
], mysql_cv_have_mbstate_t=yes, mysql_cv_have_mbstate_t=no)]) |
|
66 |
if test $mysql_cv_have_mbstate_t = yes; then |
|
67 |
AC_DEFINE([HAVE_MBSTATE_T],[],[Define if mysql_cv_have_mbstate_t=yes]) |
|
68 |
fi
|
|
69 |
||
70 |
AC_CACHE_CHECK([for nl_langinfo and CODESET], mysql_cv_langinfo_codeset, |
|
71 |
[AC_TRY_LINK( |
|
72 |
[#include <langinfo.h>], |
|
73 |
[char* cs = nl_langinfo(CODESET);], |
|
74 |
mysql_cv_langinfo_codeset=yes, mysql_cv_langinfo_codeset=no)]) |
|
75 |
if test $mysql_cv_langinfo_codeset = yes; then |
|
76 |
AC_DEFINE([HAVE_LANGINFO_CODESET],[],[Define if mysql_cv_langinfo_codeset=yes]) |
|
77 |
fi
|
|
78 |
||
79 |
]) |