1 AC_INIT(idl/Accessibility.idl)
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.7.2])
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
42 dnl Checks for programs
48 GNOME_COMPILE_WARNINGS(maximum)
50 dnl Initialize libtool
54 dnl DO NOT PUT THIS BACK: at-spi DOES NOT INCLUDE TRANSLATABLE STRINGS. wph 2006.
56 dnl internationalization support; uncomment if translatable strings are reintroduced
57 dnl ALL_LINGUAS="ar az be bg bn bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr gl gu he hi hr hu id is it ja ka ko lt mn mr ms nb ne nl nn no or pa pl pt_BR pt ro ru rw sk sl sq sr@ije sr@Latn sr sv th ug uk vi wa xh zh_CN zh_HK zh_TW"
58 dnl AM_GLIB_GNU_GETTEXT
64 if test x$no_x = xyes ; then
65 AC_MSG_ERROR([X development libraries not found])
67 X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
72 dnl Check for obsolete (mis-numbered) versions of at-spi
73 dnl oldlibs=`echo $(libdir)/libspi.so.1.*`
74 dnl if test $$oldlibs != "$(libdir)/libspi.so.1.*" ; then
75 dnl AC_MSG_ERROR(Old libspi.1.x library found in $libdir. Please remove $(libdir)/libspi.so.1 and $$oldlibs)
78 dnl Checks for libraries
79 PKG_CHECK_MODULES(LIBSPI, [
80 libbonobo-2.0 >= req_ver_libbonobo
82 gtk+-2.0 >= req_ver_gtk
86 AC_SUBST(LIBSPI_CFLAGS)
88 PKG_CHECK_MODULES(REGISTRYD, [
89 libbonobo-2.0 >= req_ver_libbonobo
91 gtk+-2.0 >= req_ver_gtk
93 AC_SUBST(REGISTRYD_LIBS)
94 AC_SUBST(REGISTRYD_CFLAGS)
96 PKG_CHECK_MODULES(TESTS, [
97 libbonobo-2.0 >= req_ver_libbonobo
99 gtk+-2.0 >= req_ver_gtk
103 AC_SUBST(TESTS_CFLAGS)
105 PKG_CHECK_MODULES(ATK_BRIDGE, [
106 libbonobo-2.0 >= req_ver_libbonobo
109 AC_SUBST(ATK_BRIDGE_LIBS)
110 AC_SUBST(ATK_BRIDGE_CFLAGS)
112 PKG_CHECK_MODULES(LIBCSPI, [
113 libbonobo-2.0 >= req_ver_libbonobo
116 AC_SUBST(LIBCSPI_LIBS)
117 AC_SUBST(LIBCSPI_CFLAGS)
120 ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
123 dnl Bonobo and Bonobo-Activation idl files
124 BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
125 LIBBONOBO_IDL_DIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
126 AC_SUBST(BONOBO_ACTIVATION_IDL_DIR)
127 AC_SUBST(LIBBONOBO_IDL_DIR)
131 AC_CHECK_LIB(Xtst, XTestFakeKeyEvent, XTST_LIBS=-lXtst,[
132 AC_MSG_ERROR([Couldn't find the Xtst library. Check config.log])],
137 AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe")
138 if test "x$have_xkb" = "xmaybe"; then
139 AC_CHECK_HEADER(X11/XKBlib.h, have_xkb=yes)
141 if test "x$have_xkb" = "xyes"; then
147 AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi,,-lXext)
148 if test "x$XINPUT_LIBS" = x; then
149 AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
151 AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
152 AC_SUBST(XINPUT_LIBS)
154 dnl Allow disabling XEViE.
155 AC_ARG_ENABLE(xevie, [ --enable-xevie Build with XEViE support [default=yes]], enable_xevie="$enableval", enable_xevie=yes)
157 if test x$enable_xevie = xyes ; then
159 AC_CHECK_LIB(Xext, XevieStart, have_xevie="yes")
161 if test "x$have_xevie" = "xyes"; then
163 AC_DEFINE(HAVE_XEVIE)
165 AC_CHECK_LIB(Xevie, XevieQueryVersion, have_xevie="maybe",,-lXext)
166 if test "x$have_xevie" = "xmaybe"; then
167 AC_CHECK_HEADER(X11/extensions/Xevie.h, have_xevie=yes)
168 if test "x$have_xevie" = "xyes"; then
169 XEVIE_LIBS="-lXext -lXevie"
170 AC_DEFINE(HAVE_XEVIE)
177 dnl CFLAGS="$CFLAGS -Wall"
182 AC_CHECK_LIB(popt, poptGetContext, [POPT_LIBS="-lpopt"],
183 AC_MSG_ERROR([popt is required to build at-spi.
184 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]))
186 AC_MSG_CHECKING([for POPT_ARG_FLOAT in popt.h])
187 AC_TRY_CPP([#include <popt.h>
188 #ifndef POPT_ARG_FLOAT
190 #endif], AC_MSG_RESULT(yes), [
192 AC_MSG_ERROR([A newer version of popt is required to build at-spi.
193 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/])
197 if test "x$enable_rebuilds" = "xyes" && \
199 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
200 test -n "$AWK" ; then
208 libspi-1.0-uninstalled.pc
209 libloginhelper-1.0.pc
211 cspi-1.0-uninstalled.pc
213 docs/reference/Makefile
214 docs/reference/cspi/Makefile
219 login-helper/Makefile
227 Source code location: ${srcdir}
231 Welcome to the wonderful world of Accessibility.
232 http://developer.gnome.org/projects/gap/