[Entry] Fix select all in focus
[framework/uifw/edje.git] / configure.ac
1 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [1])
4 m4_define([v_min], [7])
5 m4_define([v_mic], [99])
6 m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
7 m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
8 ##--   When released, remove the dnl on the below line
9 dnl m4_undefine([v_rev])
10 ##--   When doing snapshots - change soname. remove dnl on below line
11 dnl m4_define([relname], [ver-pre-svn-07])
12 dnl m4_define([v_rel], [-release relname])
13 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14 m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
15 m4_define([lt_cur], m4_eval(v_maj + v_min))
16 m4_define([lt_rev], v_mic)
17 m4_define([lt_age], v_min)
18 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
20
21 AC_INIT([edje], [v_ver], [enlightenment-devel@lists.sourceforge.net])
22 AC_PREREQ([2.52])
23 AC_CONFIG_SRCDIR([configure.ac])
24 AC_CONFIG_MACRO_DIR([m4])
25
26 AC_CONFIG_HEADERS([config.h])
27 AH_TOP([
28 #ifndef EFL_CONFIG_H__
29 #define EFL_CONFIG_H__
30 ])
31 AH_BOTTOM([
32 #endif /* EFL_CONFIG_H__ */
33 ])
34
35 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
36 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
37
38 AC_LIBTOOL_WIN32_DLL
39 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
40 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
41 AC_PROG_LIBTOOL
42
43 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
44 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
45 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
46 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
47 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
48 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
49 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
50 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
51 version_info="lt_cur:lt_rev:lt_age"
52 release_info="v_rel"
53 AC_SUBST(version_info)
54 AC_SUBST(release_info)
55 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
56 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
57 VMAJ=v_maj
58 AC_SUBST(VMAJ)
59
60 AC_DEFINE_UNQUOTED([SHARED_LIB_SUFFIX], ["$shrext_cmds"], [Suffix for shared objects])
61
62 ### Default options with respect to host
63 AC_CANONICAL_BUILD
64 AC_CANONICAL_HOST
65
66
67 case "$host_os" in
68    mingw32ce*)
69       MODULE_ARCH="$host_os-$host_cpu"
70       install_vim="no"
71       have_edje_cc="no"
72       ;;
73    *)
74       MODULE_ARCH="$host_os-$host_cpu-v_maj.0.0"
75       install_vim="yes"
76       have_edje_cc="yes"
77       ;;
78 esac
79
80 requirement_edje=""
81
82 AC_SUBST(MODULE_ARCH)
83 AC_DEFINE_UNQUOTED(MODULE_ARCH, "${MODULE_ARCH}", "Module architecture")
84
85 ### Additional options to configure
86
87 AC_ARG_ENABLE([amalgamation],
88    [AC_HELP_STRING([--enable-amalgamation], [enable generation of one single file with all source code in it, helps compiler optimizations.])],
89    [if test "x${enableval}" = "xyes"; then
90        do_amalgamation="yes"
91     else
92        do_amalgamation="no"
93     fi
94    ],
95    [do_amalgamation="no"]
96 )
97 AM_CONDITIONAL([EDJE_AMALGAMATION], [test "x${do_amalgamation}" = "xyes"])
98
99 EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
100 EFL_WITH_BIN([edje], [edje-codegen], [edje_codegen])
101
102 EFL_ENABLE_BIN([edje-cc])
103 EFL_ENABLE_BIN([edje-decc])
104 EFL_ENABLE_BIN([edje-recc])
105 EFL_ENABLE_BIN([edje-player])
106 EFL_ENABLE_BIN([edje-inspector])
107 EFL_ENABLE_BIN([edje-external-inspector])
108 EFL_ENABLE_BIN([edje-watch])
109 EFL_ENABLE_BIN([edje-codegen])
110
111 # Optional EDJE_PROGRAM_CACHE (use much more ram, but increase speed in some cases)
112 want_edje_program_cache="no"
113
114 AC_ARG_ENABLE([edje-program-cache],
115    [AC_HELP_STRING(
116        [--enable-edje-program-cache],
117        [enable EDJE_PROGRAM_CACHE support. [[default=disabled]]]
118     )],
119    [want_edje_program_cache=$enableval]
120 )
121 AM_CONDITIONAL([EDJE_PROGRAM_CACHE], [test "x${want_edje_program_cache}" = "xyes"])
122
123 if test "x${want_edje_program_cache}" = "xyes" ; then
124    AC_DEFINE([EDJE_PROGRAM_CACHE], [1], [Cache result of program glob matches - this uses up extra ram with the gain of faster program matching])
125 fi
126
127 # Optional EDJE_CALC_CACHE (use more ram, but increase speed by reducing the need to recalculate static stuff)
128 want_edje_calc_cache="yes"
129
130 AC_ARG_ENABLE([edje-calc-cache],
131    [AC_HELP_STRING(
132        [--enable-edje-calc-cache],
133        [enable EDJE_CALC_CACHE support. [[default=disabled]]]
134     )],
135    [want_edje_calc_cache=$enableval]
136 )
137 AM_CONDITIONAL([EDJE_CALC_CACHE], [test "x${want_edje_calc_cache}" = "xyes"])
138
139 if test "x${want_edje_calc_cache}" = "xyes" ; then
140    AC_DEFINE([EDJE_CALC_CACHE], [1], [Cache result of edje_part_recalc - this uses up extra ram with the gain of reducing CPU usage when edje object are not resized])
141 fi
142
143 # Enable Fixed Point use
144 want_fixed_point="no"
145
146 AC_ARG_ENABLE([fixed-point],
147    [AC_HELP_STRING(
148        [--enable-fixed-point],
149        [reduce use of FPU by using Fixed Point provided by Eina and Eet, [[default=disabled]]]
150     )],
151     [want_fixed_point=$enableval]
152 )
153 AM_CONDITIONAL([BUILD_EDJE_FP], [test "x${want_fixed_point}" = "xyes"])
154
155 if test "x${want_fixed_point}" = "xyes" ; then
156    AC_DEFINE([BUILD_EDJE_FP], [1], [Use Fixed Point instead of FPU])
157 fi
158
159 install_vim="yes"
160 AC_ARG_WITH([vim],
161     [AC_HELP_STRING([--with-vim=DIR], [Location of Vim data files [[autodetect]]])],
162     [
163      if test -d "${withval}"; then
164         vimdir="${withval}"
165      fi
166     ]
167 )
168
169 if test "x${vimdir}" = "x" ; then
170    if test -d "${prefix}/share/vim"; then
171       vimdir="${prefix}/share/vim"
172    elif test -d "/usr/share/vim"; then
173       vimdir="/usr/share/vim"
174    elif test -d "/usr/local/share/vim"; then
175       vimdir="/usr/local/share/vim"
176    elif test -d "/opt/share/vim"; then
177       vimdir="/opt/share/vim"
178    else
179       install_vim="no"
180    fi
181 fi
182
183 AC_MSG_CHECKING([for location of Vim data files])
184
185 if test "${install_vim}" = "yes"; then
186    AC_MSG_RESULT([$vimdir])
187 else
188    AC_MSG_RESULT([Not found, EDC syntax file will not be installed])
189 fi
190
191 AC_SUBST(vimdir)
192
193 ### Checks for programs
194 AC_PROG_CC
195
196 # doxygen program for documentation building
197
198 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
199
200 # python
201
202 AM_PATH_PYTHON([2.5], , [:])
203 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != : ])
204
205 # pkg-config
206
207 PKG_PROG_PKG_CONFIG
208
209 # Check whether pkg-config supports Requires.private
210
211 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
212    pkgconfig_requires_private="Requires.private"
213 else
214    pkgconfig_requires_private="Requires"
215 fi
216 AC_SUBST(pkgconfig_requires_private)
217
218
219 ### Checks for libraries
220
221 # Evil library for compilation on Windows
222
223 EFL_EDJE_BUILD=""
224 case "$host_os" in
225    mingw*)
226       PKG_CHECK_MODULES([EVIL], [evil >= 1.6.99])
227       AC_DEFINE([HAVE_EVIL], [1], [Set to 1 if Evil library is installed])
228       requirement_edje="evil ${requirement_edje}"
229       EFL_EDJE_BUILD="-DEFL_EDJE_BUILD"
230    ;;
231 esac
232 AC_SUBST(EFL_EDJE_BUILD)
233
234 # Dependencies for the library
235
236 # Lua pkg-config hack for different naming conventions
237 have_lua="yes"
238 requirement_lua=""
239 lua_libs=""
240 PKG_CHECK_MODULES([LUA], [lua >= 5.1.0], requirement_lua="lua",
241    [PKG_CHECK_MODULES([LUA], [lua5.1 >= 5.1.0], requirement_lua="lua5.1",
242       [PKG_CHECK_MODULES([LUA], [lua-5.1 >= 5.1.0], requirement_lua="lua-5.1",
243          [PKG_CHECK_MODULES([LUA], [lua51 >= 5.1.0], requirement_lua="lua51",
244             [have_lua="no"])])])])
245
246 if test "x${have_lua}" = "xno" ; then
247    AC_MSG_CHECKING([whether lua_newstate() is in liblua])
248    AC_CHECK_LIB([lua], [lua_newstate],
249       [
250        have_lua="yes"
251        lua_libs="-llua"
252       ],
253       [have_lua="no"])
254    AC_MSG_RESULT([${have_lua}])
255 fi
256 AC_SUBST(lua_libs)
257
258 if test "x${have_lua}" = "xno" ; then
259    AC_MSG_ERROR([Cannot find lua library. Be sure that you have installed it and set CFLAGS and LDFLAGS correctly])
260 fi
261
262 PKG_CHECK_MODULES([MINIMAL],
263    [
264     eina >= 1.6.99
265     eet >= 1.6.99
266    ])
267
268 PKG_CHECK_MODULES([EDJE],
269    [
270     eina >= 1.6.99
271     eet >= 1.6.99
272     evas >= 1.6.99
273     ecore >= 1.6.99
274     ecore-evas >= 1.6.99
275     ecore-file >= 1.6.99
276     ecore-input >= 1.6.99
277     embryo >= 1.6.99
278    ])
279
280 EDJE_LIBS="${EDJE_LIBS} ${LUA_LIBS} ${lua_libs}"
281 EDJE_CFLAGS="${EDJE_CFLAGS} ${LUA_CFLAGS}"
282
283 requirement_edje="embryo >= 1.6.99 ecore-evas >= 1.6.99 ecore >= 1.6.99 evas >= 1.6.99 eet >= 1.6.99 eina >= 1.6.99 ${requirement_edje}"
284 requirement_edje="${requirement_lua} ${requirement_edje}"
285
286 want_ecore_imf="auto"
287 have_ecore_imf="no"
288 AC_ARG_ENABLE([ecore-imf],
289    [AC_HELP_STRING([--disable-ecore-imf], [Disable build with ecore-imf])],
290    [want_ecore_imf="${enableval}"])
291
292 if test "x${want_ecore_imf}" != "xno"; then
293    PKG_CHECK_MODULES([ECORE_IMF],
294       [
295        ecore-imf >= 1.6.99
296        ecore-imf-evas >= 1.6.99
297       ],
298       [
299        AC_DEFINE([HAVE_ECORE_IMF], [1], [Input Method Support for Edje Entry])
300        have_ecore_imf="yes"
301        requirement_edje="ecore-imf-evas >= 1.6.99 ecore-imf >= 1.6.99 ${requirement_edje}"
302       ],
303       [have_ecore_imf="no"])
304 fi
305 if test "x${want_ecore_imf}" = "xyes" -a "x${have_ecore_imf}" = "xno"; then
306    AC_MSG_ERROR([Ecore-IMF required, but not found])
307 fi
308
309 want_eio="auto"
310 have_eio="no"
311 AC_ARG_ENABLE([eio],
312    [AC_HELP_STRING([--disable-eio], [Disable build with eio])],
313    [want_eio="${enableval}"])
314
315 if test "x${want_eio}" != "xno"; then
316    PKG_CHECK_MODULES([EIO],
317       [eio >= 1.6.99],
318       [
319        AC_DEFINE([HAVE_EIO], [1], [Eio is available for monitoring file assynchronously])
320        have_eio="yes"
321        requirement_edje="eio >= 1.6.99 ${requirement_edje}"
322       ],
323       [have_eio="no"])
324 fi
325 if test "x${want_eio}" = "xyes" -a "x${have_eio}" = "xno"; then
326    AC_MSG_ERROR([Eio required, but not found])
327 fi
328
329
330 # Enable Multisense use
331 want_multisense="yes"
332 AC_ARG_ENABLE([multisense],
333    [AC_HELP_STRING(
334        [--disable-multisense],
335        [multisense provides sound and tone play support, [[default=enabled]]]
336     )],
337     [want_multisense=$enableval]
338 )
339 AM_CONDITIONAL([ENABLE_MULTISENSE], [test "x${want_multisense}" = "xyes"])
340
341 ##sndfile library
342 have_sndfile="no"
343 want_sndfile="auto"
344 AC_ARG_ENABLE([sndfile],
345    [AC_HELP_STRING([--disable-sndfile], [disable sndfile support. @<:@default=detect@:>@])],
346    [want_sndfile=$enableval], [])
347
348 if test "x${want_multisense}" = "xyes" -a  "x$want_sndfile" != "xno"; then
349
350            PKG_CHECK_MODULES([SNDFILE],
351               [sndfile >= 1.0.21],
352               [
353                AC_DEFINE(HAVE_LIBSNDFILE, 1, [sndfile support for Edje])
354                have_sndfile="yes"
355                requirement_edje="sndfile >= 1.0.21 ${requirement_edje}"
356                ],
357               [have_sndfile="no"; want_multisense="no"]
358            )
359
360         if test "x$want_sndfile" = "xyes" -a "x$have_sndfile" = "xno"; then
361             AC_MSG_ERROR([sndfile support requested, but not found by pkg-config.])
362         fi
363 fi
364 AM_CONDITIONAL([HAVE_LIBSNDFILE], [test "x${have_sndfile}" = "xyes"])
365
366 ##libremix library
367 have_libremix="no"
368 want_libremix="auto"
369 AC_ARG_ENABLE([remix],
370    [AC_HELP_STRING([--disable-remix], [disable remix support. @<:@default=detect@:>@])],
371    [want_libremix=$enableval], [])
372
373 if test "x${want_multisense}" = "xyes" -a "x$want_libremix" != "xno"; then
374    PKG_CHECK_MODULES([REMIX],
375       [remix >= 0.2.4],
376       [
377        AC_DEFINE(HAVE_LIBREMIX, 1, [remix support for Edje])
378        have_libremix="yes"
379        requirement_edje="remix >= 0.2.4 ${requirement_edje}"
380        AC_DEFINE(__REMIX_PLUGIN__, 1, "Set to REMIX Plugin type")
381        REMIX_PLUGIN_DIR=`pkg-config --variable=libdir remix`"/remix"
382        AC_SUBST(REMIX_PLUGIN_DIR)
383        AC_DEFINE_UNQUOTED(REMIX_PLUGIN_DIR, "$REMIX_PLUGIN_DIR", [Set the remix plugin directory])
384        ],
385       [have_libremix="no"; want_multisense="no"]
386    )
387
388         if test "x$want_libremix" = "xyes" -a "x$have_libremix" = "xno"; then
389             AC_MSG_ERROR([remix support requested, but not found by pkg-config.])
390         fi
391 fi
392 AM_CONDITIONAL([HAVE_LIBREMIX], [test "x${have_libremix}" = "xyes"])
393
394 ##vorbis/ogg library
395 have_vorbis="no"
396 want_vorbis="auto"
397 AC_ARG_ENABLE([vorbisenc],
398    [AC_HELP_STRING([--disable-vorbis], [disable ogg-vorbis support. @<:@default=detect@:>@])],
399    [want_vorbis=$enableval], [])
400
401 if test "x${want_multisense}" = "xyes" -a "x$want_vorbis" != "xno"; then
402    PKG_CHECK_MODULES([VORBISENC],
403       [
404        ogg >= 1.1.4
405        vorbis >= 1.2.3
406        vorbisenc >= 1.2.3
407       ],
408       [
409        AC_DEFINE(HAVE_VORBIS, 1, [vorbis support for Edje])
410        have_vorbis="yes"
411        requirement_edje="ogg >= 1.1.4 vorbis >= 1.2.3 vorbisenc >= 1.2.3 ${requirement_edje}"
412       ],
413       [have_vorbis="no"]
414    )
415
416         if test "x$want_vorbis" = "xyes" -a "x$have_vorbis" = "xno"; then
417             AC_MSG_ERROR([vorbisenc support requested, but not found by pkg-config.])
418         fi
419 fi
420
421 ##alsa library
422 have_alsa_lib="no"
423 want_alsa_lib="auto"
424 AC_ARG_ENABLE([alsa],
425    [AC_HELP_STRING([--disable-alsa], [disable alsa support. @<:@default=detect@:>@])],
426    [want_alsa_lib=$enableval], [])
427
428 if test "x${want_multisense}" = "xyes" -a "x$want_alsa_lib" != "xno"; then
429    PKG_CHECK_MODULES([ALSA],
430       [
431        alsa >= 1.0.21
432       ],
433       [
434        AC_DEFINE(HAVE_LIBALSA, 1, [ALSA support for Edje])
435        have_alsa_lib="yes"
436        requirement_edje="alsa >= 1.0.21 ${requirement_edje}"
437       ],
438       [have_alsa_lib="no"]
439    )
440
441         if test "x$want_alsa_lib" = "xyes" -a "x$have_alsa_lib" = "xno"; then
442             AC_MSG_ERROR([alsa support requested, but not found by pkg-config.])
443         fi
444 fi
445 AM_CONDITIONAL([HAVE_LIBALSA], [test "x${have_alsa_lib}" = "xyes"])
446
447 ##pulse audio library
448 have_pa_lib="no"
449 want_pa_lib="auto"
450 AC_ARG_ENABLE([pulseaudio],
451    [AC_HELP_STRING([--disable-pa], [disable pulse audio support. @<:@default=detect@:>@])],
452    [want_pa_lib=$enableval], [])
453
454 if test "x${want_multisense}" = "xyes" -a "x$want_pa_lib" != "xno"; then
455    PKG_CHECK_MODULES([PA],
456       [
457        libpulse >= 0.9.21
458        libpulse-simple >= 0.9.21
459       ],
460       [
461        AC_DEFINE(HAVE_LIBPA, 1, [Pulse Audio support for Edje])
462        have_pa_lib="yes"
463        requirement_edje="libpulse >= 0.9.21 ${requirement_edje}"
464       ],
465       [have_pa_lib="no"]
466    )
467
468         if test "x$want_pa_lib" = "xyes" -a "x$have_pa_lib" = "xno"; then
469             AC_MSG_ERROR([pulse audio support requested, but not found by pkg-config.])
470         fi
471 fi
472 AM_CONDITIONAL([HAVE_LIBPA], [test "x${have_pa_lib}" = "xyes"])
473
474
475 ##flac library
476 have_flac_lib="no"
477 want_flac_lib="auto"
478 AC_ARG_ENABLE([flac],
479    [AC_HELP_STRING([--disable-flac], [disable flac support. @<:@default=detect@:>@])],
480    [want_flac_lib=$enableval], [])
481
482 if test "x${want_multisense}" = "xyes" -a "x$want_flac_lib" != "xno"; then
483    PKG_CHECK_MODULES([FLAC],
484       [
485        flac >= 1.2.1
486       ],
487       [
488        AC_DEFINE(HAVE_LIBFLAC, 1, [flac support for Edje])
489        have_flac_lib="yes"
490        # disabled because this adds flac include dirs to cflags... and
491        # FLAC has an assert.h in its include dirs that ends up
492        # overriding the system assert.h and thus causes all sorts of
493        # mayhem
494        #requirement_edje="flac >= 1.2.1 ${requirement_edje}"
495       ],
496       [have_flac_lib="no"]
497    )
498         if test "x$want_flac_lib" = "xyes" -a "x$have_flac_lib" = "xno"; then
499             AC_MSG_ERROR([flac support requested, but not found by pkg-config.])
500         fi
501 fi
502
503 if test "x${want_multisense}" = "xyes" ; then
504    AC_DEFINE([ENABLE_MULTISENSE], [1], [Use Multisense])
505 fi
506 AC_SUBST([want_multisense])
507
508 # Dependencies for the binaries
509
510 if test "x${have_edje_cc}" = "xyes" ; then
511    PKG_CHECK_MODULES([EDJE_CC],
512       [ecore-file >= 1.6.99 ecore-evas >= 1.6.99 ecore >= 1.6.99 evas >= 1.6.99 eet >= 1.6.0 eina >= 1.6.99])
513    EDJE_CC_LIBS="${EDJE_CC_LIBS} ${LUA_LIBS} ${lua_libs}"
514 fi
515
516 AM_CONDITIONAL([BUILD_EPP], [test "x${have_edje_cc}" = "xyes"])
517
518 if test "x${have_edje_decc}" = "xyes" ; then
519    PKG_CHECK_MODULES([EDJE_DECC],
520       [ecore-file >= 1.6.99 ecore-evas >= 1.6.99 ecore >= 1.6.99 evas >= 1.6.99 eet >= 1.6.99 eina >= 1.6.99])
521 fi
522
523 if test "x${have_edje_player}" = "xyes" ; then
524    PKG_CHECK_MODULES([EDJE_PLAYER],
525       [ecore-evas >= 1.6.99 ecore >= 1.6.99 evas >= 1.6.99 eina >= 1.6.99])
526 fi
527
528 if test "x${have_edje_inspector}" = "xyes" ; then
529    PKG_CHECK_MODULES([EDJE_INSPECTOR],
530       [ecore-evas >= 1.6.99 ecore >= 1.6.99 evas >= 1.6.99 eina >= 1.6.99])
531 fi
532
533 if test "x${have_edje_external_inspector}" = "xyes" ; then
534    PKG_CHECK_MODULES([EDJE_EXTERNAL_INSPECTOR],
535       [ecore >= 1.6.99 evas >= 1.6.99 eina >= 1.6.99])
536 fi
537
538 if test "x${have_edje_watch}" = "xyes" ; then
539    PKG_CHECK_MODULES([EDJE_WATCH],
540       [ecore >= 1.6.99 eina >= 1.6.99 eio >= 1.6.99],
541       [have_edje_watch="yes"],
542       [have_edje_watch="no"])
543 fi
544
545 if test "x${have_edje_codegen}" = "xyes" ; then
546    PKG_CHECK_MODULES([EDJE_CODEGEN],
547       [ecore >= 1.6.99 eina >= 1.6.99],
548       [have_edje_codegen="yes"],
549       [have_edje_codegen="no"])
550 fi
551
552 AM_CONDITIONAL([BUILD_EDJE_WATCH], [test "x${have_edje_watch}" = "xyes"])
553
554 ### Checks for header files
555 AC_CHECK_HEADERS([locale.h sys/resource.h])
556
557 EFL_CHECK_PATH_MAX
558
559
560 ### Checks for types
561
562
563 ### Checks for structures
564
565
566 ### Checks for compiler characteristics
567 AM_PROG_CC_C_O
568 AC_C_CONST
569 AC_PROG_CC_STDC
570 AC_HEADER_STDC
571 AC_C___ATTRIBUTE__
572
573 case "$host_os" in
574    mingw32ce*)
575       EDJE_CFLAGS="${EDJE_CFLAGS} -D_WIN32_WCE=0x0420"
576       ;;
577 esac
578
579
580 ### Checks for linker characteristics
581
582 lt_enable_auto_import=""
583 case "$host_os" in
584    mingw*)
585       lt_enable_auto_import="-Wl,--enable-auto-import"
586       ;;
587 esac
588 AC_SUBST(lt_enable_auto_import)
589
590
591 ### Checks for library functions
592
593 AC_ISC_POSIX
594
595 AC_FUNC_ALLOCA
596
597 case "$host_os" in
598    mingw*)
599       AC_DEFINE([HAVE_REALPATH], [1], [Define to 1 if you have the `realpath' function.])
600       ;;
601    *)
602       AC_CHECK_FUNCS([realpath])
603       ;;
604 esac
605
606 ### Unit tests, coverage and benchmarking
607
608 EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
609
610 EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"])
611 EDJE_CFLAGS="${EDJE_CFLAGS} ${EFL_COVERAGE_CFLAGS}"
612 EDJE_LIBS="${EDJE_LIBS} ${EFL_COVERAGE_LIBS}"
613 if test "x$enable_coverage" = "xyes" ; then
614    EDJE_CFLAGS="${EDJE_CFLAGS} ${EFL_DEBUG_CFLAGS}"
615 fi
616
617 ## Examples
618
619 build_examples="no"
620 AC_ARG_ENABLE([build-examples],
621    AC_HELP_STRING([--enable-build-examples],
622                   [Enable building examples. This requires extra dependencies. If you don't have them installed yet, don't build with this option or it will fail. Build again when you have it, overriding the previous installation). @<:@default==disabled@:>@]),
623    [
624     if test "x${enableval}" = "xyes" ; then
625        build_examples="yes"
626     else
627        build_examples="no"
628     fi
629    ],
630    [build_examples="no"])
631 AM_CONDITIONAL([BUILD_EXAMPLES], [test "x${build_examples}" = "xyes"])
632
633 AC_SUBST(requirement_edje)
634
635 AC_OUTPUT([
636 edje.pc
637 edje.spec
638 Makefile
639 data/Makefile
640 data/include/Makefile
641 doc/Makefile
642 doc/Doxyfile
643 src/Makefile
644 src/lib/Makefile
645 src/bin/Makefile
646 src/bin/epp/Makefile
647 src/modules/Makefile
648 src/modules/alsa_snd_player/Makefile
649 src/modules/pa_snd_player/Makefile
650 src/modules/eet_snd_reader/Makefile
651 src/modules/multisense_factory/Makefile
652 src/tests/Makefile
653 utils/Makefile
654 src/examples/Makefile
655 ])
656
657
658 #####################################################################
659 ## Info
660
661 echo
662 echo
663 echo
664 echo "------------------------------------------------------------------------"
665 echo "$PACKAGE $VERSION"
666 echo "------------------------------------------------------------------------"
667 echo
668 echo "Configuration Options Summary:"
669 echo
670 echo "  Amalgamation.........: ${do_amalgamation}"
671 echo "  Ecore IMF............: $have_ecore_imf"
672 echo "  EIO..................: $have_eio"
673 dnl echo "  Multisense...........: $want_multisense"
674
675 if test "x${want_multisense}" = "xyes" ; then
676 echo "  LibRemix.............: $have_libremix"
677 echo "  Libsndfile...........: $have_sndfile"
678 echo "  Ogg/Vorbis...........: $have_vorbis"
679 echo "  LibFLAC..............: $have_flac_lib"
680 echo "  LibALSA..............: $have_alsa_lib"
681 echo "  LibPA................: $have_pa_lib"
682 fi
683
684 echo "  EDJE_PROGRAM_CACHE...: $want_edje_program_cache"
685 echo "  EDJE_CALC_CACHE......: $want_edje_calc_cache"
686 echo "  Fixed point..........: $want_fixed_point"
687 echo "  Documentation........: ${build_doc}"
688 echo "  Tests................: ${enable_tests}"
689 echo "  Coverage.............: ${enable_coverage}"
690 echo "  Examples.............: install:${install_examples} build:${build_examples}"
691 echo
692 echo "Programs:"
693 echo
694 echo "  Build edje_cc................: $have_edje_cc"
695 echo "  Build edje_decc..............: $have_edje_decc"
696 echo "  Build edje_recc..............: $have_edje_recc"
697 echo "  Build edje_player............: $have_edje_player"
698 echo "  Build edje_inspector.........: $have_edje_inspector"
699 echo "  Build edje_external_inspector: $have_edje_external_inspector"
700 echo "  Build edje_watch.............: $have_edje_watch"
701 echo "  Build edje_codegen...........: $have_edje_codegen"
702 echo
703 echo "Compilation............: make (or gmake)"
704 echo "  CPPFLAGS.............: $CPPFLAGS"
705 echo "  CFLAGS...............: $CFLAGS"
706 echo "  LDFLAGS..............: $LDFLAGS"
707 echo
708 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
709 echo "  prefix...............: $prefix"
710 echo