projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7650fa6
)
added --enable-threads flag to enable experimental multi thread support
author
pk910
<philipp@zoelle1.de>
Sat, 14 Jan 2012 09:12:35 +0000
(10:12 +0100)
committer
pk910
<philipp@zoelle1.de>
Sat, 14 Jan 2012 09:12:35 +0000
(10:12 +0100)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index 745ed802335334ebe35f791ea341bd957d07450f..b118cae671fd144c8e7ed399d738769bee2b9d58 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-45,13
+45,23
@@
if test x"$do_have_ssl" = xyes; then
AC_DEFINE([HAVE_SSL], 1, [Define if you are using SSL])
fi
AC_DEFINE([HAVE_SSL], 1, [Define if you are using SSL])
fi
+do_have_threads="no";
AC_CHECK_LIB(pthread, pthread_create, [
AC_CHECK_HEADERS(pthread.h, [
AC_CHECK_LIB(pthread, pthread_create, [
AC_CHECK_HEADERS(pthread.h, [
- LIBS="$LIBS -lpthread"
- AC_DEFINE([HAVE_THREADS], 1, [Define if you have Threads])
+ do_have_threads="yes"
])
])
])
])
+AC_ARG_ENABLE([threads],
+ [AS_HELP_STRING([--enable-threads], [use threads if possible])],
+ [
+ if test x"$do_have_threads" = xyes; then
+ LIBS="$LIBS -lpthread"
+ AC_DEFINE([HAVE_THREADS], 1, [Define if you have Threads])
+ fi
+ ],
+ [])
+
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug], [debug mode (compile using -O0 -Wall -Wshadow -Werror)])],
[CFLAGS='-g -O0 -Wall -Wshadow -Werror'],
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug], [debug mode (compile using -O0 -Wall -Wshadow -Werror)])],
[CFLAGS='-g -O0 -Wall -Wshadow -Werror'],