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_PREREQ([2.54])
AC_INIT([Do-plugins], [0.3])
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AM_MAINTAINER_MODE
AC_PROG_INSTALL
dnl pkg-config
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR([You need to install pkg-config])
fi
dnl Handle various possible C# compilers
AC_PATH_PROG(CSC, csc, no)
AC_PATH_PROG(GMCS, gmcs, no)
AC_PATH_PROG(RUNTIME, mono, no)
CS="C#"
if test "x$CSC" = "xno" ; then
if test "x$GMCS" = "xno" ; then
if test "x$MCS" = "xno" ; then
AC_MSG_ERROR([No $CS compiler found])
else
CSC=$MCS
ENABLE_DBUS="no"
fi
else
CSC=$GMCS
fi
fi
AC_SUBST(CSC)
AC_SUBST(RUNTIME)
dnl - Check dependencies
PKG_CHECK_MODULES([DO_ADDINS], [do.addins])
PKG_CHECK_MODULES([DO_DBUS], [do.dbus])
PKG_CHECK_MODULES([EVOLUTION_SHARP], [evolution-sharp])
AC_SUBST(DO_ADDINS_LIBS)
AC_SUBST(DO_DBUS_LIBS)
AC_SUBST(EVOLUTION_SHARP_LIBS)
dnl Plugin install paths
AC_ARG_WITH(plugin-path, [ --with-plugin-path=DIR [libdir/gnome-do/plugins] ],
[plugin_path="$withval"],
[plugin_path="$libdir/gnome-do/plugins"])
AC_SUBST(plugin_path)
CSFLAGS=
AC_SUBST(CSFLAGS)
AC_CONFIG_FILES([
Makefile
Evolution/Makefile
Evolution/src/Makefile
Rhythmbox/Makefile
Rhythmbox/src/Makefile
Pidgin/Makefile
Pidgin/src/Makefile
LocateFiles/Makefile
Thunderbird/Makefile
Thunderbird/src/Makefile
Templates/Makefile
])
AC_OUTPUT
|