[elm_searchbar]: Issue 1: default theme not applying when searchbar is
[framework/uifw/elementary.git] / configure.ac
1 =-------##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3 m4_define([v_maj], [0])
4 m4_define([v_min], [7])
5 m4_define([v_mic], [0])
6 m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || 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 m4_define([relname], [ver-pre-svn-09])
12 m4_define([v_rel], [-release relname])
13 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14 m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])],
15 [m4_define([v_ver], [v_maj.v_min.v_mic])])
16 m4_define([lt_rev], m4_eval(v_maj + v_min))
17 m4_define([lt_cur], v_mic)
18 m4_define([lt_age], v_min)
19 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
20 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
21
22 AC_INIT([elementary], [v_ver], [enlightenment-devel@lists.sourceforge.net])
23 AC_PREREQ(2.52)
24 AC_CONFIG_SRCDIR([configure.ac])
25 AC_CONFIG_MACRO_DIR([m4])
26 AC_CANONICAL_BUILD
27 AC_CANONICAL_HOST
28
29 AC_CONFIG_HEADERS([elementary_config.h])
30 AH_TOP([
31 #ifndef EFL_CONFIG_H__
32 #define EFL_CONFIG_H__
33 ])
34 AH_BOTTOM([
35 #endif /* EFL_CONFIG_H__ */
36 ])
37
38 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
39 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
40
41 AC_GNU_SOURCE
42
43 AC_C_BIGENDIAN
44 AC_ISC_POSIX
45 AC_PROG_CC
46 AM_PROG_CC_STDC
47 AC_HEADER_STDC
48 AC_C_CONST
49 AC_C___ATTRIBUTE__
50 AC_FUNC_ALLOCA
51
52 AC_LIBTOOL_WIN32_DLL
53 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
54 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
55 AC_PROG_LIBTOOL
56
57 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
58 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
59 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
60 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
61 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
62 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
63 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
64 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
65 version_info="lt_rev:lt_cur:lt_age"
66 release_info="v_rel"
67 AC_SUBST(version_info)
68 AC_SUBST(release_info)
69 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
70 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
71 VMAJ=v_maj
72 VMIN=v_min
73 AC_SUBST(VMAJ)
74 AC_SUBST(VMIN)
75
76 # pkg-config
77 PKG_PROG_PKG_CONFIG
78 EDJE_VERSION=`$PKG_CONFIG edje --modversion | awk -F . '{printf("%s.0.0", $1);}'`
79
80 case "$host_os" in
81   mingw32ce* | cegcc*)
82     MODULE_ARCH="$host_os-$host_cpu"
83     MODULE_EDJE="$host_os-$host_cpu"
84     ;;
85   *)
86     MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
87     MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}"
88     ;;
89 esac
90 AC_SUBST(release_info)
91 AC_SUBST(MODULE_ARCH)
92 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
93 AC_SUBST(MODULE_EDJE)
94 AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture")
95
96 EFL_SHARED_EXTENSION="${shrext_cmds}"
97 AC_DEFINE_UNQUOTED(EFL_SHARED_EXTENSION, "${EFL_SHARED_EXTENSION}", "Shared extension")
98
99 requirement_elm=""
100
101 PKG_PROG_PKG_CONFIG
102
103 # Check whether pkg-config supports Requires.private
104 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
105    pkgconfig_requires_private="Requires.private"
106 else
107    pkgconfig_requires_private="Requires"
108 fi
109 AC_SUBST(pkgconfig_requires_private)
110
111 #================================================
112 if test "x${prefix}" = "xNONE"; then
113   LOCALE_DIR="${ac_default_prefix}/share/locale"
114 else
115   LOCALE_DIR="${prefix}/share/locale"
116 fi
117 AC_SUBST(LOCALE_DIR)
118 #================================================
119
120 lt_enable_auto_import=""
121 ELM_UNIX_DEF="#undef"
122 ELM_WIN32_DEF="#undef"
123 ELM_WINCE_DEF="#undef"
124 have_windows="no"
125 case "$host_os" in
126    mingw32ce* | cegcc*)
127       PKG_CHECK_MODULES([EVIL], [evil])
128       AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
129       lt_enable_auto_import="-Wl,--enable-auto-import"
130       ELM_WINCE_DEF="#define"
131       have_windows="yes"
132 dnl managed by evil
133       AC_DEFINE(HAVE_DLADDR)
134       dlopen_libs=-ldl
135       requirement_elm="evil"
136       have_socket="no"
137     ;;
138    mingw*)
139       PKG_CHECK_MODULES([EVIL], [evil])
140       AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
141       lt_enable_auto_import="-Wl,--enable-auto-import"
142       ELM_WIN32_DEF="#define"
143       have_windows="yes"
144 dnl managed by evil
145       AC_DEFINE(HAVE_DLADDR)
146       dlopen_libs=-ldl
147       requirement_elm="evil"
148       have_socket="no"
149       ;;
150    *solaris*)
151       ELM_UNIX_DEF="#define"
152       have_socket="yes"
153       AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
154       ;;
155    darwin*)
156       ELM_UNIX_DEF="#define"
157       have_socket="yes"
158       AC_CHECK_HEADERS([crt_externs.h])
159       AC_DEFINE([environ], [(*_NSGetEnviron())], ["apple doesn't follow POSIX in this case."])
160       ;;
161    *)
162       ELM_UNIX_DEF="#define"
163       AC_CHECK_FUNCS(dlopen, res=yes, res=no)
164       if test "x$res" = "xyes"; then
165         AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
166       else
167         AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
168         if test "x$res" = "xyes"; then
169           AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
170           dlopen_libs=-ldl
171         else
172           AC_MSG_ERROR(Cannot find dlopen)
173         fi
174       fi
175       have_socket="yes"
176       ;;
177 esac
178 AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
179
180 m4_ifdef([v_mic],
181    [
182     EFL_COMPILER_FLAG([-Wall])
183     EFL_COMPILER_FLAG([-W])
184    ])
185
186 have_fork="no"
187 want_quicklaunch="auto"
188 AC_ARG_ENABLE([quick-launch],
189         [AC_HELP_STRING([--disable-quick-launch], [disable quick-launch support, @<:@default=detect@:>@])],
190         [want_quicklaunch=$enableval], [])
191
192 if test "x$want_quicklaunch" != "xno"; then
193    AC_CHECK_FUNCS(fork, [
194         have_fork="yes"
195         AC_DEFINE(HAVE_FORK)
196    ])
197 fi
198 AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes"])
199
200 AC_SUBST(dlopen_libs)
201 AC_SUBST(lt_enable_auto_import)
202 AC_SUBST(ELM_UNIX_DEF)
203 AC_SUBST(ELM_WIN32_DEF)
204 AC_SUBST(ELM_WINCE_DEF)
205
206 AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
207
208 PKG_CHECK_MODULES([ELEMENTARY],
209    [
210     eina >= 1.0.999
211     eet >= 1.4.0
212     evas >= 1.0.999
213     ecore >= 1.0.0
214     ecore-evas >= 1.0.0
215     ecore-file >= 1.0.0
216     ecore-imf >= 1.0.0
217     edje >= 1.0.999
218    ]
219 )
220
221 PKG_CHECK_MODULES([ECORE_CON],
222         [ecore-con],
223         [
224          have_ecore_con="yes"
225          AC_DEFINE(HAVE_ECORE_CON, 1, [Use Ecore_Con for downloding files])
226          requirement_elm="ecore-con ${requirement_elm}"
227         ],
228         [have_ecore_con="no"])
229
230 PKG_CHECK_MODULES([EIO],
231         [eio],
232         [
233          have_eio="yes"
234          AC_DEFINE(HAVE_EIO, 1, [Use EIO for asynchronous file access])
235          requirement_elm="eio ${requirement_elm}"
236         ],
237         [have_eio="no"])
238
239 AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
240
241 PKG_CHECK_MODULES([EMOTION],
242         [emotion],
243         [
244          have_emotion="yes"
245          AC_DEFINE(HAVE_EMOTION, 1, [Use Emotion for asynchronous file access])
246          requirement_elm="emotion ${requirement_elm}"
247         ],
248         [have_emotion="no"])
249
250 AM_CONDITIONAL([HAVE_EMOTION], [test "x${have_emotion}" = "xyes"])
251
252 requirement_elm="edje >= 1.0.0 ecore-file >= 1.0.0 ecore-evas >= 1.0.0 ecore >= 1.0.0 evas >= 1.0.0 eet >= 1.4.0 eina >= 1.0.0 ${requirement_elm}"
253
254 have_elementary_x="no"
255 want_elementary_x="auto"
256 AC_ARG_ENABLE([ecore-x],
257    [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
258    [want_elementary_x=$enableval], [])
259
260 if test "x$want_elementary_x" != "xno"; then
261    PKG_CHECK_MODULES([ELEMENTARY_X],
262       [ecore-x >= 1.0.0],
263       [
264        AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
265        have_elementary_x="yes"
266        requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
267       ],
268       [have_elementary_x="no"]
269    )
270 else
271     have_elementary_x="no"
272 fi
273 if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
274     AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
275 fi
276
277 have_conformant_autoscroll="no"
278 want_conformant_autoscroll="yes"
279 AC_ARG_ENABLE([ecore-x],
280    [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
281    [want_conformant_autoscroll=$enableval], [])
282
283 if test "x$want_conformant_autoscroll" != "xno"; then
284    PKG_CHECK_MODULES([ELEMENTARY_X],
285       [ecore-x >= 1.0.0],
286       [
287        AC_DEFINE(HAVE_CONFORMANT_AUTOSCROLL, 1, [autoscroll with conformant])
288        have_conformant_autoscroll="yes"
289        requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
290       ],
291       [have_conformant_autoscroll="no"]
292    )
293 else
294     have_conformant_autoscroll="no"
295 fi
296 if test "x$want_conformant_autoscroll" = "xyes" -a "x$have_conformant_autoscroll" = "xno"; then
297     AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
298 fi
299
300 have_elementary_fb="no"
301 want_elementary_fb="auto"
302 AC_ARG_ENABLE([ecore-fb],
303    [AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
304    [want_elementary_fb=$enableval], [])
305
306 if test "x$want_elementary_fb" != "xno"; then
307    PKG_CHECK_MODULES([ELEMENTARY_FB],
308       [ecore-fb >= 1.0.0],
309       [
310        AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
311        have_elementary_fb="yes"
312        requirement_elm="ecore-fb >= 1.0.0 ${requirement_elm}"
313       ],
314       [have_elementary_fb="no"]
315    )
316 else
317     have_elementary_fb="no"
318 fi
319 if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
320     AC_MSG_ERROR([ecore-fb support requested, but not found by pkg-config.])
321 fi
322
323 have_elementary_sdl="no"
324 want_elementary_sdl="auto"
325 AC_ARG_ENABLE([ecore-sdl],
326    [AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
327    [want_elementary_sdl=$enableval], [])
328
329 if test "x$want_elementary_sdl" != "xno"; then
330    PKG_CHECK_MODULES([ELEMENTARY_SDL],
331       [ecore-sdl >= 1.0.0],
332       [
333        AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
334        have_elementary_sdl="yes"
335        requirement_elm="ecore-sdl >= 1.0.0 ${requirement_elm}"
336       ],
337       [have_elementary_sdl="no"]
338    )
339 else
340     have_elementary_sdl="no"
341 fi
342 if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
343     AC_MSG_ERROR([ecore-sdl support requested, but not found by pkg-config.])
344 fi
345
346 have_elementary_win32="no"
347 want_elementary_win32="auto"
348 AC_ARG_ENABLE([ecore-win32],
349    [AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
350    [want_elementary_win32=$enableval], [])
351
352 if test "x$want_elementary_win32" != "xno"; then
353    PKG_CHECK_MODULES([ELEMENTARY_WIN32],
354       [ecore-win32 >= 1.0.0],
355       [
356        AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
357        have_elementary_win32="yes"
358        requirement_elm="ecore-win32 >= 1.0.0 ${requirement_elm}"
359       ],
360       [have_elementary_win32="no"]
361    )
362 else
363     have_elementary_win32="no"
364 fi
365 if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
366     AC_MSG_ERROR([ecore-win32 support requested, but not found by pkg-config.])
367 fi
368
369 have_elementary_wince="no"
370 want_elementary_wince="auto"
371 AC_ARG_ENABLE([ecore-wince],
372    [AC_HELP_STRING([--disable-ecore-wince], [disable ecore-wince support. @<:@default=detect@:>@])],
373    [want_elementary_wince=$enableval], [])
374
375 if test "x$want_elementary_wince" != "xno"; then
376    PKG_CHECK_MODULES([ELEMENTARY_WINCE],
377       [ecore-wince >= 1.0.0],
378       [
379        AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
380        have_elementary_wince="yes"
381        requirement_elm="ecore-wince >= 1.0.0 ${requirement_elm}"
382       ],
383       [have_elementary_wince="no"]
384    )
385 else
386     have_elementary_wince="no"
387 fi
388 if test "x$want_elementary_wince" = "xyes" -a "x$have_elementary_wince" = "xno"; then
389     AC_MSG_ERROR([ecore-wince support requested, but not found by pkg-config.])
390 fi
391
392 ELM_EDBUS_DEF="#undef"
393 have_elementary_edbus="no"
394 want_elementary_edbus="auto"
395 AC_ARG_ENABLE([edbus],
396    [AC_HELP_STRING([--disable-edbus], [disable edbus support. @<:@default=detect@:>@])],
397    [want_elementary_edbus=$enableval], [])
398
399 if test "x$want_elementary_edbus" != "xno"; then
400     PKG_CHECK_MODULES([ELEMENTARY_EDBUS],
401        [
402         edbus >= 1.0.0
403        ],
404        [
405         AC_DEFINE(HAVE_ELEMENTARY_EDBUS, 1, [EDBus support for Elementary])
406         have_elementary_edbus="yes"
407         ELM_EDBUS_DEF="#define"
408         requirement_elm="edbus >= 1.0.0 ${requirement_elm}"
409        ],
410        [have_elementary_edbus="no"]
411     )
412 else
413     have_elementary_edbus="no"
414 fi
415 if test "x$want_elementary_edbus" = "xyes" -a "x$have_elementary_edbus" = "xno"; then
416     AC_MSG_ERROR([E_DBus support requested, but no e_dbus found by pkg-config.])
417 fi
418 AC_SUBST(ELM_EDBUS_DEF)
419
420 ELM_EFREET_DEF="#undef"
421 have_elementary_efreet="no"
422 want_elementary_efreet="auto"
423 AC_ARG_ENABLE([efreet],
424    [AC_HELP_STRING([--disable-efreet], [disable efreet support. @<:@default=detect@:>@])],
425    [want_elementary_efreet=$enableval], [])
426
427 if test "x$want_elementary_efreet" != "xno"; then
428     PKG_CHECK_MODULES([ELEMENTARY_EFREET],
429        [
430         efreet >= 1.0.0
431         efreet-mime >= 1.0.0
432         efreet-trash >= 1.0.0
433        ],
434        [
435         AC_DEFINE(HAVE_ELEMENTARY_EFREET, 1, [Efreet support for Elementary])
436         have_elementary_efreet="yes"
437         ELM_EFREET_DEF="#define"
438         requirement_elm="efreet >= 1.0.0 efreet-mime >= 1.0.0 efreet-trash >= 1.0.0 ${requirement_elm}"
439        ],
440        [have_elementary_efreet="no"]
441     )
442 else
443     have_elementary_efreet="no"
444 fi
445 if test "x$want_elementary_efreet" = "xyes" -a "x$have_elementary_efreet" = "xno"; then
446     AC_MSG_ERROR([Efreet support requested, but no efreet/efreet-mime/efreet-trash found by pkg-config.])
447 fi
448 AC_SUBST(ELM_EFREET_DEF)
449
450 ELM_EWEATHER_DEF="#undef"
451 have_elementary_eweather="no"
452 want_elementary_eweather="auto"
453 AC_ARG_ENABLE([eweather],
454    [AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
455    [want_elementary_eweather=$enableval], [])
456
457 if test "x$want_elementary_eweather" != "xno"; then
458     PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
459        [
460         eweather
461        ],
462        [
463         AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
464         have_elementary_eweather="yes"
465         ELM_EWEATHER_DEF="#define"
466         requirement_elm="eweather ${requirement_elm}"
467        ],
468        [have_elementary_eweather="no"]
469     )
470 else
471     have_elementary_eweather="no"
472 fi
473 if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
474     AC_MSG_ERROR([Eweather support requested, but no eweather found by pkg-config.])
475 fi
476 AC_SUBST(ELM_EWEATHER_DEF)
477
478 ELM_EMAP_DEF="#undef"
479 have_elementary_emap="no"
480 want_elementary_emap="auto"
481 AC_ARG_ENABLE([emap],
482    [AC_HELP_STRING([--disable-emap], [disable emap support. @<:@default=detect@:>@])],
483    [want_elementary_emap=$enableval], [])
484
485 if test "x$want_elementary_emap" != "xno"; then
486     PKG_CHECK_MODULES([ELEMENTARY_EMAP],
487        [
488         emap
489        ],
490        [
491         AC_DEFINE(HAVE_ELEMENTARY_EMAP, 1, [EMap support for Elementary])
492         have_elementary_emap="yes"
493         ELM_EMAP_DEF="#define"
494         requirement_elm="emap ${requirement_elm}"
495        ],
496        [have_elementary_emap="no"]
497     )
498 else
499     have_elementary_emap="no"
500 fi
501 if test "x$want_elementary_emap" = "xyes" -a "x$have_elementary_emap" = "xno"; then
502     AC_MSG_ERROR([Emap support requested, but no emap found by pkg-config.])
503 fi
504 AC_SUBST(ELM_EMAP_DEF)
505
506
507
508 ELM_ETHUMB_DEF="#undef"
509 have_elementary_ethumb="no"
510 want_elementary_ethumb="auto"
511 AC_ARG_ENABLE([ethumb],
512    [AC_HELP_STRING([--disable-ethumb], [disable ethumb support. @<:@default=detect@:>@])],
513    [want_elementary_ethumb=$enableval], [])
514
515 if test "x$want_elementary_ethumb" != "xno"; then
516     PKG_CHECK_MODULES([ELEMENTARY_ETHUMB],
517        [
518         ethumb_client
519        ],
520        [
521         AC_DEFINE(HAVE_ELEMENTARY_ETHUMB, 1, [Ethumb support for Elementary])
522         have_elementary_ethumb="yes"
523         ELM_ETHUMB_DEF="#define"
524         requirement_elm="ethumb_client ${requirement_elm}"
525        ],
526        [have_elementary_ethumb="no"]
527     )
528 else
529     have_elementary_ethumb="no"
530 fi
531 if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno"; then
532     AC_MSG_ERROR([Ethumb support requested, but no ethumb found by pkg-config.])
533 fi
534 AC_SUBST(ELM_ETHUMB_DEF)
535
536 ELM_DEBUG_DEF="#undef"
537 want_elementary_debug="no"
538 AC_ARG_ENABLE([debug],
539    [AC_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
540    [want_elementary_debug=$enableval], [])
541
542 if test "x$want_elementary_debug" = "xyes"; then
543         AC_DEFINE(HAVE_ELEMENTARY_DEBUG, 1, [Elementary debug.])
544         ELM_DEBUG_DEF="#define"
545 fi
546 AC_SUBST(ELM_DEBUG_DEF)
547
548 ELM_ALLOCA_H_DEF="#undef"
549 AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
550 AC_SUBST(ELM_ALLOCA_H_DEF)
551
552 ELM_LIBINTL_H_DEF="#undef"
553 AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
554 AC_SUBST(ELM_LIBINTL_H_DEF)
555
556 EFL_CHECK_THREADS([
557   TH=1
558 ] , [
559   AC_MSG_ERROR(no thread support found. required.)
560   exit 1
561 ])
562 AC_SUBST(EFL_PTHREAD_CFLAGS)
563 AC_SUBST(EFL_PTHREAD_LIBS)
564
565 my_libs="-lm"
566 AC_SUBST(my_libs)
567 AC_SUBST(requirement_elm)
568
569 EFL_WITH_BIN([eet], [eet-eet], [eet])
570 EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
571
572 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
573
574 EFL_ENABLE_BIN([elementary-test])
575 EFL_ENABLE_BIN([elementary-config])
576
577 m4_ifdef([AM_GNU_GETTEXT_VERSION], [
578 AM_GNU_GETTEXT_VERSION([0.12.1])
579 ])
580
581 m4_ifdef([AM_GNU_GETTEXT], [
582 AM_GNU_GETTEXT([external])
583 po_makefile_in=po/Makefile.in
584 AM_CONDITIONAL([HAVE_PO], [true])
585 ],[
586 AM_CONDITIONAL([HAVE_PO], [false])
587 ])
588 AC_SUBST(LTLIBINTL)
589
590 ### Build and install examples
591 EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
592 EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
593
594
595 AC_OUTPUT([
596 Makefile
597 elementary.spec
598 elementary.pc
599 doc/elementary.dox
600 doc/Makefile
601 doc/Doxyfile
602 src/Makefile
603 src/lib/Makefile
604 src/lib/Elementary.h
605 src/bin/Makefile
606 src/modules/Makefile
607 src/modules/test_entry/Makefile
608 src/modules/test_map/Makefile
609 src/modules/ctxpopup_copypasteUI/Makefile
610 src/modules/ctxpopup_copypasteshareUI/Makefile
611 src/modules/popup_copypasteUI/Makefile
612 src/edje_externals/Makefile
613 src/examples/Makefile
614 data/Makefile
615 data/themes/Makefile
616 data/images/Makefile
617 data/objects/Makefile
618 data/desktop/Makefile
619 data/edje_externals/Makefile
620 config/Makefile
621 config/default/Makefile
622 config/standard/Makefile
623 config/illume/Makefile
624 config/slp/Makefile
625 $po_makefile_in
626 ])
627
628 #####################################################################
629 ## Info
630
631 echo
632 echo
633 echo
634 echo "------------------------------------------------------------------------"
635 echo "$PACKAGE $VERSION"
636 echo "------------------------------------------------------------------------"
637 echo
638 echo "Configuration Options Summary:"
639 echo
640 echo "  Engines:"
641 echo "    X11....................: ${have_elementary_x}"
642 echo "    Framebuffer............: ${have_elementary_fb}"
643 echo "    SDL....................: ${have_elementary_sdl}"
644 echo "    Windows XP.............: ${have_elementary_win32}"
645 echo "    Windows CE.............: ${have_elementary_wince}"
646 echo
647 echo "  Features:"
648 echo "    EDBus..................: ${have_elementary_edbus}"
649 echo "    EFreet.................: ${have_elementary_efreet}"
650 echo "    EWeather...............: ${have_elementary_eweather}"
651 echo "    EMap...................: ${have_elementary_emap}"
652 echo "    Ethumb.................: ${have_elementary_ethumb}"
653 echo "    Quick Launch...........: ${have_fork}"
654 echo "    EIO....................: ${have_eio}"
655 echo "    Emotion................: ${have_emotion}"
656 echo
657 echo "  eet......................: ${eet_eet}"
658 echo "  edje_cc..................: ${edje_cc}"
659 echo
660 echo "  Build elementary_test....: ${have_elementary_test}"
661 echo "  Examples.............: ${enable_build_examples}"
662 echo "  Examples installed...: ${enable_install_examples}"
663 echo "  Build elementary_config..: ${have_elementary_config}"
664 echo
665 echo "Compilation................: make (or gmake)"
666 echo "  CPPFLAGS.................: $CPPFLAGS"
667 echo "  CFLAGS...................: $CFLAGS"
668 echo "  LDFLAGS..................: $LDFLAGS"
669 echo
670 echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
671 echo "  prefix...................: $prefix"
672 echo