root/trunk/notify-sharp/configure.ac

Revision 3007 (checked in by slomo, 2 years ago)

* configure.ac:
Require GTK# >= 2.10.1 for Gtk.StatusIcon?.
* src/Global.cs:
Update to notification-daemon DBus interface change.
* src/Notification.cs:
Update for notification-daemon DBus interface change and
add a reason to the Close event.
Allow attaching to a Gtk.StatusIcon?.
Add properties for the Id, StatusIcon? and AttachWidget?.
* docs/en/Notifications/ActionArgs.xml:
* docs/en/Notifications/CloseArgs.xml:
* docs/en/Notifications/CloseReason.xml:
* docs/en/Notifications/Global.xml:
* docs/en/Notifications/Notification.xml:
* docs/en/Notifications/ServerInformation.xml:
* docs/en/Notifications/Urgency.xml:
* docs/en/index.xml:
Update docs.

Line 
1 AC_INIT(src/Global.cs)
2
3 AC_CANONICAL_SYSTEM
4 AC_PREREQ(2.13)
5
6 API_VERSION=0.4
7 VERSION=$API_VERSION.0
8
9 AC_SUBST(API_VERSION)
10 AC_SUBST(VERSION)
11
12 AM_INIT_AUTOMAKE(notify-sharp, $VERSION)
13
14 AM_MAINTAINER_MODE
15
16 AC_PROG_INSTALL
17
18 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
19 if test "x$PKG_CONFIG" = "xno"; then
20     AC_MSG_ERROR([You need to install pkg-config])
21 fi
22 AC_SUBST(PKG_CONFIG)
23
24 MONO_REQ_VERSION=1.1.13
25 PKG_CHECK_MODULES(MONO, mono >= $MONO_REQ_VERSION)
26
27 AC_PATH_PROG(GMCS, gmcs, no)
28 if test "x$GMCS" = "xno"; then
29     AC_MSG_ERROR([You need to install gmcs])
30 fi
31 AC_SUBST(GMCS)
32
33 AC_PATH_PROG(GACUTIL, gacutil, no)
34 if test "x$GACUTIL" = "xno"; then
35     AC_MSG_ERROR([You need to install gacutil])
36 fi
37 AC_SUBST(GACUTIL)
38
39 AC_ARG_ENABLE(docs, AC_HELP_STRING([--disable-docs],
40     [Do not build documentation]), with_docs=no, with_docs=yes)
41
42 MONODOC_REQ_VERSION=1.1.18
43
44 if test "x$with_docs" = "xyes"; then
45     PKG_CHECK_MODULES(MONODOC, monodoc >= $MONODOC_REQ_VERSION,,
46         [AC_MSG_ERROR([You need to install monodoc, or pass --disable-docs to configure to skip documentation installation])])
47     AC_PATH_PROG(MONODOCER, monodocer, no)
48     if test "x$MONODOCER" = "xno"; then
49         AC_MSG_ERROR([You need to install monodoc, or pass --disable-docs to configure to skip documentation installation])
50     fi
51    
52     AC_PATH_PROG(MDASSEMBLER, mdassembler, no)
53     if test "x$MDASSEMBLER" = "xno"; then
54         AC_MSG_ERROR([You need to install mdassembler, or pass --disable-docs to configure to skip documentation installation])
55     fi
56    
57     DOCDIR=`$PKG_CONFIG monodoc --variable=sourcesdir`
58     AC_SUBST(DOCDIR)
59     AM_CONDITIONAL(BUILD_DOCS, true)
60 else
61     AC_MSG_NOTICE([not building notify-sharp API documentation])
62     AM_CONDITIONAL(BUILD_DOCS, false)
63 fi
64
65 GTK_SHARP_REQ_VERSION=2.10.1
66 PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION)
67 AC_SUBST(GTK_SHARP_LIBS)
68
69 NDESK_DBUS_REQ_VERSION=0.4
70 NDESK_DBUS_GLIB_REQ_VERSION=0.3
71 PKG_CHECK_MODULES(NDESK_DBUS, ndesk-dbus-1.0 >= $NDESK_DBUS_REQ_VERSION \
72                               ndesk-dbus-glib-1.0 >= $NDESK_DBUS_GLIB_REQ_VERSION)
73 AC_SUBST(NDESK_DBUS_LIBS)
74
75 required_assemblies="Mono.Posix"
76
77 for asm in $required_assemblies; do
78     AC_MSG_CHECKING([for $asm.dll])
79     if test -n "`$GACUTIL /l $asm.dll | grep ^$asm.dll`"; then
80         AC_MSG_RESULT([not found])
81         AC_MSG_ERROR([missing required assembly in the GAC: $asm.dll])
82     else
83         AC_MSG_RESULT([found])
84     fi
85 done
86
87 AC_OUTPUT([
88 Makefile
89 notify-sharp.pc
90 src/Makefile
91 src/AssemblyInfo.cs
92 docs/Makefile
93 ])
94
Note: See TracBrowser for help on using the browser.