e_mod_effect: call e_comp_client_override_add before eff_ref
[platform/core/uifw/e-mod-tizen-effect.git] / configure.ac
1 # Process this file with autoconf to produce a configure script.
2 dnl Process this file with autoconf to produce a configure script.
3
4 # Note )
5 #
6 # AC_DEFINE(VARIABLE, VALUE, DESCRIPTION)
7 #   output the following to config.h
8 #   /* DESCRIPTION */
9 #   #define VARIABLE VALUE
10 #
11 # AC_SUBST(VARIABLE, [VALUE])
12 #   define $(VARIABLE) as VALUE in Makefile
13
14 dnl ========================================================================
15 # initialization
16 dnl ========================================================================
17 AC_INIT([e-mod-tizen-effect], [0.1], [minjjj.kim@samsung.com])
18
19 # check for tools needed by automake generated Makefiles
20 # -Wall  : Turn all warnings on.
21 # -Werror: report warings as errors.
22 # foreign: relax some GNU standard requirements
23 #AM_INIT_AUTOMAKE([-Wall -Werror foreign])
24 AM_INIT_AUTOMAKE([-Wall foreign])
25
26 dnl ========================================================================
27 # checks for programs
28 dnl ========================================================================
29 AC_PROG_CC
30 AC_DISABLE_STATIC
31 AC_PROG_LIBTOOL
32
33 dnl ========================================================================
34 # checks for libraries
35 dnl ========================================================================
36
37 dnl ========================================================================
38 # checks for header files
39 dnl ========================================================================
40 #AC_HEADER_STDC
41 AC_CHECK_HEADERS([math.h fcntl.h stdlib.h string.h unistd.h])
42
43 dnl ========================================================================
44 # checks for typedefs, structures, and compiler characteristics
45 AC_C_CONST
46
47 dnl ========================================================================
48 # checks for library functions
49 dnl ========================================================================
50 #AC_FUNC_MALLOC
51 AC_FUNC_MMAP
52 AC_CHECK_FUNCS([memset munmap strcasecmp strdup])
53
54 dnl ========================================================================
55 # checks for pkg-config
56 dnl ========================================================================
57 PKG_PROG_PKG_CONFIG
58
59
60 dnl ========================================================================
61 # checks for pkg-config
62 dnl ========================================================================
63 PKG_CHECK_MODULES(ENLIGHTENMENT, [enlightenment, wayland-server, tizen-extension-server, wayland-tbm-server, libtdm])
64 AC_SUBST(ENLIGHTENMENT_CFLAGS)
65 AC_SUBST(ENLIGHTENMENT_LIBS)
66
67 # Find edje_cc
68 PKG_CHECK_MODULES(EDJE, [edje >= 1.0.0])
69 AC_ARG_WITH(edje-cc,
70         AC_HELP_STRING([--with-edje-cc=PATH], [specify a specific path to edje_cc]),
71         [
72                 v=$withval;
73                 EDJE_CC=$v
74         ],
75         [
76         EDJE_CC=$(pkg-config --variable=prefix edje)/bin/edje_cc
77         ]
78 )
79 AC_SUBST(EDJE_CC)
80 AC_MSG_CHECKING([Which edje_cc to use])
81 AC_MSG_RESULT(${EDJE_CC})
82
83
84 dnl =======================================================================
85
86 release=$(pkg-config --variable=release enlightenment)
87 MODULE_ARCH="$host_os-$host_cpu-$release"
88 AC_SUBST(MODULE_ARCH)
89 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
90
91 datadir=$(pkg-config --variable=modules enlightenment)/${PACKAGE}
92 AC_ARG_ENABLE(homedir-install,
93         AS_HELP_STRING([--enable-homedir-install], [Install module in homedir]),
94         [ datadir="${HOME}/.e/e/modules/${PACKAGE}" ]
95 )
96
97 dnl ========================================================================
98 # output files
99 dnl ========================================================================
100
101 # create HEADER for all HEADER.in.
102 # HEADERS contain definitions made with AC_DEFINE.
103 # the following command will create config.h from config.h.in
104 AC_CONFIG_HEADERS([config.h])
105
106 # create FILE for all FILE.in.
107 # FILES contains definitions made with AC_SUBST.
108 AC_CONFIG_FILES([
109                  Makefile
110                  src/Makefile
111          data/Makefile
112                  ])
113
114 AC_OUTPUT
115
116