disable connman and network manager by default.
[framework/uifw/edbus.git] / configure.ac
1 # get rid of that stupid cache mechanism
2 rm -f config.cache
3
4 AC_INIT(e_dbus, 0.5.0.050, enlightenment-devel@lists.sourceforge.net)
5 AC_PREREQ(2.52)
6 AC_CONFIG_SRCDIR(configure.ac)
7 AC_CANONICAL_BUILD
8 AC_CANONICAL_HOST
9
10 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
11 AM_CONFIG_HEADER(config.h)
12
13 AC_PROG_CC
14 AC_HEADER_STDC
15 AM_PROG_CC_C_O
16
17 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
18 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
19 AC_PROG_LIBTOOL
20
21 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
22 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
23 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
24 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
25 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
26 econnman_release_info="-release ver-pre-svn-00"
27 edbus_release_info="-release ver-pre-svn-00"
28 ehal_release_info="-release ver-pre-svn-00"
29 enm_release_info="-release ver-pre-svn-00"
30 enotify_release_info="-release ver-pre-svn-00"
31 AC_SUBST(version_info)
32 AC_SUBST(econnman_release_info)
33 AC_SUBST(edbus_release_info)
34 AC_SUBST(ehal_release_info)
35 AC_SUBST(enm_release_info)
36 AC_SUBST(enotify_release_info)
37
38 dnl Check enabled modules to build
39 AC_ARG_ENABLE(ehal,
40                                   AC_HELP_STRING([--disable-ehal],
41                                                                           [Disable ehal build]),
42                                   [enable_ehal=$enableval],
43                                   [enable_ehal="yes"])
44 AC_ARG_ENABLE(enm,
45                                   AC_HELP_STRING([--enable-enm],
46                                                                           [Enable enm (network manager) build]),
47                                   [enable_enm=$enableval],
48                                   [enable_enm="no"])
49 AC_ARG_ENABLE(econnman,
50                                   AC_HELP_STRING([--enable-econnman],
51                                                                           [Enable econnman build]),
52                                   [enable_econnman=$enableval],
53                                   [enable_econnman="no"])
54 AC_ARG_ENABLE(enotify,
55                                   AC_HELP_STRING([--disable-enotify],
56                                                                           [Disable enotify build]),
57                                   [enable_enotify=$enableval],
58                                   [enable_enotify="yes"])
59
60
61 PKG_CHECK_MODULES([EINA], [eina-0])
62
63 PKG_CHECK_MODULES([EDBUS], [
64   dbus-1 >= 0.62
65   ecore >= 0.9.9
66 ])
67
68
69 dnl evas
70 if test "x${enable_enotify}" = "xyes"
71 then
72         PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9], [], [enable_enotify="no"])
73 fi
74
75 AC_ARG_ENABLE(build-test-gui,
76   AS_HELP_STRING([--enable-build-test-gui], [Build with gui for testing]),
77   [ PKG_CHECK_MODULES([HAL_TEST_GUI], [
78     ewl
79     efreet
80     ],
81     # temporarily disable until update to newer tree2 api
82     [AC_DEFINE([EWL_GUI], 0, [An ewl gui for e_dbus_hal])],
83     [AC_DEFINE([EWL_GUI], 0, [An ewl gui for e_dbus_hal])]
84     )
85  ]
86 )
87
88 AM_CONDITIONAL([BUILD_EHAL],    [test "x${enable_ehal}"    = "xyes"])
89 AM_CONDITIONAL([BUILD_ENM],     [test "x${enable_enm}"     = "xyes"])
90 AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"])
91 AM_CONDITIONAL([BUILD_ECONNMAN], [test "x${enable_econnman}" = "xyes"])
92
93 AC_OUTPUT([
94 e_dbus.spec
95 Makefile
96 src/Makefile
97 src/lib/Makefile
98 src/lib/dbus/Makefile
99 src/lib/hal/Makefile
100 src/lib/nm/Makefile
101 src/lib/notification/Makefile
102 src/lib/connman/Makefile
103 src/bin/Makefile
104 edbus.pc
105 ehal.pc
106 enotify.pc
107 enm.pc
108 econnman.pc
109 ])
110
111
112 #####################################################################
113 ## Info
114
115 echo
116 echo
117 echo
118 echo "------------------------------------------------------------------------"
119 echo "$PACKAGE $VERSION"
120 echo "------------------------------------------------------------------------"
121 echo
122 echo "Modules:"
123 echo
124 echo "  EHal.................: $enable_ehal"
125 echo "  ENM..................: $enable_enm"
126 echo "  EConnman.............: $enable_econnman"
127 echo "  ENotify..............: $enable_enotify"
128 echo
129 echo "Configuration Options Summary:"
130 echo
131 echo "  Compilation..........: make"
132 echo
133 echo "  Installation.........: make install"
134 echo
135 echo "    prefix.............: $prefix"
136 echo