X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=configure.in;h=64395dd9b3915312cc9adf47deccb87f9ce8c13b;hb=0aa0f24d749566b3c3505d9928227cb6e3797b70;hp=20ab2cc9b6dae78da5aa955809852e53c195784e;hpb=5b2995ed921d8f8ab47acb1b746e520af9732dd0;p=mono.git diff --git a/configure.in b/configure.in index 20ab2cc9b6d..64395dd9b39 100644 --- a/configure.in +++ b/configure.in @@ -272,6 +272,18 @@ if test x"$GCC" = xyes; then WARN='-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings' # The runtime code does not respect ANSI C strict aliasing rules CFLAGS="$CFLAGS -fno-strict-aliasing" + + ORIG_CFLAGS=$CFLAGS + CFLAGS="$CFLAGS -Wdeclaration-after-statement" + AC_MSG_CHECKING(for -Wdeclaration-after-statement option to gcc) + AC_TRY_COMPILE([], [ + void main () { } + ], [ + AC_MSG_RESULT(yes) + ], [ + AC_MSG_RESULT(no) + CFLAGS=$ORIG_CFLAGS + ]) else # The Sun Forte compiler complains about inline functions that access static variables # so disable all inlining. @@ -1075,7 +1087,13 @@ if test x$platform_win32 = xno; then dnl ********************************* dnl *** Check for Console 2.0 I/O *** dnl ********************************* - AC_CHECK_HEADERS([term.h termios.h]) + AC_CHECK_HEADERS([curses.h]) + AC_CHECK_HEADERS([term.h], [], [], + [#if HAVE_CURSES_H + #include + #endif + ]) + AC_CHECK_HEADERS([termios.h]) else jdk_headers_found=no AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32", AC_ERROR(bad mingw install?))