1 AC_INIT(idl/Accessibility.idl)
5 AT_SPI_MICRO_VERSION=10
6 AT_SPI_INTERFACE_AGE=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 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
50 dnl ALL_LINGUAS="ar az be bn ca cs cy da de el eo es et eu fa fi fr he hi id is it ja ko lt mn ms ne nl nn no pl pt_BR pt ro ru sk sl sq sr@Latn sr sv uk vi zh_CN"
51 dnl AM_GLIB_GNU_GETTEXT
53 AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
55 gtk_doc_min_version=0.6
57 gtk_doc_version=`gtkdoc-mkdb --version`
58 AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version])
60 my @installed = split /\./, "$gtk_doc_version";
61 my @required = split /\./, "$gtk_doc_min_version";
63 while (scalar @required) {
64 my \$installed_ver = (shift @installed || 0);
65 my \$required_ver = shift @required;
66 exit 1 if (\$installed_ver < \$required_ver);
67 exit 0 if (\$installed_ver > \$required_ver);
78 dnl Let people disable the gtk-doc stuff.
79 AC_ARG_ENABLE(gtk-doc, [ --enable-gtk-doc Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
81 if test x$enable_gtk_doc = xauto ; then
82 if test x$GTKDOC = xtrue ; then
89 dnl NOTE: We need to use a separate automake conditional for this
90 dnl to make this work with the tarballs.
91 AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
95 if test x$no_x = xyes ; then
96 AC_MSG_ERROR([X development libraries not found])
98 X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
103 dnl Check for obsolete (mis-numbered) versions of at-spi
104 dnl oldlibs=`echo $(libdir)/libspi.so.1.*`
105 dnl if test $$oldlibs != "$(libdir)/libspi.so.1.*" ; then
106 dnl AC_MSG_ERROR(Old libspi.1.x library found in $libdir. Please remove $(libdir)/libspi.so.1 and $$oldlibs)
109 dnl Checks for libraries
110 PKG_CHECK_MODULES(LIBSPI, \
111 libbonobo-2.0 >= 1.107.0 \
115 AC_SUBST(LIBSPI_LIBS)
116 AC_SUBST(LIBSPI_CFLAGS)
118 PKG_CHECK_MODULES(REGISTRYD, \
119 libbonobo-2.0 >= 1.107.0 \
122 REGISTRYD_LIBS="$REGISTRYD_LIBS"
123 AC_SUBST(REGISTRYD_LIBS)
124 AC_SUBST(REGISTRYD_CFLAGS)
126 PKG_CHECK_MODULES(TESTS, \
127 libbonobo-2.0 >= 1.107.0 \
132 AC_SUBST(TESTS_CFLAGS)
134 PKG_CHECK_MODULES(ATK_BRIDGE, \
135 libbonobo-2.0 >= 1.107.0 \
137 ATK_BRIDGE_LIBS="$ATK_BRIDGE_LIBS"
138 AC_SUBST(ATK_BRIDGE_LIBS)
139 AC_SUBST(ATK_BRIDGE_CFLAGS)
141 PKG_CHECK_MODULES(LIBCSPI, \
142 libbonobo-2.0 >= 1.107.0 \
144 AC_SUBST(LIBCSPI_LIBS)
145 AC_SUBST(LIBCSPI_CFLAGS)
148 ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
151 dnl Bonobo and Bonobo-Activation idl files
152 BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
153 LIBBONOBO_IDL_DIR="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
154 AC_SUBST(BONOBO_ACTIVATION_IDL_DIR)
155 AC_SUBST(LIBBONOBO_IDL_DIR)
157 CFLAGS="$CFLAGS $X_LIBS"
159 AC_CHECK_LIB(Xtst, XTestFakeKeyEvent, XTST_LIBS=-lXtst)
160 if test "x$XTST_LIBS" = x; then
161 AC_MSG_ERROR(Couldn't find the Xtst library. Check config.log for details)
166 AC_CHECK_LIB(X11, XkbQueryExtension, have_xkb="maybe")
167 if test "x$have_xkb" = "xmaybe"; then
168 AC_CHECK_HEADER(X11/XKBlib.h, have_xkb=yes)
170 if test "x$have_xkb" = "xyes"; then
176 AC_CHECK_LIB(Xi, XOpenDevice, XINPUT_LIBS=-lXi)
177 if test "x$XINPUT_LIBS" = x; then
178 AC_MSG_ERROR(Couldn't find the XInput library. Check config.log for details)
180 AC_CHECK_HEADER(X11/extensions/XInput.h, have_xinput=yes)
181 AC_SUBST(XINPUT_LIBS)
183 dnl Allow disabling XEViE.
184 AC_ARG_ENABLE(xevie, [ --enable-xevie Build with XEViE support [default=yes]], enable_xevie="$enableval", enable_xevie=yes)
186 if test x$enable_xevie = xyes ; then
188 AC_CHECK_LIB(Xext, XevieQueryVersion, have_xevie="yes")
190 if test "x$have_xevie" = "xyes"; then
192 AC_DEFINE(HAVE_XEVIE)
197 dnl CFLAGS="$CFLAGS -Wall"
202 AC_CHECK_LIB(popt, poptGetContext, [POPT_LIBS="-lpopt"],
203 AC_MSG_ERROR([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/]))
206 AC_MSG_CHECKING([for POPT_ARG_FLOAT in popt.h])
207 AC_TRY_CPP([#include <popt.h>
208 #ifndef POPT_ARG_FLOAT
210 #endif], AC_MSG_RESULT(yes), [
212 AC_MSG_ERROR([A newer version of popt is required to build at-spi.
213 You can download the latest version from ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/])
217 if test "x$enable_rebuilds" = "xyes" && \
219 $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
220 test -n "$AWK" ; then
230 docs/reference/Makefile
231 docs/reference/cspi/Makefile
243 Source code location: ${srcdir}
247 Welcome to the wonderful world of Accessibility.
248 http://developer.gnome.org/projects/gap/