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"
6 ebluez_release_info="-release $release"
7 econnman_release_info="-release $release"
8 edbus_release_info="-release $release"
9 ehal_release_info="-release $release"
10 enotify_release_info="-release $release"
11 eofono_release_info="-release $release"
12 eukit_release_info="-release $release"
13 AC_SUBST(ebluez_release_info)
14 AC_SUBST(econnman_release_info)
15 AC_SUBST(edbus_release_info)
16 AC_SUBST(ehal_release_info)
17 AC_SUBST(enotify_release_info)
18 AC_SUBST(eofono_release_info)
19 AC_SUBST(eukit_release_info)
21 AC_CONFIG_SRCDIR([configure.ac])
22 AC_CONFIG_MACRO_DIR([m4])
26 AM_INIT_AUTOMAKE([1.6 dist-bzip2])
27 AM_CONFIG_HEADER([config.h])
28 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
31 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
32 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
35 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
36 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
37 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
38 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
39 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
40 ebluez_version_info=$version_info
41 econnman_version_info=$version_info
42 edbus_version_info=$version_info
43 ehal_version_info=$version_info
44 enotify_version_info=$version_info
45 eofono_version_info=$version_info
46 eukit_version_info=$version_info
47 AC_SUBST(ebluez_version_info)
48 AC_SUBST(econnman_version_info)
49 AC_SUBST(edbus_version_info)
50 AC_SUBST(ehal_version_info)
51 AC_SUBST(enotify_version_info)
52 AC_SUBST(eofono_version_info)
53 AC_SUBST(eukit_version_info)
55 ### Needed information
75 requirement_ebluez="edbus"
76 requirement_econnman="edbus"
77 requirement_edbus="ecore eina-0 dbus-1"
78 requirement_ehal="edbus"
79 requirement_enotify="edbus"
80 requirement_eofono="edbus"
81 requirement_eukit="edbus"
83 ### Additional options to configure
85 dnl Check enabled modules to build
87 AC_ARG_ENABLE([ebluez],
88 [AC_HELP_STRING([--enable-ebluez], [Enable ebluez build])],
89 [enable_ebluez=$enableval],
90 [enable_ebluez="${want_ebluez}"])
92 AC_ARG_ENABLE([econnman],
93 [AC_HELP_STRING([--enable-econnman], [Enable econnman build])],
94 [enable_econnman=$enableval],
95 [enable_econnman="${want_econnman}"])
98 [AC_HELP_STRING([--disable-ehal], [Disable ehal build])],
99 [enable_ehal=$enableval],
100 [enable_ehal="${want_ehal}"])
102 AC_ARG_ENABLE([enotify],
103 [AC_HELP_STRING([--disable-enotify], [Disable enotify build])],
104 [enable_enotify=$enableval],
105 [enable_enotify="${want_enotify}"])
107 AC_ARG_ENABLE([eofono],
108 [AC_HELP_STRING([--enable-eofono], [Enable eofono build])],
109 [enable_eofono=$enableval],
110 [enable_eofono="${want_eofono}"])
112 AC_ARG_ENABLE([eukit],
113 [AC_HELP_STRING([--disable-eukit], [Disable eukit build])],
114 [enable_eukit=$enableval],
115 [enable_eukit="${want_eukit}"])
118 ### Checks for programs
126 # Check whether pkg-config supports Requires.private
127 if $PKG_CONFIG --atleast-pkgconfig-version 0.22 ; then
128 pkgconfig_requires_private="Requires.private"
130 pkgconfig_requires_private="Requires"
132 AC_SUBST(pkgconfig_requires_private)
134 # doxygen program for documentation building
135 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
138 ### Checks for libraries
140 PKG_CHECK_MODULES([EDBUS], [ecore >= 0.9.9 eina-0 dbus-1 >= 0.62])
142 # Find out the version of DBUS we're using
143 dbus_version=`pkg-config --modversion dbus-1`
144 DBUS_VERSION_MAJOR=`echo $dbus_version | awk -F. '{print $1}'`
145 DBUS_VERSION_MINOR=`echo $dbus_version | awk -F. '{print $2}'`
146 DBUS_VERSION_MICRO=`echo $dbus_version | awk -F. '{print $3}'`
148 if test "z$DBUS_VERSION_MAJOR" = "z" ; then
149 DBUS_VERSION_MAJOR="0"
152 if test "z$DBUS_VERSION_MINOR" = "z" ; then
153 DBUS_VERSION_MINOR="0"
156 if test "z$DBUS_VERSION_MICRO" = "z" ; then
157 DBUS_VERSION_MICRO="0"
160 DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MAJOR=$DBUS_VERSION_MAJOR"
161 DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MINOR=$DBUS_VERSION_MINOR"
162 DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
163 AC_SUBST(DBUS_VERSION_CFLAGS)
166 if test "x${enable_enotify}" = "xyes" ; then
167 PKG_CHECK_MODULES(EVAS,
169 [requirement_enotify="evas ${requirement_enotify}"],
170 [enable_enotify="no"])
173 AM_CONDITIONAL([BUILD_EBLUEZ], [test "x${enable_ebluez}" = "xyes"])
174 AM_CONDITIONAL([BUILD_ECONNMAN], [test "x${enable_econnman}" = "xyes"])
175 AM_CONDITIONAL([BUILD_EHAL], [test "x${enable_ehal}" = "xyes"])
176 AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"])
177 AM_CONDITIONAL([BUILD_EOFONO], [test "x${enable_eofono}" = "xyes"])
178 AM_CONDITIONAL([BUILD_EUKIT], [test "x${enable_eukit}" = "xyes"])
181 ### Checks for header files
187 ### Checks for structures
190 ### Checks for compiler characteristics
195 EFL_EDBUS_BUILD="-DEFL_EDBUS_BUILD"
198 AC_SUBST(EFL_EDBUS_BUILD)
203 if ! test "x${VMIC}" = "x" ; then
204 EFL_COMPILER_FLAG([-Wall])
205 EFL_COMPILER_FLAG([-W])
208 EFL_COMPILER_FLAG([-Wshadow])
211 ### Checks for linker characteristics
213 lt_enable_auto_import=""
216 lt_enable_auto_import="-Wl,--enable-auto-import"
219 AC_SUBST(lt_enable_auto_import)
222 ### Checks for library functions
227 AC_SUBST(requirement_ebluez)
228 AC_SUBST(requirement_econnman)
229 AC_SUBST(requirement_edbus)
230 AC_SUBST(requirement_ehal)
231 AC_SUBST(requirement_enotify)
232 AC_SUBST(requirement_eofono)
233 AC_SUBST(requirement_eukit)
241 src/lib/bluez/Makefile
242 src/lib/connman/Makefile
243 src/lib/dbus/Makefile
245 src/lib/notification/Makefile
246 src/lib/ofono/Makefile
247 src/lib/ukit/Makefile
259 #####################################################################
265 echo "------------------------------------------------------------------------"
266 echo "$PACKAGE $VERSION"
267 echo "------------------------------------------------------------------------"
269 echo "Configuration Options Summary:"
273 echo " EBluez.............: $enable_ebluez"
274 echo " EConnman...........: $enable_econnman"
275 echo " EHal...............: $enable_ehal"
276 echo " ENotify............: $enable_enotify"
277 echo " EOfono.............: $enable_eofono"
278 echo " EUkit..............: $enable_eukit"
280 echo "Documentation..........: ${build_doc}"
282 echo "Compilation............: make (or gmake)"
283 echo " CPPFLAGS.............: $CPPFLAGS"
284 echo " CFLAGS...............: $CFLAGS"
285 echo " LDFLAGS..............: $LDFLAGS"
287 echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
288 echo " prefix...............: $prefix"