X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=configure.in;h=19ef4e0d789d2bbdbbe5941d28a9f327ac299222;hp=22e3b52f11c29089c2d5af6cad45fc71529b878c;hb=ab42b6103011c53b1609fe477c90abbabeaedc8e;hpb=38de20f573759f37d2c03262ed35a80e80b11750 diff --git a/configure.in b/configure.in index 22e3b52..19ef4e0 100644 --- a/configure.in +++ b/configure.in @@ -51,7 +51,7 @@ fi 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 @@ -109,6 +109,14 @@ dnl AC_ADD_GCC_CFLAGS([-g -O2 -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)