Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(385)

Unified Diff: configure.ac

Issue 3540041: Add --without-thread-safety support for platforms without thread libraries. Base URL: http://protobuf.googlecode.com/svn/trunk/
Patch Set: Created 13 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/google/protobuf/stubs/common.cc » ('j') | src/google/protobuf/stubs/common.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | src/google/protobuf/stubs/common.cc » ('j') | src/google/protobuf/stubs/common.cc » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b