dnl -*-m4-*- dnl Process this file with autoconf to produce a configure script. dnl -------------------------------------------------------------- dnl configure.in for Eliot dnl -------------------------------------------------------------- dnl AC_REVISION($Id: configure.in,v 1.5 2004/06/26 14:47:39 ipkiss Exp $) AC_INIT(eliot, 1.4) AC_CONFIG_SRCDIR(wxwin/main.cc) AM_INIT_AUTOMAKE AM_CONFIG_HEADER(config.h) AM_OPTIONS_WXCONFIG dnl -------------------------------------------------------------- dnl Checks for programs. dnl -------------------------------------------------------------- AC_PROG_INSTALL AC_PROG_CC AC_PROG_CXX AC_PROG_MAKE_SET AC_PROG_RANLIB dnl -------------------------------------------------------------- dnl Checks for libraries. dnl -------------------------------------------------------------- AM_PATH_WXCONFIG(2.4.0, wxWin=1) if test "$wxWin" != 1; then AC_MSG_ERROR([ wxWindows must be installed on your system but wx-config script couldn't be found. Please check that wx-config is in path, the directory where wxWindows libraries are installed (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH or equivalent variable and wxWindows version is 2.4.0 or above. ]) fi AM_CPPFLAGS="$AM_CPPFLAGS $WX_CPPFLAGS" AM_CXXFLAGS="$AM_CXXFLAGS $WX_CXXFLAGS_ONLY" AM_CFLAGS="$AM_CFLAGS $WX_CFLAGS_ONLY" AM_LDFLAGS="$AM_LDFLAGS $WX_LIBS" dnl -------------------------------------------------------------- dnl Checks for header files. dnl -------------------------------------------------------------- AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h unistd.h sys/wait.h) dnl -------------------------------------------------------------- dnl Checks for typedefs, structures, and compiler characteristics. dnl -------------------------------------------------------------- AC_C_CONST AC_TYPE_SIZE_T dnl AC_C_BIGENDIAN AC_C_INLINE AC_CHECK_SIZEOF(char, 1) AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(int *, 4) AC_CHECK_SIZEOF(int, 4) AC_CHECK_SIZEOF(long, 4) AC_CHECK_SIZEOF(long long, 0) dnl -------------------------------------------------------------- dnl Checks for library functions. dnl -------------------------------------------------------------- AC_FUNC_MEMCMP dnl -------------------------------------------------------------- dnl Output dnl -------------------------------------------------------------- AC_CONFIG_FILES( dic/Makefile game/Makefile wxwin/Makefile utils/Makefile Makefile) AC_OUTPUT