1
AC_INIT(idl/Accessibility.idl)
4
AT_SPI_MINOR_VERSION=32
8
AT_SPI_VERSION="$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION.$AT_SPI_MICRO_VERSION"
9
AM_INIT_AUTOMAKE(at-spi, $AT_SPI_VERSION)
10
AC_SUBST(AT_SPI_MAJOR_VERSION)
11
AC_SUBST(AT_SPI_MINOR_VERSION)
12
AC_SUBST(AT_SPI_MICRO_VERSION)
13
AC_SUBST(AT_SPI_INTERFACE_AGE)
14
AC_SUBST(AT_SPI_BINARY_AGE)
17
LT_RELEASE=$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION
21
LT_VERSION_INFO='-version-info ${LT_CURRENT}:${LT_REVISION}:${LT_AGE}'
22
AC_SUBST(LT_VERSION_INFO)
28
dnl required versions of other tools.
29
m4_define([req_ver_atk], [1.29.2])
30
m4_define([req_ver_gtk], [2.19.7])
31
m4_define([req_ver_dbus], [0.76])
32
m4_define([req_ver_gconf], [2.0.0])
33
m4_define([req_ver_gail], [1.9.0])
34
m4_define([req_ver_libbonobo], [1.107.0])
36
dnl Specify a header configuration file
37
AM_CONFIG_HEADER(config.h)
39
dnl Initialize maintainer mode
42
dnl translation of any at-spi strings: used only for .server
43
IT_PROG_INTLTOOL([0.40.0])
45
dnl Checks for programs
51
AC_PATH_PROG(GCONFTOOL, gconftool-2)
59
GNOME_COMPILE_WARNINGS(maximum)
61
dnl Initialize libtool
65
GETTEXT_PACKAGE="${PACKAGE}"
66
AC_SUBST(GETTEXT_PACKAGE)
67
dnl internationalization support; uncomment if translatable strings are reintroduced
70
# AM_GLIB_GNU_GETTEXT above subst. $DATADIRNAME
71
# this is the directory where the *.{mo,gmo} files are installed
72
localedir='${prefix}/${DATADIRNAME}/locale'
79
if test x$no_x = xyes ; then
80
AC_MSG_ERROR([X development libraries not found])
82
X_LIBS="$X_LIBS -lX11"
87
dnl Check for obsolete (mis-numbered) versions of at-spi
88
dnl oldlibs=`echo $(libdir)/libspi.so.1.*`
89
dnl if test $$oldlibs != "$(libdir)/libspi.so.1.*" ; then
90
dnl AC_MSG_ERROR(Old libspi.1.x library found in $libdir. Please remove $(libdir)/libspi.so.1 and $$oldlibs)
93
dnl Checks for libraries
94
PKG_CHECK_MODULES(LIBSPI, [
95
libbonobo-2.0 >= req_ver_libbonobo
99
AC_SUBST(LIBSPI_CFLAGS)
101
PKG_CHECK_MODULES(REGISTRYD, [
102
libbonobo-2.0 >= req_ver_libbonobo
104
gtk+-2.0 >= req_ver_gtk
105
dbus-glib-1 >= req_ver_dbus
106
gconf-2.0 >= req_ver_gconf
108
AC_SUBST(REGISTRYD_LIBS)
109
AC_SUBST(REGISTRYD_CFLAGS)
111
PKG_CHECK_MODULES(TESTS, [
112
libbonobo-2.0 >= req_ver_libbonobo
114
gtk+-2.0 >= req_ver_gtk
118
AC_CHECK_LIB(socket, connect, TESTS_LIBS="$TESTS_LIBS -lsocket")
121
AC_SUBST(TESTS_CFLAGS)
123
PKG_CHECK_MODULES(ATK_BRIDGE, [
124
libbonobo-2.0 >= req_ver_libbonobo
128
AC_SUBST(ATK_BRIDGE_LIBS)
129
AC_SUBST(ATK_BRIDGE_CFLAGS)
131
PKG_CHECK_MODULES(LIBCSPI, [
132
libbonobo-2.0 >= req_ver_libbonobo
135
AC_SUBST(LIBCSPI_LIBS)
136
AC_SUBST(LIBCSPI_CFLAGS)
138
PKG_CHECK_MODULES(ORBIT, [
142
AC_SUBST(ORBIT_CFLAGS)
145
ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
148
dnl Bonobo and Bonobo-Activation idl files
149
BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
150
LIBBONOBO_IDL_DIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
151
AC_SUBST(BONOBO_ACTIVATION_IDL_DIR)
152
AC_SUBST(LIBBONOBO_IDL_DIR)
155
AC_CHECK_LIB(Xtst, XTestFakeKeyEvent, XTST_LIBS=-lXtst,[
156
AC_MSG_ERROR([Couldn't find the Xtst library. Check config.log])],
161
AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe")
162
if test "x$have_xkb" = "xmaybe"; then
163
AC_CHECK_HEADER(X11/XKBlib.h, have_xkb=yes)
165
if test "x$have_xkb" = "xyes"; then
171
AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi,,-lXext)
172
if test "x$XINPUT_LIBS" = x; then
173
AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
175
AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
176
AC_SUBST(XINPUT_LIBS)
178
dnl Allow disabling XEViE.
179
AC_ARG_ENABLE(xevie, [ --enable-xevie Build with XEViE support [default=no]], enable_xevie="$enableval", enable_xevie=no)
181
if test x$enable_xevie = xyes ; then
183
AC_CHECK_LIB(Xext, XevieStart, have_xevie="yes")
185
if test "x$have_xevie" = "xyes"; then
187
AC_DEFINE(HAVE_XEVIE)
189
AC_CHECK_LIB(Xevie, XevieQueryVersion, have_xevie="maybe",,-lXevie -lXext)
190
if test "x$have_xevie" = "xmaybe"; then
191
AC_CHECK_HEADER(X11/extensions/Xevie.h, have_xevie=yes, [], [#include <X11/Xlib.h>])
192
if test "x$have_xevie" = "xyes"; then
193
XEVIE_LIBS="-lXext -lXevie"
194
AC_DEFINE(HAVE_XEVIE)
201
dnl Allow disabling SMlib
202
AC_ARG_ENABLE(sm, [ --enable-sm Enable session management support [default=yes]], enable_sm="$enableval", enable_sm=yes)
204
if test x$enable_sm = xyes ; then
206
AC_CHECK_LIB(SM, SmcSaveYourselfDone, have_sm="yes")
207
if test x$have_sm = xyes ; then
209
AC_DEFINE(HAVE_SM, , [Building with SM support])
214
AC_ARG_ENABLE(relocate, [ --enable-relocate Relocate to coexist with D-Bus [default=yes]], enable_relocate="$enableval", enable_relocate=no)
215
if test x$enable_relocate = xyes ; then
216
AC_DEFINE(RELOCATE, , [Relocate to coexist with D-Bus])
218
AM_CONDITIONAL(RELOCATE, test x$enable_relocate = xyes)
220
dnl CFLAGS="$CFLAGS -Wall"
225
AC_CHECK_LIB(popt, poptGetContext, [POPT_LIBS="-lpopt"],
226
AC_MSG_ERROR([popt is required to build at-spi.
227
You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]))
229
AC_MSG_CHECKING([for POPT_ARG_FLOAT in popt.h])
230
AC_TRY_CPP([#include <popt.h>
231
#ifndef POPT_ARG_FLOAT
233
#endif], AC_MSG_RESULT(yes), [
235
AC_MSG_ERROR([A newer version of popt is required to build at-spi.
236
You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/])
239
#libtool option to strip symbols starting with cspi
241
LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^cspi]].*"'
242
AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
245
if test "x$enable_rebuilds" = "xyes" && \
247
$PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
248
test -n "$AWK" ; then
257
libspi-1.0-uninstalled.pc
258
libloginhelper-1.0.pc
259
libloginhelper-1.0-uninstalled.pc
261
cspi-1.0-uninstalled.pc
263
docs/reference/Makefile
264
docs/reference/cspi/Makefile
265
docs/reference/idl/Makefile
269
registryd/at-spi-registryd.desktop.in.in
271
login-helper/Makefile
281
Source code location: ${srcdir}
285
Welcome to the wonderful world of Accessibility.
286
http://developer.gnome.org/projects/gap/