From cb5afea67473240d73f0c359c7dc6e553f87da14 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Tue, 5 Jul 2011 13:09:29 -0400 Subject: Use ibus_config_get_values () to improve performance. BUG=http://crosbug.com/16287 TEST=Linux desktop Review URL: http://codereview.appspot.com/4670044 --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 358d818..6afc180 100644 --- a/configure.ac +++ b/configure.ac @@ -88,6 +88,16 @@ AC_CHECK_FUNCS([uuid_create], [], [ AM_CONDITIONAL(HAVE_LIBUUID, test x"$HAVE_LIBUUID" = x"yes") +# check if ibus_config_get_values, which is available in ibus-1.3.99+ (git master) +save_CFLAGS="$CFLAGS" +save_LIBS="$LIBS" +CFLAGS="$CFLAGS $IBUS_CFLAGS" +LIBS="$LIBS $IBUS_LIBS" +AC_CHECK_FUNCS([ibus_config_get_values]) +CFLAGS="$save_CFLAGS" +LIBS="$save_LIBS" + + # check env AC_PATH_PROG(ENV, env) AC_SUBST(ENV) -- cgit