forked from afrantzis/bless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
133 lines (111 loc) · 3.22 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# -*- Autoconf -*-
AC_PREREQ(2.59)
AC_INIT([bless], [0.6.2], [alf82@freemail.gr])
AC_CONFIG_SRCDIR([src/buffers/ByteBuffer.cs])
AM_INIT_AUTOMAKE
#
# I18N
#
AM_GNU_GETTEXT([external])
# Require at least gettext 0.16 which supports recent autotools versions
AM_GNU_GETTEXT_REQUIRE_VERSION(0.16)
GETTEXT_PACKAGE=bless
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext Package])
#
# Check for programs.
#
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
# C# compiler
AC_PATH_PROG(MCS, mcs, no)
if test "x$MCS" = "xno"; then
AC_MSG_ERROR([No mono Csharp compiler found])
fi
# Mono runtime
AC_PATH_PROG(MONO_PROGRAM, mono, no)
if test "x$MONO" = "xno"; then
AC_MSG_ERROR([No mono runtime found])
fi
#
# Checks for libraries.
#
PKG_CHECK_MODULES(MONO, mono >= 1.1.14)
PKG_CHECK_MODULES(GTK_SHARP_2_0, gtk-sharp-2.0 >= 2.8)
PKG_CHECK_MODULES(GLADE_SHARP_2_0, glade-sharp-2.0 >= 2.8)
#
# Check for GNOME
#
#AC_ARG_WITH(gnome,
# AS_HELP_STRING([--with-gnome],[use gnome services (default: yes)]),
# [USEGNOME="$withval"], [USEGNOME="yes"])
#if test "$USEGNOME" = "yes" ; then
# PKG_CHECK_MODULES(GNOME, [libgnome-2.0, gnome-sharp >= 1.0.8], [USEGNOME="yes"], [USEGNOME="no"])
#fi
#AM_CONDITIONAL(WITH_GNOME, [test "$USEGNOME" = "yes"])
#
# Check for unix
#
AC_ARG_ENABLE(unix-specific,
AS_HELP_STRING([--enable-unix-specific],[ Enable unix specific features (default: yes)]),
[UNIX_SPECIFIC="$enableval"], [UNIX_SPECIFIC="yes"])
AM_CONDITIONAL(ENABLE_UNIX_SPECIFIC, [test "$UNIX_SPECIFIC" = "yes"])
#
# Check scrollkeeper
#
AC_ARG_WITH(scrollkeeper,
AS_HELP_STRING([--with-scrollkeeper],[register documentation with scrollkeeper (autodetect)]),
[SCROLLKEEPER="$withval"], [SCROLLKEEPER="yes"])
if test "$SCROLLKEEPER" = "yes" ; then
SCROLLKEEPER=
AC_CHECK_PROG(SCROLLKEEPER, scrollkeeper-config, yes, no)
fi
AM_CONDITIONAL(WITH_SCROLLKEEPER, [ test "$SCROLLKEEPER" = "yes" ])
#
# Check debug option
#
DEBUG=no
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug=yes|no],[compile with debug information (default: no)]),
[DEBUG="$enableval"])
AM_CONDITIONAL(ENABLE_DEBUG, [test "$DEBUG" = "yes"])
AC_CONFIG_FILES([Makefile po/Makefile.in
builder/Makefile
builder/ConfigureDefines.cs
bin/Makefile
data/Makefile
data/bless.desktop
data/help_script.tmpl
doc/Makefile
doc/developer/Makefile
doc/user/Makefile
src/buffers/Makefile
src/Makefile
src/gui/Makefile
src/gui/areas/Makefile
src/gui/dialogs/Makefile
src/gui/drawers/Makefile
src/gui/plugins/Makefile
src/tools/Makefile
src/tools/find/Makefile
src/tools/export/Makefile
src/tools/export/plugins/Makefile
src/util/Makefile
src/util/ConfigureDefines.cs.tmpl
src/plugins/Makefile
tests/Makefile
tests/buffers/Makefile
tests/util/Makefile
tests/tools/Makefile
tests/tools/export/Makefile
src/bless-script
bless-script])
AC_OUTPUT
echo "
Enabling Unix specific features: $UNIX_SPECIFIC
Registering documentation with Scrollkeeper: $SCROLLKEEPER
Compiling with debug information: $DEBUG
Installing to: $prefix
"