[or-cvs] r8955: Try to detect mipspro compiler. Add -c99 to cflags if we fin (tor/trunk)

nickm at seul.org nickm at seul.org
Wed Nov 15 21:17:50 UTC 2006


Author: nickm
Date: 2006-11-15 16:17:48 -0500 (Wed, 15 Nov 2006)
New Revision: 8955

Modified:
   tor/trunk/
   tor/trunk/configure.in
Log:
 r9326 at totoro:  nickm | 2006-11-15 16:17:35 -0500
 Try to detect mipspro compiler. Add -c99 to cflags if we find it.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r9326] on 96637b51-b116-0410-a10e-9941ebb49b64

Modified: tor/trunk/configure.in
===================================================================
--- tor/trunk/configure.in	2006-11-15 01:25:06 UTC (rev 8954)
+++ tor/trunk/configure.in	2006-11-15 21:17:48 UTC (rev 8955)
@@ -157,6 +157,21 @@
 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])



More information about the tor-commits mailing list