# Process this file with autoconf to produce a configure script #AC_INIT(scim, 1.4.7, suzhe@tsinghua.org.cn) AC_INIT(isf, 8.0.16, isf@samsung.com) AC_CONFIG_SRCDIR([ism/src/scim.h]) ########################################################### ## Some definitions of Version macros. ## ########################################################### # ISF version ISF_MAJOR_VERSION=8 ISF_MINOR_VERSION=0 ISF_MICRO_VERSION=16 ISF_VERSION=$ISF_MAJOR_VERSION.$ISF_MINOR_VERSION.$ISF_MICRO_VERSION AC_SUBST(ISF_MAJOR_VERSION) AC_SUBST(ISF_MINOR_VERSION) AC_SUBST(ISF_MICRO_VERSION) AC_SUBST(ISF_VERSION) # SCIM version SCIM_MAJOR_VERSION=1 SCIM_MINOR_VERSION=4 SCIM_MICRO_VERSION=7 SCIM_VERSION=$SCIM_MAJOR_VERSION.$SCIM_MINOR_VERSION.$SCIM_MICRO_VERSION AC_SUBST(SCIM_MAJOR_VERSION) AC_SUBST(SCIM_MINOR_VERSION) AC_SUBST(SCIM_MICRO_VERSION) AC_SUBST(SCIM_VERSION) # libtool versioning for SCIM # increment if the interface has additions, changes, removals. SCIM_CURRENT=10 # increment any time the source changes; set to 0 if you increment CURRENT SCIM_REVISION=3 # increment if any interfaces have been added; set to 0 # if any interfaces have been removed. removal has # precedence over adding, so set to 0 if both happened. SCIM_AGE=2 AC_SUBST(SCIM_CURRENT) AC_SUBST(SCIM_REVISION) AC_SUBST(SCIM_AGE) # Define a string for the earliest version that this release cannot # coexist with. This is used for directory hierarchies. # SCIM_EPOCH=-1.0 AC_SUBST(SCIM_EPOCH) # Define a string for the earliest version that this release has # binary compatibility with. This is used for module locations. # SCIM_BINARY_VERSION=1.4.0 AC_SUBST(SCIM_BINARY_VERSION) # Define a string for the name of ISF-CONTROL library. # ISF_CONTROL=isf-control AC_SUBST(ISF_CONTROL) AC_DEFINE_UNQUOTED(SCIM_BINARY_VERSION, "$SCIM_BINARY_VERSION", [The binary version of SCIM library.]) AC_DEFINE_UNQUOTED(SCIM_VERSION, "$SCIM_VERSION", [The release version of SCIM library.]) AC_DEFINE_UNQUOTED(SCIM_MAJOR_VERSION, $SCIM_MAJOR_VERSION, [The Major version of SCIM library.]) AC_DEFINE_UNQUOTED(SCIM_MINOR_VERSION, $SCIM_MINOR_VERSION, [The Minor version of SCIM library.]) AC_DEFINE_UNQUOTED(SCIM_MICRO_VERSION, $SCIM_MICRO_VERSION, [The Micro version of SCIM library.]) GETTEXT_PACKAGE=scim AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext domain]) ########################################################### ## Start Configuration. ## ########################################################### AC_CANONICAL_HOST AC_USE_SYSTEM_EXTENSIONS # Init automake stuff AM_INIT_AUTOMAKE AM_CONFIG_HEADER([config.h]) # Init platform PLATFORM_INIT # Init gettext ALL_LINGUAS="ar as az be_BY bg bn bn_BD ca cs da de el_GR en en_PH en_US es_ES es_MX es_US et eu fa fi fr fr_CA ga gl gu he hi hr hu hy id is it_IT ja_JP ka kk km kn ko_KR ky_KG lo lt lv mg mk ml mn_MN mr ms my_MM my_ZG nb ne nl or pa pl pl_SP pt_BR pt_PT ro ru_RU si sk sl sq sr sv sw ta te tg_TJ th tk_TM tl tr_TR uk ur uz vi xh zh_CN zh_HK zh_TW zh_TW zu" AM_GNU_GETTEXT # Init libtool AC_LIBTOOL_DLOPEN AC_PROG_LIBTOOL AC_LIB_LTDL AC_SUBST(LIBTOOL_DEPS) # libtool option to control which symbols are exported # right now, symbols starting with _ are not exported # !!! DO NOT USE IT !!! LIBTOOL_EXPORT_OPTIONS='' AC_SUBST(LIBTOOL_EXPORT_OPTIONS) # Checks for programs. AC_PROG_CXX AC_PROG_CC AC_LANG(C++) # Checks if doxygen is avaiable DOXYGEN=no if test "x$with_doxygen" != "xno"; then AC_PATH_PROG(DOXYGEN, doxygen, no) fi AM_CONDITIONAL(HAVE_DOXYGEN, test x$DOXYGEN != xno) AC_SUBST(DOXYGEN) # Checks if graphviz is available AC_CHECK_PROG(HAVE_GRAPHVIZ, dot, YES, NO) AC_PATH_PROG(DOT, dot) DOT=`dirname $DOT` AC_SUBST(DOT) AC_PATH_PROG(PERL, perl) AC_SUBST(PERL) # Check intltool #IT_PROG_INTLTOOL([0.33], [no-xml]) # Checks for libraries. AC_HEADER_STDC AC_HEADER_TIME AC_CHECK_HEADERS([langinfo.h libintl.h string.h dirent.h hash_map ext/hash_map]) AC_CHECK_HEADERS([stdio.h ctype.h errno.h assert.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T if test x$ac_cv_type_size_t != xyes; then AC_MSG_ERROR([No type size_t, but SCIM needs it!]) fi AC_CHECK_SIZEOF(char) AC_CHECK_SIZEOF(unsigned short int) AC_CHECK_SIZEOF(unsigned int) AC_CHECK_SIZEOF(unsigned long int) AC_CHECK_SIZEOF(unsigned long long int) AC_CHECK_HEADERS([stdint.h],[has_stdint=yes],[has_stdint=no]) if test x$ac_cv_sizeof_unsigned_short_int = x2 && test x$ac_cv_sizeof_char = x1 ; then : else AC_MSG_ERROR([ *** SCIM requires *** sizeof (unsigned short int) == 2 *** sizeof (char) == 1 *** You might want to consider using the GNU C compiler. ]) fi if test x$ac_cv_sizeof_wchar_t = x0 ; then AC_MSG_ERROR([ *** SCIM requires a compiler that supports wchar_t, *** You might want to consider using the GNU C compiler. ]) fi if test x$has_stdint = xyes; then INCLUDE_STDINT="#include " UINT16="uint16_t" UINT32="uint32_t" UINT64="uint64_t" else INCLUDE_STDINT="//#include " UINT16="unsigned short int" if test x$ac_cv_sizeof_unsigned_int = x4; then UINT32="unsigned int" else if test x$ac_cv_sizeof_unsigned_long_int = x4; then UINT32="unsigned long int" else AC_MSG_ERROR([*** No suitable integer type for uint32 found.]) fi fi if test x$ac_cv_sizeof_unsigned_long_long_int = x8; then UINT64="unsigned long long int" else AC_MSG_ERROR([*** No suitable integer type for uint64 found.]) fi fi AC_SUBST(INCLUDE_STDINT) AC_SUBST(UINT16) AC_SUBST(UINT32) AC_SUBST(UINT64) # Checks for library functions. AC_FUNC_MALLOC AC_CHECK_FUNCS([gettimeofday memmove memset nl_langinfo setlocale daemon]) AC_CHECK_FUNCS([memcpy strcmp strchr strrchr]) AC_CHECK_FUNCS([opendir closedir readdir]) AC_CHECK_FUNCS([usleep nanosleep]) AC_CHECK_FUNCS([gethostbyname gethostbyname_r socket bind accept connect listen], [socket_ok=yes], [socket_ok=no]) AM_ICONV # Check EINA PKG_CHECK_MODULES(EINA, [eina]) # Check ECORE PKG_CHECK_MODULES(ECORE, [ecore]) # Check ECORE_IPC library PKG_CHECK_MODULES(ECORE_IPC, [ecore-ipc]) # Check ECORE INPUT library PKG_CHECK_MODULES(ECORE_INPUT, [ecore-input]) # Check ECORE EVAS library PKG_CHECK_MODULES(ECORE_EVAS, [ecore-evas]) # Check ECORE IMF PKG_CHECK_MODULES(ECORE_IMF, [ecore-imf], [ISF_HAS_ECORE_IMF=yes], [ISF_HAS_ECORE_IMF=no]) if test "$ISF_HAS_ECORE_IMF" = "yes"; then EFL_LIBDIR=`$PKG_CONFIG --variable=libdir ecore-imf` ECORE_IMF_MODULE_ARCH=`$PKG_CONFIG --variable=module_arch ecore` if test -z "$EFL_LIBDIR)"; then EFL_LIBDIR="$libdir" fi EFL_IM_MODULEDIR=$EFL_LIBDIR/ecore_imf/modules/isf/$ECORE_IMF_MODULE_ARCH WAYLAND_IM_MODULEDIR=$EFL_LIBDIR/ecore_imf/modules/wayland/$ECORE_IMF_MODULE_ARCH AC_SUBST(EFL_LIBDIR) AC_SUBST(EFL_IM_MODULEDIR) AC_SUBST(WAYLAND_IM_MODULEDIR) fi # Check EVAS PKG_CHECK_MODULES(EVAS, [evas]) # Check XKBCOMMON library PKG_CHECK_MODULES(XKBCOMMON, [xkbcommon]) # Check ECORE WAYLAND library PKG_CHECK_MODULES(ECORE_WL, [ecore-wl2], [ISF_HAS_ECOREWL=yes], [ISF_HAS_ECOREWL=no]) if test "$ISF_HAS_ECOREWL" = "yes"; then AC_DEFINE(HAVE_ECOREWL,1,[Have ecore-wl2 functions.]) fi # Check WAYLAND TEXT INPUT library PKG_CHECK_MODULES(WL_TEXT_INPUT, [text-client]) # Check WAYLAND INPUT METHOD library PKG_CHECK_MODULES(WL_INPUT_METHOD, [input-method-client]) # Check EDJE library PKG_CHECK_MODULES(EDJE, [edje]) # Check ELEMENTARY library PKG_CHECK_MODULES(ELEMENTARY, [elementary], [ISF_HAS_ELM=yes], [ISF_HAS_ELM=no]) # Check EFL extension library PKG_CHECK_MODULES(EFL_EXTENSION, [efl-extension]) # Check glib library PKG_CHECK_MODULES(GLIB, [glib-2.0]) # Check gio library PKG_CHECK_MODULES(GIO, [gio-2.0]) # Check tzplatform-config library PKG_CHECK_MODULES(TZPLATFORM_CONFIG, [libtzplatform-config]) # Check service application library PKG_CHECK_MODULES(SERVICE_APPLICATION, [capi-appfw-service-application]) # Check dlog library PKG_CHECK_MODULES(DLOG, [dlog >= 0]) # Check notification library PKG_CHECK_MODULES(NOTIFICATION, [notification], [ISF_HAS_NOTIFICATION=yes], [ISF_HAS_NOTIFICATION=no]) # Check system info library PKG_CHECK_MODULES(SYSTEM_INFO, [capi-system-info]) # Check cynara liblaries PKG_CHECK_MODULES(CYNARA, [cynara-client, cynara-creds-socket, cynara-session]) # Check vconf library PKG_CHECK_MODULES(VCONF, [vconf], [ISF_HAS_VCONF=yes], [ISF_HAS_VCONF=no]) # Check feedback library PKG_CHECK_MODULES(FEEDBACK, [feedback], [ISF_HAS_FEEDBACK=yes], [ISF_HAS_FEEDBACK=no]) # Check package manager PKG_CHECK_MODULES(PACKAGE_MANAGER, [capi-appfw-package-manager]) # Check AUL PKG_CHECK_MODULES(AUL, [aul]) # Check App Control PKG_CHECK_MODULES(APP_CONTROL, [capi-appfw-app-control]) # Check app common library PKG_CHECK_MODULES(APP_COMMON, [capi-appfw-app-common]) # Check libwebsockets PKG_CHECK_MODULES(LIBWEBSOCKETS, [libwebsockets], [ISF_HAS_LIBWEBSOCKETS=yes], [ISF_HAS_LIBWEBSOCKETS=no]) # Check core package manager PKG_CHECK_MODULES(PKGMGR_INFO, [pkgmgr-info], [ISF_HAS_PKGMGR_INFO=yes], [ISF_HAS_PKGMGR_INFO=no]) PKG_CHECK_MODULES(SQLITE3, [sqlite3]) # Ignore checked modules if --disable option is added AC_ARG_ENABLE(include-notification, [ --disable-include-notification Do not include notification package], enable_notification=no, enable_notification=yes) AC_ARG_ENABLE(include-libwebsocket, [ --disable-include-libwebsocket Do not include libwebsocket package], enable_libwebsocket=no, enable_libwebsocket=yes) # Check systemd library PKG_CHECK_MODULES(SYSTEMD, [libsystemd], [ISF_HAS_SYSTEMD=yes], [ISF_HAS_SYSTEMD=no]) # Check gmock PKG_CHECK_MODULES(GMOCK, [gmock]) if test "$ISF_HAS_VCONF" = "yes"; then AC_DEFINE(HAVE_VCONF,1,[Have VConf functions.]) fi if test "$ISF_HAS_FEEDBACK" = "yes"; then AC_DEFINE(HAVE_FEEDBACK,1,[Have Feedback functions.]) fi if test "$ISF_HAS_NOTIFICATION" = "yes" && test "$enable_notification" = "yes"; then AC_DEFINE(HAVE_NOTIFICATION,1,[Have Notification functions.]) fi if test "$enable_notification" = "no"; then AC_MSG_NOTICE([Notification functions force-disabled.]) fi if test "$ISF_HAS_PKGMGR_INFO" = "yes"; then AC_DEFINE(HAVE_PKGMGR_INFO,1,[Have Package manager functions.]) fi # Check GTK2 library PKG_CHECK_MODULES(GTK2, [gtk+-2.0 >= 2.4.0 pango >= 1.1.0 gdk-pixbuf-2.0 >= 2.4.0], [SCIM_HAS_GTK2=yes], [SCIM_HAS_GTK2=no]) SCIM_HAS_GTK2_2=no if test "$SCIM_HAS_GTK2" = "yes"; then if $PKG_CONFIG --exists "gtk+-2.0 >= 2.2" ; then SCIM_HAS_GTK2_2=yes GTK_VERSION=2.2.0 AC_DEFINE(GDK_MULTIHEAD_SAFE,1,[Force use of GDK's multihead-safe APIs.]) fi if $PKG_CONFIG --exists "gtk+-2.0 >= 2.3.5" ; then SCIM_HAS_GTK2_4=yes GTK_VERSION=2.3.5 AC_DEFINE(HAVE_GTK_DRAW_INSERTION_CURSOR,1,[Have gtk_draw_insertion_cursor ().]) fi GTK_BINARY_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0` GTK_LIBDIR=`$PKG_CONFIG --variable=libdir gtk+-2.0` if test -z "$GTK_LIBDIR)"; then GTK_LIBDIR="$libdir" fi GTK_IM_MODULEDIR=$GTK_LIBDIR/gtk-2.0/$GTK_BINARY_VERSION/immodules AC_SUBST(GTK_LIBDIR) AC_SUBST(GTK_IM_MODULEDIR) AC_SUBST(GTK_VERSION) AC_SUBST(GTK_BINARY_VERSION) fi # Check if we have gthread PKG_CHECK_MODULES(GTHREAD2,[gthread-2.0 >= 2.0.0], [SCIM_HAS_GTHREAD2=yes], [SCIM_HAS_GTHREAD2=no]) # Checks for X11 header files. AC_PATH_XTRA # Add -lX11 to X_LIBS if test "$have_x" = "yes"; then X_LIBS="$X_LIBS -lX11" fi case $host_cpu in *arm* ) TARGET=ARM;; * ) TARGET=X86;; esac AM_CONDITIONAL(ARM, test x$TARGET = xARM) ########################################################### ## Definiation of compile args. ## ########################################################### AC_ARG_WITH(gtk-im-module-dir, AS_HELP_STRING([--with-gtk-im-module-dir=dir], [Select gtk immodule dir]), GTK_IM_MODULEDIR=$with_gtk_im_module_dir) AC_ARG_WITH(efl-im-module-dir, AS_HELP_STRING([--with-efl-im-module-dir=dir], [Select efl immodule dir]), EFL_IM_MODULEDIR=$with_efl_im_module_dir) AC_ARG_WITH(wayland-im-module-dir, AS_HELP_STRING([--with-wayland-im-module-dir=dir], [Select wayland immodule dir]), WAYLAND_IM_MODULEDIR=$with_wayland_im_module_dir) AC_ARG_WITH(ro-app-dir, AS_HELP_STRING([--with-ro-app-dir=dir], [Select Read only application dir]), RO_APP_DIR=$with_ro_app_dir) AC_ARG_WITH(ro-packages-dir, AS_HELP_STRING([--with-ro-app-dir=dir], [Select Read only packages dir]), RO_PACKAGES_DIR=$with_ro_packages_dir) AC_ARG_ENABLE(ld-version-script, [ --enable-ld-version-script Use ld version script to limit exported symbols], enable_ld_version_script=yes, enable_ld_version_script=no) AC_ARG_ENABLE(debug, [ --enable-debug Turn on debugging], enable_debug=yes, enable_debug=no) AC_ARG_ENABLE(x86, [ --enable-x86 Build for x86 host], enable_x86=yes, enable_x86=no) AC_ARG_ENABLE(hash-map, [ --enable-hash-map Use hast_map instead of std::map internally], enable_hash_map=yes, enable_hash_map=no) AC_ARG_ENABLE(config-simple, [ --disable-config-simple Do not build Simple Config module], enable_config_simple=no, enable_config_simple=yes) AC_ARG_ENABLE(config-socket, [ --disable-config-socket Do not build Socket Config module], enable_config_socket=no, enable_config_socket=yes) AC_ARG_ENABLE(frontend-x11, [ --disable-frontend-x11 Do not build X11 FrontEnd module], enable_frontend_x11=no, enable_frontend_x11=yes) AC_ARG_ENABLE(frontend-socket, [ --disable-frontend-socket Do not build Socket FrontEnd module], enable_frontend_socket=no, enable_frontend_socket=yes) AC_ARG_ENABLE(im-socket, [ --disable-im-socket Do not build Socket IMEngine module], enable_im_socket=no, enable_im_socket=yes) AC_ARG_ENABLE(filter-sctc, [ --disable-filter-sctc Do not build Simplified/Traditional Chinese conversion Filter module], enable_filter_sctc=no, enable_filter_sctc=yes) AC_ARG_ENABLE(gtk2-immodule, [ --disable-gtk2-immodule Do not build GTK2 IMModule], enable_gtk2_immodule=no, enable_gtk2_immodule=yes) AC_ARG_ENABLE(efl-immodule, [ --disable-efl-immodule Do not build EFL IMModule], enable_efl_immodule=no, enable_efl_immodule=yes) AC_ARG_ENABLE(wayland-immodule, [ --disable-wayland-immodule Do not build Wayland IMModule], enable_wayland_immodule=no, enable_wayland_immodule=yes) AC_ARG_ENABLE(panel-efl, [ --disable-panel-efl Do not build EFL Panel], enable_panel_efl=no, enable_panel_efl=check) AC_ARG_ENABLE(open-input, [ --disable-open-input Do not build Open Input], enable_open_input=no, enable_open_input=check) AC_ARG_ENABLE(tray-icon, [ --disable-tray-icon Do not build Tray Icon], enable_tray_icon=no, enable_tray_icon=yes) AC_ARG_ENABLE(multiwindow-support, [ --disable-multiwindow-support Do not build Multiwindow Support], enable_multiwindow_support=no, enable_multiwindow_support=yes) AC_ARG_ENABLE(lazy-launch, [ --enable-lazy-launch Launch ISF when focusing in entry], enable_lazy_launch=yes, enable_lazy_launch=no) AC_ARG_ENABLE(ime-embed-app, [ --disable-ime-embed-app Do not load IME in application when socket invalidate], enable_ime_embed_app=no, enable_ime_embed_app=yes) AC_ARG_ENABLE(candidate-ui, [ --disable-candidate-ui Do not build Candidate UI], enable_candidate_ui=no, enable_candidate_ui=check) if test "$have_x" = "yes"; then SCIM_BUILD_X11_UTILS=1 enable_x11_utils=yes else SCIM_BUILD_X11_UTILS=0 enable_x11_utils=no fi if test "$enable_hash_map" = "yes"; then AC_DEFINE(ENABLE_HASH_MAP,1,[Use hash map instead of map in libscim]) fi if test "$enable_debug" = "yes"; then AC_DEFINE(ENABLE_DEBUG,1,[Define this to enable the debug facility in libscim]) CFLAGS="$CFLAGS -g" CXXFLAGS="$CXXFLAGS -g" fi if test "$enable_x86" = "yes"; then AC_DEFINE(ENABLE_X86_HOST,1,[Build for x86 host]) fi if test "$enable_tests" = "yes"; then SCIM_BUILD_TESTS=1 else SCIM_BUILD_TESTS=0 enable_tests=no fi if test "$enable_config_simple" = "yes"; then SCIM_BUILD_CONFIG_SIMPLE=1 else SCIM_BUILD_CONFIG_SIMPLE=0 enable_config_simple=no fi if test "$enable_config_socket" = "yes" -a "$socket_ok" = "yes"; then SCIM_BUILD_CONFIG_SOCKET=1 else SCIM_BUILD_CONFIG_SOCKET=0 enable_config_socket=no fi if test "$enable_frontend_x11" = "yes" -a "$have_x" = "yes"; then SCIM_BUILD_FRONTEND_X11=1 else SCIM_BUILD_FRONTEND_X11=0 enable_frontend_x11=no fi if test "$enable_frontend_socket" = "yes" -a "$socket_ok" = "yes"; then SCIM_BUILD_FRONTEND_SOCKET=1 else SCIM_BUILD_FRONTEND_SOCKET=0 enable_frontend_socket=no fi if test "$enable_im_rawcode" = "yes"; then SCIM_BUILD_IMENGINE_RAWCODE=1 else SCIM_BUILD_IMENGINE_RAWCODE=0 enable_im_rawcode=no fi if test "$enable_im_socket" = "yes" -a "$socket_ok" = "yes"; then SCIM_BUILD_IMENGINE_SOCKET=1 else SCIM_BUILD_IMENGINE_SOCKET=0 enable_im_socket=no fi if test "$enable_filter_sctc" = "yes"; then SCIM_BUILD_FILTER_SCTC=1 else SCIM_BUILD_FILTER_SCTC=0 enable_filter_sctc=no fi if test "$enable_gtk2_immodule" = "yes" -a "$SCIM_HAS_GTK2" = "yes"; then SCIM_BUILD_GTK2_IMMODULE=1 else SCIM_BUILD_GTK2_IMMODULE=0 enable_gtk2_immodule=no fi if test "$SCIM_HAS_GTK2" = "yes"; then enable_gtk_utils=yes SCIM_BUILD_GTK_UTILS=1 else enable_gtk_utils=no SCIM_BUILD_GTK_UTILS=0 fi if test "$enable_tray_icon" = "yes"; then if test "$SCIM_HAS_GTK2_2" = "yes" -a "$no_x" != "yes"; then enable_tray_icon=yes AC_DEFINE(ENABLE_TRAY_ICON,1,[Enable the TrayIcon code.]) fi else enable_tray_icon=no fi if test "$enable_multiwindow_support" = "yes"; then enable_multiwindow_support=yes AC_DEFINE(ENABLE_MULTIWINDOW_SUPPORT,1,[Enable the Multi Window code.]) else enable_multiwindow_support=no fi if test "$enable_efl_immodule" = "yes" -a "$ISF_HAS_ECORE_IMF" = "yes"; then ISF_BUILD_EFL_IMMODULE=1 else ISF_BUILD_EFL_IMMODULE=0 enable_efl_immodule=no fi if test "$enable_wayland_immodule" = "yes" -a "$ISF_HAS_ECORE_IMF" = "yes"; then ISF_BUILD_WAYLAND_IMMODULE=1 else ISF_BUILD_WAYLAND_IMMODULE=0 enable_wayland_immodule=no fi ISF_BUILD_PANEL_EFL=0 ISF_BUILD_CANDIDATE_UI=0 if test "$enable_panel_efl" != "no"; then enable_panel_efl=no if test "$ISF_HAS_ELM" = "yes"; then ISF_BUILD_PANEL_EFL=1 enable_panel_efl=yes if test "$enable_candidate_ui" = "yes"; then ISF_BUILD_CANDIDATE_UI=1 enable_candidate_ui=yes else enable_candidate_ui=no fi else enable_candidate_ui=no fi else enable_candidate_ui=no fi ISF_BUILD_OPEN_INPUT=0 ISF_BUILD_REMOTE_INPUT=0 if test "$enable_remote_input" = "yes"; then ISF_BUILD_REMOTE_INPUT=1 enable_remote_input=yes AC_DEFINE(ENABLE_REMOTE_INPUT,1,[Enable remote input.]) if test "$enable_open_input" = "yes" && test "$ISF_HAS_LIBWEBSOCKETS" = "yes" && test "$enable_libwebsocket" = "yes"; then ISF_BUILD_OPEN_INPUT=1 enable_open_input=yes AC_DEFINE(ENABLE_OPEN_INPUT,1,[Enable open input.]) else enable_open_input=no fi if test "$enable_libwebsocket" = "no"; then AC_MSG_NOTICE([LIBWEBSOCKET forced disable.]) fi else enable_open_input=no enable_remote_input=no fi #if nothing needs libscim-gtkutils, just disable it if test "$enable_panel_gtk" != "yes"; then enable_gtk_utils=no SCIM_BUILD_GTK_UTILS=0 fi if test "$enable_lazy_launch" = "yes"; then AC_DEFINE(ENABLE_LAZY_LAUNCH,1,[Launch ISF when focusing in entry]) ISF_INSTALL_SYSTEMD_SCRIPT=0 else ISF_INSTALL_SYSTEMD_SCRIPT=1 fi if test "$enable_ime_embed_app" = "yes"; then AC_DEFINE(ENABLE_IME_EMBED_APP,1,[Load imengine in application side when socket invalidate]) fi AM_CONDITIONAL(SCIM_LD_VERSION_SCRIPT, [test "$enable_ld_version_script" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_TESTS, [test "$enable_tests" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_CONFIG_SIMPLE, [test "$enable_config_simple" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_CONFIG_SOCKET, [test "$enable_config_socket" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_FRONTEND_X11, [test "$enable_frontend_x11" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_FRONTEND_SOCKET, [test "$enable_frontend_socket" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_IMENGINE_SOCKET, [test "$enable_im_socket" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_IMENGINE_RAWCODE, [test "$enable_im_rawcode" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_GTK2_IMMODULE, [test "$enable_gtk2_immodule" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_FILTER_SCTC, [test "$enable_filter_sctc" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_GTK_UTILS, [test "$enable_gtk_utils" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_X11_UTILS, [test "$enable_x11_utils" = "yes"]) AM_CONDITIONAL(SCIM_BUILD_TRAY_ICON, [test "$enable_tray_icon" = "yes"]) AM_CONDITIONAL(ISF_BUILD_EFL_IMMODULE, [test "$enable_efl_immodule" = "yes"]) AM_CONDITIONAL(ISF_BUILD_WAYLAND_IMMODULE, [test "$enable_wayland_immodule" = "yes"]) AM_CONDITIONAL(ISF_BUILD_PANEL_EFL, [test "$enable_panel_efl" = "yes"]) AM_CONDITIONAL(ISF_BUILD_REMOTE_INPUT, [test "$enable_remote_input" = "yes"]) AM_CONDITIONAL(ISF_BUILD_OPEN_INPUT, [test "$enable_open_input" = "yes"]) AM_CONDITIONAL(ISF_BUILD_DB_UTIL, [test "$ISF_HAS_DB_UTIL" = "yes"]) AM_CONDITIONAL(ISF_INSTALL_SYSTEMD_SCRIPT, [test "$enable_lazy_launch" = "no"]) AM_CONDITIONAL(ISF_BUILD_CANDIDATE_UI, [test "$enable_candidate_ui" = "yes"]) AC_SUBST(SCIM_BUILD_TESTS) AC_SUBST(SCIM_BUILD_CONFIG_SIMPLE) AC_SUBST(SCIM_BUILD_CONFIG_SOCKET) AC_SUBST(SCIM_BUILD_FRONTEND_X11) AC_SUBST(SCIM_BUILD_FRONTEND_SOCKET) AC_SUBST(SCIM_BUILD_IMENGINE_RAWCODE) AC_SUBST(SCIM_BUILD_IMENGINE_TABLE) AC_SUBST(SCIM_BUILD_IMENGINE_SOCKET) AC_SUBST(SCIM_BUILD_FILTER_SCTC) AC_SUBST(SCIM_BUILD_GTK2_IMMODULE) AC_SUBST(SCIM_BUILD_SCIM_SETUP) AC_SUBST(SCIM_BUILD_GTK_UTILS) AC_SUBST(SCIM_BUILD_X11_UTILS) AC_SUBST(ISF_BUILD_EFL_IMMODULE) AC_SUBST(ISF_BUILD_PANEL_EFL) AC_SUBST(ISF_BUILD_REMOTE_INPUT) AC_SUBST(ISF_BUILD_OPEN_INPUT) AC_SUBST(ISF_BUILD_DB_UTIL) AC_SUBST(ISF_INSTALL_SYSTEMD_SCRIPT) AC_SUBST(ISF_BUILD_KBD_MODE_CHANGER) AC_SUBST(ISF_BUILD_CANDIDATE_UI) ISF_BUILDING_DLL="-DISF_BUILDING_DLL" AC_SUBST(ISF_BUILDING_DLL) # Output All necessary Paths. SCIM_BINDIR="$prefix/bin" SCIM_DATADIR="$datadir/scim" SCIM_SYSCONFDIR="$sysconfdir" SCIM_ICONDIR="$datadir/scim/icons" SCIM_MODULE_PATH="$libdir/scim$SCIM_EPOCH" SCIM_LIBEXECDIR="$libdir/scim$SCIM_EPOCH" SCIM_LOCALEDIR="/usr/share/locale" SCIM_TEMPDIR="/run/.isf" SCIM_LIBDIR="$libdir" AC_SUBST(SCIM_BINDIR) AC_SUBST(SCIM_DATADIR) AC_SUBST(SCIM_SYSCONFDIR) AC_SUBST(SCIM_ICONDIR) AC_SUBST(SCIM_MODULE_PATH) AC_SUBST(SCIM_LIBEXECDIR) AC_SUBST(SCIM_LOCALEDIR) AC_SUBST(SCIM_TEMPDIR) AC_SUBST(SCIM_LIBDIR) AC_SUBST(RO_APP_DIR) AC_SUBST(RO_PACKAGES_DIR) ########################################################### ## Output files. ## ########################################################### AC_SUBST(ac_aux_dir) AC_CONFIG_FILES([Makefile po/Makefile.in ism/src/Makefile ism/src/scim_types.h ism/utils/Makefile ism/data/Makefile ism/data/icons/Makefile ism/data/pixmaps/Makefile ism/modules/Makefile ism/modules/frontend/imdkit/Makefile ism/modules/frontend/Makefile ism/modules/imengine/Makefile ism/modules/filter/Makefile ism/modules/config/Makefile ism/modules/panelagent/ecoresocket/Makefile ism/modules/panelagent/wayland/Makefile ism/modules/panelagent/socketconfigserver/Makefile ism/configs/Makefile ism/extras/Makefile ism/extras/gtk2_immodule/Makefile ism/extras/efl_immodule/Makefile ism/extras/wayland_immodule/Makefile ism/extras/efl_panel/Makefile ism/extras/kbd_mode_changer/Makefile ism/extras/pkgmgr_parser/Makefile ism/demos/Makefile ism/tests/Makefile intltool-extract intltool-merge intltool-update isf.pc scim.pc scim-gtkutils.pc scim.spec isf-control.pc isf-control.spec engine-loader/Makefile]) AC_OUTPUT AC_MSG_RESULT([ Build options: Version $ISF_VERSION Install prefix $prefix Build shared libs $enable_shared Build static libs $enable_static Enable debug $enable_debug Build for x86 host $enable_x86 Enable ld version script $enable_ld_version_script Module options: Simple config module $enable_config_simple Socket config module $enable_config_socket X11 FrontEnd module $enable_frontend_x11 Socket FrontEnd module $enable_frontend_socket Socket IMEngine module $enable_im_socket SCTC Filter module $enable_filter_sctc GTK2 Utility Library $enable_gtk_utils X11 Utility Library $enable_x11_utils GTK2 IMModule $enable_gtk2_immodule GTK2 IMModule dir $GTK_IM_MODULEDIR EFL IMModule $enable_efl_immodule EFL IMModule dir $EFL_IM_MODULEDIR Wayland IMModule $enable_wayland_immodule Wayland IMModule dir $WAYLAND_IM_MODULEDIR EFL Panel GUI $enable_panel_efl EFL Panel Candidate GUI $enable_candidate_ui Enable TrayIcon $enable_tray_icon Enable MultiWindow $enable_multiwindow_support Enable LazyLaunch $enable_lazy_launch Enable IME Embed $enable_ime_embed_app Enable Remote Input $enable_remote_input Enable OpenInput $enable_open_input ])