~ubuntu-branches/ubuntu/quantal/ibus/quantal

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Barry Warsaw
  • Date: 2011-08-11 17:00:57 UTC
  • mfrom: (6.2.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110811170057-6dmbfs4s3cchzl7x
Tags: 1.3.99.20110419-1ubuntu1
* Merge with Debian unstable.  Remaining Ubuntu changes:
  - Indicator support:
    + Add 05_appindicator.patch: Use an indicator rather than a notification
      icon.
    + debian/control: Recommend python-appindicator.
  - debian/control: Install im-switch instead of im-config by default.
  - debian/README.source: Removed, it was outdated and no longer correct
  - debian/patches/01_ubuntu_desktop: Fix "Desktop entry needs the
    X-Ubuntu-Gettext-Domain key"  (LP: #457632)
  - debian/patches/02_title_update.patch: Rename "IBus Preferences" to
    "Keyboard Input Methods"
  - debian/patches/06_locale_parser.patch: Cherry-picked from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# License along with this program; if not, write to the
20
20
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
21
21
# Boston, MA  02111-1307  USA
 
22
AC_PREFEQ([2.62])
 
23
 
 
24
AC_CONFIG_HEADERS([config.h])
 
25
AC_CONFIG_MACRO_DIR([m4])
 
26
 
22
27
 
23
28
# if not 1, append datestamp to the version number.
24
 
m4_define([ibus_released], [1])
 
29
m4_define([ibus_released], [0])
25
30
m4_define([ibus_major_version], [1])
26
31
m4_define([ibus_minor_version], [3])
27
 
m4_define([ibus_micro_version], [9])
 
32
m4_define([ibus_micro_version], [99])
28
33
m4_define(ibus_maybe_datestamp,
29
34
    m4_esyscmd([if test x]ibus_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
30
 
 
31
35
m4_define([ibus_version],
32
36
    ibus_major_version.ibus_minor_version.ibus_micro_version[]ibus_maybe_datestamp)
33
 
 
34
 
AC_INIT([ibus], [ibus_version], [http://code.google.com/p/ibus/issues/entry],[ibus])
 
37
# This is the X.Y used in -libus-X.Y
 
38
m4_define([ibus_api_version], [1.0])
 
39
 
 
40
 
 
41
# Required versions of other packages
 
42
m4_define([glib_required_version], [2.26.0])
 
43
 
 
44
 
 
45
AC_INIT([ibus], [ibus_version],
 
46
        [http://code.google.com/p/ibus/issues/entry],
 
47
        [ibus])
 
48
 
 
49
# Init automake
35
50
AM_INIT_AUTOMAKE([1.10])
 
51
AM_MAINTAINER_MODE([enable])
36
52
AC_GNU_SOURCE
37
53
 
38
 
AC_CONFIG_HEADERS([config.h])
39
 
AC_CONFIG_MACRO_DIR([m4])
 
54
# Support silent build
40
55
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
41
56
 
42
 
# define PACKAGE_VERSION_* variables
43
 
AS_VERSION
44
 
AS_NANO
45
 
AM_MAINTAINER_MODE
46
 
AM_DISABLE_STATIC
 
57
# Define sustituted variables:
 
58
IBUS_MAJOR_VERSION=ibus_major_version
 
59
IBUS_MINOR_VERSION=ibus_minor_version
 
60
IBUS_MICRO_VERSION=ibus_micro_version
 
61
IBUS_API_VERSION=ibus_api_version
 
62
AC_SUBST(IBUS_MAJOR_VERSION)
 
63
AC_SUBST(IBUS_MINOR_VERSION)
 
64
AC_SUBST(IBUS_MICRO_VERSION)
 
65
AC_SUBST(IBUS_API_VERSION)
 
66
 
 
67
# Check for programs
47
68
AC_PROG_CC
48
69
AM_PROG_CC_C_O
 
70
AC_PROG_CC_STDC
 
71
AC_PROG_INSTALL
49
72
AC_PROG_CXX
 
73
 
 
74
# define PACKAGE_VERSION_* variables
 
75
AM_DISABLE_STATIC
50
76
AC_ISC_POSIX
51
77
AC_HEADER_STDC
52
78
AM_PROG_LIBTOOL
53
79
IT_PROG_INTLTOOL([0.35.0])
54
80
 
55
 
# For dislpay Date
56
 
m4_define(ibus_datedisplay,
57
 
    m4_esyscmd(date '+%a %b %d %Y' | tr -d '\n\r'))
58
 
DATE_DISPLAY="ibus_datedisplay"
59
 
AC_SUBST(DATE_DISPLAY)
60
 
 
61
81
# If only source code changed, lt_revision + 1
62
82
# If any interface added, lt_age + 1
63
83
# If any interfaces changed or removed, lt_current + 1, lt_revision = 0, lt_age = 0
64
 
m4_define([lt_current], [2])
 
84
m4_define([lt_current], [0])
65
85
m4_define([lt_revision], [0])
66
86
m4_define([lt_age], [0])
67
87
LT_VERSION_INFO="lt_current:lt_revision:lt_age"
68
88
AC_SUBST(LT_VERSION_INFO)
69
89
 
70
 
# check inotify
71
 
AC_CHECK_HEADERS([sys/inotify.h])
72
 
 
73
90
# check funcs
74
91
AC_CHECK_FUNCS(daemon)
75
92
 
76
93
# check glib2
77
94
AM_PATH_GLIB_2_0
78
95
PKG_CHECK_MODULES(GLIB2, [
79
 
    glib-2.0 >= 2.18
 
96
    glib-2.0 >= glib_required_version
80
97
])
81
98
PKG_CHECK_MODULES(GOBJECT2, [
82
 
    gobject-2.0 >= 2.18
 
99
    gobject-2.0 >= glib_required_version
83
100
])
84
101
PKG_CHECK_MODULES(GIO2, [
85
 
    gio-2.0 >= 2.18
 
102
    gio-2.0 >= glib_required_version
86
103
])
87
104
PKG_CHECK_MODULES(GTHREAD2, [
88
 
    gthread-2.0 >= 2.18
 
105
    gthread-2.0 >= glib_required_version
89
106
])
90
107
 
91
108
AC_ARG_ENABLE(gtk2,
188
205
if test x"$enable_gtk_doc" = x"no"; then
189
206
    enable_gtk_doc="no (disabled, use --enable-gtk-doc to enable)"
190
207
fi
191
 
# check for dbus-glib
 
208
 
 
209
# check for dbus
192
210
PKG_CHECK_MODULES(DBUS, [
193
211
    dbus-1
194
212
])
199
217
    [enable_gconf=$enableval],
200
218
    [enable_gconf=yes]
201
219
)
202
 
AM_CONDITIONAL([ENABLE_GCONF], [test "x$enable_gconf" = "xyes"])
 
220
AM_CONDITIONAL([ENABLE_GCONF], [test x"$enable_gconf" = x"yes"])
203
221
 
204
222
if test x"$enable_gconf" = x"yes"; then
205
223
    # check gconf
238
256
    [enable_python=yes]
239
257
)
240
258
 
241
 
AM_CONDITIONAL([ENABLE_PYTHON], [test "x$enable_python" = "xyes"])
 
259
AM_CONDITIONAL([ENABLE_PYTHON], [test x"$enable_python" = x"yes"])
 
260
AM_CONDITIONAL([ENABLE_DAEMON], [true])
242
261
 
243
262
if test x"$enable_python" = x"yes"; then
244
263
    # check python
267
286
# AC_SUBST(REBUILD)
268
287
 
269
288
# define GETTEXT_* variables
270
 
GETTEXT_PACKAGE=ibus
 
289
GETTEXT_PACKAGE=ibus10
271
290
AC_SUBST(GETTEXT_PACKAGE)
272
291
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
273
292
 
335
354
AC_DEFINE_UNQUOTED(NO_SNOOPER_APPS, "$NO_SNOOPER_APPS",
336
355
    [Does not enbale keyboard snooper in those applications])
337
356
 
 
357
# GNOME 3 uses the theme's icon
 
358
AC_ARG_WITH(panel-icon-keyboard,
 
359
    AS_HELP_STRING([--with-panel-icon-keyboard[=icon_name]],
 
360
        [Set the default panel icon (default: "input-keyboard-symbolic")]),
 
361
    [if test x"$with_panel_icon_keyboard" = x"yes" -o \
 
362
             x"$with_panel_icon_keyboard" = x; then
 
363
         with_panel_icon_keyboard="input-keyboard-symbolic"
 
364
     fi
 
365
     if test x"$with_panel_icon_keyboard" = x"legacy"; then
 
366
         with_panel_icon_keyboard="ibus-keyboard"
 
367
     fi
 
368
     IBUS_ICON_KEYBOARD=$with_panel_icon_keyboard
 
369
    ],
 
370
    IBUS_ICON_KEYBOARD="input-keyboard-symbolic"
 
371
)
 
372
AC_SUBST(IBUS_ICON_KEYBOARD)
 
373
 
 
374
# option for enable surrounding-text
 
375
AC_ARG_ENABLE(surrounding-text,
 
376
    AS_HELP_STRING([--enable-surrounding-text],
 
377
        [Enable surrounding-text support]),
 
378
    [enable_surrounding_text=$enableval],
 
379
    [enable_surrounding_text=no]
 
380
)
 
381
if test x"$enable_surrounding_text" = x"yes"; then
 
382
    AC_DEFINE(ENABLE_SURROUNDING, TRUE, [Enable surrounding-text support])
 
383
else
 
384
    enable_surrounding_text="no (disabled, use --enable-surrounding-text to enable)"
 
385
fi
 
386
 
338
387
# check iso-codes
339
388
PKG_CHECK_MODULES(ISOCODES, [
340
389
    iso-codes
356
405
client/x11/Makefile
357
406
src/Makefile
358
407
src/ibusversion.h
 
408
src/tests/Makefile
359
409
bus/Makefile
360
410
util/Makefile
361
411
util/IMdkit/Makefile
389
439
  Install prefix            $prefix
390
440
  Build shared libs         $enable_shared
391
441
  Build static libs         $enable_static
 
442
  CFLAGS                    $CFLAGS
392
443
  Gtk2 immodule dir         $GTK2_IM_MODULEDIR
393
444
  Gtk3 immodule dir         $GTK3_IM_MODULEDIR
394
445
  Build gtk2 immodule       $enable_gtk2
403
454
  Build document            $enable_gtk_doc
404
455
  Enable key snooper        $enable_key_snooper
405
456
  No snooper regexes        "$NO_SNOOPER_APPS"
 
457
  Panel icon                "$IBUS_ICON_KEYBOARD"
 
458
  Enable surrounding-text   $enable_surrounding_text
406
459
])
407
460