[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Implement --disable-threads
Update of /home/or/cvsroot/tor
In directory moria.mit.edu:/tmp/cvs-serv29581
Modified Files:
configure.in
Log Message:
Implement --disable-threads
Index: configure.in
===================================================================
RCS file: /home/or/cvsroot/tor/configure.in,v
retrieving revision 1.189
retrieving revision 1.190
diff -u -d -r1.189 -r1.190
--- configure.in 7 May 2005 05:55:05 -0000 1.189
+++ configure.in 10 May 2005 20:02:52 -0000 1.190
@@ -14,11 +14,27 @@
fi
AC_ARG_ENABLE(debug,
-[ --enable-debug compiles with debugging info],
+ AC_HELP_STRING(--enable-debug, compile with debugging info),
[if test x$enableval = xyes; then
CFLAGS="$CFLAGS -g"
fi])
+AC_ARG_ENABLE(threads,
+ AC_HELP_STRING(--disable-threads, disable multi-threading support))
+
+if test x$enable_threads = x; then
+ case $ac_sys_system in
+ NetBSD*)
+ enable_threads="no";;
+ *)
+ enable_threads="yes";;
+ esac
+fi
+
+if test $enable_threads = "yes"; then
+ AC_DEFINE(ENABLE_THREADS, 1, [Defined if we will try to use multithreading])
+fi
+
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_RANLIB