Make use of -Wno-unused-parameter
[profile/ivi/weekeyboard.git] / configure.ac
1 m4_define([wkb_major], [0])
2 m4_define([wkb_minor], [0])
3 m4_define([wkb_micro], [1])
4 m4_define([wkb_version], [wkb_major.wkb_minor.wkb_micro])
5
6 AC_PREREQ([2.64])
7 AC_INIT([weekeyboard], [wkb_version])
8
9 AC_SUBST([weekeyboard_MAJOR],   [wkb_major])
10 AC_SUBST([weekeyboard_MINOR],   [wkb_minor])
11 AC_SUBST([weekeyboard_MICRO],   [wkb_micro])
12 AC_SUBST([weekeyboard_VERSION], [wkb_version])
13
14 AC_CONFIG_HEADERS([config.h])
15
16 AM_INIT_AUTOMAKE([1.11 -Wall parallel-tests foreign color-tests dist-bzip2])
17
18 AM_SILENT_RULES([yes])
19
20 # Check for programs
21 AC_PROG_CC
22 AC_PROG_SED
23
24 # Initialize libtool
25 LT_PREREQ([2.2])
26 LT_INIT([disable-static])
27
28 PKG_PROG_PKG_CONFIG()
29
30 PKG_CHECK_MODULES(WAYLAND, [wayland-client >= 1.2.0])
31 PKG_CHECK_MODULES(EFL, [eina eet evas ecore ecore-evas ecore-wayland edje])
32
33 AC_ARG_WITH(edje-cc,
34             AS_HELP_STRING([--with-edje-cc=PATH], [Path to edje_cc binary]),
35             [EDJE_CC_PATH=${withval}], [EDJE_CC_PATH=$($PKG_CONFIG --variable=prefix edje)/bin/edje_cc])
36 AC_SUBST([EDJE_CC_PATH])
37
38
39 AC_ARG_ENABLE([ibus],
40               [AC_HELP_STRING([--disable-ibus],
41                               [Disable integration with IBus input method system])],
42               [], [enable_ibus=yes])
43
44 AM_CONDITIONAL(ENABLE_IBUS, test "x$enable_ibus" = "xyes")
45
46 if test "x$enable_ibus" = "xyes"; then
47     PKG_CHECK_MODULES(ELDBUS, [eldbus])
48     AC_CHECK_PROG([have_ibus], [ibus], [yes], [no])
49
50     AS_IF([ test "x$have ibus" = "xno" ],
51           [ AC_MSG_ERROR([The ibus executable was not found.]) ])
52
53     IBUS_ADDR=`ibus address > /dev/null 2>&1`
54     AS_IF([ test $? -ne 0 ],
55           [ AC_MSG_WARN([The ibus executable does not support 'address' argument.]) ])
56
57     AC_DEFINE(BUILD_IBUS, [1], [Build integration with IBus input method system])
58 fi
59
60 WAYLAND_SCANNER_RULES(['$(top_srcdir)/protocol'])
61
62 CFLAGS="$CFLAGS -Wextra -Wno-unused-parameter"
63 AC_SUBST(CFLAGS)
64
65 CXXFLAGS="$CXXFLAGS -Wextra -Wno-unused-parameter"
66 AC_SUBST(CXXFLAGS)
67
68 AC_CONFIG_FILES([Makefile
69                  src/Makefile
70          data/themes/Makefile
71                  protocol/Makefile])
72 AC_OUTPUT