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 Specify a header configuration file
29 AM_CONFIG_HEADER(config.h)
31 dnl Initialize maintainer mode
36 dnl Checks for programs
42 GNOME_PLATFORM_GNOME_2(yes, force)
43 GNOME_COMPILE_WARNINGS(maximum)
45 dnl Initialize libtool
49 dnl internationalization support; uncomment if translatable strings are reintroduced
50 dnl ALL_LINGUAS="ar az be bn ca cs cy da de el en_GB eo es et eu fa fi fr he hi hr id is it ja ko lt mn ms ne nl nn no pa pl pt_BR pt ro ru sk sl sq sr@ije sr@Latn sr sv uk vi zh_CN"
51 dnl AM_GLIB_GNU_GETTEXT
55 dnl NOTE: We need to use a separate automake conditional for this
56 dnl to make this work with the tarballs.
57 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
61 if test x$no_x = xyes ; then
62 AC_MSG_ERROR([X development libraries not found])
64 X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
69 dnl Check for obsolete (mis-numbered) versions of at-spi
70 dnl oldlibs=`echo $(libdir)/libspi.so.1.*`
71 dnl if test $$oldlibs != "$(libdir)/libspi.so.1.*" ; then
72 dnl AC_MSG_ERROR(Old libspi.1.x library found in $libdir. Please remove $(libdir)/libspi.so.1 and $$oldlibs)
75 dnl Checks for libraries
76 PKG_CHECK_MODULES(LIBSPI, \
77 libbonobo-2.0 >= 1.107.0 \
82 AC_SUBST(LIBSPI_CFLAGS)
84 PKG_CHECK_MODULES(REGISTRYD, \
85 libbonobo-2.0 >= 1.107.0 \
88 AC_SUBST(REGISTRYD_LIBS)
89 AC_SUBST(REGISTRYD_CFLAGS)
91 PKG_CHECK_MODULES(TESTS, \
92 libbonobo-2.0 >= 1.107.0 \
97 AC_SUBST(TESTS_CFLAGS)
99 PKG_CHECK_MODULES(ATK_BRIDGE, \
100 libbonobo-2.0 >= 1.107.0 \
102 AC_SUBST(ATK_BRIDGE_LIBS)
103 AC_SUBST(ATK_BRIDGE_CFLAGS)
105 PKG_CHECK_MODULES(LIBCSPI, \
106 libbonobo-2.0 >= 1.107.0 \
108 AC_SUBST(LIBCSPI_LIBS)
109 AC_SUBST(LIBCSPI_CFLAGS)
112 ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
115 dnl Bonobo and Bonobo-Activation idl files
116 BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
117 LIBBONOBO_IDL_DIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
118 AC_SUBST(BONOBO_ACTIVATION_IDL_DIR)
119 AC_SUBST(LIBBONOBO_IDL_DIR)
121 CFLAGS="$CFLAGS $X_LIBS"
123 AC_CHECK_LIB(Xtst, XTestFakeKeyEvent, XTST_LIBS=-lXtst,[
124 AC_MSG_ERROR([Couldn't find the Xtst library. Check config.log])],
129 AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe")
130 if test "x$have_xkb" = "xmaybe"; then
131 AC_CHECK_HEADER(X11/XKBlib.h, have_xkb=yes)
133 if test "x$have_xkb" = "xyes"; then
139 AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi)
140 if test "x$XINPUT_LIBS" = x; then
141 AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
143 AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
144 AC_SUBST(XINPUT_LIBS)
146 dnl Allow disabling XEViE.
147 AC_ARG_ENABLE(xevie, [ --enable-xevie Build with XEViE support [default=yes]], enable_xevie="$enableval", enable_xevie=yes)
149 if test x$enable_xevie = xyes ; then
151 AC_CHECK_LIB(Xext, XevieQueryVersion, have_xevie="yes")
153 if test "x$have_xevie" = "xyes"; then
155 AC_DEFINE(HAVE_XEVIE)
160 dnl CFLAGS="$CFLAGS -Wall"
165 AC_CHECK_LIB(popt, poptGetContext, [POPT_LIBS="-lpopt"],
166 AC_MSG_ERROR([popt is required to build at-spi.
167 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/]))
169 AC_MSG_CHECKING([for POPT_ARG_FLOAT in popt.h])
170 AC_TRY_CPP([#include <popt.h>
171 #ifndef POPT_ARG_FLOAT
173 #endif], AC_MSG_RESULT(yes), [
175 AC_MSG_ERROR([A newer version of popt is required to build at-spi.
176 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/])
180 if test "x$enable_rebuilds" = "xyes" && \
182 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
183 test -n "$AWK" ; then
191 libspi-1.0-uninstalled.pc
193 cspi-1.0-uninstalled.pc
195 docs/reference/Makefile
196 docs/reference/cspi/Makefile
208 Source code location: ${srcdir}
212 Welcome to the wonderful world of Accessibility.
213 http://developer.gnome.org/projects/gap/