summaryrefslogtreecommitdiffstats
path: root/m4/tls.m4
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: use AC_LANG_SOURCE to suppress warningsSami Kerola2011-03-081-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Messages bellow be supressed by using AC_LANG_SOURCE macro around code test blocks. m4/tls.m4:13: AX_CHECK_TLS is expanded from... configure.ac:335: the top level configure.ac:335: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body ../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from... ../../lib/autoconf/general.m4:2660: _AC_LINK_IFELSE is expanded from... ../../lib/autoconf/general.m4:2677: AC_LINK_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from... ../../lib/autoconf/general.m4:2728: _AC_RUN_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from... ../../lib/autoconf/general.m4:2747: AC_RUN_IFELSE is expanded from... ../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from... ../../lib/autoconf/general.m4:2030: AC_CACHE_VAL is expanded from... ../../lib/autoconf/general.m4:2051: AC_CACHE_CHECK is expanded from... m4/tls.m4:13: AX_CHECK_TLS is expanded from... configure.ac:335: the top level Reference to documentation; http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html#id1168723648533 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: rewrite TLS detectionKarel Zak2009-12-041-41/+104
| | | | | | | | | | | | | | | | | | * use more robust tls.m4 from gcc project The old version (from util-linux-ng) used AC_TRY_COMPILE. That's wrong. We need to use AC_RUN_IFELSE to check that the result is link-able and executable. The new version also test it TLS really works in multi-thread applications. * we need to detect TLS usability for cross-compiling * this new version supports __thread keyword only, it seems that we needn't to care about anything other Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-tlsKarel Zak2009-05-221-0/+48
* add AX_TLS autoconf macro * add --disabletls option * cleanup gen_uuid.c code to remove gcc warnings when compiled without TLS macro. Signed-off-by: Karel Zak <kzak@redhat.com>