AC_SUBST(VMAJ)
AC_SUBST(VMIN)
-EDJE_VERSION="1.0.0"
+# pkg-config
+PKG_PROG_PKG_CONFIG
+EDJE_VERSION=`$PKG_CONFIG edje --modversion | awk -F . '{printf("%s.0.0", $1);}'`
case "$host_os" in
mingw32ce* | cegcc*)
fi
AC_SUBST(pkgconfig_requires_private)
+#================================================
+if test "x${prefix}" = "xNONE"; then
+ LOCALE_DIR="${ac_default_prefix}/share/locale"
+else
+ LOCALE_DIR="${prefix}/share/locale"
+fi
+AC_SUBST(LOCALE_DIR)
+#================================================
+
lt_enable_auto_import=""
ELM_UNIX_DEF="#undef"
ELM_WIN32_DEF="#undef"
have_socket="yes"
;;
esac
+AC_CHECK_FUNCS(strcasestr, AC_DEFINE(HAVE_STRCASESTR))
AM_CONDITIONAL([BUILD_RUN], [test "x$have_socket" = "xyes"])
+m4_ifdef([v_mic],
+ [
+ EFL_COMPILER_FLAG([-Wall])
+ EFL_COMPILER_FLAG([-W])
+ ])
+
have_fork="no"
want_quicklaunch="auto"
AC_ARG_ENABLE([quick-launch],
PKG_CHECK_MODULES([ELEMENTARY],
[
- eina >= 1.0.0
+ eina >= 1.0.999
eet >= 1.4.0
- evas >= 1.0.0
+ evas >= 1.0.999
ecore >= 1.0.0
ecore-evas >= 1.0.0
ecore-file >= 1.0.0
ecore-imf >= 1.0.0
- edje >= ${EDJE_VERSION}
+ edje >= 1.0.999
]
)
-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}"
+PKG_CHECK_MODULES([ECORE_CON],
+ [ecore-con],
+ [
+ have_ecore_con="yes"
+ AC_DEFINE(HAVE_ECORE_CON, 1, [Use Ecore_Con for downloding files])
+ requirement_elm="ecore-con ${requirement_elm}"
+ ],
+ [have_ecore_con="no"])
+
+PKG_CHECK_MODULES([EIO],
+ [eio],
+ [
+ have_eio="yes"
+ AC_DEFINE(HAVE_EIO, 1, [Use EIO for asynchronous file access])
+ requirement_elm="eio ${requirement_elm}"
+ ],
+ [have_eio="no"])
+
+AM_CONDITIONAL([HAVE_EIO], [test "x${have_eio}" = "xyes"])
+
+PKG_CHECK_MODULES([EMOTION],
+ [emotion],
+ [
+ have_emotion="yes"
+ AC_DEFINE(HAVE_EMOTION, 1, [Use Emotion for asynchronous file access])
+ requirement_elm="emotion ${requirement_elm}"
+ ],
+ [have_emotion="no"])
+
+AM_CONDITIONAL([HAVE_EMOTION], [test "x${have_emotion}" = "xyes"])
+
+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}"
have_elementary_x="no"
want_elementary_x="auto"
AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
fi
+have_conformant_autoscroll="no"
+want_conformant_autoscroll="yes"
+AC_ARG_ENABLE([ecore-x],
+ [AC_HELP_STRING([--disable-ecore-x], [disable ecore-x support. @<:@default=detect@:>@])],
+ [want_conformant_autoscroll=$enableval], [])
+
+if test "x$want_conformant_autoscroll" != "xno"; then
+ PKG_CHECK_MODULES([ELEMENTARY_X],
+ [ecore-x >= 1.0.0],
+ [
+ AC_DEFINE(HAVE_CONFORMANT_AUTOSCROLL, 1, [autoscroll with conformant])
+ have_conformant_autoscroll="yes"
+ requirement_elm="ecore-x >= 1.0.0 ${requirement_elm}"
+ ],
+ [have_conformant_autoscroll="no"]
+ )
+else
+ have_conformant_autoscroll="no"
+fi
+if test "x$want_conformant_autoscroll" = "xyes" -a "x$have_conformant_autoscroll" = "xno"; then
+ AC_MSG_ERROR([ecore-x support requested, but not found by pkg-config.])
+fi
have_elementary_fb="no"
want_elementary_fb="auto"
fi
AC_SUBST(ELM_EWEATHER_DEF)
+ELM_EMAP_DEF="#undef"
+have_elementary_emap="no"
+want_elementary_emap="auto"
+AC_ARG_ENABLE([emap],
+ [AC_HELP_STRING([--disable-emap], [disable emap support. @<:@default=detect@:>@])],
+ [want_elementary_emap=$enableval], [])
+
+if test "x$want_elementary_emap" != "xno"; then
+ PKG_CHECK_MODULES([ELEMENTARY_EMAP],
+ [
+ emap
+ ],
+ [
+ AC_DEFINE(HAVE_ELEMENTARY_EMAP, 1, [EMap support for Elementary])
+ have_elementary_emap="yes"
+ ELM_EMAP_DEF="#define"
+ requirement_elm="emap ${requirement_elm}"
+ ],
+ [have_elementary_emap="no"]
+ )
+else
+ have_elementary_emap="no"
+fi
+if test "x$want_elementary_emap" = "xyes" -a "x$have_elementary_emap" = "xno"; then
+ AC_MSG_ERROR([Emap support requested, but no emap found by pkg-config.])
+fi
+AC_SUBST(ELM_EMAP_DEF)
+
+
+
ELM_ETHUMB_DEF="#undef"
have_elementary_ethumb="no"
want_elementary_ethumb="auto"
EFL_ENABLE_BIN([elementary-test])
EFL_ENABLE_BIN([elementary-config])
+m4_ifdef([AM_GNU_GETTEXT_VERSION], [
+AM_GNU_GETTEXT_VERSION([0.12.1])
+])
+
+m4_ifdef([AM_GNU_GETTEXT], [
+AM_GNU_GETTEXT([external])
+po_makefile_in=po/Makefile.in
+AM_CONDITIONAL([HAVE_PO], [true])
+],[
+AM_CONDITIONAL([HAVE_PO], [false])
+])
+AC_SUBST(LTLIBINTL)
+
+### Build and install examples
+EFL_CHECK_BUILD_EXAMPLES([enable_build_examples="yes"], [enable_build_examples="no"])
+EFL_CHECK_INSTALL_EXAMPLES([enable_install_examples="yes"], [enable_install_examples="no"])
+
+
AC_OUTPUT([
Makefile
elementary.spec
elementary.pc
doc/elementary.dox
doc/Makefile
+doc/Doxyfile
src/Makefile
src/lib/Makefile
src/lib/Elementary.h
src/modules/Makefile
src/modules/test_entry/Makefile
src/modules/test_map/Makefile
+src/modules/ctxpopup_copypasteUI/Makefile
+src/modules/ctxpopup_copypasteshareUI/Makefile
+src/modules/popup_copypasteUI/Makefile
src/edje_externals/Makefile
+src/examples/Makefile
data/Makefile
data/themes/Makefile
data/images/Makefile
config/default/Makefile
config/standard/Makefile
config/illume/Makefile
+config/slp/Makefile
+$po_makefile_in
])
#####################################################################
echo " EDBus..................: ${have_elementary_edbus}"
echo " EFreet.................: ${have_elementary_efreet}"
echo " EWeather...............: ${have_elementary_eweather}"
+echo " EMap...................: ${have_elementary_emap}"
echo " Ethumb.................: ${have_elementary_ethumb}"
echo " Quick Launch...........: ${have_fork}"
+echo " EIO....................: ${have_eio}"
+echo " Emotion................: ${have_emotion}"
echo
echo " eet......................: ${eet_eet}"
echo " edje_cc..................: ${edje_cc}"
echo
echo " Build elementary_test....: ${have_elementary_test}"
+echo " Examples.............: ${enable_build_examples}"
+echo " Examples installed...: ${enable_install_examples}"
echo " Build elementary_config..: ${have_elementary_config}"
echo
echo "Compilation................: make (or gmake)"