X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=configure.ac;h=924e1009fc60852a7c4067b32ddf0e8c84f46cbd;hb=09ff2305342848bd6241cac109029bdb36c18966;hp=e6bf0f4a12dc6e270fd5be51da22f4e632bd1f91;hpb=55aea3b4f30022b0ee840ca67718f4141fc2efe2;p=framework%2Fuifw%2Fedbus.git diff --git a/configure.ac b/configure.ac index e6bf0f4..924e100 100644 --- a/configure.ac +++ b/configure.ac @@ -1,20 +1,20 @@ ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## -m4_define([v_maj], [0]) -m4_define([v_min], [5]) -m4_define([v_mic], [0]) -m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v exported || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n'])) +m4_define([v_maj], [1]) +m4_define([v_min], [2]) +m4_define([v_mic], [99]) +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'])) 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']))]) ##-- When released, remove the dnl on the below line dnl m4_undefine([v_rev]) ##-- When doing snapshots - change soname. remove dnl on below line -m4_define([relname], [ver-pre-svn-06]) -m4_define([v_rel], [-release relname]) +dnl m4_define([relname], [ver-pre-svn-07]) +dnl m4_define([v_rel], [-release relname]) ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## 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])]) -m4_define([lt_rev], m4_eval(v_maj + v_min)) -m4_define([lt_cur], v_mic) +m4_define([lt_cur], m4_eval(v_maj + v_min)) +m4_define([lt_rev], v_mic) m4_define([lt_age], v_min) ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## @@ -23,11 +23,17 @@ AC_INIT([e_dbus], [v_ver], [enlightenment-devel@lists.sourceforge.net]) AC_PREREQ([2.52]) AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_MACRO_DIR([m4]) -AC_CANONICAL_BUILD -AC_CANONICAL_HOST + +AC_CONFIG_HEADERS([config.h]) +AH_TOP([ +#ifndef EFL_CONFIG_H__ +#define EFL_CONFIG_H__ +]) +AH_BOTTOM([ +#endif /* EFL_CONFIG_H__ */ +]) AM_INIT_AUTOMAKE([1.6 dist-bzip2]) -AM_CONFIG_HEADER([config.h]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_LIBTOOL_WIN32_DLL @@ -43,17 +49,22 @@ AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version]) AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version]) AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version]) AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison]) -version_info="lt_rev:lt_cur:lt_age" +version_info="lt_cur:lt_rev:lt_age" release_info="v_rel" AC_SUBST(version_info) AC_SUBST(release_info) ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## +VMAJ=v_maj +AC_SUBST(VMAJ) ### Needed information +AC_CANONICAL_BUILD +AC_CANONICAL_HOST + want_ebluez="yes" -want_econnman="yes" +want_econnman0_7x="yes" want_ehal="yes" want_enotify="yes" want_eofono="yes" @@ -62,7 +73,7 @@ want_eukit="yes" case "$host_os" in mingw*) want_ebluez="no" - want_econnman="no" + want_econnman0_7x="no" want_ehal="no" want_enotify="no" want_eofono="no" @@ -70,13 +81,14 @@ case "$host_os" in ;; esac -requirement_ebluez="edbus" -requirement_econnman="edbus" -requirement_edbus="ecore eina-0 dbus-1" -requirement_ehal="edbus" -requirement_enotify="edbus" -requirement_eofono="edbus" -requirement_eukit="edbus" +requirement_ebluez="edbus >= 1.2.0" +requirement_econnman0_7x="edbus >= 1.2.0" +requirement_edbus="ecore >= 1.2.0 eina >= 1.2.0 dbus-1 >= 0.62" +requirement_ehal="edbus >= 1.2.0" +requirement_enotify="edbus >= 1.2.0" +requirement_eofono="edbus >= 1.2.0" +requirement_eukit="edbus >= 1.2.0" +requirement_dbus="dbus-1 >= 0.62" ### Additional options to configure @@ -87,10 +99,10 @@ AC_ARG_ENABLE([ebluez], [enable_ebluez=$enableval], [enable_ebluez="${want_ebluez}"]) -AC_ARG_ENABLE([econnman], - [AC_HELP_STRING([--enable-econnman], [Enable econnman build])], - [enable_econnman=$enableval], - [enable_econnman="${want_econnman}"]) +AC_ARG_ENABLE([econnman0_7x], + [AC_HELP_STRING([--enable-econnman0_7x], [Enable econnman 0.7x build])], + [enable_econnman0_7x=$enableval], + [enable_econnman0_7x="${want_econnman0_7x}"]) AC_ARG_ENABLE([ehal], [AC_HELP_STRING([--disable-ehal], [Disable ehal build])], @@ -135,7 +147,12 @@ EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"]) ### Checks for libraries -PKG_CHECK_MODULES([EDBUS], [ecore >= 0.9.9 eina-0 dbus-1 >= 0.62]) +PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.62]) +dbus_libs="$DBUS_LIBS" +dbus_cflags="$DBUS_CFLAGS" +AC_SUBST(dbus_libs) +AC_SUBST(dbus_cflags) +PKG_CHECK_MODULES([EDBUS], [ecore >= 1.2.0 eina >= 1.2.0 dbus-1 >= 0.62]) # Find out the version of DBUS we're using dbus_version=`pkg-config --modversion dbus-1` @@ -160,21 +177,96 @@ DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MIN DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO" AC_SUBST(DBUS_VERSION_CFLAGS) -# evas +# Dependencies for the libraries if test "x${enable_enotify}" = "xyes" ; then - PKG_CHECK_MODULES(EVAS, - [evas >= 0.9.9], - [requirement_enotify="evas ${requirement_enotify}"], + PKG_CHECK_MODULES([EVAS], + [evas >= 1.2.0], + [requirement_enotify="evas >= 1.2.0 ${requirement_enotify}"], [enable_enotify="no"]) fi AM_CONDITIONAL([BUILD_EBLUEZ], [test "x${enable_ebluez}" = "xyes"]) -AM_CONDITIONAL([BUILD_ECONNMAN], [test "x${enable_econnman}" = "xyes"]) +AM_CONDITIONAL([BUILD_ECONNMAN0_7X], [test "x${enable_econnman0_7x}" = "xyes"]) AM_CONDITIONAL([BUILD_EHAL], [test "x${enable_ehal}" = "xyes"]) AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"]) AM_CONDITIONAL([BUILD_EOFONO], [test "x${enable_eofono}" = "xyes"]) AM_CONDITIONAL([BUILD_EUKIT], [test "x${enable_eukit}" = "xyes"]) +# Dependencies for the binaries + +EFL_ENABLE_BIN([edbus-test], ["yes"]) +EFL_ENABLE_BIN([edbus-test-client], ["yes"]) +EFL_ENABLE_BIN([edbus-bluez-test], [${enable_ebluez}]) +EFL_ENABLE_BIN([edbus-connman0_7x-test], [${enable_econnman0_7x}]) +EFL_ENABLE_BIN([edbus-notification-daemon-test], [${enable_enotify}]) +EFL_ENABLE_BIN([edbus-notify-send], [${enable_enotify}]) +EFL_ENABLE_BIN([edbus-notify-test], [${enable_enotify}]) +EFL_ENABLE_BIN([edbus-ofono-test], [${enable_eofono}]) +EFL_ENABLE_BIN([edbus-ukit-test], [${enable_eukit}]) + +if test "x${have_edbus_test}" = "xyes" ; then + PKG_CHECK_MODULES([EDBUS_TEST], + [ecore >= 1.2.0 dbus-1 >= 0.62], + [have_edbus_test="yes"], + [have_edbus_test="no"]) +fi + +if test "x${have_edbus_test_client}" = "xyes" ; then + PKG_CHECK_MODULES([EDBUS_TEST_CLIENT], + [ecore >= 1.2.0 dbus-1 >= 0.62], + [have_edbus_test_client="yes"], + [have_edbus_test_client="no"]) +fi + +if test "x${have_edbus_bluez_test}" = "xyes" ; then + PKG_CHECK_MODULES([EDBUS_BLUEZ_TEST], + [ecore >= 1.2.0 eina >= 1.2.0 dbus-1 >= 0.62], + [have_edbus_bluez_test="yes"], + [have_edbus_bluez_test="no"]) +fi + +if test "x${have_edbus_connman0_7x_test}" = "xyes" ; then + PKG_CHECK_MODULES([EDBUS_CONNMAN0_7X_TEST], + [ecore >= 1.2.0 eina >= 1.2.0 dbus-1 >= 0.62], + [have_edbus_connman0_7x_test="yes"], + [have_edbus_connman0_7x_test="no"]) +fi + +if test "x${have_edbus_notification_daemon_test}" = "xyes" ; then + PKG_CHECK_MODULES([EDBUS_NOTIFICATION_DAEMON_TEST], + [ecore >= 1.2.0 evas >= 1.2.0 eina >= 1.2.0 dbus-1 >= 0.62], + [have_edbus_notification_daemon_test="yes"], + [have_edbus_notification_daemon_test="no"]) +fi + +if test "x${have_edbus_notify_send}" = "xyes" ; then + PKG_CHECK_MODULES([EDBUS_NOTIFY_SEND], + [ecore >= 1.2.0 evas >= 1.2.0 eina >= 1.2.0 dbus-1 >= 0.62], + [have_edbus_notify_send="yes"], + [have_edbus_notify_send="no"]) +fi + +if test "x${have_edbus_notify_test}" = "xyes" ; then + PKG_CHECK_MODULES([EDBUS_NOTIFY_TEST], + [ecore >= 1.2.0 ecore-evas >= 1.2.0 evas >= 1.2.0 eina >= 1.2.0 dbus-1 >= 0.62], + [have_edbus_notify_test="yes"], + [have_edbus_notify_test="no"]) +fi + +if test "x${have_edbus_ofono_test}" = "xyes" ; then + PKG_CHECK_MODULES([EDBUS_OFONO_TEST], + [ecore >= 1.2.0 eina >= 1.2.0 dbus-1 >= 0.62], + [have_edbus_ofono_test="yes"], + [have_edbus_ofono_test="no"]) +fi + +if test "x${have_edbus_ukit_test}" = "xyes" ; then + PKG_CHECK_MODULES([EDBUS_UKIT_TEST], + [ecore >= 1.2.0 eina >= 1.2.0 dbus-1 >= 0.62], + [have_edbus_ukit_test="yes"], + [have_edbus_ukit_test="no"]) +fi + ### Checks for header files @@ -223,21 +315,23 @@ AC_FUNC_ALLOCA AC_SUBST(requirement_ebluez) -AC_SUBST(requirement_econnman) +AC_SUBST(requirement_econnman0_7x) AC_SUBST(requirement_edbus) AC_SUBST(requirement_ehal) AC_SUBST(requirement_enotify) AC_SUBST(requirement_eofono) AC_SUBST(requirement_eukit) +AC_SUBST(requirement_dbus) AC_OUTPUT([ e_dbus.spec Makefile doc/Makefile +doc/Doxyfile src/Makefile src/lib/Makefile src/lib/bluez/Makefile -src/lib/connman/Makefile +src/lib/connman0_7x/Makefile src/lib/dbus/Makefile src/lib/hal/Makefile src/lib/notification/Makefile @@ -245,7 +339,7 @@ src/lib/ofono/Makefile src/lib/ukit/Makefile src/bin/Makefile ebluez.pc -econnman.pc +econnman-0.7x.pc edbus.pc ehal.pc enotify.pc @@ -269,12 +363,24 @@ echo echo " Modules:" echo echo " EBluez.............: $enable_ebluez" -echo " EConnman...........: $enable_econnman" +echo " EConnman (0.7x)....: $enable_econnman0_7x" echo " EHal...............: $enable_ehal" echo " ENotify............: $enable_enotify" echo " EOfono.............: $enable_eofono" echo " EUkit..............: $enable_eukit" echo +echo " Binaries:" +echo +echo " EDbus test.........: $have_edbus_test" +echo " EDbus client test..: $have_edbus_test_client" +echo " EBluez test........: $have_edbus_bluez_test" +echo " EConnman (0.7x)test: $have_edbus_connman0_7x_test" +echo " ENotify Daemon test: $have_edbus_notification_daemon_test" +echo " ENotify send.......: $have_edbus_notify_send" +echo " ENotify test.......: $have_edbus_notify_test" +echo " EOfono test........: $have_edbus_ofono_test" +echo " EUkit test.........: $have_edbus_ukit_test" +echo echo "Documentation..........: ${build_doc}" echo echo "Compilation............: make (or gmake)"