1 AC_INIT(idl/Accessibility.idl)
5 AT_SPI_MICRO_VERSION=10
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.12.0])
30 m4_define([req_ver_libbonobo], [1.107.0])
31 m4_define([req_ver_gail], [1.3.0])
32 m4_define([req_ver_gtk], [2.0.0])
34 dnl Specify a header configuration file
35 AM_CONFIG_HEADER(config.h)
37 dnl Initialize maintainer mode
40 dnl translation of any at-spi strings: used only for .server
41 IT_PROG_INTLTOOL([0.35.0])
43 dnl Checks for programs
49 GNOME_COMPILE_WARNINGS(maximum)
51 dnl Initialize libtool
55 GETTEXT_PACKAGE="${PACKAGE}"
56 AC_SUBST(GETTEXT_PACKAGE)
57 dnl internationalization support; uncomment if translatable strings are reintroduced
60 # AM_GLIB_GNU_GETTEXT above subst. $DATADIRNAME
61 # this is the directory where the *.{mo,gmo} files are installed
62 localedir='${prefix}/${DATADIRNAME}/locale'
69 if test x$no_x = xyes ; then
70 AC_MSG_ERROR([X development libraries not found])
72 X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
77 dnl Check for obsolete (mis-numbered) versions of at-spi
78 dnl oldlibs=`echo $(libdir)/libspi.so.1.*`
79 dnl if test $$oldlibs != "$(libdir)/libspi.so.1.*" ; then
80 dnl AC_MSG_ERROR(Old libspi.1.x library found in $libdir. Please remove $(libdir)/libspi.so.1 and $$oldlibs)
83 dnl Checks for libraries
84 PKG_CHECK_MODULES(LIBSPI, [
85 libbonobo-2.0 >= req_ver_libbonobo
87 gtk+-2.0 >= req_ver_gtk
91 AC_SUBST(LIBSPI_CFLAGS)
93 PKG_CHECK_MODULES(REGISTRYD, [
94 libbonobo-2.0 >= req_ver_libbonobo
96 gtk+-2.0 >= req_ver_gtk
98 AC_SUBST(REGISTRYD_LIBS)
99 AC_SUBST(REGISTRYD_CFLAGS)
101 PKG_CHECK_MODULES(TESTS, [
102 libbonobo-2.0 >= req_ver_libbonobo
104 gtk+-2.0 >= req_ver_gtk
108 AC_SUBST(TESTS_CFLAGS)
110 PKG_CHECK_MODULES(ATK_BRIDGE, [
111 libbonobo-2.0 >= req_ver_libbonobo
114 AC_SUBST(ATK_BRIDGE_LIBS)
115 AC_SUBST(ATK_BRIDGE_CFLAGS)
117 PKG_CHECK_MODULES(LIBCSPI, [
118 libbonobo-2.0 >= req_ver_libbonobo
121 AC_SUBST(LIBCSPI_LIBS)
122 AC_SUBST(LIBCSPI_CFLAGS)
124 PKG_CHECK_MODULES(ORBIT, [
128 AC_SUBST(ORBIT_CFLAGS)
131 ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
134 dnl Bonobo and Bonobo-Activation idl files
135 BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
136 LIBBONOBO_IDL_DIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
137 AC_SUBST(BONOBO_ACTIVATION_IDL_DIR)
138 AC_SUBST(LIBBONOBO_IDL_DIR)
142 AC_CHECK_LIB(Xtst, XTestFakeKeyEvent, XTST_LIBS=-lXtst,[
143 AC_MSG_ERROR([Couldn't find the Xtst library. Check config.log])],
148 AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe")
149 if test "x$have_xkb" = "xmaybe"; then
150 AC_CHECK_HEADER(X11/XKBlib.h, have_xkb=yes)
152 if test "x$have_xkb" = "xyes"; then
158 AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi,,-lXext)
159 if test "x$XINPUT_LIBS" = x; then
160 AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
162 AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
163 AC_SUBST(XINPUT_LIBS)
165 dnl Allow disabling XEViE.
166 AC_ARG_ENABLE(xevie, [ --enable-xevie Build with XEViE support [default=yes]], enable_xevie="$enableval", enable_xevie=yes)
168 if test x$enable_xevie = xyes ; then
170 AC_CHECK_LIB(Xext, XevieStart, have_xevie="yes")
172 if test "x$have_xevie" = "xyes"; then
174 AC_DEFINE(HAVE_XEVIE)
176 AC_CHECK_LIB(Xevie, XevieQueryVersion, have_xevie="maybe",,-lXext)
177 if test "x$have_xevie" = "xmaybe"; then
178 AC_CHECK_HEADER(X11/extensions/Xevie.h, have_xevie=yes)
179 if test "x$have_xevie" = "xyes"; then
180 XEVIE_LIBS="-lXext -lXevie"
181 AC_DEFINE(HAVE_XEVIE)
188 dnl CFLAGS="$CFLAGS -Wall"
193 AC_CHECK_LIB(popt, poptGetContext, [POPT_LIBS="-lpopt"],
194 AC_MSG_ERROR([popt is required to build at-spi.
195 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]))
197 AC_MSG_CHECKING([for POPT_ARG_FLOAT in popt.h])
198 AC_TRY_CPP([#include <popt.h>
199 #ifndef POPT_ARG_FLOAT
201 #endif], AC_MSG_RESULT(yes), [
203 AC_MSG_ERROR([A newer version of popt is required to build at-spi.
204 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/])
207 #libtool option to strip symbols starting with cspi
209 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^cspi]].*"'
210 AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
213 if test "x$enable_rebuilds" = "xyes" && \
215 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
216 test -n "$AWK" ; then
225 libspi-1.0-uninstalled.pc
226 libloginhelper-1.0.pc
228 cspi-1.0-uninstalled.pc
230 docs/reference/Makefile
231 docs/reference/cspi/Makefile
232 docs/reference/idl/Makefile
237 login-helper/Makefile
245 Source code location: ${srcdir}
249 Welcome to the wonderful world of Accessibility.
250 http://developer.gnome.org/projects/gap/