forked from community-ssu/hildon-application-manager
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.ac
90 lines (70 loc) · 2.69 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# configure.ac for hildon-application-manager
AC_INIT(hildon-application-manager, [2.2.72])
AC_CONFIG_SRCDIR([src/main.cc])
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_LANG_CPLUSPLUS
AC_CHECK_HEADER(apt-pkg/configuration.h)
AC_ARG_ENABLE([maemo-launcher],
[AS_HELP_STRING([--enable-maemo-launcher],
[build with maemo-launcher support])],
[case "${enableval}" in
yes) maemo_launcher=true ;;
no) maemo_launcher=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-maemo-launcher]) ;;
esac], [maemo_launcher=false])
if test x$ac_cv_header_apt_pkg_configuration_h != xyes; then
AC_ERROR([libapt-pkg not found.])
fi
AC_MSG_CHECKING(apt_set_index_trust_level_for_package_hook)
AC_EGREP_HEADER(apt_set_index_trust_level_for_package_hook,
apt-pkg/acquire-item.h,
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_APT_TRUST_HOOK),
AC_MSG_RESULT(no))
PKG_CHECK_MODULES(HAM_DEPS, glib-2.0 gtk+-2.0 hildon-1 hildon-fm-2 libosso
conic gconf-2.0 gio-2.0 mce libhildondesktop-1 x11 apt-pkg)
AC_SUBST(HAM_DEPS_CFLAGS)
AC_SUBST(HAM_DEPS_LIBS)
MAEMO_LAUNCHER_PACKAGE=""
if test "x$maemo_launcher" = "xtrue"; then
MAEMO_LAUNCHER_PACKAGE="maemo-launcher-app"
PKG_CHECK_MODULES(LAUNCHER_DEPS, $MAEMO_LAUNCHER_PACKAGE)
LAUNCHER_DEPS_LIBS="-Xcompiler \"$LAUNCHER_DEPS_LIBS\""
else
LAUNCHER_DEPS_CFLAGS=""
LAUNCHER_DEPS_LIBS=""
fi
AC_SUBST(LAUNCHER_DEPS_CFLAGS)
AC_SUBST(LAUNCHER_DEPS_LIBS)
saved_CXXFLAGS="$CXXFLAGS"
saved_LDFLAGS="$LDFLAGS"
CXXFLAGS="$CXXFLAGS $HAM_DEPS_CFLAGS"
LDFLAGS="$LDFLAGS $HAM_DEPS_LIBS"
AC_CHECK_FUNCS(g_string_append_vprintf)
CXXFLAGS="$saved_CXXFLAGS"
LDFLAGS="$saved_LDFLAGS"
PKG_CHECK_MODULES(AW_DEPS, [glib-2.0 apt-pkg])
AC_SUBST(AW_DEPS_CFLAGS)
AC_SUBST(AW_DEPS_LIBS)
NOTIFIER_PKGS="libosso libhildondesktop-1 gconf-2.0 dbus-1 libcurl alarm conic"
PKG_CHECK_MODULES(NOTIFIER_DEPS, $NOTIFIER_PKGS)
AC_SUBST(NOTIFIER_DEPS_LIBS)
AC_SUBST(NOTIFIER_DEPS_CFLAGS)
hildonstatusmenudesktopentrydir=`pkg-config libhildondesktop-1 --variable=hildonstatusmenudesktopentrydir`
AC_SUBST(hildonstatusmenudesktopentrydir)
hildondesktoplibdir=`pkg-config libhildondesktop-1 --variable=hildondesktoplibdir`
AC_SUBST(hildondesktoplibdir)
# Debian architecture
#
DEB_HOST_ARCH=`dpkg-architecture -qDEB_HOST_ARCH`
AC_DEFINE_UNQUOTED(DEB_HOST_ARCH, "$DEB_HOST_ARCH", [Debian architecture])
AC_CONFIG_FILES([Makefile
src/Makefile
statusbar/Makefile
utils/Makefile
catpo/Makefile])
AC_OUTPUT