|
Packit Service |
1d8f1c |
# vim:set et ts=4:
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# ibus - The Input Bus
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# Copyright (c) 2007-2016 Peng Huang <shawn.p.huang@gmail.com>
|
|
Packit Service |
1d8f1c |
# Copyright (c) 2015-2018 Takao Fujiwara <takao.fujiwara1@gmail.com>
|
|
Packit Service |
1d8f1c |
# Copyright (c) 2007-2018 Red Hat, Inc.
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# This library is free software; you can redistribute it and/or
|
|
Packit Service |
1d8f1c |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
1d8f1c |
# License as published by the Free Software Foundation; either
|
|
Packit Service |
1d8f1c |
# version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# This library is distributed in the hope that it will be useful,
|
|
Packit Service |
1d8f1c |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
1d8f1c |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
1d8f1c |
# Lesser General Public License for more details.
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
1d8f1c |
# License along with this library; if not, write to the Free Software
|
|
Packit Service |
1d8f1c |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
|
Packit Service |
1d8f1c |
# USA
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# If ibus_released is 0, append datestamp to the version number.
|
|
Packit Service |
1d8f1c |
m4_define([ibus_released], [1])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
m4_define([ibus_major_version], [1])
|
|
Packit Service |
1d8f1c |
m4_define([ibus_minor_version], [5])
|
|
Packit Service |
1d8f1c |
m4_define([ibus_micro_version], [19])
|
|
Packit Service |
1d8f1c |
m4_define([ibus_abi_current], [5])
|
|
Packit Service |
1d8f1c |
m4_define([ibus_abi_revision],
|
|
Packit Service |
1d8f1c |
[m4_eval(100 * ibus_minor_version + ibus_micro_version)])
|
|
Packit Service |
1d8f1c |
m4_define([ibus_abi_age], [0])
|
|
Packit Service |
1d8f1c |
m4_define([ibus_maybe_datestamp],
|
|
Packit Service |
1d8f1c |
m4_esyscmd([test x]ibus_released[ != x1 && date +.%Y%m%d | tr -d '\n\r']))
|
|
Packit Service |
1d8f1c |
m4_define([ibus_version],
|
|
Packit Service |
1d8f1c |
ibus_major_version.ibus_minor_version.ibus_micro_version[]ibus_maybe_datestamp)
|
|
Packit Service |
1d8f1c |
m4_define([ibus_api_version], [ibus_major_version.0])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_PREFEQ([2.62])
|
|
Packit Service |
1d8f1c |
AC_INIT([ibus], [ibus_version],
|
|
Packit Service |
1d8f1c |
[https://github.com/ibus/ibus/issues],
|
|
Packit Service |
1d8f1c |
[ibus])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_CONFIG_HEADERS([config.h])
|
|
Packit Service |
1d8f1c |
AC_CONFIG_MACRO_DIR([m4])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
m4_define([ibus_abi_current_minus_age],
|
|
Packit Service |
1d8f1c |
[m4_eval(ibus_abi_current - ibus_abi_age)])
|
|
Packit Service |
1d8f1c |
m4_define([ibus_binary_version],
|
|
Packit Service |
1d8f1c |
[ibus_major_version.ibus_abi_current_minus_age.ibus_abi_age.ibus_abi_revision])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Required versions of other packages.
|
|
Packit Service |
1d8f1c |
m4_define([glib_required_version], [2.46.0])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# VALA_TARGET_GLIB_VERSION is used by valac --ccode --target-glib .
|
|
Packit Service |
1d8f1c |
# VALA_TARGET_GLIB_VERSION and glib_required_version will be different
|
|
Packit Service |
1d8f1c |
# in the future.
|
|
Packit Service |
1d8f1c |
VALA_TARGET_GLIB_VERSION=2.46
|
|
Packit Service |
1d8f1c |
AC_SUBST(VALA_TARGET_GLIB_VERSION)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Init automake.
|
|
Packit Service |
1d8f1c |
AM_INIT_AUTOMAKE([1.11.1 parallel-tests])
|
|
Packit Service |
1d8f1c |
AM_MAINTAINER_MODE([enable])
|
|
Packit Service |
1d8f1c |
AC_GNU_SOURCE
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Support silent build rules. Disable
|
|
Packit Service |
1d8f1c |
# by either passing --disable-silent-rules to configure or passing V=1
|
|
Packit Service |
1d8f1c |
# to make
|
|
Packit Service |
1d8f1c |
AM_SILENT_RULES([yes])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Define sustituted variables:
|
|
Packit Service |
1d8f1c |
IBUS_MAJOR_VERSION=ibus_major_version
|
|
Packit Service |
1d8f1c |
IBUS_MINOR_VERSION=ibus_minor_version
|
|
Packit Service |
1d8f1c |
IBUS_MICRO_VERSION=ibus_micro_version
|
|
Packit Service |
1d8f1c |
IBUS_ABI_CURRENT=ibus_abi_current
|
|
Packit Service |
1d8f1c |
IBUS_ABI_REVISION=ibus_abi_revision
|
|
Packit Service |
1d8f1c |
IBUS_ABI_AGE=ibus_abi_age
|
|
Packit Service |
1d8f1c |
IBUS_VERSION=ibus_version
|
|
Packit Service |
1d8f1c |
IBUS_API_VERSION=ibus_api_version
|
|
Packit Service |
1d8f1c |
IBUS_BINARY_VERSION=ibus_binary_version
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_MAJOR_VERSION)
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_MINOR_VERSION)
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_MICRO_VERSION)
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_ABI_CURRENT)
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_ABI_REVISION)
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_ABI_AGE)
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_API_VERSION)
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_VERSION)
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_BINARY_VERSION)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# libtool versioning
|
|
Packit Service |
1d8f1c |
#
|
|
Packit Service |
1d8f1c |
# If LT_VERSION_INFO="lt_current:lt_revision:lt_age", libibus is
|
|
Packit Service |
1d8f1c |
# libibus-ibus_api_version.so.(lt_current - lt_age).lt_age.lt_revision
|
|
Packit Service |
1d8f1c |
# If the abi is changed, but it is compatible with last version,
|
|
Packit Service |
1d8f1c |
# ibus_abi_current++, ibus_abi_age++;
|
|
Packit Service |
1d8f1c |
# If the abi is not compatible with last version,
|
|
Packit Service |
1d8f1c |
# ibus_abi_current++, ibus_abi_age = 0;
|
|
Packit Service |
1d8f1c |
m4_define([lt_current], [ibus_abi_current])
|
|
Packit Service |
1d8f1c |
m4_define([lt_revision], [ibus_abi_revision])
|
|
Packit Service |
1d8f1c |
m4_define([lt_age], [ibus_abi_age])
|
|
Packit Service |
1d8f1c |
LT_VERSION_INFO="lt_current:lt_revision:lt_age"
|
|
Packit Service |
1d8f1c |
LT_CURRENT_MINUS_AGE=m4_eval(lt_current - lt_age)
|
|
Packit Service |
1d8f1c |
AC_SUBST(LT_VERSION_INFO)
|
|
Packit Service |
1d8f1c |
AC_SUBST(LT_CURRENT_MINUS_AGE)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Define GETTEXT_* variables.
|
|
Packit Service |
1d8f1c |
GETTEXT_PACKAGE=ibus10
|
|
Packit Service |
1d8f1c |
AC_SUBST(GETTEXT_PACKAGE)
|
|
Packit Service |
1d8f1c |
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
|
|
Packit Service |
1d8f1c |
[The prefix for out gettext translation domains.])
|
|
Packit Service |
1d8f1c |
GLIB_DEFINE_LOCALEDIR(GLIB_LOCALE_DIR)
|
|
Packit Service |
1d8f1c |
GLIB_LOCALE_DIR=$localedir
|
|
Packit Service |
1d8f1c |
AC_SUBST(GLIB_LOCALE_DIR)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# For dislpay date.
|
|
Packit Service |
1d8f1c |
m4_define(ibus_datedisplay,
|
|
Packit Service |
1d8f1c |
m4_esyscmd(date '+%a %b %d %Y' | tr -d '\n\r'))
|
|
Packit Service |
1d8f1c |
DATE_DISPLAY="ibus_datedisplay"
|
|
Packit Service |
1d8f1c |
AC_SUBST(DATE_DISPLAY)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Check for programs.
|
|
Packit Service |
1d8f1c |
AC_PROG_CC
|
|
Packit Service |
1d8f1c |
AM_PROG_CC_C_O
|
|
Packit Service |
1d8f1c |
AC_PROG_CC_STDC
|
|
Packit Service |
1d8f1c |
AM_PROG_VALAC([0.20])
|
|
Packit Service |
1d8f1c |
AC_PROG_INSTALL
|
|
Packit Service |
1d8f1c |
AC_PROG_MAKE_SET
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# i18n stuff
|
|
Packit Service |
1d8f1c |
AM_GLIB_GNU_GETTEXT
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Define PACKAGE_VERSION_* variables.
|
|
Packit Service |
1d8f1c |
AM_DISABLE_STATIC
|
|
Packit Service |
1d8f1c |
AC_ISC_POSIX
|
|
Packit Service |
1d8f1c |
AC_HEADER_STDC
|
|
Packit Service |
1d8f1c |
LT_INIT
|
|
Packit Service |
1d8f1c |
IT_PROG_INTLTOOL([0.35.0])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Check functions.
|
|
Packit Service |
1d8f1c |
AC_CHECK_FUNCS(daemon)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Check packages.
|
|
Packit Service |
1d8f1c |
# Check glib2.
|
|
Packit Service |
1d8f1c |
AM_PATH_GLIB_2_0
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(GLIB2, [
|
|
Packit Service |
1d8f1c |
glib-2.0 >= glib_required_version
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(GOBJECT2, [
|
|
Packit Service |
1d8f1c |
gobject-2.0 >= glib_required_version
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(GIO2, [
|
|
Packit Service |
1d8f1c |
gio-2.0 gio-unix-2.0 >= glib_required_version
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(GTHREAD2, [
|
|
Packit Service |
1d8f1c |
gthread-2.0 >= glib_required_version
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --disable-tests option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(tests,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-tests],
|
|
Packit Service |
1d8f1c |
[Do not run tests]),
|
|
Packit Service |
1d8f1c |
[enable_tests=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_tests=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_TESTS], [test x"$enable_tests" = x"yes"])
|
|
Packit Service |
1d8f1c |
if test x"$enable_tests" != x"yes"; then
|
|
Packit Service |
1d8f1c |
enable_tests="no (disabled, use --enable-tests to enable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --disable-gtk2 option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(gtk2,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-gtk2],
|
|
Packit Service |
1d8f1c |
[Do not build gtk2 im module]),
|
|
Packit Service |
1d8f1c |
[enable_gtk2=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_gtk2=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_GTK2], [test x"$enable_gtk2" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --disable-gtk3 option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(gtk3,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-gtk3],
|
|
Packit Service |
1d8f1c |
[Do not build gtk3 im module]),
|
|
Packit Service |
1d8f1c |
[enable_gtk3=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_gtk3=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_GTK3], [test x"$enable_gtk3" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --disable-xim option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(xim,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-xim],
|
|
Packit Service |
1d8f1c |
[Do not build xim server]),
|
|
Packit Service |
1d8f1c |
[enable_xim=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_xim=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_XIM], [test x"$enable_xim" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_xim" = x"yes"; then
|
|
Packit Service |
1d8f1c |
AC_SUBST([XIM_CLI_ARG], [--xim])
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --enable-wayland option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(wayland,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--enable-wayland],
|
|
Packit Service |
1d8f1c |
[Build wayland support]),
|
|
Packit Service |
1d8f1c |
[enable_wayland=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_wayland=no]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_WAYLAND], [test x"$enable_wayland" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --enable-appindicator option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(appindicator,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--enable-appindicator],
|
|
Packit Service |
1d8f1c |
[Build appindicator support]),
|
|
Packit Service |
1d8f1c |
[enable_appindicator=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_appindicator=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_APPINDICATOR], [test x"$enable_appindicator" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_gtk2" = x"yes"; then
|
|
Packit Service |
1d8f1c |
# check for gtk2
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(GTK2, [
|
|
Packit Service |
1d8f1c |
gtk+-2.0
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
gtk2_binary_version=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
|
|
Packit Service |
1d8f1c |
GTK2_IM_MODULEDIR="$libdir"/gtk-2.0/$gtk2_binary_version/immodules
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
enable_gtk2="no (disabled, use --enable-gtk2 to enable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_gtk3" = x"yes"; then
|
|
Packit Service |
1d8f1c |
# check for gtk3
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(GTK3, [
|
|
Packit Service |
1d8f1c |
gtk+-3.0
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
gtk3_binary_version=`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`
|
|
Packit Service |
1d8f1c |
GTK3_IM_MODULEDIR="$libdir"/gtk-3.0/$gtk3_binary_version/immodules
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
enable_gtk3="no (disabled, use --enable-gtk3 to enable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_xim" = x"yes"; then
|
|
Packit Service |
1d8f1c |
# Check for x11
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(X11, [
|
|
Packit Service |
1d8f1c |
x11
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
AC_CHECK_HEADERS([X11/XKBlib.h])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# if we don't have gtk3 yet, check for gtk2
|
|
Packit Service |
1d8f1c |
if test x"$enable_gtk3" != x"yes"; then
|
|
Packit Service |
1d8f1c |
# check for gtk2
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(GTK2, [
|
|
Packit Service |
1d8f1c |
gtk+-2.0
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
enable_xim="no (disabled, use --enable-xim to enable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if $PKG_CONFIG --exists x11; then
|
|
Packit Service |
1d8f1c |
X11_PREFIX="`$PKG_CONFIG --variable=prefix x11`"
|
|
Packit Service |
1d8f1c |
elif test x"$prefix" != xNONE; then
|
|
Packit Service |
1d8f1c |
X11_PREFIX="$prefix"
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
X11_PREFIX="$ac_default_prefix"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
AC_SUBST(X11_PREFIX)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_wayland" = x"yes"; then
|
|
Packit Service |
1d8f1c |
# Check for wayland
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(WAYLAND, [
|
|
Packit Service |
1d8f1c |
wayland-client >= 1.2.0
|
|
Packit Service |
1d8f1c |
xkbcommon
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
enable_wayland="no (disabled, use --enable-wayland to enable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
enable_appindicator_engine_icon="no"
|
|
Packit Service |
1d8f1c |
if test x"$enable_appindicator" = x"yes"; then
|
|
Packit Service |
1d8f1c |
enable_appindicator="yes (enabled, use --disable-appindicator to disable)"
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Need qt5-qtbase-devel package
|
|
Packit Service |
1d8f1c |
# There is no way to check the version of KStatusNotifierItem and
|
|
Packit Service |
1d8f1c |
# check the version of qtbase here.
|
|
Packit Service |
1d8f1c |
AC_MSG_CHECKING([for KDE5 appindicator engine icon])
|
|
Packit Service |
1d8f1c |
PKG_CHECK_EXISTS([Qt5Gui >= 5.4],
|
|
Packit Service |
1d8f1c |
enable_appindicator_engine_icon="yes"
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AC_MSG_RESULT([$enable_appindicator_engine_icon])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
if test x"$enable_appindicator_engine_icon" != x"yes" ; then
|
|
Packit Service |
1d8f1c |
enable_appindicator_engine_icon="no (disabled, need qtbase-devel 5.4 or later)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_APPINDICATOR_ENGINE_ICON],
|
|
Packit Service |
1d8f1c |
[test x"$enable_appindicator_engine_icon" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# GObject introspection
|
|
Packit Service |
1d8f1c |
GOBJECT_INTROSPECTION_CHECK([0.6.8])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
IBUS_GIR_SCANNERFLAGS=
|
|
Packit Service |
1d8f1c |
if test x"$found_introspection" = x"yes" ; then
|
|
Packit Service |
1d8f1c |
IBUS_GIR_SCANNERFLAGS="--warn-all --identifier-prefix=IBus --symbol-prefix=ibus"
|
|
Packit Service |
1d8f1c |
PKG_CHECK_EXISTS([gobject-introspection-1.0 >= 0.9.6],
|
|
Packit Service |
1d8f1c |
[gir_symbol_prefix=yes],
|
|
Packit Service |
1d8f1c |
[gir_symbol_prefix=no])
|
|
Packit Service |
1d8f1c |
if test x"$gir_symbol_prefix" = x"no" ; then
|
|
Packit Service |
1d8f1c |
IBUS_GIR_SCANNERFLAGS="--strip-prefix=IBus"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_GIR_SCANNERFLAGS)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Check vapigen.
|
|
Packit Service |
1d8f1c |
VAPIGEN_CHECK([0.16])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Check for gtk-doc.
|
|
Packit Service |
1d8f1c |
GTK_DOC_CHECK(1.9)
|
|
Packit Service |
1d8f1c |
if test x"$enable_gtk_doc" = x"no"; then
|
|
Packit Service |
1d8f1c |
enable_gtk_doc="no (disabled, use --enable-gtk-doc to enable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Check for dbus.
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(DBUS, [
|
|
Packit Service |
1d8f1c |
dbus-1
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --enable-gconf option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(gconf,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--enable-gconf],
|
|
Packit Service |
1d8f1c |
[Use GConf code]),
|
|
Packit Service |
1d8f1c |
[enable_gconf=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_gconf=no]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_GCONF], [test x"$enable_gconf" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_gconf" = x"yes"; then
|
|
Packit Service |
1d8f1c |
# check gconf
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(GCONF,
|
|
Packit Service |
1d8f1c |
[gconf-2.0 >= 2.12],
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
|
|
Packit Service |
1d8f1c |
if test x"$GCONFTOOL" = xno; then
|
|
Packit Service |
1d8f1c |
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AM_GCONF_SOURCE_2
|
|
Packit Service |
1d8f1c |
# GCONF_SCHEMAS_INSTALL should be set in macro AM_GCONF_SOURCE_2
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [false])
|
|
Packit Service |
1d8f1c |
enable_gconf="no (disabled, use --enable-gconf to enable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --enable-memconf option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(memconf,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--enable-memconf],
|
|
Packit Service |
1d8f1c |
[Enable configure base on memory]),
|
|
Packit Service |
1d8f1c |
[enable_memconf=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_memconf=no]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_MEMCONF], [test "x$enable_memconf" = "xyes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(dconf,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-dconf],
|
|
Packit Service |
1d8f1c |
[Disable configure base on dconf]),
|
|
Packit Service |
1d8f1c |
[enable_dconf=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_dconf=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_DCONF], [test x"$enable_dconf" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_dconf" = x"yes"; then
|
|
Packit Service |
1d8f1c |
# check dconf
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(DCONF,
|
|
Packit Service |
1d8f1c |
[dconf >= 0.7.5],
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
PKG_CHECK_EXISTS([dconf >= 0.13.4],
|
|
Packit Service |
1d8f1c |
[AC_DEFINE(DCONF_0_13_4, TRUE, [dconf is 0.13.4 or later])],
|
|
Packit Service |
1d8f1c |
[])
|
|
Packit Service |
1d8f1c |
# check glib-compile-schemas
|
|
Packit Service |
1d8f1c |
GLIB_GSETTINGS
|
|
Packit Service |
1d8f1c |
enable_dconf="yes (enabled, use --disable-dconf to disable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Check env.
|
|
Packit Service |
1d8f1c |
AC_PATH_PROG(ENV_IBUS_TEST, env)
|
|
Packit Service |
1d8f1c |
AC_SUBST(ENV_IBUS_TEST)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(python2,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-python2],
|
|
Packit Service |
1d8f1c |
[Do not install bindings/pygobject/gi and ibus for python2.
|
|
Packit Service |
1d8f1c |
'--disable-python2' bring '--disable-python-library'.]),
|
|
Packit Service |
1d8f1c |
[enable_python2=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_python2=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(python-library,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--enable-python-library],
|
|
Packit Service |
1d8f1c |
[Use ibus python library]),
|
|
Packit Service |
1d8f1c |
[enable_python_library=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_python_library=no]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(setup,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-setup],
|
|
Packit Service |
1d8f1c |
[Do not use setup ui.]),
|
|
Packit Service |
1d8f1c |
[enable_setup=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_setup=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Define python version
|
|
Packit Service |
1d8f1c |
AC_ARG_WITH(python,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--with-python[=PATH]],
|
|
Packit Service |
1d8f1c |
[Select python2 or python3]),
|
|
Packit Service |
1d8f1c |
[PYTHON=$with_python], []
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AM_PATH_PYTHON([2.5])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_python2" != x"yes"; then
|
|
Packit Service |
1d8f1c |
enable_python_library=no
|
|
Packit Service |
1d8f1c |
PYTHON2=
|
|
Packit Service |
1d8f1c |
enable_python2="no (disabled, use --enable-python2 to enable)"
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
AC_PATH_PROG(PYTHON2, python2)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$PYTHON2" = x""; then
|
|
Packit Service |
1d8f1c |
PYTHON2=$PYTHON
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_PYTHON2], [test x"$enable_python2" = x"yes"])
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_PYTHON_LIBRARY], [test x"$enable_python_library" = x"yes"])
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_SETUP], [test x"$enable_setup" = x"yes"])
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_DAEMON], [true])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
PYGOBJECT_REQUIRED=3.0.0
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
PKG_CHECK_EXISTS([pygobject-3.0 >= $PYGOBJECT_REQUIRED],
|
|
Packit Service |
1d8f1c |
[enable_pygobject=yes], [enable_pygobject=no])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test "x$enable_pygobject" = "xyes"; then
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(PYTHON, [pygobject-3.0 >= $PYGOBJECT_REQUIRED])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
pyoverridesdir=`$PYTHON -c "import gi; print(gi._overridesdir)"`
|
|
Packit Service |
1d8f1c |
AC_SUBST(pyoverridesdir)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_python2" = x"yes"; then
|
|
Packit Service |
1d8f1c |
py2overridesdir=`$PYTHON2 -c "import gi; print(gi._overridesdir)"`
|
|
Packit Service |
1d8f1c |
AC_SUBST(py2overridesdir)
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL(ENABLE_PYGOBJECT, test x"$enable_pygobject" = "xyes")
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_python_library" = x"yes"; then
|
|
Packit Service |
1d8f1c |
# Check python.
|
|
Packit Service |
1d8f1c |
AC_PATH_PROG(PYTHON_CONFIG, python$PYTHON_VERSION-config)
|
|
Packit Service |
1d8f1c |
if test x"$PYTHON_CONFIG" = x""; then
|
|
Packit Service |
1d8f1c |
AC_PATH_PROG(PYTHON_CONFIG, python-config)
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
if test x"$PYTHON_CONFIG" != x""; then
|
|
Packit Service |
1d8f1c |
PYTHON_CFLAGS=`$PYTHON_CONFIG --includes`
|
|
Packit Service |
1d8f1c |
PYTHON_LIBS=`$PYTHON_CONFIG --libs`
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
PYTHON_CFLAGS=`$PYTHON $srcdir/python-config.py --includes`
|
|
Packit Service |
1d8f1c |
PYTHON_LIBS=`$PYTHON $srcdir/python-config.py --libs`
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
PYTHON_INCLUDES="$PYTHON_CFLAGS"
|
|
Packit Service |
1d8f1c |
AC_SUBST(PYTHON_CFLAGS)
|
|
Packit Service |
1d8f1c |
AC_SUBST(PYTHON_INCLUDES)
|
|
Packit Service |
1d8f1c |
AC_SUBST(PYTHON_LIBS)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
PYTHON2_PREFIX=`$PYTHON2 -c "import sys; sys.stdout.write(sys.prefix)"`
|
|
Packit Service |
1d8f1c |
PYTHON2_VERSION=`$PYTHON2 -c "import sys; sys.stdout.write(sys.version[[:3]])"`
|
|
Packit Service |
1d8f1c |
PYTHON2_LIBDIR="$PYTHON2_PREFIX/lib/python$PYTHON2_VERSION"
|
|
Packit Service |
1d8f1c |
python2dir="$PYTHON2_LIBDIR/site-packages"
|
|
Packit Service |
1d8f1c |
pkgpython2dir="$python2dir/ibus"
|
|
Packit Service |
1d8f1c |
AC_SUBST(pkgpython2dir)
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
enable_python_library="no (disabled, use --enable-python-library to enable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Define gtk2 immodule dir.
|
|
Packit Service |
1d8f1c |
AC_ARG_WITH(gtk2-im-module-dir,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--with-gtk2-im-module-dir[=DIR]],
|
|
Packit Service |
1d8f1c |
[Select gtk2 immodule dir]),
|
|
Packit Service |
1d8f1c |
GTK2_IM_MODULEDIR=$with_gtk2_im_module_dir
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AC_SUBST(GTK2_IM_MODULEDIR)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Define gtk3 immodule dir.
|
|
Packit Service |
1d8f1c |
AC_ARG_WITH(gtk3-im-module-dir,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--with-gtk3-im-module-dir[=DIR]],
|
|
Packit Service |
1d8f1c |
[Select gtk3 immodule dir]),
|
|
Packit Service |
1d8f1c |
GTK3_IM_MODULEDIR=$with_gtk3_im_module_dir
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AC_SUBST(GTK3_IM_MODULEDIR)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_python" = x"yes"; then
|
|
Packit Service |
1d8f1c |
# Check for dbus-python.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(dbus-python-check,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-dbus-python-check],
|
|
Packit Service |
1d8f1c |
[Do not check dbus-python]),
|
|
Packit Service |
1d8f1c |
[enable_dbus_python_check=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_dbus_python_check=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(DBUS_PYTHON,
|
|
Packit Service |
1d8f1c |
[dbus-python >= 0.83.0],
|
|
Packit Service |
1d8f1c |
[IBUS_HAS_DBUS_PYTHON=yes],
|
|
Packit Service |
1d8f1c |
[IBUS_HAS_DBUS_PYTHON=no]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
if test x"$IBUS_HAS_DBUS_PYTHON" != x"yes"; then
|
|
Packit Service |
1d8f1c |
if test x"$enable_dbus_python_check" != x"no"; then
|
|
Packit Service |
1d8f1c |
AC_MSG_ERROR([can not find dbus-python >= 0.83.0. Please install or update dbus-python.])
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
AC_MSG_WARN([can not find dbus-python >= 0.83.0. It is required.])
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Option for always disable snooper applications.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(key-snooper,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-key-snooper],
|
|
Packit Service |
1d8f1c |
[Always disable key snooper in gtk im module]),
|
|
Packit Service |
1d8f1c |
[enable_key_snooper=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_key_snooper=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
if test x"$enable_key_snooper" = x"yes"; then
|
|
Packit Service |
1d8f1c |
AC_DEFINE(ENABLE_SNOOPER, TRUE, [Enable key snooper])
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
AC_DEFINE(ENABLE_SNOOPER, FALSE, [Enable key snooper])
|
|
Packit Service |
1d8f1c |
enable_key_snooper="no (disabled, use --enable-key-snooper to enable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Option for no snooper applications.
|
|
Packit Service |
1d8f1c |
AC_ARG_WITH(no-snooper-apps,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--with-no-snooper-apps[=regex1,regex2]],
|
|
Packit Service |
1d8f1c |
[Does not enable keyboard snooper in those applications (like: .*chrome.*,firefox.*)]),
|
|
Packit Service |
1d8f1c |
NO_SNOOPER_APPS=$with_no_snooper_apps,
|
|
Packit Service |
1d8f1c |
NO_SNOOPER_APPS=[firefox.*,.*chrome.*,.*chromium.*,terminator]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AC_DEFINE_UNQUOTED(NO_SNOOPER_APPS, "$NO_SNOOPER_APPS",
|
|
Packit Service |
1d8f1c |
[Does not enbale keyboard snooper in those applications])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# GNOME 3 uses the theme's icon.
|
|
Packit Service |
1d8f1c |
AC_ARG_WITH(panel-icon-keyboard,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--with-panel-icon-keyboard[=icon_name]],
|
|
Packit Service |
1d8f1c |
[Set the default panel icon (default: "ibus-keyboard")]),
|
|
Packit Service |
1d8f1c |
[if test x"$with_panel_icon_keyboard" = x"yes" -o \
|
|
Packit Service |
1d8f1c |
x"$with_panel_icon_keyboard" = x; then
|
|
Packit Service |
1d8f1c |
with_panel_icon_keyboard="input-keyboard-symbolic"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
if test x"$with_panel_icon_keyboard" = x"legacy"; then
|
|
Packit Service |
1d8f1c |
with_panel_icon_keyboard="ibus-keyboard"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
IBUS_ICON_KEYBOARD=$with_panel_icon_keyboard
|
|
Packit Service |
1d8f1c |
],
|
|
Packit Service |
1d8f1c |
IBUS_ICON_KEYBOARD="ibus-keyboard"
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AC_SUBST(IBUS_ICON_KEYBOARD)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --disable-surrounding-text option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(surrounding-text,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-surrounding-text],
|
|
Packit Service |
1d8f1c |
[Enable surrounding-text support]),
|
|
Packit Service |
1d8f1c |
[enable_surrounding_text=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_surrounding_text=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
if test x"$enable_surrounding_text" = x"yes"; then
|
|
Packit Service |
1d8f1c |
AC_DEFINE(ENABLE_SURROUNDING, TRUE, [Enable surrounding-text support])
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
enable_surrounding_text="no (disabled, use --enable-surrounding-text to enable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --disable-ui
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(ui,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-ui],
|
|
Packit Service |
1d8f1c |
[Disable ibus default user interface]),
|
|
Packit Service |
1d8f1c |
[enable_ui=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_ui=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_UI], [test x"$enable_ui" = x"yes"])
|
|
Packit Service |
1d8f1c |
if test x"$enable_ui" = x"yes"; then
|
|
Packit Service |
1d8f1c |
# Check for x11
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(X11, [
|
|
Packit Service |
1d8f1c |
x11
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
enable_ui="yes (enabled, use --disable-ui to disable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --disable-engine
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(engine,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-engine],
|
|
Packit Service |
1d8f1c |
[Disable ibus simple engine]),
|
|
Packit Service |
1d8f1c |
[enable_engine=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_engine=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_ENGINE], [test x"$enable_engine" = x"yes"])
|
|
Packit Service |
1d8f1c |
if test x"$enable_engine" = x"yes"; then
|
|
Packit Service |
1d8f1c |
enable_engine="yes (enabled, use --disable-engine to disable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --disable-libnotify
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(libnotify,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-libnotify],
|
|
Packit Service |
1d8f1c |
[Disable to link libnotify]),
|
|
Packit Service |
1d8f1c |
[enable_libnotify=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_libnotify=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_LIBNOTIFY], [test x"$enable_libnotify" = x"yes"])
|
|
Packit Service |
1d8f1c |
if test x"$enable_libnotify" = x"yes"; then
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(LIBNOTIFY, [
|
|
Packit Service |
1d8f1c |
libnotify >= 0.7
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
enable_libnotify="yes (enabled, use --disable-libnotify to disable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(XTEST,
|
|
Packit Service |
1d8f1c |
[x11 xtst],
|
|
Packit Service |
1d8f1c |
[enable_xtest=yes],
|
|
Packit Service |
1d8f1c |
[enable_xtest=no]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_XTEST], [test x"$enable_xtest" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
rpm-build |
dbbf76 |
# --enable-install-tests
|
|
rpm-build |
dbbf76 |
AC_ARG_ENABLE(install-tests,
|
|
rpm-build |
dbbf76 |
AS_HELP_STRING([--enable-install-tests],
|
|
rpm-build |
dbbf76 |
[Enable to install tests]),
|
|
rpm-build |
dbbf76 |
[enable_install_tests=$enableval],
|
|
rpm-build |
dbbf76 |
[enable_install_tests=no]
|
|
rpm-build |
dbbf76 |
)
|
|
rpm-build |
dbbf76 |
AM_CONDITIONAL([ENABLE_INSTALL_TESTS], [test x"$enable_install_tests" = x"yes"])
|
|
rpm-build |
dbbf76 |
if test x"$enable_install_tests" = x"no"; then
|
|
rpm-build |
dbbf76 |
enable_install_tests="no (disabled, use --enable-install-tests to enable)"
|
|
rpm-build |
dbbf76 |
fi
|
|
rpm-build |
dbbf76 |
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --disable-emoji-dict option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(emoji-dict,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-emoji-dict],
|
|
Packit Service |
1d8f1c |
[Do not build Emoji dict files]),
|
|
Packit Service |
1d8f1c |
[enable_emoji_dict=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_emoji_dict=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_EMOJI_DICT], [test x"$enable_emoji_dict" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_ARG_WITH(unicode-emoji-dir,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--with-unicode-emoji-dir[=DIR]],
|
|
Packit Service |
1d8f1c |
[Set the directory of Unicode Emoji.
|
|
Packit Service |
1d8f1c |
(default: "/usr/share/unicode/emoji")]),
|
|
Packit Service |
1d8f1c |
UNICODE_EMOJI_DIR=$with_unicode_emoji_dir,
|
|
Packit Service |
1d8f1c |
UNICODE_EMOJI_DIR="/usr/share/unicode/emoji"
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AC_SUBST(UNICODE_EMOJI_DIR)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_ARG_WITH(emoji-annotation-dir,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--with-emoji-annotation-dir[=DIR]],
|
|
Packit Service |
1d8f1c |
[Set the directory of CLDR annotation files.
|
|
Packit Service |
1d8f1c |
(default: "/usr/share/unicode/cldr/common/annotations")]),
|
|
Packit Service |
1d8f1c |
EMOJI_ANNOTATION_DIR=$with_emoji_annotation_dir,
|
|
Packit Service |
1d8f1c |
EMOJI_ANNOTATION_DIR="/usr/share/unicode/cldr/common/annotations"
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AC_SUBST(EMOJI_ANNOTATION_DIR)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_emoji_dict" = x"yes"; then
|
|
Packit Service |
1d8f1c |
if test ! -f $UNICODE_EMOJI_DIR/emoji-test.txt ; then
|
|
Packit Service |
1d8f1c |
AC_MSG_ERROR(Not found $UNICODE_EMOJI_DIR/emoji-test.txt. You can get \
|
|
Packit Service |
1d8f1c |
the emoji files from http://www.unicode.org/Public/emoji/4.0/)
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
# POSIX SHELL has no ${FOO:0:1}
|
|
Packit Service |
1d8f1c |
head=`echo "$UNICODE_EMOJI_DIR" | cut -c1`;
|
|
Packit Service |
1d8f1c |
if test $head != "/" ; then
|
|
Packit Service |
1d8f1c |
UNICODE_EMOJI_DIR=`realpath "$UNICODE_EMOJI_DIR"`
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
if test ! -f $EMOJI_ANNOTATION_DIR/en.xml ; then
|
|
Packit Service |
1d8f1c |
AC_MSG_ERROR(Not found $EMOJI_ANNOTATION_DIR/en.xml. You can get \
|
|
Packit Service |
1d8f1c |
https://github.com/fujiwarat/cldr-emoji-annotation)
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
head=`echo "$EMOJI_ANNOTATION_DIR" | cut -c1`;
|
|
Packit Service |
1d8f1c |
if test $head != "/" ; then
|
|
Packit Service |
1d8f1c |
EMOJI_ANNOTATION_DIR=`realpath "$EMOJI_ANNOTATION_DIR"`
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
enable_emoji_dict="yes (enabled, use --disable-emoji-dict to disable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# --disable-unicode-dict option.
|
|
Packit Service |
1d8f1c |
AC_ARG_ENABLE(unicode-dict,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--disable-unicode-dict],
|
|
Packit Service |
1d8f1c |
[Do not build Unicode dict files]),
|
|
Packit Service |
1d8f1c |
[enable_unicode_dict=$enableval],
|
|
Packit Service |
1d8f1c |
[enable_unicode_dict=yes]
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AM_CONDITIONAL([ENABLE_UNICODE_DICT], [test x"$enable_unicode_dict" = x"yes"])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_ARG_WITH(ucd-dir,
|
|
Packit Service |
1d8f1c |
AS_HELP_STRING([--with-ucd-dir[=DIR]],
|
|
Packit Service |
1d8f1c |
[Set the directory of UCD (Unicode Character Database) files.
|
|
Packit Service |
1d8f1c |
(default: "/usr/share/unicode/ucd")]),
|
|
Packit Service |
1d8f1c |
UCD_DIR=$with_ucd_dir,
|
|
Packit Service |
1d8f1c |
UCD_DIR="/usr/share/unicode/ucd"
|
|
Packit Service |
1d8f1c |
)
|
|
Packit Service |
1d8f1c |
AC_SUBST(UCD_DIR)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
if test x"$enable_unicode_dict" = x"yes"; then
|
|
Packit Service |
1d8f1c |
if test ! -f $UCD_DIR/NamesList.txt ; then
|
|
Packit Service |
1d8f1c |
AC_MSG_ERROR(Not found $UCD_DIR/NamesList.txt. You can get \
|
|
Packit Service |
1d8f1c |
the UCD files from https://www.unicode.org/Public/UNIDATA/)
|
|
Packit Service |
1d8f1c |
elif test ! -f $UCD_DIR/Blocks.txt ; then
|
|
Packit Service |
1d8f1c |
AC_MSG_ERROR(Not found $UCD_DIR/Blocks.txt. You can get \
|
|
Packit Service |
1d8f1c |
the UCD files from https://www.unicode.org/Public/UNIDATA/)
|
|
Packit Service |
1d8f1c |
else
|
|
Packit Service |
1d8f1c |
# POSIX SHELL has no ${FOO:0:1}
|
|
Packit Service |
1d8f1c |
head=`echo "$UCD_DIR" | cut -c1`;
|
|
Packit Service |
1d8f1c |
if test $head != "/" ; then
|
|
Packit Service |
1d8f1c |
UCD_DIR=`realpath "$UCD_DIR"`
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
enable_unicode_dict="yes (enabled, use --disable-unicode-dict to disable)"
|
|
Packit Service |
1d8f1c |
fi
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# Check iso-codes.
|
|
Packit Service |
1d8f1c |
PKG_CHECK_MODULES(ISOCODES, [
|
|
Packit Service |
1d8f1c |
iso-codes
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
ISOCODES_PREFIX=`$PKG_CONFIG iso-codes --variable=prefix`
|
|
Packit Service |
1d8f1c |
AC_SUBST(ISOCODES_PREFIX)
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_SUBST([GDBUS_CODEGEN], [`$PKG_CONFIG --variable gdbus_codegen gio-2.0`])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
# OUTPUT files
|
|
Packit Service |
1d8f1c |
AC_CONFIG_FILES([ po/Makefile.in
|
|
Packit Service |
1d8f1c |
Makefile
|
|
Packit Service |
1d8f1c |
ibus-1.0.pc
|
|
Packit Service |
1d8f1c |
ibus.spec
|
|
Packit Service |
1d8f1c |
client/Makefile
|
|
Packit Service |
1d8f1c |
client/gtk2/Makefile
|
|
Packit Service |
1d8f1c |
client/gtk3/Makefile
|
|
Packit Service |
1d8f1c |
client/x11/Makefile
|
|
Packit Service |
1d8f1c |
client/wayland/Makefile
|
|
Packit Service |
1d8f1c |
src/Makefile
|
|
Packit Service |
1d8f1c |
src/ibusversion.h
|
|
Packit Service |
1d8f1c |
src/tests/Makefile
|
|
Packit Service |
1d8f1c |
bus/Makefile
|
|
Packit Service |
1d8f1c |
portal/Makefile
|
|
Packit Service |
1d8f1c |
engine/Makefile
|
|
Packit Service |
1d8f1c |
util/Makefile
|
|
Packit Service |
1d8f1c |
util/IMdkit/Makefile
|
|
Packit Service |
1d8f1c |
data/Makefile
|
|
Packit Service |
1d8f1c |
data/annotations/Makefile
|
|
Packit Service |
1d8f1c |
data/icons/Makefile
|
|
Packit Service |
1d8f1c |
data/keymaps/Makefile
|
|
Packit Service |
1d8f1c |
data/dconf/Makefile
|
|
Packit Service |
1d8f1c |
docs/Makefile
|
|
Packit Service |
1d8f1c |
docs/reference/Makefile
|
|
Packit Service |
1d8f1c |
docs/reference/ibus/ibus-docs.sgml
|
|
Packit Service |
1d8f1c |
docs/reference/ibus/Makefile
|
|
Packit Service |
1d8f1c |
m4/Makefile
|
|
Packit Service |
1d8f1c |
ibus/_config.py
|
|
Packit Service |
1d8f1c |
ibus/Makefile
|
|
Packit Service |
1d8f1c |
ibus/interface/Makefile
|
|
Packit Service |
1d8f1c |
ui/Makefile
|
|
Packit Service |
1d8f1c |
ui/gtk3/Makefile
|
|
Packit Service |
1d8f1c |
setup/Makefile
|
|
Packit Service |
1d8f1c |
bindings/Makefile
|
|
Packit Service |
1d8f1c |
bindings/pygobject/Makefile
|
|
Packit Service |
1d8f1c |
bindings/vala/Makefile
|
|
Packit Service |
1d8f1c |
conf/Makefile
|
|
Packit Service |
1d8f1c |
conf/gconf/Makefile
|
|
Packit Service |
1d8f1c |
conf/dconf/Makefile
|
|
Packit Service |
1d8f1c |
conf/memconf/Makefile
|
|
Packit Service |
1d8f1c |
tools/Makefile
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
AC_OUTPUT
|
|
Packit Service |
1d8f1c |
AC_MSG_RESULT([
|
|
Packit Service |
1d8f1c |
Build options:
|
|
Packit Service |
1d8f1c |
Version $IBUS_VERSION
|
|
Packit Service |
1d8f1c |
Install prefix $prefix
|
|
Packit Service |
1d8f1c |
Build shared libs $enable_shared
|
|
Packit Service |
1d8f1c |
Build static libs $enable_static
|
|
Packit Service |
1d8f1c |
CFLAGS $CFLAGS
|
|
Packit Service |
1d8f1c |
PYTHON $PYTHON
|
|
Packit Service |
1d8f1c |
PYTHON2 $PYTHON2
|
|
Packit Service |
1d8f1c |
Enable python2 $enable_python2
|
|
Packit Service |
1d8f1c |
Gtk2 immodule dir $GTK2_IM_MODULEDIR
|
|
Packit Service |
1d8f1c |
Gtk3 immodule dir $GTK3_IM_MODULEDIR
|
|
Packit Service |
1d8f1c |
Build gtk2 immodule $enable_gtk2
|
|
Packit Service |
1d8f1c |
Build gtk3 immodule $enable_gtk3
|
|
Packit Service |
1d8f1c |
Build XIM agent server $enable_xim
|
|
Packit Service |
1d8f1c |
Build wayland support $enable_wayland
|
|
Packit Service |
1d8f1c |
Build appindicator support $enable_appindicator
|
|
Packit Service |
1d8f1c |
Build appindicator engine icon $enable_appindicator_engine_icon
|
|
Packit Service |
1d8f1c |
Build python library $enable_python_library
|
|
Packit Service |
1d8f1c |
Build gconf modules $enable_gconf
|
|
Packit Service |
1d8f1c |
Build memconf modules $enable_memconf
|
|
Packit Service |
1d8f1c |
Build dconf modules $enable_dconf
|
|
Packit Service |
1d8f1c |
Build introspection $found_introspection
|
|
Packit Service |
1d8f1c |
IBus-1.0.gir scannerflags "$IBUS_GIR_SCANNERFLAGS"
|
|
Packit Service |
1d8f1c |
Build vala binding $enable_vala
|
|
Packit Service |
1d8f1c |
Build document $enable_gtk_doc
|
|
Packit Service |
1d8f1c |
Build UI $enable_ui
|
|
Packit Service |
1d8f1c |
Build engine $enable_engine
|
|
Packit Service |
1d8f1c |
Enable key snooper $enable_key_snooper
|
|
Packit Service |
1d8f1c |
No snooper regexes "$NO_SNOOPER_APPS"
|
|
Packit Service |
1d8f1c |
Panel icon "$IBUS_ICON_KEYBOARD"
|
|
Packit Service |
1d8f1c |
Enable surrounding-text $enable_surrounding_text
|
|
Packit Service |
1d8f1c |
Enable libnotify $enable_libnotify
|
|
Packit Service |
1d8f1c |
Enable Emoji dict $enable_emoji_dict
|
|
Packit Service |
1d8f1c |
Unicode Emoji directory $UNICODE_EMOJI_DIR
|
|
Packit Service |
1d8f1c |
CLDR annotation directory $EMOJI_ANNOTATION_DIR
|
|
Packit Service |
1d8f1c |
Enable Unicode dict $enable_unicode_dict
|
|
Packit Service |
1d8f1c |
UCD directory $UCD_DIR
|
|
Packit Service |
1d8f1c |
Run test cases $enable_tests
|
|
rpm-build |
dbbf76 |
Install tests $enable_install_tests
|
|
Packit Service |
1d8f1c |
])
|
|
Packit Service |
1d8f1c |
|