1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
AC_INIT([pyatspi], [2.5.3], [accessibility-atspi@lists.linux-foundation.org])
AC_CONFIG_AUX_DIR(config)
LT_RELEASE=$AT_SPI_MAJOR_VERSION.$AT_SPI_MINOR_VERSION
LT_CURRENT=0
LT_REVISION=0
LT_AGE=0
LT_VERSION_INFO='-version-info ${LT_CURRENT}:${LT_REVISION}:${LT_AGE}'
AC_SUBST(LT_VERSION_INFO)
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-xz])
AC_PROG_CC
AM_PATH_PYTHON(2.6)
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG
AC_CONFIG_HEADERS([config.h])
AC_MSG_CHECKING([whether tests are enabled])
AC_ARG_ENABLE(tests,
[AS_HELP_STRING([--enable-tests], [Build with testing enabled])],
enable_tests=$enableval,
enable_tests=no)
AC_MSG_RESULT($enable_tests)
AM_CONDITIONAL(ENABLE_TESTING, test x$enable_tests = xyes)
if test "$enable_tests" = "yes"; then
AM_CHECK_PYMOD(dbus, , , [AC_MSG_ERROR(Could not find python module: dbus)])
PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.0])
AC_SUBST(DBUS_LIBS)
AC_SUBST(DBUS_CFLAGS)
PKG_CHECK_MODULES(GLIB, [glib-2.0])
AC_SUBST(GLIB_LIBS)
AC_SUBST(GLIB_CFLAGS)
PKG_CHECK_MODULES(DBUS_GLIB, [dbus-glib-1 >= 0.7.0])
AC_SUBST(DBUS_GLIB_LIBS)
AC_SUBST(DBUS_GLIB_CFLAGS)
PKG_CHECK_MODULES(GOBJ, [gobject-2.0 >= 2.0.0])
AC_SUBST(GOBJ_LIBS)
AC_SUBST(GOBJ_CFLAGS)
PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.0.0])
AC_SUBST(GMODULE_LIBS)
AC_SUBST(GMODULE_CFLAGS)
PKG_CHECK_MODULES(LIB_XML, [libxml-2.0 >= 2.0.0])
AC_SUBST(LIB_XML_LIBS)
AC_SUBST(LIB_XML_CFLAGS)
PKG_CHECK_MODULES(ATK, [atk >= 2.1.0])
AC_SUBST(ATK_LIBS)
AC_SUBST(ATK_CFLAGS)
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.10.0])
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
fi
PKG_CHECK_MODULES(PYGOBJ, [pygobject-3.0 >= 2.90.1])
AM_CONDITIONAL(SET_GTK_MODULE, test -z "$GTK_MODULE_DIR")
AC_ARG_VAR([GTK_MODULE_DIR], [Where to find the atk-adaptor gtk module])
if test -z "$GTK_MODULE_DIR"; then
GTK_MODULE_DIR=gtk-2.0/modules
fi
AC_PATH_XTRA
AC_CONFIG_FILES([Makefile
pyatspi/Makefile
])
AC_OUTPUT
|