2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([xaut], [0.2.0], [chrsprkr3@gmail.com])
6 AC_CONFIG_SRCDIR([config.h.in])
7 AC_CONFIG_HEADERS([config.h])
13 # Checks for libraries.
14 AC_CHECK_LIB([X11], [XOpenDisplay], [], [AC_MSG_ERROR([X11 development libraries not found. Exiting.])])
15 AC_CHECK_LIB([Xtst], [XTestFakeButtonEvent], [], [AC_MSG_ERROR([X11 test libraries not found. Exiting.])])
17 #Selects the current python version - the pattern should be obvious
18 AC_CHECK_LIB([python2.5], [Py_Main], [LOCAL_PYTHON_VERSION="2.5"])
19 AC_CHECK_LIB([python2.6], [Py_Main], [LOCAL_PYTHON_VERSION="2.6"])
21 if test "x$LOCAL_PYTHON_VERSION" = "x"; then
22 echo Python library not found. Exiting.
25 echo Using python$LOCAL_PYTHON_VERSION
26 AC_SUBST(LOCAL_PYTHON_VERSION)
29 AC_CHECK_PROG([swig_prog], [swig], [swig], [])
30 if test "x$swig_prog" = "x"; then
31 echo swig not found. Exiting.
35 # Checks for header files.
37 AC_CHECK_HEADERS([float.h limits.h stdlib.h string.h unistd.h])
39 # Checks for typedefs, structures, and compiler characteristics.
43 # Checks for library functions.
46 AC_CHECK_FUNCS([floor memset regcomp strstr])
48 AC_CONFIG_FILES([Makefile