- Timestamp:
- 26/02/2010 14:11:33 (2 years ago)
- Location:
- box/trunk
- Files:
-
- 2 edited
-
bin/bbackupquery/bbackupquery.cpp (modified) (1 diff)
-
infrastructure/m4/vl_lib_readline.m4 (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupquery/bbackupquery.cpp
r2641 r2643 133 133 if (start == 0) 134 134 { 135 matches = rl_completion_matches(text, command_generator); 135 #ifdef HAVE_RL_COMPLETION_MATCHES 136 matches = rl_completion_matches(text, 137 command_generator); 138 #elif defined HAVE_COMPLETION_MATCHES 139 matches = completion_matches(text, command_generator); 140 #endif 136 141 } 137 142 -
box/trunk/infrastructure/m4/vl_lib_readline.m4
r298 r2643 80 80 ]) 81 81 82 dnl BOX_CHECK_VAR(name, where, headers) 83 AC_DEFUN([BOX_CHECK_VAR], [ 84 AC_CACHE_CHECK([for $1 $2], [vl_cv_var_$1], 85 [AC_TRY_LINK([$3], [(void) $1], [vl_cv_var_$1=yes], [vl_cv_var_$1=no]) 86 ]) 87 if test "${vl_cv_var_$1}" = "yes"; then 88 AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$1), 1, [Define if you have $1 $2]) 89 fi 90 ]) 91 82 92 dnl VL_LIB_READLINE_CHECK(name, libraries, headers, history headers) 83 93 AC_DEFUN([VL_LIB_READLINE_CHECK], [ … … 109 119 ]) 110 120 121 vl_cv_lib_includes="" 122 111 123 vl_cv_lib_readline_compat_found=no 112 124 if test "x$vl_cv_lib_$1" != "xno"; then 113 AC_CHECK_HEADERS([$3], [vl_cv_lib_readline_compat_found=yes]) 125 AC_CHECK_HEADERS([$3], [ 126 vl_cv_lib_readline_compat_found=yes 127 vl_cv_lib_includes="$vl_cv_lib_headers #include <$ac_header>" 128 ]) 114 129 fi 115 130 116 131 if test "x$vl_cv_lib_readline_compat_found" = "xyes"; then 132 BOX_CHECK_VAR([rl_completion_matches], [in readline headers], 133 [$vl_cv_lib_includes]) 134 135 BOX_CHECK_VAR([completion_matches], [in readline headers], 136 [$vl_cv_lib_includes]) 137 117 138 AC_DEFINE([HAVE_LIBREADLINE], 1, 118 139 [Define if you have a readline compatible library])
Note: See TracChangeset
for help on using the changeset viewer.
