back to svn soname
[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.061], [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 release="ver-pre-svn-02"
27 econnman_release_info="-release $release"
28 edbus_release_info="-release $release"
29 ehal_release_info="-release $release"
30 enm_release_info="-release $release"
31 enotify_release_info="-release $release"
32 AC_SUBST(version_info)
33 AC_SUBST(econnman_release_info)
34 AC_SUBST(edbus_release_info)
35 AC_SUBST(ehal_release_info)
36 AC_SUBST(enm_release_info)
37 AC_SUBST(enotify_release_info)
38
39 dnl Check enabled modules to build
40 AC_ARG_ENABLE(ehal,
41                                   AC_HELP_STRING([--disable-ehal],
42                                                                           [Disable ehal build]),
43                                   [enable_ehal=$enableval],
44                                   [enable_ehal="yes"])
45 AC_ARG_ENABLE(enm,
46                                   AC_HELP_STRING([--enable-enm],
47                                                                           [Enable enm (network manager) build]),
48                                   [enable_enm=$enableval],
49                                   [enable_enm="no"])
50 AC_ARG_ENABLE(econnman,
51                                   AC_HELP_STRING([--enable-econnman],
52                                                                           [Enable econnman build]),
53                                   [enable_econnman=$enableval],
54                                   [enable_econnman="no"])
55 AC_ARG_ENABLE(enotify,
56                                   AC_HELP_STRING([--disable-enotify],
57                                                                           [Disable enotify build]),
58                                   [enable_enotify=$enableval],
59                                   [enable_enotify="yes"])
60
61
62 PKG_CHECK_MODULES([EINA], [eina-0])
63
64 PKG_CHECK_MODULES([EDBUS], [
65   dbus-1 >= 0.62
66   ecore >= 0.9.9
67 ])
68
69
70 dnl evas
71 if test "x${enable_enotify}" = "xyes"
72 then
73         PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9], [], [enable_enotify="no"])
74 fi
75
76 AC_ARG_ENABLE(build-test-gui,
77   AS_HELP_STRING([--enable-build-test-gui], [Build with gui for testing]),
78   [ PKG_CHECK_MODULES([HAL_TEST_GUI], [
79     ewl
80     efreet
81     ],
82     # temporarily disable until update to newer tree2 api
83     [AC_DEFINE([EWL_GUI], 0, [An ewl gui for e_dbus_hal])],
84     [AC_DEFINE([EWL_GUI], 0, [An ewl gui for e_dbus_hal])]
85     )
86  ]
87 )
88
89 AM_CONDITIONAL([BUILD_EHAL],    [test "x${enable_ehal}"    = "xyes"])
90 AM_CONDITIONAL([BUILD_ENM],     [test "x${enable_enm}"     = "xyes"])
91 AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"])
92 AM_CONDITIONAL([BUILD_ECONNMAN], [test "x${enable_econnman}" = "xyes"])
93
94 AC_OUTPUT([
95 e_dbus.spec
96 Makefile
97 src/Makefile
98 src/lib/Makefile
99 src/lib/dbus/Makefile
100 src/lib/hal/Makefile
101 src/lib/nm/Makefile
102 src/lib/notification/Makefile
103 src/lib/connman/Makefile
104 src/bin/Makefile
105 edbus.pc
106 ehal.pc
107 enotify.pc
108 enm.pc
109 econnman.pc
110 ])
111
112
113 #####################################################################
114 ## Info
115
116 echo
117 echo
118 echo
119 echo "------------------------------------------------------------------------"
120 echo "$PACKAGE $VERSION"
121 echo "------------------------------------------------------------------------"
122 echo
123 echo "Modules:"
124 echo
125 echo "  EHal.................: $enable_ehal"
126 echo "  ENM..................: $enable_enm"
127 echo "  EConnman.............: $enable_econnman"
128 echo "  ENotify..............: $enable_enotify"
129 echo
130 echo "Configuration Options Summary:"
131 echo
132 echo "  Compilation..........: make"
133 echo
134 echo "  Installation.........: make install"
135 echo
136 echo "    prefix.............: $prefix"
137 echo