Index: configure.ac |
=================================================================== |
--- configure.ac (revision 359) |
+++ configure.ac (working copy) |
@@ -40,6 +40,16 @@ |
[use the given protoc command instead of building a new one when building tests (useful for cross-compiling)])], |
[],[with_protoc=no]) |
+# Checks for --without-thread-safety. |
+AC_ARG_WITH([thread_safety], |
+ [AS_HELP_STRING([--without-thread-safety], |
+ [do not provide thread safety. use this if the platform does not have thread library.])]) |
kenton
2010/12/09 18:18:42
"use thread-unsafe code if no supported threading
|
+ |
+AS_IF([test "x${with_thread_safety}" = "xno"],[ |
+ AC_MSG_WARN([protobuf without thread safety.]) |
+ AC_DEFINE(PROTOBUF_WITHOUT_THREAD_SAFETY, 1, [define if without thread safety support.]) |
kenton
2010/12/09 18:18:42
"define if thread-safety is not needed."
|
+]) |
+ |
# Checks for programs. |
AC_PROG_CC |
AC_PROG_CXX |