-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
75 lines (52 loc) · 1.91 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
AC_INIT([rtcom-presence-ui], [0.49])
AC_CANONICAL_SYSTEM
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_LIBTOOL
AC_HEADER_STDC
AC_PATH_X
AC_PATH_XTRA
AC_SUBST(X_CFLAGS)
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES(PRESENCE_UI, [hildon-1 libiphb liblocation telepathy-glib libcanberra profile mce libhildondesktop-1 rtcom-accounts-ui-client])
#+++++++++++++++
# Misc programs
#+++++++++++++++
AC_PATH_PROG(DBUS_BINDING_TOOL, dbus-binding-tool)
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
#+++++++++++++++++++
# Directories setup
#+++++++++++++++++++
hildondesktoplibdir=`pkg-config libhildondesktop-1 --variable=hildondesktoplibdir`
AC_SUBST(hildondesktoplibdir)
AC_DEFINE_UNQUOTED(HILDON_PLUGIN_DIR, "${hildondesktoplibdir}", [Hildon status menu plugins directory])
hildonstatusmenudesktopentrydir=`pkg-config libhildondesktop-1 --variable=hildonstatusmenudesktopentrydir`
AC_SUBST(hildonstatusmenudesktopentrydir)
#+++++++++++++++++++
# Misc stuff
#+++++++++++++++++++
AC_ARG_ENABLE(cast-checks, [ --disable-cast-checks compile with GLIB cast checks disabled],[cchecks=${enableval}],cchecks=yes)
if test "x$cchecks" = "xno"; then
CFLAGS="$CFLAGS -DG_DISABLE_CAST_CHECKS"
fi
AC_ARG_ENABLE(asserts, [ --disable-asserts compile with GLIB assertions disabled],[asserts=${enableval}],asserts=yes)
if test "x$asserts" = "xno"; then
CFLAGS="$CFLAGS -DG_DISABLE_ASSERTS"
fi
AC_ARG_ENABLE(checks, [ --disable-checks compile with GLIB checks disabled],[checks=${enableval}],checks=yes)
if test "x$checks" = "xno"; then
CFLAGS="$CFLAGS -DG_DISABLE_CHECKS"
fi
AC_DEFINE_UNQUOTED([G_LOG_DOMAIN], "$PACKAGE_NAME", [Default logging facility])
dnl Localization
GETTEXT_PACKAGE=osso-statusbar-presence
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "${GETTEXT_PACKAGE}", [gettext package])
AC_OUTPUT([
Makefile
lib/Makefile
src/Makefile
])