X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=configure.in;h=95cfd99cc3c7254bd8d089a0e04389348ea3f071;hb=77903f8d4c716e076aa0639b71c2e954fb69a2e3;hp=02c5aaba4dbf9fe30bf450c013c1d79dd1efeeba;hpb=3882de63100d2cc28fe13cf3144f51a880aa4de2;p=ctsim.git diff --git a/configure.in b/configure.in index 02c5aab..95cfd99 100644 --- a/configure.in +++ b/configure.in @@ -4,7 +4,7 @@ dnl Must reset CDPATH so that bash's cd does not print to stdout dnl CDPATH= AC_INIT(src/ctsim.cpp) -AM_INIT_AUTOMAKE(ctsim,2.0.6) +AM_INIT_AUTOMAKE(ctsim,2.1.0) AM_CONFIG_HEADER(config.h) dnl Checks for programs. @@ -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)