ecore-wl2: applying ecore-wl2
[platform/core/uifw/dali-csharp-binder.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.64])
5 AC_INIT([dali-csharp-binder], [0.0.0])
6 AC_CONFIG_SRCDIR([configure.ac])
7 AC_CONFIG_HEADERS([config.h])
8
9 AM_INIT_AUTOMAKE(1.6)
10
11 # Checks for programs.
12 AC_PROG_CXX
13 AC_PROG_LIBTOOL
14
15 # added for key grab binding only for tizen
16 AC_ARG_ENABLE(tizenBuild,
17               [  --enable-tizenBuild       build on tizen],
18               enable_tizenBuild=yes,
19               enable_tizenBuild=no)
20
21 AC_ARG_ENABLE(Ecore_Wl2,
22               [  --enable-ecore-wl2      build with ecorewl2 on tizen],
23               enable_ecore_wl2=yes,
24               enable_ecore_wl2=no)
25
26 AM_CONDITIONAL([TIZENBUILD], [test x$enable_tizenBuild = xyes])
27 AM_CONDITIONAL([ECOREWL2], [test "x$enable_ecore_wl2" = "xyes"])
28
29 PKG_PROG_PKG_CONFIG
30 # Checks for libraries. added for widget_viewer_dali binding only for tizen
31 # added for key grab binding only for tizen
32 if test x$enable_tizenBuild = xyes; then
33   PKG_CHECK_MODULES(DALI, dali-core dali-adaptor dali-toolkit widget_viewer_dali)
34   if test x$enable_ecore_wl2 = xyes; then
35     PKG_CHECK_MODULES(ECORE_WL2, ecore-wl2)
36   else
37     PKG_CHECK_MODULES(ECORE_WAYLAND, ecore-wayland)
38   fi
39 else
40   PKG_CHECK_MODULES(DALI, dali-core dali-adaptor dali-toolkit)
41 fi
42
43 AC_CONFIG_FILES([
44 Makefile
45 dali-csharp-binder/Makefile
46 ])
47 AC_OUTPUT([
48 dali-csharp-binder.pc
49 ])