AC_INIT AC_CANONICAL_TARGET dnl AC_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(tsito,0.8.4) AC_PROG_CC AC_PROG_CXX AC_PROG_RANLIB AC_LANG_CPLUSPLUS dnl Check if we should call setbuf or pubsetbuf AC_MSG_CHECKING([whether buffers are standard compliant]) AC_TRY_COMPILE([#include ], [ using namespace std; cin.rdbuf()->pubsetbuf(NULL,0); ],[ac_prot_mem='yes';AC_DEFINE(BUF_STD_COMP,[1], [define to 1 if buffers are standard compliant])], [ac_prot_mem='no']) AC_MSG_RESULT($ac_prot_mem) dnl Configure a place to find the opening book. if test "x${prefix}" = "xNONE"; then BOOKDIR="${ac_default_prefix}/share/${PACKAGE}" else BOOKDIR="${prefix}/share/${PACKAGE}" fi AC_DEFINE_UNQUOTED(BOOKDIR, "${BOOKDIR}") AC_SUBST(BOOKDIR) AC_OUTPUT(Makefile src/Makefile)