1 # get rid of that stupid cache mechanism
4 AC_INIT([e_dbus], [0.5.0.063], [enlightenment-devel@lists.sourceforge.net])
5 release="ver-pre-svn-05"
7 AC_CONFIG_SRCDIR([configure.ac])
8 AC_CONFIG_MACRO_DIR([m4])
12 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
13 AM_CONFIG_HEADER([config.h])
14 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
22 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
23 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
26 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
27 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
28 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
29 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
30 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
31 econnman_release_info="-release $release"
32 ebluez_release_info="-release $release"
33 eofono_release_info="-release $release"
34 edbus_release_info="-release $release"
35 ehal_release_info="-release $release"
36 eukit_release_info="-release $release"
37 enotify_release_info="-release $release"
38 AC_SUBST(version_info)
39 AC_SUBST(econnman_release_info)
40 AC_SUBST(ebluez_release_info)
41 AC_SUBST(eofono_release_info)
42 AC_SUBST(edbus_release_info)
43 AC_SUBST(ehal_release_info)
44 AC_SUBST(eukit_release_info)
45 AC_SUBST(enotify_release_info)
47 dnl Check enabled modules to build
48 AC_ARG_ENABLE([ehal],[AC_HELP_STRING([--disable-ehal], [Disable ehal build])],[enable_ehal=$enableval],[enable_ehal="yes"])
49 AC_ARG_ENABLE([eukit],[AC_HELP_STRING([--disable-eukit], [Disable eukit build])],[enable_eukit=$enableval],[enable_eukit="yes"])
50 AC_ARG_ENABLE([econnman],[AC_HELP_STRING([--disable-econnman], [Disable econnman build])],[enable_econnman=$enableval],[enable_econnman="yes"])
51 AC_ARG_ENABLE([ebluez],[AC_HELP_STRING([--disable-ebluez], [Disable ebluez build])],[enable_ebluez=$enableval],[enable_ebluez="yes"])
52 AC_ARG_ENABLE([eofono],[AC_HELP_STRING([--disable-eofono], [Disable eofono build])],[enable_eofono=$enableval],[enable_eofono="yes"])
53 AC_ARG_ENABLE([enotify],[AC_HELP_STRING([--disable-enotify], [Disable enotify build])],[enable_enotify=$enableval],[enable_enotify="yes"])
58 # Check whether pkg-config supports Requires.private
60 [$PKG_CONFIG --atleast-pkgconfig-version 0.22],
61 [pkgconfig_requires_private="Requires.private"],
62 [pkgconfig_requires_private="Requires"]
64 AC_SUBST(pkgconfig_requires_private)
66 PKG_CHECK_MODULES([EINA], [eina-0])
68 PKG_CHECK_MODULES([EDBUS], [
73 ##### Find out the version of DBUS we're using
74 dbus_version=`pkg-config --modversion dbus-1`
75 DBUS_VERSION_MAJOR=`echo $dbus_version | awk -F. '{print $1}'`
76 DBUS_VERSION_MINOR=`echo $dbus_version | awk -F. '{print $2}'`
77 DBUS_VERSION_MICRO=`echo $dbus_version | awk -F. '{print $3}'`
79 [test "z$DBUS_VERSION_MAJOR" = "z"],
80 [DBUS_VERSION_MAJOR="0"]
83 [test "z$DBUS_VERSION_MINOR" = "z"],
84 [DBUS_VERSION_MINOR="0"]
87 [test "z$DBUS_VERSION_MICRO" = "z"],
88 [DBUS_VERSION_MICRO="0"]
90 DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR"
91 DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR"
92 DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
93 AC_SUBST(DBUS_VERSION_CFLAGS)
99 [test "x${enable_enotify}" = "xyes"],
100 [PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9], [], [enable_enotify="no"])]
103 AM_CONDITIONAL([BUILD_EHAL], [test "x${enable_ehal}" = "xyes"])
104 AM_CONDITIONAL([BUILD_EUKIT], [test "x${enable_eukit}" = "xyes"])
105 AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"])
106 AM_CONDITIONAL([BUILD_ECONNMAN], [test "x${enable_econnman}" = "xyes"])
107 AM_CONDITIONAL([BUILD_EBLUEZ], [test "x${enable_ebluez}" = "xyes"])
108 AM_CONDITIONAL([BUILD_EOFONO], [test "x${enable_eofono}" = "xyes"])
111 lt_enable_auto_import=""
116 EFL_EDBUS_BUILD="-DEFL_EDBUS_BUILD"
117 lt_enable_auto_import="-Wl,--enable-auto-import"
120 AC_SUBST(EFL_EDBUS_BUILD)
121 AC_SUBST(lt_enable_auto_import)
128 src/lib/dbus/Makefile
130 src/lib/ukit/Makefile
131 src/lib/notification/Makefile
132 src/lib/connman/Makefile
133 src/lib/bluez/Makefile
134 src/lib/ofono/Makefile
146 #####################################################################
152 echo "------------------------------------------------------------------------"
153 echo "$PACKAGE $VERSION"
154 echo "------------------------------------------------------------------------"
156 echo "Configuration Options Summary:"
160 echo " EHal...............: $enable_ehal"
161 echo " EUkit..............: $enable_eukit"
162 echo " EConnman...........: $enable_econnman"
163 echo " EBluez.............: $enable_ebluez"
164 echo " EOfono.............: $enable_eofono"
165 echo " ENotify............: $enable_enotify"
167 echo "Compilation............: make (or gmake)"
168 echo " CPPFLAGS.............: $CPPFLAGS"
169 echo " CFLAGS...............: $CFLAGS"
170 echo " LDFLAGS..............: $LDFLAGS"
172 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
173 echo " prefix...............: $prefix"