1 | AC_INIT(gnome-panel) |
---|
2 | AM_CONFIG_HEADER(config.h) |
---|
3 | AM_INIT_AUTOMAKE(gnome-panel, 2.8.3) |
---|
4 | |
---|
5 | dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work |
---|
6 | AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS") |
---|
7 | |
---|
8 | # Before making a release, the LT_VERSION string should be modified. |
---|
9 | # The string is of the form C:R:A. |
---|
10 | # - If interfaces have been changed or added, but binary compatibility has |
---|
11 | # been preserved, change to C+1:0:A+1 |
---|
12 | # - If binary compatibility has been broken (eg removed or changed interfaces) |
---|
13 | # change to C+1:0:0 |
---|
14 | # - If the interface is the same as the previous version, change to C:R+1:A |
---|
15 | |
---|
16 | LIB_PANEL_APPLET_LT_VERSION=0:20:0 |
---|
17 | AC_SUBST(LIB_PANEL_APPLET_LT_VERSION) |
---|
18 | |
---|
19 | AM_MAINTAINER_MODE |
---|
20 | |
---|
21 | AC_PROG_INTLTOOL([0.31]) |
---|
22 | |
---|
23 | AC_ISC_POSIX |
---|
24 | AC_PROG_CC |
---|
25 | AC_STDC_HEADERS |
---|
26 | AC_ARG_PROGRAM |
---|
27 | AC_LIBTOOL_WIN32_DLL |
---|
28 | AM_PROG_LIBTOOL |
---|
29 | AC_PATH_PROGS(PATH_TO_XRDB, "xrdb") |
---|
30 | AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) |
---|
31 | AC_PATH_PROG(GCONFTOOL, gconftool-2) |
---|
32 | |
---|
33 | AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no) |
---|
34 | if test x"$GDK_PIXBUF_CSOURCE" = xno; then |
---|
35 | AC_MSG_ERROR([gdk-pixbuf-csource executable not found in your path - should be installed with GTK]) |
---|
36 | fi |
---|
37 | |
---|
38 | GNOME_COMPILE_WARNINGS(yes) |
---|
39 | |
---|
40 | AC_ARG_ENABLE(deprecations, |
---|
41 | [AC_HELP_STRING([--enable-deprecations], |
---|
42 | [warn about deprecated usages [default=no]])],, |
---|
43 | [enable_deprecations=no]) |
---|
44 | |
---|
45 | if test "x$enable_deprecations" = "xyes"; then |
---|
46 | DISABLE_DEPRECATED_CFLAGS="\ |
---|
47 | -DG_DISABLE_DEPRECATED \ |
---|
48 | -DGDK_DISABLE_DEPRECATED \ |
---|
49 | -DGTK_DISABLE_DEPRECATED \ |
---|
50 | -DGDK_PIXBUF_DISABLE_DEPRECATED \ |
---|
51 | -DGNOME_DISABLE_DEPRECATED" |
---|
52 | AC_SUBST(DISABLE_DEPRECATED_CFLAGS) |
---|
53 | fi |
---|
54 | |
---|
55 | dnl If you add a version number here, you *must* add an AC_SUBST line for |
---|
56 | dnl it too, or it will never make it into the spec file! |
---|
57 | |
---|
58 | LIBGNOME_DESKTOP_REQUIRED=2.1.4 |
---|
59 | GDK_PIXBUF_REQUIRED=2.1.0 |
---|
60 | GTK_REQUIRED=2.3.2 |
---|
61 | LIBGLADE_REQUIRED=2.3.0 |
---|
62 | LIBGNOME_REQUIRED=2.1.1 |
---|
63 | LIBGNOMEUI_REQUIRED=2.5.4 |
---|
64 | LIBBONOBOUI_REQUIRED=2.1.1 |
---|
65 | ORBIT_REQUIRED=2.4.0 |
---|
66 | GNOME_VFS_REQUIRED=2.3.0 |
---|
67 | GNOME_VFS_MODULE_REQUIRED=2.1.3 |
---|
68 | LIBWNCK_REQUIRED=2.7.91 |
---|
69 | GCONF_REQUIRED=2.6.1 |
---|
70 | |
---|
71 | AC_SUBST(GTK_REQUIRED) |
---|
72 | AC_SUBST(GDK_PIXBUF_REQUIRED) |
---|
73 | AC_SUBST(LIBGLADE_REQUIRED) |
---|
74 | AC_SUBST(LIBGNOME_REQUIRED) |
---|
75 | AC_SUBST(ORBIT_REQUIRED) |
---|
76 | AC_SUBST(GNOME_VFS_REQUIRED) |
---|
77 | AC_SUBST(LIBWNCK_REQUIRED) |
---|
78 | AC_SUBST(GCONF_REQUIRED) |
---|
79 | |
---|
80 | dnl pkg-config dependency checks |
---|
81 | |
---|
82 | PKG_CHECK_MODULES(PANEL, ORBit-2.0 >= $ORBIT_REQUIRED gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnome-2.0 >= $LIBGNOME_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED gnome-desktop-2.0 >= $LIBGNOME_DESKTOP_REQUIRED gnome-vfs-2.0 >= $GNOME_VFS_REQUIRED gnome-vfs-module-2.0 >= $GNOME_VFS_MODULE_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED gconf-2.0 >= $GCONF_REQUIRED) |
---|
83 | AC_SUBST(PANEL_CFLAGS) |
---|
84 | AC_SUBST(PANEL_LIBS) |
---|
85 | |
---|
86 | PKG_CHECK_MODULES(PANEL_SCREENSHOT, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED) |
---|
87 | AC_SUBST(PANEL_SCREENSHOT_CFLAGS) |
---|
88 | AC_SUBST(PANEL_SCREENSHOT_LIBS) |
---|
89 | |
---|
90 | PKG_CHECK_MODULES(LIBPANEL_APPLET, ORBit-2.0 >= $ORBIT_REQUIRED gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED libbonoboui-2.0 >= $LIBBONOBOUI_REQUIRED) |
---|
91 | AC_SUBST(LIBPANEL_APPLET_CFLAGS) |
---|
92 | AC_SUBST(LIBPANEL_APPLET_LIBS) |
---|
93 | |
---|
94 | PKG_CHECK_MODULES(WNCKLET, ORBit-2.0 >= $ORBIT_REQUIRED gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libwnck-1.0 >= $LIBWNCK_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED gnome-desktop-2.0 >= $LIBGNOME_DESKTOP_REQUIRED) |
---|
95 | AC_SUBST(WNCKLET_CFLAGS) |
---|
96 | AC_SUBST(WNCKLET_LIBS) |
---|
97 | |
---|
98 | AC_ARG_ENABLE(eds, |
---|
99 | AC_HELP_STRING([--enable-eds], |
---|
100 | [Enable evolution-data-server dependencies @<:@default=auto@:>@] |
---|
101 | ),,enable_eds=auto) |
---|
102 | LIBECAL_REQUIREMENT= |
---|
103 | if test "x$enable_eds" = "xyes"; then |
---|
104 | LIBECAL_REQUIREMENT="libecal-1.0 >= 0.0.97" |
---|
105 | else |
---|
106 | if test "x$enable_eds" != "xno"; then |
---|
107 | AC_MSG_CHECKING(for evolution-data-server) |
---|
108 | if $PKG_CONFIG --exists libecal-1.0; then |
---|
109 | AC_MSG_RESULT(yes) |
---|
110 | LIBECAL_REQUIREMENT="libecal-1.0 >= 0.0.97" |
---|
111 | else |
---|
112 | AC_MSG_RESULT(no) |
---|
113 | fi |
---|
114 | fi |
---|
115 | fi |
---|
116 | if test -n "$LIBECAL_REQUIREMENT"; then |
---|
117 | AC_DEFINE([HAVE_LIBECAL], 1, |
---|
118 | [Defined when evolution-data-server libecal-1.0 is detected]) |
---|
119 | fi |
---|
120 | AM_CONDITIONAL(HAVE_LIBECAL, test -n "$LIBECAL_REQUIREMENT") |
---|
121 | |
---|
122 | PKG_CHECK_MODULES(CLOCK, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED $LIBECAL_REQUIREMENT) |
---|
123 | AC_SUBST(CLOCK_CFLAGS) |
---|
124 | AC_SUBST(CLOCK_LIBS) |
---|
125 | |
---|
126 | PKG_CHECK_MODULES(MAILCHECK, gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQUIRED gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED) |
---|
127 | AC_SUBST(MAILCHECK_CFLAGS) |
---|
128 | AC_SUBST(MAILCHECK_LIBS) |
---|
129 | |
---|
130 | PKG_CHECK_MODULES(FISH, gtk+-2.0 >= $GTK_REQUIRED libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED libglade-2.0 >= $LIBGLADE_REQUIRED) |
---|
131 | AC_SUBST(FISH_CFLAGS) |
---|
132 | AC_SUBST(FISH_LIBS) |
---|
133 | |
---|
134 | dnl shape extenstion for gnome-panel-screenshot |
---|
135 | savecppflags=$CPPFLAGS |
---|
136 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
---|
137 | AC_CHECK_HEADERS(X11/extensions/shape.h, XSHAPE_LIBS="-lXext") |
---|
138 | AC_SUBST(XSHAPE_LIBS) |
---|
139 | CPPFLAGS=$savecppflags |
---|
140 | |
---|
141 | # For egg-recent-files |
---|
142 | AC_CHECK_FUNCS(lockf) |
---|
143 | |
---|
144 | dnl X development libraries check |
---|
145 | |
---|
146 | # |
---|
147 | # If Pango included the shared library dependencies from X11 in |
---|
148 | # the pkg-config output, then we use that (to avoid duplicates). |
---|
149 | # but if they were omitted to avoid binary compatibility problems |
---|
150 | # then we need to repeat the checks. |
---|
151 | # |
---|
152 | if $PKG_CONFIG --exists pangoxft ; then |
---|
153 | PANGO_PACKAGES="pangox pangoxft" |
---|
154 | else |
---|
155 | PANGO_PACKAGES="pangox" |
---|
156 | fi |
---|
157 | |
---|
158 | x_libs="`$PKG_CONFIG --libs $PANGO_PACKAGES`" |
---|
159 | case x_libs in |
---|
160 | *-lX11*) pango_omitted_x_deps=no ;; |
---|
161 | *) pango_omitted_x_deps=yes ;; |
---|
162 | esac |
---|
163 | |
---|
164 | if test $pango_omitted_x_deps = yes ; then |
---|
165 | AC_PATH_XTRA |
---|
166 | |
---|
167 | if test x$no_x = xyes ; then |
---|
168 | AC_MSG_ERROR([X development libraries not found]) |
---|
169 | else |
---|
170 | X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" |
---|
171 | fi |
---|
172 | fi |
---|
173 | |
---|
174 | AC_SUBST(X_LIBS) |
---|
175 | |
---|
176 | dnl IDL directories |
---|
177 | |
---|
178 | ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`" |
---|
179 | AC_SUBST(ORBIT_IDL) |
---|
180 | |
---|
181 | BONOBO_IDLDIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`" |
---|
182 | AC_SUBST(BONOBO_IDLDIR) |
---|
183 | |
---|
184 | BONOBO_ACT_IDLDIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`" |
---|
185 | AC_SUBST(BONOBO_ACT_IDLDIR) |
---|
186 | |
---|
187 | dnl Language Support |
---|
188 | |
---|
189 | GETTEXT_PACKAGE=gnome-panel-2.0 |
---|
190 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE") |
---|
191 | AC_SUBST(GETTEXT_PACKAGE) |
---|
192 | |
---|
193 | ALL_LINGUAS="af am ar az be bg bn bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hr hu id it ja ko li lt lv mi mk ml mn mr ms nb nl nn no nso or pa pl pt pt_BR ro ru sk sl sq sr sr@ije sr@Latn sv ta th tr uk vi wa yi zh_CN zh_TW zu" |
---|
194 | AM_GLIB_GNU_GETTEXT |
---|
195 | |
---|
196 | |
---|
197 | dnl Check for libpng |
---|
198 | |
---|
199 | PNG_LIBS= |
---|
200 | AC_CHECK_LIB(png, png_init_io, [ |
---|
201 | PNG_LIBS="-lpng"],[ |
---|
202 | AC_MSG_ERROR(libpng is required for gnome-panel)], -lm -lz) |
---|
203 | AC_SUBST(PNG_LIBS) |
---|
204 | |
---|
205 | |
---|
206 | dnl Place to look for KDE menus |
---|
207 | |
---|
208 | AC_ARG_WITH(kde-datadir, [ --with-kde-datadir=DIR Location of KDE data]) |
---|
209 | |
---|
210 | if test "x$with_kde_datadir" = x ; then |
---|
211 | kde_datadir=/usr/share |
---|
212 | else |
---|
213 | kde_datadir=$with_kde_datadir |
---|
214 | fi |
---|
215 | |
---|
216 | AC_DEFINE_UNQUOTED(KDE_MENUDIR, "$kde_datadir/applnk") |
---|
217 | AC_DEFINE_UNQUOTED(KDE_ICONDIR, "$kde_datadir/icons") |
---|
218 | AC_DEFINE_UNQUOTED(KDE_MINI_ICONDIR, "$kde_datadir/icons/mini") |
---|
219 | |
---|
220 | |
---|
221 | dnl Place to look for KDE docs |
---|
222 | |
---|
223 | AC_ARG_WITH(kde-docdir, [ --with-kde-docdir=DIR Location of KDE documentation]) |
---|
224 | |
---|
225 | if test "x$with_kde_docdir" = x ; then |
---|
226 | kde_docdir=/usr/doc/kde |
---|
227 | else |
---|
228 | kde_docdir=$with_kde_docdir |
---|
229 | fi |
---|
230 | |
---|
231 | AC_DEFINE_UNQUOTED(KDE_DOCDIR, "$kde_docdir") |
---|
232 | |
---|
233 | |
---|
234 | dnl gtk-doc stuff |
---|
235 | |
---|
236 | GTK_DOC_CHECK([1.0]) |
---|
237 | |
---|
238 | dnl scrollkeeper checks |
---|
239 | |
---|
240 | AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no) |
---|
241 | if test x$SCROLLKEEPER_CONFIG = xno; then |
---|
242 | AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package) |
---|
243 | fi |
---|
244 | |
---|
245 | AM_GCONF_SOURCE_2 |
---|
246 | |
---|
247 | dnl Don't use AC_PROG_AWK since we need the full pathname. |
---|
248 | AC_PATH_PROGS(AWK, mawk gawk nawk awk, ) |
---|
249 | AC_PATH_PROGS(PERL, perl5 perl) |
---|
250 | |
---|
251 | dnl define a MAINT-like variable REBUILD which is set if Perl |
---|
252 | dnl and awk are found, so autogenerated sources can be rebuilt |
---|
253 | AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes) |
---|
254 | REBUILD=\# |
---|
255 | if test "x$enable_rebuilds" = "xyes" && \ |
---|
256 | test -n "$PERL" && \ |
---|
257 | $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \ |
---|
258 | test -n "$AWK" ; then |
---|
259 | REBUILD= |
---|
260 | fi |
---|
261 | AC_SUBST(REBUILD) |
---|
262 | |
---|
263 | AC_OUTPUT([ |
---|
264 | Makefile |
---|
265 | gnome-panel.spec |
---|
266 | idl/Makefile |
---|
267 | icons/Makefile |
---|
268 | gnome-panel/Makefile |
---|
269 | libpanel-applet/libpanelapplet-2.0.pc |
---|
270 | libpanel-applet/libpanelapplet-2.0-uninstalled.pc |
---|
271 | libpanel-applet/Makefile |
---|
272 | po/Makefile.in |
---|
273 | applets/Makefile |
---|
274 | applets/clock/Makefile |
---|
275 | applets/clock/cut-n-paste/Makefile |
---|
276 | applets/fish/Makefile |
---|
277 | applets/notification_area/Makefile |
---|
278 | applets/wncklet/Makefile |
---|
279 | applets/wncklet/eel/Makefile |
---|
280 | doc/Makefile |
---|
281 | doc/reference/Makefile |
---|
282 | doc/reference/panel-applet/Makefile |
---|
283 | help/Makefile |
---|
284 | help/C/Makefile |
---|
285 | help/C/fish/Makefile |
---|
286 | help/C/clock/Makefile |
---|
287 | help/C/window-list/Makefile |
---|
288 | help/C/workspace-switcher/Makefile |
---|
289 | help/ja/Makefile |
---|
290 | help/ja/fish/Makefile |
---|
291 | help/ja/clock/Makefile |
---|
292 | help/ja/window-list/Makefile |
---|
293 | help/ja/workspace-switcher/Makefile |
---|
294 | help/de/Makefile |
---|
295 | help/de/fish/Makefile |
---|
296 | help/de/clock/Makefile |
---|
297 | help/de/window-list/Makefile |
---|
298 | help/de/workspace-switcher/Makefile |
---|
299 | help/es/Makefile |
---|
300 | help/es/fish/Makefile |
---|
301 | help/es/clock/Makefile |
---|
302 | help/es/window-list/Makefile |
---|
303 | help/es/workspace-switcher/Makefile |
---|
304 | help/fr/Makefile |
---|
305 | help/fr/fish/Makefile |
---|
306 | help/fr/clock/Makefile |
---|
307 | help/fr/window-list/Makefile |
---|
308 | help/fr/workspace-switcher/Makefile |
---|
309 | help/it/Makefile |
---|
310 | help/it/fish/Makefile |
---|
311 | help/it/clock/Makefile |
---|
312 | help/it/window-list/Makefile |
---|
313 | help/it/workspace-switcher/Makefile |
---|
314 | help/sv/Makefile |
---|
315 | help/sv/fish/Makefile |
---|
316 | help/sv/clock/Makefile |
---|
317 | help/sv/window-list/Makefile |
---|
318 | help/sv/workspace-switcher/Makefile |
---|
319 | help/ko/Makefile |
---|
320 | help/ko/fish/Makefile |
---|
321 | help/ko/clock/Makefile |
---|
322 | help/ko/window-list/Makefile |
---|
323 | help/ko/workspace-switcher/Makefile |
---|
324 | help/zh_CN/Makefile |
---|
325 | help/zh_CN/fish/Makefile |
---|
326 | help/zh_CN/clock/Makefile |
---|
327 | help/zh_CN/window-list/Makefile |
---|
328 | help/zh_CN/workspace-switcher/Makefile |
---|
329 | help/zh_TW/Makefile |
---|
330 | help/zh_TW/fish/Makefile |
---|
331 | help/zh_TW/clock/Makefile |
---|
332 | help/zh_TW/window-list/Makefile |
---|
333 | help/zh_TW/workspace-switcher/Makefile |
---|
334 | man/Makefile |
---|
335 | ]) |
---|
336 | |
---|
337 | if echo foo | xgettext --from-code=UTF-8 -LC -o - - 2>/dev/null ; then |
---|
338 | :; |
---|
339 | else |
---|
340 | echo "Warning: Your version of gettext does not support --from-code." |
---|
341 | echo " This will cause translation of some strings in non US-English" |
---|
342 | echo " locales to fail. For full support please upgrade to GNU" |
---|
343 | echo " gettext 0.12 or later." |
---|
344 | echo |
---|
345 | fi |
---|