|
|
@ -218,6 +218,14 @@
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
AC_MSG_RESULT(ok)
|
|
|
|
AC_MSG_RESULT(ok)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# check if our target supports thread local storage
|
|
|
|
|
|
|
|
AC_MSG_CHECKING(for thread local storage __thread support)
|
|
|
|
|
|
|
|
AC_TRY_COMPILE([#include <stdlib.h>],
|
|
|
|
|
|
|
|
[ void somefunc (void) { static __thread int i; i = 1; i++; } ],
|
|
|
|
|
|
|
|
[AC_DEFINE([TLS], [1], [Thread local storage])
|
|
|
|
|
|
|
|
AC_MSG_RESULT([yes]) ],
|
|
|
|
|
|
|
|
[AC_MSG_RESULT([no])])
|
|
|
|
|
|
|
|
|
|
|
|
#Enable support for gcc compile time security options. There is no great way to do detection of valid cflags that I have found
|
|
|
|
#Enable support for gcc compile time security options. There is no great way to do detection of valid cflags that I have found
|
|
|
|
#AX_CFLAGS_GCC_OPTION don't seem to do a better job than the code below and are a pain because of extra m4 files etc.
|
|
|
|
#AX_CFLAGS_GCC_OPTION don't seem to do a better job than the code below and are a pain because of extra m4 files etc.
|
|
|
|
#These flags seem to be supported on CentOS 5+, Ubuntu 8.04+, and FedoreCore 11+
|
|
|
|
#These flags seem to be supported on CentOS 5+, Ubuntu 8.04+, and FedoreCore 11+
|
|
|
|