dnl CDPATH=
AC_INIT(src/ctsim.cpp)
-AM_INIT_AUTOMAKE(ctsim,2.0.7)
+AM_INIT_AUTOMAKE(ctsim,3.0.0alpha4)
AM_CONFIG_HEADER(config.h)
dnl Checks for programs.
AC_CHECK_LIB(curses, main, [curses=true], [curses=false])
AC_CHECK_LIB(ncurses, main, [ncurses=true], [ncurses=false])
AC_CHECK_LIB(g2, main, [g2=true], [g2=false])
+AC_CHECK_LIB(readline, main, [readline=true; AC_DEFINE(HAVE_READLINE)], readline=false)
wxwin=false
AC_CHECK_LIB(wx_gtk, main, [wxwin=true; wx_gtk=true; AC_DEFINE(HAVE_WXWINDOWS)])
AC_CHECK_LIB(wx, main, [wxwin=true; wx_msw=true; AC_DEFINE(HAVE_WXWINDOWS)])
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h g2.h assert.h sys/time.h sys/resource.h sys/time.h sstream)
+AC_CHECK_HEADERS(fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h g2.h assert.h sys/time.h sys/resource.h sys/time.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
CFLAGS="-g -DDEBUG"
AC_DEFINE(DEBUG)
else
-dnl AC_ADD_GCC_CFLAGS([-g -O2 -DNDEBUG])
- CFLAGS="-g -O3 -DNDEBUG"
+dnl AC_ADD_GCC_CFLAGS([-O2 -DNDEBUG])
+ CFLAGS="-O3 -DNDEBUG"
AC_DEFINE(NDEBUG)
fi
+AC_MSG_CHECKING(sstream)
+ if [ test -f /usr/include/sstream || test -f /usr/include/g++/sstream ||
+ test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream ]; then
+ AC_DEFINE(HAVE_SSTREAM)
+ AC_MSG_RESULT(yes)
+fi
+AC_MSG_RESULT(no)
+
AC_ADD_GCC_CFLAGS([-Wall])
AC_MSG_CHECKING(whether to enable verbose warnings)