summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJosé Roberto de Souza <jose.souza@intel.com>2013-07-04 15:23:32 -0300
committerJosé Roberto de Souza <jose.souza@intel.com>2013-07-05 15:06:05 -0300
commitdadf38cb2f9c40df33ad004adc6549f036df7a81 (patch)
treea2e5cac25f054e33cdb4324c2d7914fbe91d26eb /configure.ac
parenta64e0c05736b541c95515ef462bb7fe240773183 (diff)
Add option to disable scim and ibus ecore_imf backend
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac31
1 files changed, 27 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index de71c7834f..2335f96ddd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2582,6 +2582,28 @@ AC_ARG_ENABLE([xim],
2582 ], 2582 ],
2583 [want_xim="yes"]) 2583 [want_xim="yes"])
2584 2584
2585AC_ARG_ENABLE([scim],
2586 [AC_HELP_STRING([--disable-scim], [disable SCIM.])],
2587 [
2588 if test "x${enableval}" = "xyes" ; then
2589 want_scim="yes"
2590 else
2591 want_scim="no"
2592 fi
2593 ],
2594 [want_scim="yes"])
2595
2596AC_ARG_ENABLE([ibus],
2597 [AC_HELP_STRING([--disable-ibus], [disable IBUS.])],
2598 [
2599 if test "x${enableval}" = "xyes" ; then
2600 want_ibus="yes"
2601 else
2602 want_ibus="no"
2603 fi
2604 ],
2605 [want_ibus="yes"])
2606
2585### Default values 2607### Default values
2586 2608
2587### Checks for programs 2609### Checks for programs
@@ -2814,7 +2836,7 @@ fi
2814# ibus 2836# ibus
2815 2837
2816have_ecore_imf_ibus="no" 2838have_ecore_imf_ibus="no"
2817if test "x${want_ecore_imf_ibus}" = "xyes" && test "x${have_glib}" = "xyes" ; then 2839if test "x${want_ibus}" = "xyes" && test "x${want_ecore_imf_ibus}" = "xyes" && test "x${have_glib}" = "xyes" ; then
2818 PKG_CHECK_MODULES([IBUS], 2840 PKG_CHECK_MODULES([IBUS],
2819 [ibus-1.0 >= 1.4 glib-2.0], 2841 [ibus-1.0 >= 1.4 glib-2.0],
2820 [ 2842 [
@@ -2825,11 +2847,12 @@ if test "x${want_ecore_imf_ibus}" = "xyes" && test "x${have_glib}" = "xyes" ; th
2825fi 2847fi
2826 2848
2827AM_CONDITIONAL([BUILD_ECORE_IMF_IBUS], [test "x${have_ecore_imf_ibus}" = "xyes"]) 2849AM_CONDITIONAL([BUILD_ECORE_IMF_IBUS], [test "x${have_ecore_imf_ibus}" = "xyes"])
2828EFL_ADD_FEATURE([ECORE_IMF], [ibus], [${want_ecore_imf_ibus}]) 2850EFL_ADD_FEATURE([ECORE_IMF], [ibus], [${have_ecore_imf_ibus}])
2829 2851
2830# scim 2852# scim
2831 2853
2832if test "x${want_ecore_imf_scim}" = "xyes" ; then 2854have_ecore_imf_scim="no"
2855if test "x${want_scim}" = "xyes" && test "x${want_ecore_imf_scim}" = "xyes" ; then
2833 PKG_CHECK_MODULES([SCIM], 2856 PKG_CHECK_MODULES([SCIM],
2834 [scim], 2857 [scim],
2835 [ 2858 [
@@ -2840,7 +2863,7 @@ if test "x${want_ecore_imf_scim}" = "xyes" ; then
2840fi 2863fi
2841 2864
2842AM_CONDITIONAL([BUILD_ECORE_IMF_SCIM], [test "x${have_ecore_imf_scim}" = "xyes"]) 2865AM_CONDITIONAL([BUILD_ECORE_IMF_SCIM], [test "x${have_ecore_imf_scim}" = "xyes"])
2843EFL_ADD_FEATURE([ECORE_IMF], [scim], [${want_ecore_imf_scim}]) 2866EFL_ADD_FEATURE([ECORE_IMF], [scim], [${have_ecore_imf_scim}])
2844 2867
2845# xim 2868# xim
2846 2869