Commit 942597bc authored by Nick Mathewson's avatar Nick Mathewson 👁
Browse files

r9326@totoro: nickm | 2006-11-15 16:17:35 -0500

 Try to detect mipspro compiler. Add -c99 to cflags if we find it.


svn:r8955
parent 992a738c
......@@ -157,6 +157,21 @@ if test $bwin32 = true; then
AC_DEFINE(MS_WINDOWS, 1, [Define to 1 if we are building for Windows.])
fi
dnl Enable C99 when compiling with MIPSpro
AC_MSG_CHECKING([for MIPSpro compiler])
AC_TRY_COMPILE([], [
#if (defined(__sgi) && defined(_COMPILER_VERSION))
#error
return x(y);
#endif
],
bmipspro=false; AC_MSG_RESULT([no]),
bmipspro=true; AC_MSG_RESULT([yes]))
if test $bmipspro = true; then
CFLAGS="$CFLAGS -c99"
fi
AC_SEARCH_LIBS(socket, [socket])
AC_SEARCH_LIBS(gethostbyname, [nsl])
AC_SEARCH_LIBS(dlopen, [dl])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment