-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
109 lines (91 loc) · 3.24 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
AC_PREREQ(2.53)
AC_INIT(meego-panel-networks, 1.3.4)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
IT_PROG_INTLTOOL([0.35.0])
GETTEXT_PACKAGE=meego-panel-networks
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The gettext package name])
AS_ALL_LINGUAS
AM_GLIB_GNU_GETTEXT
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
localedir='${prefix}/${DATADIRNAME}/locale'
AC_SUBST(localedir)
AC_PROG_CC
AC_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_ISC_POSIX
AC_HEADER_STDC
AM_PROG_CC_C_O
AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
THEME_DIR="${datadir}/${PACKAGE}/theme"
AS_AC_EXPAND(THEME_DIR, $THEME_DIR)
AC_DEFINE_UNQUOTED([THEME_DIR], "$THEME_DIR", [Carrick theme directory])
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.12)
PKG_CHECK_MODULES(DBUS, gthread-2.0 dbus-glib-1 >= 0.73)
PKG_CHECK_MODULES(MX, mx-gtk-1.0)
PKG_CHECK_MODULES(REST, rest-0.7)
PKG_CHECK_MODULES(GCONF, gconf-2.0)
PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= 0.7,
have_notify_0_7="yes",
[PKG_CHECK_MODULES(LIBNOTIFY, libnotify)])
if test "$have_notify_0_7" = "yes"; then
AC_DEFINE(HAVE_NOTIFY_0_7, 1, [we have libnotify 0.7 or better])
fi
AC_MSG_CHECKING([whether to use the MeeGo environment])
AC_ARG_WITH([meego],[AS_HELP_STRING([--without-meego], [disable support for MeeGo environment])],
[], [with_meego=yes])
AS_IF(
[test "$with_meego" = yes],
[
AC_MSG_RESULT([yes])
AC_DEFINE([WITH_MEEGO], 1, [Use MeeGo])
PKG_CHECK_MODULES(MPL, meego-panel >= 0.49.0)
PANEL_DIR=$($PKG_CONFIG meego-panel --variable=meego_panel_panels_dir)
AC_SUBST(PANEL_DIR)
],
AC_MSG_RESULT([no])
)
AM_CONDITIONAL([WITH_MEEGO], [test "$with_meego" = "yes"])
AC_MSG_CHECKING([whether to enable openconnect support])
AC_ARG_WITH([openconnect],[AS_HELP_STRING([--without-openconnect], [disable support for OpenConnect VPN])],
[], [with_openconnect=yes])
AS_IF(
[test "$with_openconnect" = yes],
[
AC_MSG_RESULT([yes])
AC_DEFINE([WITH_OPENCONNECT], 1, [Use OpenConnect])
PKG_CHECK_MODULES(OPENCONNECT, openconnect)
],
AC_MSG_RESULT([no])
)
AM_CONDITIONAL([WITH_OPENCONNECT], [test "$with_openconnect" = "yes"])
AC_MSG_CHECKING([for mobile-broadband-provider-info])
PKG_CHECK_EXISTS(mobile-broadband-provider-info,
_PKG_CONFIG(MOBILE_DATA, [variable=database], [mobile-broadband-provider-info])
AC_DEFINE_UNQUOTED(MOBILE_DATA, "$pkg_cv_MOBILE_DATA", [Mobile provider database])
AC_MSG_RESULT([yes]),
AC_MSG_ERROR([Cannot find mobile-broadband-provider-info]))
AC_MSG_CHECKING([for iso-codes])
PKG_CHECK_EXISTS(iso-codes,
_PKG_CONFIG(ISOCODES, [variable=prefix], [iso-codes])
AC_DEFINE_UNQUOTED(ISOCODES_PREFIX, "$pkg_cv_ISOCODES", [iso-codes prefix])
AC_MSG_RESULT([yes]),
AC_MSG_ERROR([Cannot find iso-codes]))
AC_OUTPUT([
Makefile
carrick/Makefile
src/Makefile
tests/Makefile
data/Makefile
data/carrick.desktop.in
data/carrick-standalone.desktop.in
data/icons/Makefile
data/theme/Makefile
callouts/Makefile
callouts/3g/Makefile
callouts/openconnect/Makefile
po/Makefile.in
])