diff options
author | runge <runge@karlrunge.com> | 2009-05-21 10:32:18 -0400 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2009-05-21 10:32:18 -0400 |
commit | 804335f9d296440bb708ca844f5d89b58b50b0c6 (patch) | |
tree | a59c3c06a829b0a80c5d276d587369e01e92a5fb /configure.ac | |
parent | 2cd48332e02d9c81f67b2d718ad1feed5b0a808e (diff) | |
download | libtdevnc-804335f9d296440bb708ca844f5d89b58b50b0c6.tar.gz libtdevnc-804335f9d296440bb708ca844f5d89b58b50b0c6.zip |
Thread safety for zrle, zlib, tight.
Proposed tight security type fix for debian bug 517422.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3f48b26..65e258c 100644 --- a/configure.ac +++ b/configure.ac @@ -628,6 +628,13 @@ if test "x$with_pthread" != "xno"; then fi AM_CONDITIONAL(HAVE_LIBPTHREAD, test ! -z "$HAVE_LIBPTHREAD") +AC_MSG_CHECKING([for __thread]) +AC_LINK_IFELSE([AC_LANG_PROGRAM(, [static __thread int p = 0])], + [AC_DEFINE(HAVE_TLS, 1, + Define to 1 if compiler supports __thread) + AC_MSG_RESULT([yes])], + [AC_MSG_RESULT([no])]) + # tightvnc-filetransfer implemented using threads: if test -z "$HAVE_LIBPTHREAD"; then with_tightvnc_filetransfer="" |