Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 318 lines (290 sloc) 11.014 kb
fc23391 @nschermer * Inital import
nschermer authored
1 dnl $Id$
2 dnl
9a99a6a @Jannis Release 4.8.0!
Jannis authored
3 dnl Copyright (c) 2007-2011 The Xfce development team
fc23391 @nschermer * Inital import
nschermer authored
4 dnl
5
6 dnl ***************************
7 dnl *** Version information ***
8 dnl ***************************
9 m4_define([libxfce4ui_verinfo], [0:0:0])
10 m4_define([libxfce4ui_version_api], [1])
11 m4_define([libxfce4ui_version_major], [4])
28868ac @nschermer Add xfce4-about from xfce-utils package.
nschermer authored
12 m4_define([libxfce4ui_version_minor], [9])
9a99a6a @Jannis Release 4.8.0!
Jannis authored
13 m4_define([libxfce4ui_version_micro], [0])
d00642c @nschermer Add support for a nano version.
nschermer authored
14 m4_define([libxfce4ui_version_nano], []) dnl leave this empty to have no nano version
e7e1605 @nschermer Drop egg smclient.
nschermer authored
15 m4_define([libxfce4ui_version_build], [@REVISION@])
df3d6cf @Jannis Post-release version bump.
Jannis authored
16 m4_define([libxfce4ui_version_tag], [git])
85d2709 @Jannis Remove LINGUAS, update to xfce4-dev-tools 4.7.0.
Jannis authored
17 m4_define([libxfce4ui_version], [libxfce4ui_version_major().libxfce4ui_version_minor().libxfce4ui_version_micro()ifelse(libxfce4ui_version_nano(), [], [], [.libxfce4ui_version_nano()])ifelse(libxfce4ui_version_tag(), [git], [libxfce4ui_version_tag()-libxfce4ui_version_build()], [libxfce4ui_version_tag()])])
fc23391 @nschermer * Inital import
nschermer authored
18
d24a7ee @nschermer Import libxfce4kbd library into 4ui.
nschermer authored
19 m4_define([libxfce4kbd_private_verinfo], [0:0:0])
20 m4_define([libxfce4kbd_private_version_api], [2])
fc23391 @nschermer * Inital import
nschermer authored
21
22 dnl # DO NOT MODIFY ANYTHING BELOW THIS LINE, UNLESS YOU KNOW WHAT
23 dnl # YOU ARE DOING.
24
25
26 dnl ********************************************
27 dnl *** Full debug support for SVN snapshots ***
28 dnl ********************************************
85d2709 @Jannis Remove LINGUAS, update to xfce4-dev-tools 4.7.0.
Jannis authored
29 m4_define([libxfce4ui_debug_default], [ifelse(libxfce4ui_version_tag(), [git], [full], [minimum])])
fc23391 @nschermer * Inital import
nschermer authored
30
31 dnl ***************************
32 dnl *** Initialize autoconf ***
33 dnl ***************************
9a99a6a @Jannis Release 4.8.0!
Jannis authored
34 AC_COPYRIGHT([Copyright (c) 2007-2011 The Xfce development team])
fc23391 @nschermer * Inital import
nschermer authored
35 AC_INIT([libxfce4ui], [libxfce4ui_version], [http://bugzilla.xfce.org/], [libxfce4ui])
36 AC_PREREQ([2.50])
e7e1605 @nschermer Drop egg smclient.
nschermer authored
37 AC_REVISION([libxfce4ui_version_build])
fc23391 @nschermer * Inital import
nschermer authored
38 AC_CANONICAL_TARGET()
39
40 dnl ***************************
41 dnl *** Initialize automake ***
42 dnl ***************************
43 AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
44 AM_CONFIG_HEADER([config.h])
45 AM_MAINTAINER_MODE()
964038a @nschermer Silent the build.
nschermer authored
46 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
fc23391 @nschermer * Inital import
nschermer authored
47
48 dnl *******************************
49 dnl *** Check for UNIX variants ***
50 dnl *******************************
51 AC_AIX()
52 AC_ISC_POSIX()
53
42ab279 @nschermer Initial import of the egg smclient code.
nschermer authored
54 AC_MSG_CHECKING([platform])
55 case "$host" in
56 *-*-mingw*|*-*-cygwin*)
57 platform="win32"
58 NO_UNDEFINED=-no-undefined
59 ;;
60 *-apple-darwin*)
61 platform="os x"
62 ;;
63 *)
64 platform="unix"
65 ;;
66 esac
67 AM_CONDITIONAL(PLATFORM_WIN32, test "$platform" = "win32")
68 AM_CONDITIONAL(PLATFORM_OSX, test "$platform" = "os x")
69 AC_SUBST(NO_UNDEFINED)
70
fc23391 @nschermer * Inital import
nschermer authored
71 dnl ********************************
72 dnl *** Check for basic programs ***
73 dnl ********************************
74 AC_PROG_CC()
75 AC_PROG_LD()
76 AM_PROG_CC_C_O()
77 AC_PROG_INSTALL()
78 AC_PROG_INTLTOOL()
79 AC_CHECK_PROGS([PERL], [perl5 perl])
80
81 dnl **************************
82 dnl *** Initialize libtool ***
83 dnl **************************
84 AC_DISABLE_STATIC()
85 AC_PROG_LIBTOOL()
86
87 dnl **************************************
88 dnl *** Substitute version information ***
89 dnl **************************************
90 LIBXFCE4UI_VERINFO=libxfce4ui_verinfo()
91 LIBXFCE4UI_VERSION_API=libxfce4ui_version_api()
92 LIBXFCE4UI_VERSION_MAJOR=libxfce4ui_version_major()
93 LIBXFCE4UI_VERSION_MINOR=libxfce4ui_version_minor()
94 LIBXFCE4UI_VERSION_MICRO=libxfce4ui_version_micro()
d24a7ee @nschermer Import libxfce4kbd library into 4ui.
nschermer authored
95 LIBXFCE4KBD_PRIVATE_VERINFO=libxfce4kbd_private_verinfo()
96 LIBXFCE4KBD_PRIVATE_VERSION_API=libxfce4kbd_private_version_api()
fc23391 @nschermer * Inital import
nschermer authored
97 AC_SUBST([LIBXFCE4UI_VERINFO])
98 AC_SUBST([LIBXFCE4UI_VERSION_API])
99 AC_SUBST([LIBXFCE4UI_VERSION_MAJOR])
100 AC_SUBST([LIBXFCE4UI_VERSION_MINOR])
101 AC_SUBST([LIBXFCE4UI_VERSION_MICRO])
d24a7ee @nschermer Import libxfce4kbd library into 4ui.
nschermer authored
102 AC_SUBST([LIBXFCE4KBD_PRIVATE_VERINFO])
103 AC_SUBST([LIBXFCE4KBD_PRIVATE_VERSION_API])
fc23391 @nschermer * Inital import
nschermer authored
104
105 dnl ***************************************
106 dnl *** Check for standard header files ***
107 dnl ***************************************
108 AC_HEADER_STDC()
198674e @nschermer Add new function xfce_spawn_on_screen_with_child_watch().
nschermer authored
109 AC_CHECK_HEADERS([crt_externs.h errno.h fcntl.h limits.h locale.h math.h \
110 memory.h signal.h stdarg.h stdlib.h string.h unistd.h])
111 AC_CHECK_DECLS([environ])
112 AC_CHECK_FUNCS([_NSGetEnviron])
fc23391 @nschermer * Inital import
nschermer authored
113
114 dnl ******************************
115 dnl *** Check for i18n support ***
116 dnl ******************************
117 XDT_I18N([@LINGUAS@])
118
119 dnl *******************************************
120 dnl *** Check for X Window System installed ***
121 dnl *******************************************
122 XDT_CHECK_LIBX11_REQUIRE()
e7e1605 @nschermer Drop egg smclient.
nschermer authored
123 XDT_CHECK_LIBSM()
fc23391 @nschermer * Inital import
nschermer authored
124
125 dnl ***********************************
126 dnl *** Check for required packages ***
127 dnl ***********************************
204f354 @nschermer API changes requested by Brian.
nschermer authored
128 XDT_CHECK_PACKAGE([GOBJECT], [gobject-2.0], [2.16.0])
129 XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.14.0])
9a99a6a @Jannis Release 4.8.0!
Jannis authored
130 XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.8.0])
fc23391 @nschermer * Inital import
nschermer authored
131
132 dnl *************************************************
133 dnl *** Optional support for startup notification ***
134 dnl *************************************************
135 XDT_CHECK_OPTIONAL_PACKAGE([LIBSTARTUP_NOTIFICATION],
136 [libstartup-notification-1.0],
137 [0.4], [startup-notification],
138 [startup notification library])
139
d24a7ee @nschermer Import libxfce4kbd library into 4ui.
nschermer authored
140 dnl **************************************************
141 dnl *** Check whether to build the keyboard libary ***
142 dnl **************************************************
143 AC_ARG_ENABLE([keyboard-library],
144 [AC_HELP_STRING([--disable-keyboard-library],
145 [Do not compile the keyboard library needed by xfwm4 and xfce4-settings (default=enabled)])],
146 [enable_keyboard_library=$enableval], [enable_keyboard_library=yes])
147 if test "x$enable_keyboard_library" = "xyes"; then
9a99a6a @Jannis Release 4.8.0!
Jannis authored
148 XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.8.0])
d24a7ee @nschermer Import libxfce4kbd library into 4ui.
nschermer authored
149 fi
150 AM_CONDITIONAL([ENABLE_KEYBOARD_LIBRARY], [test "x$enable_keyboard_library" = "xyes"])
151
f8898cc @nschermer * Add initial gladeui support (no libglade).
nschermer authored
152 dnl *********************************************************
153 dnl *** Optional support for the Glade Interface Designer ***
154 dnl *********************************************************
155 XDT_CHECK_OPTIONAL_PACKAGE([GLADEUI], [gladeui-1.0],
156 [3.5.0], [gladeui], [glade interface designer])
a0e7123 @Jannis Add configure flags for custom gladeui paths (catalog, pixmap, module).
Jannis authored
157 AC_ARG_WITH([gladeui-catalogdir],
158 [AC_HELP_STRING([--with-gladeui-catalogdir=PATH],
159 [Specify where to install glade designer catalog files (default=autodetect)])],
160 [gladeui_catalogdir="$withval"])
161 AC_ARG_WITH([gladeui-moduledir],
162 [AC_HELP_STRING([--with-gladeui-moduledir=PATH],
163 [Specify where to install glade designer modules (default=autodetect)])],
164 [gladeui_moduledir="$withval"])
165 AC_ARG_WITH([gladeui-pixmapdir],
166 [AC_HELP_STRING([--with-gladeui-pixmapdir=PATH],
167 [Specify where to install glade designer pixmaps (default=autodetect)])],
168 [gladeui_pixmapdir="$withval"])
f8898cc @nschermer * Add initial gladeui support (no libglade).
nschermer authored
169 if test x"$GLADEUI_FOUND" = x"yes"; then
a0e7123 @Jannis Add configure flags for custom gladeui paths (catalog, pixmap, module).
Jannis authored
170 if test x"$gladeui_catalogdir" = x""; then
171 GLADEUI_CATALOGDIR=`$PKG_CONFIG "--variable=catalogdir" "gladeui-1.0"`
172 else
173 GLADEUI_CATALOGDIR="$gladeui_catalogdir"
174 fi
175 if test x"$gladeui_moduledir" = x""; then
176 GLADEUI_MODULEDIR=`$PKG_CONFIG "--variable=moduledir" "gladeui-1.0"`
177 else
178 GLADEUI_MODULEDIR="$gladeui_moduledir"
179 fi
180 if test x"$gladeui_pixmapdir" = x""; then
181 GLADEUI_PIXMAPDIR=`$PKG_CONFIG "--variable=pixmapdir" "gladeui-1.0"`
182 else
183 GLADEUI_PIXMAPDIR="$gladeui_pixmapdir"
184 fi
f8898cc @nschermer * Add initial gladeui support (no libglade).
nschermer authored
185 fi
186 AC_SUBST([GLADEUI_CATALOGDIR])
187 AC_SUBST([GLADEUI_MODULEDIR])
188 AC_SUBST([GLADEUI_PIXMAPDIR])
189
fc23391 @nschermer * Inital import
nschermer authored
190 dnl *************************
191 dnl *** Check for gtk-doc ***
192 dnl *************************
193 GTK_DOC_CHECK([1.0])
194
195 dnl ***********************************
196 dnl *** Check for debugging support ***
197 dnl ***********************************
f0bf11f @nschermer Drop visibility code and use new xdt functions.
nschermer authored
198 XDT_FEATURE_DEBUG([libxfce4ui_debug_default])
fc23391 @nschermer * Inital import
nschermer authored
199
200 dnl **************************************
201 dnl *** Check for linker optimizations ***
202 dnl **************************************
f0bf11f @nschermer Drop visibility code and use new xdt functions.
nschermer authored
203 XDT_FEATURE_LINKER_OPTS()
fc23391 @nschermer * Inital import
nschermer authored
204
91eedf0 @nschermer Move the visibility-alias stuff back in.
nschermer authored
205 dnl ****************************************
206 dnl *** Check for ELF visibility support ***
207 dnl ****************************************
208 AC_ARG_ENABLE([visibility],
209 AC_HELP_STRING([--disable-visibility],
210 [Do not use ELF visibility attributes]),
211 [enable_visibility=$enableval], [enable_visibility=yes])
212 have_gnuc_visibility=no
213 if test "x$enable_visibility" != "xno"; then
214 XDT_SUPPORTED_FLAGS([xdt_vis_test_cflags], [-Wall -Werror -Wno-unused-parameter])
215 saved_CFLAGS="$CFLAGS"
216 CFLAGS="$CFLAGS $xdt_vis_test_cflags"
217 AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
218 AC_COMPILE_IFELSE(AC_LANG_SOURCE(
219 [
220 void test_default (void);
221 void test_hidden (void);
222 void __attribute__ ((visibility("default"))) test_default (void) {}
223 void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
224 int main (int argc, char **argv) {
225 test_default ();
226 test_hidden ();
227 return 0;
228 }
229 ]),
230 [
231 have_gnuc_visibility=yes
232 AC_MSG_RESULT([yes])
233 ],
234 [
235 AC_MSG_RESULT([no])
236 ])
237 CFLAGS="$saved_CFLAGS"
238 fi
239 if test "x$have_gnuc_visibility" = "xyes"; then
240 CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
241 fi
242 AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test "x$have_gnuc_visibility" = "xyes"])
243
d896cd6 @nschermer Add fix for broken docbook compilation.
nschermer authored
244 dnl *************************************
245 dnl *** Compensate for broken gtk-doc ***
246 dnl *************************************
247 XDT_SUPPORTED_FLAGS([GTK_DOC_EXTRA_CFLAGS], [-Wno-sign-compare])
248 AC_SUBST([GTK_DOC_EXTRA_CFLAGS])
249
fc23391 @nschermer * Inital import
nschermer authored
250 dnl *********************************
251 dnl *** Substitute platform flags ***
252 dnl *********************************
253 AC_MSG_CHECKING([PLATFORM_CPPFLAGS])
254 AC_MSG_RESULT([$PLATFORM_CPPFLAGS])
255 AC_SUBST([PLATFORM_CPPFLAGS])
256 AC_MSG_CHECKING([PLATFORM_CFLAGS])
257 AC_MSG_RESULT([$PLATFORM_CFLAGS])
258 AC_SUBST([PLATFORM_CFLAGS])
259 AC_MSG_CHECKING([PLATFORM_LDFLAGS])
260 AC_MSG_RESULT([$PLATFORM_LDFLAGS])
261 AC_SUBST([PLATFORM_LDFLAGS])
262
263 dnl *****************************
264 dnl *** Generate output files ***
265 dnl *****************************
266 AC_OUTPUT([
267 Makefile
268 docs/Makefile
269 docs/version.xml
f8898cc @nschermer * Add initial gladeui support (no libglade).
nschermer authored
270 glade/Makefile
271 glade/icons/Makefile
272 glade/icons/16x16/Makefile
273 glade/icons/22x22/Makefile
28868ac @nschermer Add xfce4-about from xfce-utils package.
nschermer authored
274 icons/Makefile
275 icons/48x48/Makefile
d24a7ee @nschermer Import libxfce4kbd library into 4ui.
nschermer authored
276 libxfce4kbd-private/libxfce4kbd-private-2.pc
277 libxfce4kbd-private/Makefile
fc23391 @nschermer * Inital import
nschermer authored
278 libxfce4ui.spec
279 libxfce4ui/libxfce4ui-1.pc
280 libxfce4ui/libxfce4ui-config.h
281 libxfce4ui/Makefile
28868ac @nschermer Add xfce4-about from xfce-utils package.
nschermer authored
282 xfce4-about/Makefile
fc23391 @nschermer * Inital import
nschermer authored
283 po/Makefile.in
284 ])
285
286 dnl ***************************
287 dnl *** Print configuration ***
288 dnl ***************************
289 echo
290 echo "Build Configuration:"
291 echo
f8898cc @nschermer * Add initial gladeui support (no libglade).
nschermer authored
292 if test x"$GLADEUI_FOUND" = x"yes"; then
293 echo "* Glade Interface Designer: yes"
294 echo " - Catalog directory: $GLADEUI_CATALOGDIR"
295 echo " - Module directory: $GLADEUI_MODULEDIR"
296 echo " - Pixmap directory: $GLADEUI_PIXMAPDIR"
297 else
298 echo "* Glade Interface Designer: no"
299 fi
d24a7ee @nschermer Import libxfce4kbd library into 4ui.
nschermer authored
300 if test x"$enable_keyboard_library" = x"yes"; then
301 echo "* Keyboard library support: yes"
302 else
303 echo "* Keyboard library support: no"
304 fi
fc23391 @nschermer * Inital import
nschermer authored
305 if test x"$LIBSTARTUP_NOTIFICATION_FOUND" = x"yes"; then
59ea7ee @nschermer Show SM support in build config and use FLAGS.
nschermer authored
306 echo "* Startup notification: yes"
fc23391 @nschermer * Inital import
nschermer authored
307 else
59ea7ee @nschermer Show SM support in build config and use FLAGS.
nschermer authored
308 echo "* Startup notification: no"
fc23391 @nschermer * Inital import
nschermer authored
309 fi
59ea7ee @nschermer Show SM support in build config and use FLAGS.
nschermer authored
310 if test x"$LIBSM_LIBS" = x""; then
311 echo "* X11 session management: no"
312 else
313 echo "* X11 session management: yes"
314 fi
315 echo "* Debug support: $enable_debug"
91eedf0 @nschermer Move the visibility-alias stuff back in.
nschermer authored
316 echo "* GNU Visibility: $have_gnuc_visibility"
fc23391 @nschermer * Inital import
nschermer authored
317 echo
Something went wrong with that request. Please try again.