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-07])
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 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
22 AC_INIT([elementary], [v_ver], [enlightenment-devel@lists.sourceforge.net])
24 AC_CONFIG_SRCDIR([configure.ac])
25 AC_CONFIG_MACRO_DIR([m4])
29 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
30 AM_CONFIG_HEADER([elementary_config.h])
31 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
45 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
46 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
49 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
50 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
51 m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
52 m4_ifdef([v_rel], , [m4_define([v_rel], [])])
53 AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
54 AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
55 AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
56 AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
57 version_info="lt_rev:lt_cur:lt_age"
59 AC_SUBST(version_info)
60 AC_SUBST(release_info)
61 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
62 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
74 MODULE_ARCH="$host_os-$host_cpu"
75 MODULE_EDJE="$host_os-$host_cpu"
78 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
79 MODULE_EDJE="$host_os-$host_cpu-${EDJE_VERSION}"
82 AC_SUBST(release_info)
84 AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
86 AC_DEFINE_UNQUOTED(MODULE_EDJE, "$MODULE_EDJE", "Edje module architecture")
88 EFL_SHARED_EXTENSION="${shrext_cmds}"
89 AC_DEFINE_UNQUOTED(EFL_SHARED_EXTENSION, "${EFL_SHARED_EXTENSION}", "Shared extension")
95 # Check whether pkg-config supports Requires.private
96 if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
97 pkgconfig_requires_private="Requires.private"
99 pkgconfig_requires_private="Requires"
101 AC_SUBST(pkgconfig_requires_private)
103 lt_enable_auto_import=""
104 ELM_UNIX_DEF="#undef"
105 ELM_WIN32_DEF="#undef"
106 ELM_WINCE_DEF="#undef"
110 PKG_CHECK_MODULES([EVIL], [evil])
111 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
112 lt_enable_auto_import="-Wl,--enable-auto-import"
113 ELM_WINCE_DEF="#define"
116 AC_DEFINE(HAVE_DLADDR)
117 requirement_elm="evil"
121 PKG_CHECK_MODULES([EVIL], [evil])
122 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed.])
123 lt_enable_auto_import="-Wl,--enable-auto-import"
124 ELM_WIN32_DEF="#define"
126 requirement_elm="evil"
130 ELM_UNIX_DEF="#define"
132 AC_CHECK_LIB([socket], [connect], [], [have_socket="no"])
135 ELM_UNIX_DEF="#define"
137 AC_CHECK_HEADERS([crt_externs.h])
138 AC_DEFINE([environ], [(*_NSGetEnviron())], [apple doesn't follow POSIX in this case.])
141 ELM_UNIX_DEF="#define"
142 AC_CHECK_FUNCS(dlopen, res=yes, res=no)
143 if test "x$res" = "xyes"; then
144 AC_CHECK_FUNCS(dladdr, AC_DEFINE(HAVE_DLADDR))
146 AC_CHECK_LIB(dl, dlopen, res=yes, res=no)
147 if test "x$res" = "xyes"; then
148 AC_CHECK_LIB(dl, dladdr, AC_DEFINE(HAVE_DLADDR))
151 AC_MSG_ERROR(Cannot find dlopen)
157 AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
160 AC_CHECK_FUNCS(fork, [
164 AM_CONDITIONAL([BUILD_QUICKLAUNCH], [test "x$have_fork" = "xyes"])
166 AC_SUBST(dlopen_libs)
167 AC_SUBST(lt_enable_auto_import)
168 AC_SUBST(ELM_UNIX_DEF)
169 AC_SUBST(ELM_WIN32_DEF)
170 AC_SUBST(ELM_WINCE_DEF)
172 AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
174 PKG_CHECK_MODULES([ELEMENTARY],
183 edje >= ${EDJE_VERSION}
187 requirement_elm="edje >= ${EDJE_VERSION} 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}"
189 have_elementary_x="no"
190 want_elementary_x="auto"
191 AC_ARG_ENABLE([ecore-x],
192 [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
193 [want_elementary_x=$enableval], [])
195 if test "x$want_elementary_x" != "xno"; then
196 PKG_CHECK_MODULES([ELEMENTARY_X],
199 AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
200 have_elementary_x="yes"
201 requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
203 [have_elementary_x="no"]
206 have_elementary_x="no"
208 if test "x$want_elementary_x" = "xyes" -a "x$have_elementary_x" = "xno"; then
209 AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
212 have_conformant_autoscroll="no"
213 want_conformant_autoscroll="yes"
214 AC_ARG_ENABLE([ecore-x],
215 [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
216 [want_conformant_autoscroll=$enableval], [])
218 if test "x$want_conformant_autoscroll" != "xno"; then
219 PKG_CHECK_MODULES([ELEMENTARY_X],
222 AC_DEFINE(HAVE_CONFORMANT_AUTOSCROLL, 1, [autoscroll with conformant])
223 have_conformant_autoscroll="yes"
224 requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
226 [have_conformant_autoscroll="no"]
229 have_conformant_autoscroll="no"
231 if test "x$want_conformant_autoscroll" = "xyes" -a "x$have_conformant_autoscroll" = "xno"; then
232 AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
235 have_elementary_fb="no"
236 want_elementary_fb="auto"
237 AC_ARG_ENABLE([ecore-fb],
238 [AC_HELP_STRING([--disable-ecore-fb], [disable ecore-fb support. @<:@default=detect@:>@])],
239 [want_elementary_fb=$enableval], [])
241 if test "x$want_elementary_fb" != "xno"; then
242 PKG_CHECK_MODULES([ELEMENTARY_FB],
245 AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
246 have_elementary_fb="yes"
247 requirement_elm="ecore-fb >= 1.0.0 ${requirement_elm}"
249 [have_elementary_fb="no"]
252 have_elementary_fb="no"
254 if test "x$want_elementary_fb" = "xyes" -a "x$have_elementary_fb" = "xno"; then
255 AC_MSG_ERROR([ecore-fb support requested, but not found by pkg-config.])
258 have_elementary_sdl="no"
259 want_elementary_sdl="auto"
260 AC_ARG_ENABLE([ecore-sdl],
261 [AC_HELP_STRING([--disable-ecore-sdl], [disable ecore-sdl support. @<:@default=detect@:>@])],
262 [want_elementary_sdl=$enableval], [])
264 if test "x$want_elementary_sdl" != "xno"; then
265 PKG_CHECK_MODULES([ELEMENTARY_SDL],
266 [ecore-sdl >= 1.0.0],
268 AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
269 have_elementary_sdl="yes"
270 requirement_elm="ecore-sdl >= 1.0.0 ${requirement_elm}"
272 [have_elementary_sdl="no"]
275 have_elementary_sdl="no"
277 if test "x$want_elementary_sdl" = "xyes" -a "x$have_elementary_sdl" = "xno"; then
278 AC_MSG_ERROR([ecore-sdl support requested, but not found by pkg-config.])
281 have_elementary_win32="no"
282 want_elementary_win32="auto"
283 AC_ARG_ENABLE([ecore-win32],
284 [AC_HELP_STRING([--disable-ecore-win32], [disable ecore-win32 support. @<:@default=detect@:>@])],
285 [want_elementary_win32=$enableval], [])
287 if test "x$want_elementary_win32" != "xno"; then
288 PKG_CHECK_MODULES([ELEMENTARY_WIN32],
289 [ecore-win32 >= 1.0.0],
291 AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
292 have_elementary_win32="yes"
293 requirement_elm="ecore-win32 >= 1.0.0 ${requirement_elm}"
295 [have_elementary_win32="no"]
298 have_elementary_win32="no"
300 if test "x$want_elementary_win32" = "xyes" -a "x$have_elementary_win32" = "xno"; then
301 AC_MSG_ERROR([ecore-win32 support requested, but not found by pkg-config.])
304 have_elementary_wince="no"
305 want_elementary_wince="auto"
306 AC_ARG_ENABLE([ecore-wince],
307 [AC_HELP_STRING([--disable-ecore-wince], [disable ecore-wince support. @<:@default=detect@:>@])],
308 [want_elementary_wince=$enableval], [])
310 if test "x$want_elementary_wince" != "xno"; then
311 PKG_CHECK_MODULES([ELEMENTARY_WINCE],
312 [ecore-wince >= 1.0.0],
314 AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
315 have_elementary_wince="yes"
316 requirement_elm="ecore-wince >= 1.0.0 ${requirement_elm}"
318 [have_elementary_wince="no"]
321 have_elementary_wince="no"
323 if test "x$want_elementary_wince" = "xyes" -a "x$have_elementary_wince" = "xno"; then
324 AC_MSG_ERROR([ecore-wince support requested, but not found by pkg-config.])
327 ELM_EDBUS_DEF="#undef"
328 have_elementary_edbus="no"
329 want_elementary_edbus="auto"
330 AC_ARG_ENABLE([edbus],
331 [AC_HELP_STRING([--disable-edbus], [disable edbus support. @<:@default=detect@:>@])],
332 [want_elementary_edbus=$enableval], [])
334 if test "x$want_elementary_edbus" != "xno"; then
335 PKG_CHECK_MODULES([ELEMENTARY_EDBUS],
341 AC_DEFINE(HAVE_ELEMENTARY_EDBUS, 1, [EDBus support for Elementary])
342 have_elementary_edbus="yes"
343 ELM_EDBUS_DEF="#define"
344 requirement_elm="ehal >= 1.0.0 edbus >= 1.0.0 ${requirement_elm}"
346 [have_elementary_edbus="no"]
349 have_elementary_edbus="no"
351 if test "x$want_elementary_edbus" = "xyes" -a "x$have_elementary_edbus" = "xno"; then
352 AC_MSG_ERROR([E_DBus support requested, but no edbus/ehal found by pkg-config.])
354 AC_SUBST(ELM_EDBUS_DEF)
356 ELM_EFREET_DEF="#undef"
357 have_elementary_efreet="no"
358 want_elementary_efreet="auto"
359 AC_ARG_ENABLE([efreet],
360 [AC_HELP_STRING([--disable-efreet], [disable efreet support. @<:@default=detect@:>@])],
361 [want_elementary_efreet=$enableval], [])
363 if test "x$want_elementary_efreet" != "xno"; then
364 PKG_CHECK_MODULES([ELEMENTARY_EFREET],
368 efreet-trash >= 1.0.0
371 AC_DEFINE(HAVE_ELEMENTARY_EFREET, 1, [Efreet support for Elementary])
372 have_elementary_efreet="yes"
373 ELM_EFREET_DEF="#define"
374 requirement_elm="efreet >= 1.0.0 efreet-mime >= 1.0.0 efreet-trash >= 1.0.0 ${requirement_elm}"
376 [have_elementary_efreet="no"]
379 have_elementary_efreet="no"
381 if test "x$want_elementary_efreet" = "xyes" -a "x$have_elementary_efreet" = "xno"; then
382 AC_MSG_ERROR([Efreet support requested, but no efreet/efreet-mime/efreet-trash found by pkg-config.])
384 AC_SUBST(ELM_EFREET_DEF)
386 ELM_EWEATHER_DEF="#undef"
387 have_elementary_eweather="no"
388 want_elementary_eweather="auto"
389 AC_ARG_ENABLE([eweather],
390 [AC_HELP_STRING([--disable-eweather], [disable eweather support. @<:@default=detect@:>@])],
391 [want_elementary_eweather=$enableval], [])
393 if test "x$want_elementary_eweather" != "xno"; then
394 PKG_CHECK_MODULES([ELEMENTARY_EWEATHER],
399 AC_DEFINE(HAVE_ELEMENTARY_EWEATHER, 1, [EWeather support for Elementary])
400 have_elementary_eweather="yes"
401 ELM_EWEATHER_DEF="#define"
402 requirement_elm="eweather ${requirement_elm}"
404 [have_elementary_eweather="no"]
407 have_elementary_eweather="no"
409 if test "x$want_elementary_eweather" = "xyes" -a "x$have_elementary_eweather" = "xno"; then
410 AC_MSG_ERROR([Eweather support requested, but no eweather found by pkg-config.])
412 AC_SUBST(ELM_EWEATHER_DEF)
414 ELM_ETHUMB_DEF="#undef"
415 have_elementary_ethumb="no"
416 want_elementary_ethumb="auto"
417 AC_ARG_ENABLE([ethumb],
418 [AC_HELP_STRING([--disable-ethumb], [disable ethumb support. @<:@default=detect@:>@])],
419 [want_elementary_ethumb=$enableval], [])
421 if test "x$want_elementary_ethumb" != "xno"; then
422 PKG_CHECK_MODULES([ELEMENTARY_ETHUMB],
427 AC_DEFINE(HAVE_ELEMENTARY_ETHUMB, 1, [Ethumb support for Elementary])
428 have_elementary_ethumb="yes"
429 ELM_ETHUMB_DEF="#define"
430 requirement_elm="ethumb_client ${requirement_elm}"
432 [have_elementary_ethumb="no"]
435 have_elementary_ethumb="no"
437 if test "x$want_elementary_ethumb" = "xyes" -a "x$have_elementary_ethumb" = "xno"; then
438 AC_MSG_ERROR([Ethumb support requested, but no ethumb found by pkg-config.])
440 AC_SUBST(ELM_ETHUMB_DEF)
442 ELM_LIBXML2_DEF="#undef"
443 have_elementary_libxml2="no"
444 want_elementary_libxml2="auto"
445 AC_ARG_ENABLE([libxml-2.0],
446 [AC_HELP_STRING([--disable-libxml-2.0], [disable libxml-2.0 support. @<:@default=detect@:>@])],
447 [want_elementary_libxml2=$enableval], [])
449 if test "x$want_elementary_libxml2" != "xno"; then
450 PKG_CHECK_MODULES([ELEMENTARY_LIBXML2],
455 AC_DEFINE(HAVE_ELEMENTARY_LIBXML2, 1, [Libxml-2.0 support for Elementary])
456 have_elementary_libxml2="yes"
457 ELM_ETHUMB_DEF="#define"
458 requirement_elm="libxml-2.0 ${requirement_elm}"
460 [have_elementary_libxml2="no"]
463 have_elementary_libxml2="no"
465 if test "x$want_elementary_libxml2" = "xyes" -a "x$have_elementary_libxml2" = "xno"; then
466 AC_MSG_ERROR(Libxml-2.0 support requested, but no libxml-2.0 found by pkg-config.])
468 AC_SUBST(ELM_LIBXML2_DEF)
470 ELM_DEBUG_DEF="#undef"
471 want_elementary_debug="no"
472 AC_ARG_ENABLE([debug],
473 [AC_HELP_STRING([--enable-debug], [enable elementary debug support. @<:@default=disabled@:>@])],
474 [want_elementary_debug=$enableval], [])
476 if test "x$want_elementary_debug" = "xyes"; then
477 AC_DEFINE(HAVE_ELEMENTARY_DEBUG, 1, [Elementary debug.])
478 ELM_DEBUG_DEF="#define"
480 AC_SUBST(ELM_DEBUG_DEF)
482 ELM_ALLOCA_H_DEF="#undef"
483 AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
484 AC_SUBST(ELM_ALLOCA_H_DEF)
486 ELM_LIBINTL_H_DEF="#undef"
487 AC_CHECK_HEADER(libintl.h, [ELM_LIBINTL_H_DEF="#define"])
488 AC_SUBST(ELM_LIBINTL_H_DEF)
492 AC_SUBST(requirement_elm)
494 EFL_WITH_BIN([eet], [eet-eet], [eet])
495 EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
497 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
510 src/modules/test_entry/Makefile
511 src/modules/ctxpopup_copypasteUI/Makefile
512 src/modules/popup_copypasteUI/Makefile
513 src/edje_externals/Makefile
517 data/objects/Makefile
518 data/desktop/Makefile
520 data/edje_externals/Makefile
522 config/default/Makefile
523 config/standard/Makefile
524 config/illume/Makefile
527 #####################################################################
533 echo "------------------------------------------------------------------------"
534 echo "$PACKAGE $VERSION"
535 echo "------------------------------------------------------------------------"
537 echo "Configuration Options Summary:"
540 echo " X11................: ${have_elementary_x}"
541 echo " Framebuffer........: ${have_elementary_fb}"
542 echo " SDL................: ${have_elementary_sdl}"
543 echo " Windows XP.........: ${have_elementary_win32}"
544 echo " Windows CE.........: ${have_elementary_wince}"
547 echo " EDBus..............: ${have_elementary_edbus}"
548 echo " EFreet.............: ${have_elementary_efreet}"
549 echo " EWeather...........: ${have_elementary_eweather}"
550 echo " Ethumb.............: ${have_elementary_ethumb}"
551 echo " Xml2...............: ${have_elementary_libxml2}"
553 echo " eet..................: ${eet_eet}"
554 echo " edje_cc..............: ${edje_cc}"
556 echo "Compilation............: make (or gmake)"
557 echo " CPPFLAGS.............: $CPPFLAGS"
558 echo " CFLAGS...............: $CFLAGS"
559 echo " LDFLAGS..............: $LDFLAGS"
561 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
562 echo " prefix...............: $prefix"