summaryrefslogtreecommitdiff
blob: 405baaaf0e12f8583e7185970e3ad3231a5aa208 (plain)
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
--- configure.in.orig	2006-07-04 14:08:48.000000000 -0500
+++ configure.in	2006-07-04 14:46:41.000000000 -0500
@@ -6,7 +6,7 @@
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
 
 AM_MAINTAINER_MODE
-                                                                                
+
 AM_DISABLE_STATIC
 AC_PROG_CC
 AM_PROG_LIBTOOL
@@ -54,120 +54,116 @@
 AC_SUBST(NAUTILUS_SENDTO_CFLAGS)
 AC_SUBST(NAUTILUS_SENDTO_LIBS)
 
-dnl Libebook support
+dnl Evolution (libebook) support
 dnl ---------------------------------
+AC_ARG_ENABLE([evolution],
+              AC_HELP_STRING([--enable-evolution], [enable support for evolution]),,
+              [enable_evolution=no])
+
+if test x$enable_evolution = xyes ; then
+   PKG_CHECK_MODULES(NST_EBOOK, [libebook-1.2 >= $EBOOK_REQUIRED])
 
-PKG_CHECK_MODULES(NST_EBOOK, libebook-1.2 >= $EBOOK_REQUIRED,
-	[
-	AC_SUBST(NST_EBOOK_CFLAGS)
-	AC_SUBST(NST_EBOOK_LIBS)
-	echo "Using libebook-1.2 !"
-	enable_evolution=yes
-	],
-	[
-        echo "Building without evolution"
-	enable_evolution=no
-	]
-)
+   AC_SUBST(NST_EBOOK_CFLAGS)
+   AC_SUBST(NST_EBOOK_LIBS)
+fi
 
 AM_CONDITIONAL(HAVE_EVOLUTION, test "x$enable_evolution" = "xyes")
 
-dnl Gaim support if it's installed
+dnl Gaim support
 dnl ---------------------------------
 
+AC_ARG_ENABLE([gaim],
+              AC_HELP_STRING([--enable-gaim], [enable support for gaim]),,
+              [enable_gaim=no])
+
+if test x$enable_gaim = xyes ; then
+   PKG_CHECK_MODULES(GAIM, [gaim >= $GAIM_REQUIRED])
+
+   AC_SUBST(GAIM_CFLAGS)
+   AC_SUBST(GAIM_LIBS)
+
+   GAIM_LIBDIR=`pkg-config --variable=libdir gaim`
+   GAIM_DATADIR=`pkg-config --variable=datadir gaim`
 
-PKG_CHECK_MODULES(GAIM, gaim >= $GAIM_REQUIRED,
-	[
-	AC_SUBST(GAIM_CFLAGS)
-	AC_SUBST(GAIM_LIBS)
-	GAIM_LIBDIR=`pkg-config --variable=libdir gaim`
-	GAIM_DATADIR=`pkg-config --variable=datadir gaim`
-	AC_SUBST(GAIM_LIBDIR)
-	AC_SUBST(GAIM_DATADIR)
-	enable_gaim=yes
-	],
-	[
-	echo "Building without gaim"
-	enable_gaim=no
-	]
-)
+   AC_SUBST(GAIM_LIBDIR)
+   AC_SUBST(GAIM_DATADIR)
+fi
 
 AM_CONDITIONAL(HAVE_GAIM, test "x$enable_gaim" = "xyes")
 
-dnl Bluetooth support if it's installed
+dnl Bluetooth support
 dnl -----------------------------------
 
-PKG_CHECK_MODULES(BLUETOOTH, gnome-bluetooth >= $BLUETOOTH_REQUIRED,
-	[
-	AC_SUBST(BLUETOOTH_CFLAGS)
-	AC_SUBST(BLUETOOTH_LIBS)
-	enable_bluetooth=yes
-	],
-	[
-	echo "Building without Bluetooth"
-	enable_bluetooth=no
-	]
-)
+AC_ARG_ENABLE([bluetooth],
+              AC_HELP_STRING([--enable-bluetooth],[enable support for bluetooth]),,
+              [enable_bluetooth=no])
 
-AM_CONDITIONAL(HAVE_BLUETOOTH, test "x$enable_bluetooth" = "xyes")
+if test x$enable_bluetooth = xyes ; then
+   PKG_CHECK_MODULES(BLUETOOTH, [gnome-bluetooth >= $BLUETOOTH_REQUIRED])
 
-dnl --------------------------------------------------
+   AC_SUBST(BLUETOOTH_CFLAGS)
+   AC_SUBST(BLUETOOTH_LIBS)
+fi
+
+AM_CONDITIONAL(HAVE_BLUETOOTH, test "x$enable_bluetooth" = "xyes")
 
 dnl Balsa support
 dnl -------------------------------------------------
 
-enable_balsa=no
-AM_CONDITIONAL(HAVE_BALSA, test "x$enable_balsa" = "xyes")
-dnl -------------------------------------------------
+AC_ARG_ENABLE([balsa],
+              AC_HELP_STRING([--enable-balsa],[enable support for balsa]),,
+              [enable_balsa=no])
 
+AM_CONDITIONAL(HAVE_BALSA, test "x$enable_balsa" = "xyes")
 
 dnl Sylpheed support
 dnl -------------------------------------------------
 
-enable_sylpheed=yes
-AM_CONDITIONAL(HAVE_SYLPHEED, test "x$enable_sylpheed" = "xyes")
-dnl -------------------------------------------------
+AC_ARG_ENABLE([sylpheed],
+              AC_HELP_STRING([--enable-sylpheed],[enable support for sylpheed]),,
+              [enable_sylpheed=no])
 
+AM_CONDITIONAL(HAVE_SYLPHEED, test "x$enable_sylpheed" = "xyes")
 
 dnl Thunderbird support
 dnl -------------------------------------------------
 
-enable_thunderbird=no
+AC_ARG_ENABLE([thunderbird],
+              AC_HELP_STRING([--enable-thunderbird],[enable support for thunderbird]),,
+              [enable_thunderbird=no])
+
 AM_CONDITIONAL(HAVE_THUNDERBIRD, test "x$enable_thunderbird" = "xyes")
-dnl -------------------------------------------------
 
 dnl Gajim support
 dnl -------------------------------------------------
 
-AC_ARG_WITH(gajim,
-        [AS_HELP_STRING(--with-gajim,[Path to Gajim install prefix])],
-        [GAJIM_PATH="$withval"],[GAJIM_PATH="$prefix"])
+AC_ARG_WITH([gajim],
+            AS_HELP_STRING(--with-gajim,[Path to Gajim install prefix]),
+            [GAJIM_PATH="$withval"],
+            [GAJIM_PATH="$prefix"])
 
 GAJIM_SHARE_DIR="$GAJIM_PATH"/share/gajim
 
-PKG_CHECK_MODULES(DBUS, dbus-1 >= $DBUS_REQUIRED dbus-glib-1 >= $DBUS_REQUIRED,
-        [
-        AC_SUBST(DBUS_CFLAGS)
-        AC_SUBST(DBUS_LIBS)
-	if test -f "$GAJIM_SHARE_DIR"/data/pixmaps/gajim.png ;
-	then
-		enable_gajim=yes
-		AC_DEFINE_UNQUOTED(GAJIM_SHARE_DIR, "$GAJIM_SHARE_DIR", [path to gajim share dir])
-	else
-		echo "Building without Gajim support"
-		enable_gajim=no
-	fi
-        ],
-        [
-        echo "Building without Gajim support"
-        enable_gajim=no
-        ]
-)
+AC_ARG_ENABLE([gajim],
+              AC_HELP_STRING([--enable-gajim],[enable support for gajim]),,
+              [enable_gajim=no])
+
+if test x$enable_gajim = xyes ; then
+   if test -f "$GAJIM_SHARE_DIR"/data/pixmaps/gajim.png ; then
+      enable_gajim=yes
+      AC_DEFINE_UNQUOTED(GAJIM_SHARE_DIR, "$GAJIM_SHARE_DIR", [path to gajim share dir])
+
+      PKG_CHECK_MODULES(DBUS, [dbus-1 >= $DBUS_REQUIRED dbus-glib-1 >= $DBUS_REQUIRED])
+
+      AC_SUBST(DBUS_CFLAGS)
+      AC_SUBST(DBUS_LIBS)
+   else
+      enable_gajim=no
+   fi
+fi
 
 AM_CONDITIONAL(HAVE_GAJIM, test "x$enable_gajim" = "xyes")
 
-dnl -------------------------------------------------
-
 
 GNOME_COMPILE_WARNINGS
 
@@ -178,7 +174,7 @@
 GETTEXT_PACKAGE=nautilus-sendto
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [GetText Package])
-                                                                               
+
 AM_GLIB_GNU_GETTEXT
 AC_PROG_INTLTOOL