~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/readline.m4

  • Committer: Monty Taylor
  • Date: 2009-01-09 05:20:49 UTC
  • mto: (779.1.2 devel)
  • mto: This revision was merged to the branch mainline in revision 784.
  • Revision ID: mordred@inaugust.com-20090109052049-bglg06jf2l7ix0a3
Updated some more build stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
AC_DEFUN([DRIZZLE_CHECK_READLINE_DECLARES_HIST_ENTRY], [
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
 
        )
 
2
  AC_CACHE_CHECK([HIST_ENTRY is declared in readline/readline.h],
 
3
                 mysql_cv_hist_entry_declared,
 
4
    AC_TRY_COMPILE(
 
5
      [
 
6
#include <stdio.h>
 
7
#include <readline/readline.h>
 
8
      ],
 
9
      [ 
 
10
HIST_ENTRY entry;
 
11
      ],
 
12
      [
 
13
        mysql_cv_hist_entry_declared=yes
 
14
        AC_DEFINE_UNQUOTED(HAVE_HIST_ENTRY, [1],
 
15
                           [HIST_ENTRY is defined in the outer libeditreadline])
 
16
      ],
 
17
      [mysql_cv_libedit_interface=no]
18
18
    )
 
19
  )
19
20
])
20
21
 
21
22
AC_DEFUN([DRIZZLE_CHECK_NEW_RL_INTERFACE], [
22
 
    save_CFLAGS="${CFLAGS}"
23
 
    CFLAGS="${save_CFLAGS} ${READLINE_CFLAGS}"
24
23
    AC_CACHE_CHECK([defined rl_compentry_func_t and rl_completion_func_t], mysql_cv_new_rl_interface,
25
24
        AC_TRY_COMPILE(
26
25
            [
41
40
                AC_DEFINE_UNQUOTED([USE_NEW_READLINE_INTERFACE], [1],
42
41
                [used new readline interface (are rl_completion_func_t and rl_compentry_func_t defined)])
43
42
    fi
44
 
  CFLAGS="${save_CFLAGS}"
45
43
])
46
44