Fix get_range_extents for label widget
[platform/core/uifw/eail.git] / eail / configure.ac
1 dnl Process this file with the command: autoreconf -f -i
2
3 m4_define([EFL_A11Y_VERSION], [1.0.0])
4
5 AC_INIT([efl-a11y], [EFL_A11Y_VERSION])
6
7 AC_PREREQ([2.52])
8 AC_CONFIG_SRCDIR([configure.ac])
9 AC_CANONICAL_HOST
10
11 AC_CONFIG_HEADERS([config.h])
12
13 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
14 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
15 AC_PROG_CC
16 AM_PROG_CC_C_O
17 AC_PROG_CC_STDC
18 AC_HEADER_STDC
19 AC_C_CONST
20
21 AC_LIBTOOL_WIN32_DLL
22 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
23 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
24 AC_PROG_LIBTOOL
25
26 LT_RELEASE_VERSION=EFL_A11Y_VERSION
27 AC_SUBST([LT_RELEASE_VERSION])
28
29 LT_ENABLE_AUTO_IMPORT=""
30 case "$host_os" in
31    mingw*)
32       LT_ENABLE_AUTO_IMPORT="-Wl,--enable-auto-import"
33 esac
34 AC_SUBST([LT_ENABLE_AUTO_IMPORT])
35
36 REQUIREMENT_EAIL="elementary >= 1.7.0 ecore-evas >= 1.7.0 ecore-file >= 1.7.0 ecore >= 1.7.0 evas >= 1.7.0 eina >= 1.7.0 atk >= 2.2.0 gobject-2.0 >= 2.30.0 gmodule-2.0 >= 2.30.0 gio-2.0"
37 AC_SUBST([REQUIREMENT_EAIL])
38
39 PKG_CHECK_MODULES([EAIL], [
40     eina >= 1.7.0
41     evas >= 1.7.0
42     ecore >= 1.7.0
43     ecore-file >= 1.7.0
44     ecore-evas >= 1.7.0
45     elementary >= 1.7.0
46     gmodule-2.0 >= 2.30.0
47     gobject-2.0 >= 2.30.0
48     atk >= 2.2.0
49     atk-bridge-2.0 >= 2.2.0
50     gio-2.0
51 ])
52 PKG_CHECK_MODULES([TEST_DEPS], [
53                    elementary >= 1.7.0
54                    atk >= 2.2.0])
55
56 dnl Strict compiler
57 AC_ARG_ENABLE(strict-cc,
58         AS_HELP_STRING([--enable-strict-cc],[enable strict C compiler]),,
59         enable_strict_cc=no)
60 if test "x$enable_strict_cc" = "xyes"; then
61         CFLAGS="$CFLAGS -Wall -Werror"
62 else
63         CFLAGS="$CFLAGS -Wall"
64 fi
65
66 dnl doc
67 AC_ARG_ENABLE([doc],
68               AS_HELP_STRING([--enable-doc],
69                              [Enable documentation [default=YES]]),,
70                              enable_doc=yes)
71 AM_CONDITIONAL([BUILD_DOC], [test "x$enable_doc" = "xyes"])
72
73 dnl Tests
74 AC_ARG_ENABLE([tests],
75               AS_HELP_STRING([--enable-tests],[build tests]),,
76               enable_tests=no)
77 AM_CONDITIONAL([MAKE_TESTS], [test "x$enable_tests" = "xyes"])
78
79 dnl Generate coverage report
80 AC_ARG_ENABLE([coverage],
81   AS_HELP_STRING([--enable-coverage],
82                  [Generate converage reports]),
83   [],
84   [enable_coverage=no])
85 AM_CONDITIONAL([ENABLE_COVERAGE],[test "x$enable_coverage" != "xno"])
86 AS_IF([test "x$enable_coverage" != "xno"],
87   [
88     AC_PATH_PROG([LCOV], [lcov])
89     AC_PATH_PROG([GENHTML], [genhtml])
90     AC_SUBST([COVERAGE_LIBS],["-lgcov"])
91     AC_SUBST([COVERAGE_CFLAGS],["-fprofile-arcs -ftest-coverage"])
92   ]
93 )
94 dnl set elementatary modules dir
95 AC_ARG_WITH(elementary-modules,
96            [AS_HELP_STRING([--with-elementary-modules=<directory>],
97            [where elementary module directory is])])
98 AM_CONDITIONAL(ENABLE_ELM_MODULE, false )
99 if ! test -z "$with_elementary_modules" ; then
100            ELEMENTARY_MODULE_DIR="$with_elementary_modules"
101            AC_SUBST(ELEMENTARY_MODULE_DIR)
102            AM_CONDITIONAL(ENABLE_ELM_MODULE, true )
103 fi
104
105 AC_OUTPUT([
106     eail.pc
107     Makefile
108     eail/Makefile
109     tests/Makefile
110     doc/Makefile
111 ])