~ubuntu-branches/ubuntu/lucid/gnome-system-tools/lucid-updates

1.1.34 by Robert Ancell
Import upstream version 2.27.1
1
AC_PREREQ(2.60)
1.5.7 by Robert Ancell
Import upstream version 2.30.0
2
AC_INIT(gnome-system-tools, 2.30.0, http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-system-tools)
1 by Martin Pitt
Import upstream version 1.0.0
3
AC_CONFIG_SRCDIR(src/common/gst-tool.c)
1.1.4 by Michael Vogt
Import upstream version 2.13.0
4
AC_CONFIG_MACRO_DIR([m4])
1 by Martin Pitt
Import upstream version 1.0.0
5
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
1.1.39 by Chris Coulson
Import upstream version 2.29.1
6
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
1 by Martin Pitt
Import upstream version 1.0.0
7
1.1.8 by Daniel Holbach
Import upstream version 2.15.0
8
IT_PROG_INTLTOOL([0.35.0])
1 by Martin Pitt
Import upstream version 1.0.0
9
10
AM_CONFIG_HEADER(config.h)
11
1.1.4 by Michael Vogt
Import upstream version 2.13.0
12
GNOME_DOC_INIT
13
1 by Martin Pitt
Import upstream version 1.0.0
14
AM_MAINTAINER_MODE
15
16
dnl Checking the above
17
AC_CONFIG_SRCDIR(src/common/gst-tool.c)
18
19
AM_PROG_LIBTOOL
20
21
AC_ISC_POSIX
22
AC_PROG_CC
23
AM_PROG_CC_STDC
24
AC_HEADER_STDC
25
AC_PROG_INSTALL
26
AC_PROG_MAKE_SET
27
28
dnl glib-genmarshal
29
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
30
1.5.6 by Robert Ancell
Import upstream version 2.29.92
31
STB_REQUIRED=2.9.4
1.5.5 by Chris Coulson
Import upstream version 2.29.91
32
LIBOOBS_REQUIRED=2.29.91
1.1.37 by Martin Pitt
Import upstream version 2.28.0
33
GTK_REQUIRED=2.16
1.1.28 by Emilio Pozuelo Monfort
Import upstream version 2.21.5.1
34
GLIB_REQUIRED=2.15.2
1.1.1 by Michael Vogt
Import upstream version 1.2.0
35
GCONF_REQUIRED=2.2.0
30 by Michael Vogt
* New upstream release:
36
DBUS_REQUIRED=0.32
1.1.36 by Robert Ancell
Import upstream version 2.27.3
37
POLICYKIT_GTK_REQUIRED=0.92
1.1.1 by Michael Vogt
Import upstream version 1.2.0
38
1 by Martin Pitt
Import upstream version 1.0.0
39
40
dnl =====================================================
41
dnl Cracklib checking
42
dnl =====================================================
43
44
dnl AC_CHECK_LIB(crack, FascistCheck, ,[
45
dnl   AC_MSG_WARN()
46
dnl   AC_MSG_WARN(---------- Building without cracklib is not recommended. ----------)
47
dnl   AC_MSG_WARN()
48
dnl   AC_MSG_WARN(-- If you are looking for cracklib you can try  :)
49
dnl   AC_MSG_WARN(--    http://www.users.dircon.co.uk/~crypto/)
50
dnl   AC_MSG_WARN(--    or :)
51
dnl   AC_MSG_WARN(--    http://www.rpmfind.net/linux/rpm2html/search.php?query=cracklib)
52
dnl   AC_MSG_WARN(--    or :)
53
dnl   AC_MSG_WARN(--    apt-get install cracklib2-dev)
54
dnl   AC_MSG_WARN()])
55
dnl if test x"$HAVE_LIBCRACK" = xyes ; then
56
dnl   AC_CHECK_HEADER(crack.h, ,[
57
dnl   AC_MSG_ERROR(cracklib crack.h header file not found.)])
58
dnl fi
59
60
dnl GST_CRACK_LIB_LOCATION="/usr/lib/"
61
dnl AC_ARG_WITH(cracklib-dict,
62
dnl [  --with-cracklib-dict[=DIR]       specify a cracklib dir ],[
63
dnl   if test "$withval" != "no"; then
64
dnl     GST_CRACK_LIB_LOCATION=$withval
65
dnl   fi
66
dnl ])
67
dnl AC_SUBST(GST_CRACK_LIB_LOCATION)
68
dnl GST_CRACK_LIB_CFLAGS="-DGST_CRACK_LIB_DICT_PATH=\"\\\"\$(GST_CRACK_LIB_LOCATION)\\\"\""
69
dnl AC_SUBST(GST_CRACK_LIB_CFLAGS)
70
71
dnl =====================================================
72
dnl END: Cracklib checking
73
dnl =====================================================
74
75
dnl =====================================================
76
dnl Check for Module versions
77
dnl =====================================================
78
79
PKG_CHECK_MODULES(GST_DEPENDS,[
1.1.1 by Michael Vogt
Import upstream version 1.2.0
80
			   gtk+-2.0 >= $GTK_REQUIRED
1.1.39 by Chris Coulson
Import upstream version 2.29.1
81
			   gmodule-export-2.0
82
			   pango
1.1.1 by Michael Vogt
Import upstream version 1.2.0
83
			   gconf-2.0 >= $GCONF_REQUIRED
1.1.8 by Daniel Holbach
Import upstream version 2.15.0
84
			   liboobs-1 >= $LIBOOBS_REQUIRED
1.1.36 by Robert Ancell
Import upstream version 2.27.3
85
			   system-tools-backends-2.0 >= $STB_REQUIRED
1.1.13 by Sebastien Bacher
Import upstream version 2.15.5
86
			   ])
87
30 by Michael Vogt
* New upstream release:
88
PKG_CHECK_MODULES(DBUS,[
1.1.13 by Sebastien Bacher
Import upstream version 2.15.5
89
		  dbus-1 >= $DBUS_REQUIRED
90
		  ])
30 by Michael Vogt
* New upstream release:
91
92
DBUS_CFLAGS="$DBUS_CFLAGS -DDBUS_API_SUBJECT_TO_CHANGE"
93
AC_SUBST(DBUS_LIBS)
94
AC_SUBST(DBUS_CFLAGS)
95
1.1.36 by Robert Ancell
Import upstream version 2.27.3
96
dnl PolicyKit-GTK support
1.1.34 by Robert Ancell
Import upstream version 2.27.1
97
98
have_polkit=no
1.1.36 by Robert Ancell
Import upstream version 2.27.3
99
AC_ARG_ENABLE(polkit-gtk,
100
	AS_HELP_STRING([--enable-polkit-gtk],[Enable PolicyKit support using polkit-gtk (default yes)]),
101
	[], [enable_polkit_gtk=yes])
1.1.34 by Robert Ancell
Import upstream version 2.27.1
102
1.1.36 by Robert Ancell
Import upstream version 2.27.3
103
if test "x$enable_polkit_gtk" = "xyes"; then
104
	PKG_CHECK_MODULES(POLKIT_GTK,[polkit-gtk-1 >= $POLICYKIT_GTK_REQUIRED], have_polkit=yes)
1.1.34 by Robert Ancell
Import upstream version 2.27.1
105
106
	if test "$have_polkit" = "yes"; then
1.1.36 by Robert Ancell
Import upstream version 2.27.3
107
		AC_DEFINE(HAVE_POLKIT, [1], [whether polkit-gtk was found])
1.1.34 by Robert Ancell
Import upstream version 2.27.1
108
	else
1.1.36 by Robert Ancell
Import upstream version 2.27.3
109
		AC_MSG_ERROR([PolicyKit support requested but polkit-gtk not found])
1.1.34 by Robert Ancell
Import upstream version 2.27.1
110
	fi
1.1.26 by Emilio Pozuelo Monfort
Import upstream version 2.21.2.1
111
fi
112
113
AC_SUBST(POLKIT_LIBS)
114
AC_SUBST(POLKIT_CFLAGS)
115
AM_CONDITIONAL(HAVE_POLKIT, test x$have_polkit = xyes)
116
117
1 by Martin Pitt
Import upstream version 1.0.0
118
dnl =====================================================
119
dnl END: Check for Module versions
120
dnl =====================================================
121
122
dnl =====================================================
123
dnl Check for GST Modules to build
124
dnl =====================================================
125
126
127
AC_ARG_ENABLE(network,
128
	      [  --enable-network        Enable build network module (default yes)], , 
129
	      enable_network=yes)
130
AC_ARG_ENABLE(services,
1.1.2 by Michael Vogt
Import upstream version 1.4.0
131
	      [  --enable-services       Enable build services module (default yes)], , 
132
	      enable_services=yes)
1 by Martin Pitt
Import upstream version 1.0.0
133
AC_ARG_ENABLE(time,
134
	      [  --enable-time           Enable build time module (default yes)], , 
135
	      enable_time=yes)
136
AC_ARG_ENABLE(users,
137
	      [  --enable-users          Enable build users module (default yes)], , 
138
	      enable_users=yes)
1.1.1 by Michael Vogt
Import upstream version 1.2.0
139
AC_ARG_ENABLE(shares,
140
	      [  --enable-shares         Enable build shares module (default yes)], , 
141
	      enable_shares=yes)
1.1.18 by Sebastien Bacher
Import upstream version 2.17.92
142
AC_ARG_ENABLE(nautilus,
143
	      [  --enable-nautilus         Enable build nautilus shares module (default yes)], , 
144
	      enable_nautilus=yes)
1 by Martin Pitt
Import upstream version 1.0.0
145
146
AM_CONDITIONAL(BUILD_NETWORK, test x$enable_network = xyes)
1.1.1 by Michael Vogt
Import upstream version 1.2.0
147
AM_CONDITIONAL(BUILD_SERVICES, test x$enable_services = xyes)
1 by Martin Pitt
Import upstream version 1.0.0
148
AM_CONDITIONAL(BUILD_TIME, test x$enable_time = xyes)
149
AM_CONDITIONAL(BUILD_USERS, test x$enable_users = xyes)
1.1.1 by Michael Vogt
Import upstream version 1.2.0
150
AM_CONDITIONAL(BUILD_SHARES, test x$enable_shares = xyes)
1.1.18 by Sebastien Bacher
Import upstream version 2.17.92
151
AM_CONDITIONAL(BUILD_NAUTILUS, test x$enable_nautilus = xyes)
1 by Martin Pitt
Import upstream version 1.0.0
152
153
dnl =====================================================
1.1.1 by Michael Vogt
Import upstream version 1.2.0
154
dnl END: Check for GST Modules to build
1 by Martin Pitt
Import upstream version 1.0.0
155
dnl =====================================================
156
157
dnl ========================================================
1.1.3 by Daniel Holbach
Import upstream version 1.4.1
158
dnl Translations
1 by Martin Pitt
Import upstream version 1.0.0
159
dnl ========================================================
160
161
GETTEXT_PACKAGE=gnome-system-tools
162
AC_SUBST(GETTEXT_PACKAGE)
163
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [gettext package name])
164
AM_GLIB_GNU_GETTEXT
165
166
# AM_GNOME_GETTEXT above substs $DATADIRNAME
167
# this is the directory where the *.{mo,gmo} files are installed
168
gnomelocaledir='${prefix}/${DATADIRNAME}/locale'
169
AC_SUBST(gnomelocaledir)
170
171
dnl ========================================================
172
dnl END : Translations
173
dnl ========================================================
174
175
dnl =====================================================
176
dnl GCONF
177
dnl =====================================================
178
179
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
180
181
if test x"$GCONFTOOL" = xno; then
182
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
183
fi
184
     
185
AM_GCONF_SOURCE_2
186
187
dnl =====================================================
188
dnl END: GCONF
189
dnl =====================================================
190
    
191
dnl =====================================================
192
dnl GST_LIBS & GST_CFLAGS 
193
dnl =====================================================
194
1.1.39 by Chris Coulson
Import upstream version 2.29.1
195
196
#### gcc warning flags (taken from PolicyKit-gnome)
197
198
if test "x$GCC" = "xyes"; then
199
  changequote(,)dnl
200
  case " $CFLAGS " in
201
  *[\ \	]-Wall[\ \	]*) ;;
202
  *) CFLAGS="$CFLAGS -Wall" ;;
203
  esac
204
205
  case " $CFLAGS " in
206
  *[\ \	]-Wchar-subscripts[\ \	]*) ;;
207
  *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
208
  esac
209
210
  case " $CFLAGS " in
211
  *[\ \	]-Wmissing-declarations[\ \	]*) ;;
212
  *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
213
  esac
214
215
  case " $CFLAGS " in
216
  *[\ \	]-Wnested-externs[\ \	]*) ;;
217
  *) CFLAGS="$CFLAGS -Wnested-externs" ;;
218
  esac
219
220
  case " $CFLAGS " in
221
  *[\ \	]-Wpointer-arith[\ \	]*) ;;
222
  *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
223
  esac
224
225
  case " $CFLAGS " in
226
  *[\ \	]-Wcast-align[\ \	]*) ;;
227
  *) CFLAGS="$CFLAGS -Wcast-align" ;;
228
  esac
229
230
  case " $CFLAGS " in
231
  *[\ \	]-Wsign-compare[\ \	]*) ;;
232
  *) CFLAGS="$CFLAGS -Wsign-compare" ;;
233
  esac
234
235
  case " $CFLAGS " in
236
  *[\ \	]-Wformat[\ \	]*) ;;
237
  *) CFLAGS="$CFLAGS -Wformat" ;;
238
  esac
239
240
  case " $CFLAGS " in
241
  *[\ \	]-Wformat-security[\ \	]*) ;;
242
  *) CFLAGS="$CFLAGS -Wformat-security" ;;
243
  esac
244
245
  changequote([,])dnl
246
fi
247
1 by Martin Pitt
Import upstream version 1.0.0
248
dnl GST_DEPRECATED_FLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED"
249
GST_DEPRECATED_FLAGS=""
250
1.1.36 by Robert Ancell
Import upstream version 2.27.3
251
GST_LIBS="$GST_DEPENDS_LIBS $POLKIT_GTK_LIBS"
252
GST_CFLAGS="$GST_DEPENDS_CFLAGS $POLKIT_GTK_CFLAGS $GST_DEPRECATED_FLAGS"
1 by Martin Pitt
Import upstream version 1.0.0
253
1.1.8 by Daniel Holbach
Import upstream version 2.15.0
254
GST_TOOL_LIBS="\$(top_builddir)/src/common/libsetuptool.a $GST_LIBS"
1.1.28 by Emilio Pozuelo Monfort
Import upstream version 2.21.5.1
255
GST_TOOL_CFLAGS="-I\$(top_srcdir)/src/common $GST_CFLAGS"
1 by Martin Pitt
Import upstream version 1.0.0
256
257
GST_TOOL_CLEANFILES="\$(desktop) \$(desktop).in"
258
GST_TOOL_EXTRA_DIST="\$(toolpixmaps) \$(desktop).in.in" 
259
GST_TOOL_DEPENDENCIES="\$(top_builddir)/src/common/libsetuptool.a"
260
261
AC_SUBST(GST_LIBS)
262
AC_SUBST(GST_CFLAGS)
263
AC_SUBST(GST_TOOL_LIBS)
264
AC_SUBST(GST_TOOL_CFLAGS)
265
AC_SUBST(GST_TOOL_CLEANFILES)
266
AC_SUBST(GST_TOOL_EXTRA_DIST)
267
AC_SUBST(GST_TOOL_DEPENDENCIES)
268
269
dnl ==================================
270
dnl END: GST_LIBS & GST_FLAGS
271
dnl ==================================
272
1.1.14 by Sebastien Bacher
Import upstream version 2.17.3
273
dnl ==================================
1.1.28 by Emilio Pozuelo Monfort
Import upstream version 2.21.5.1
274
dnl GIO
275
dnl ==================================
276
277
PKG_CHECK_MODULES(GIO,[
278
		  gio-2.0 >= $GLIB_REQUIRED
279
		  ])
280
281
AC_SUBST(GIO_LIBS)
282
AC_SUBST(GIO_CFLAGS)
283
284
dnl ==================================
285
dnl END: GIO
286
dnl ==================================
287
288
dnl ==================================
1.1.14 by Sebastien Bacher
Import upstream version 2.17.3
289
dnl LIBIW DETECTION
290
dnl ==================================
291
292
GST_IW_LIBS=
293
AC_CHECK_HEADER(iwlib.h, [
294
  enable_libiw=yes
295
  AC_DEFINE(HAVE_LIBIW_H, "", [whether libiw is available])
296
  AC_HAVE_LIBRARY(iw, [GST_IW_LIBS="-liw"])
297
])
298
AM_CONDITIONAL(HAVE_LIBIW_H, test x$enable_libiw = xyes)
299
AC_SUBST(GST_IW_LIBS)
300
301
dnl ==================================
302
dnl END: LIBIW DETECTION
303
dnl ==================================
304
1 by Martin Pitt
Import upstream version 1.0.0
305
dnl ===========================
1.1.1 by Michael Vogt
Import upstream version 1.2.0
306
dnl NAUTILUS EXTENSION
307
dnl ===========================
308
1.1.39 by Chris Coulson
Import upstream version 2.29.1
309
if test "x$enable_nautilus" = "xyes"; then
310
	PKG_CHECK_MODULES(NAUTILUS,[
311
		   libnautilus-extension >= 2.9.3
312
		   liboobs-1 >= $LIBOOBS_REQUIRED
313
		   gio-2.0   >= $GLIB_REQUIRED
314
		   ])
315
fi
1.1.1 by Michael Vogt
Import upstream version 1.2.0
316
317
AC_SUBST(NAUTILUS_LIBS)
318
AC_SUBST(NAUTILUS_CFLAGS)
319
1.1.28 by Emilio Pozuelo Monfort
Import upstream version 2.21.5.1
320
dnl Determine the install dir for nautilus extension.
321
NAUTILUSDIR=`pkg-config --variable=extensiondir libnautilus-extension`
322
AC_SUBST(NAUTILUSDIR)
323
1.1.1 by Michael Vogt
Import upstream version 1.2.0
324
dnl ===========================
325
dnl END: NAUTILUS EXTENSION
326
dnl ===========================
1 by Martin Pitt
Import upstream version 1.0.0
327
328
AC_OUTPUT([
329
Makefile
330
doc/Makefile
331
doc/network/Makefile
1.1.4 by Michael Vogt
Import upstream version 2.13.0
332
doc/services/Makefile
1.1.2 by Michael Vogt
Import upstream version 1.4.0
333
doc/services/nl/Makefile
30 by Michael Vogt
* New upstream release:
334
doc/shares/Makefile
1.1.4 by Michael Vogt
Import upstream version 2.13.0
335
doc/time/Makefile
1.1.2 by Michael Vogt
Import upstream version 1.4.0
336
doc/time/nl/Makefile
1 by Martin Pitt
Import upstream version 1.0.0
337
doc/users/Makefile
1.1.30 by Emilio Pozuelo Monfort
Import upstream version 2.21.92
338
icons/Makefile
339
icons/16x16/Makefile
340
icons/16x16/apps/Makefile
341
icons/22x22/Makefile
342
icons/22x22/apps/Makefile
343
icons/24x24/Makefile
344
icons/24x24/apps/Makefile
345
icons/32x32/Makefile
346
icons/32x32/apps/Makefile
347
icons/48x48/Makefile
348
icons/48x48/apps/Makefile
349
icons/48x48/devices/Makefile
350
icons/scalable/Makefile
351
icons/scalable/apps/Makefile
1 by Martin Pitt
Import upstream version 1.0.0
352
interfaces/Makefile
353
pixmaps/Makefile
354
src/Makefile
355
src/common/Makefile
1.1.1 by Michael Vogt
Import upstream version 1.2.0
356
src/users/users.desktop.in
1 by Martin Pitt
Import upstream version 1.0.0
357
src/users/Makefile
1.1.1 by Michael Vogt
Import upstream version 1.2.0
358
src/network/network.desktop.in
1 by Martin Pitt
Import upstream version 1.0.0
359
src/network/Makefile
1.1.1 by Michael Vogt
Import upstream version 1.2.0
360
src/time/time.desktop.in
1 by Martin Pitt
Import upstream version 1.0.0
361
src/time/Makefile
362
src/time/e-map/Makefile
1.1.1 by Michael Vogt
Import upstream version 1.2.0
363
src/services/services.desktop.in
1 by Martin Pitt
Import upstream version 1.0.0
364
src/services/Makefile
1.1.1 by Michael Vogt
Import upstream version 1.2.0
365
src/shares/shares.desktop.in
366
src/shares/Makefile
367
src/shares/nautilus/Makefile
1 by Martin Pitt
Import upstream version 1.0.0
368
po/Makefile.in
369
gnome-system-tools.pc
370
])
371
372
echo "
373
374
Configuration (GST):
1.1.1 by Michael Vogt
Import upstream version 1.2.0
375
	Services tool:     ${enable_services}
376
	Users tool:        ${enable_users}
377
	Network tool:      ${enable_network}
378
	Time tool:         ${enable_time}
379
	Shares tool:       ${enable_shares}
1.1.18 by Sebastien Bacher
Import upstream version 2.17.92
380
	Nautilus support:  ${enable_nautilus}
1.1.36 by Robert Ancell
Import upstream version 2.27.3
381
	Use PolKit-GTK:    ${have_polkit}
1 by Martin Pitt
Import upstream version 1.0.0
382
1.1.24 by Sebastien Bacher
Import upstream version 2.19.92
383
	Compiler:          ${CC}
1.1.1 by Michael Vogt
Import upstream version 1.2.0
384
"