2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(OWL chess engine, 0.08, andrey.sofronov@gmail.com)
6 AM_INIT_AUTOMAKE([-Wall])
7 AC_CONFIG_SRCDIR([attacks.h])
8 AC_CONFIG_HEADER([config.h])
10 # Checks for programs.
13 # Checks for libraries.
14 AC_CHECK_LIB([pthread],[pthread_create])
15 AC_CHECK_LIB([m],[floor])
17 # Checks for header files.
19 AC_CHECK_HEADERS([inttypes.h stdlib.h string.h sys/time.h unistd.h])
21 # Checks for typedefs, structures, and compiler characteristics.
30 # Checks for library functions.
32 AC_CHECK_FUNCS([floor getopt gettimeofday memset strchr strerror])
34 AC_ARG_ENABLE(console-debug,
35 [AS_HELP_STRING([--enable-console-debug], [additional debug information after each move.])],
36 [AC_DEFINE([CONSOLE_DEBUG], [1], [enable console debug])
37 AC_DEFINE([STATISTIC_COUNTERS], [1], [calculate statistics])], [])
39 AC_CONFIG_FILES([Makefile])