diff --git a/CMakeLists.txt b/CMakeLists.txt index a4ed5414f..14dc89c92 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1114,6 +1114,7 @@ elseif(UNIX AND NOT APPLE AND NOT ANDROID) set(HAVE_IBUS_IBUS_H TRUE) include_directories(${IBUS_INCLUDE_DIRS}) list(APPEND EXTRA_LIBS ${IBUS_LIBRARIES}) + add_definitions(-DSDL_USE_IME) endif() if(HAVE_LIBUNWIND_H) # We've already found the header, so REQUIRE the lib to be present diff --git a/configure b/configure index a4176dad9..c56d09a01 100755 --- a/configure +++ b/configure @@ -22731,7 +22731,7 @@ fi $as_echo "#define SDL_USE_IME 1" >>confdefs.h - SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c" + SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c" fi } diff --git a/configure.ac b/configure.ac index 198170286..63350e9c6 100644 --- a/configure.ac +++ b/configure.ac @@ -2602,7 +2602,7 @@ AS_HELP_STRING([--enable-ime], [enable IME support [[default=yes]]]), , enable_ime=yes) if test x$enable_ime = xyes; then AC_DEFINE(SDL_USE_IME, 1, [ ]) - SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c" + SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c" fi }