diff options
author | Andi Kleen <ak@linux.intel.com> | 2013-05-16 19:17:14 -0700 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2013-07-02 08:46:55 -0700 |
commit | 1717da59aed9612becd56aaa1249aac695af4c8a (patch) | |
tree | 0b69e8ee62804482fd7bd951c918abdd9d15c0a3 /configure.in | |
parent | 49186d21ef2d87986bccaf0a7c45c48c91b265f3 (diff) | |
download | glibc-1717da59aed9612becd56aaa1249aac695af4c8a.tar.gz glibc-1717da59aed9612becd56aaa1249aac695af4c8a.tar.xz glibc-1717da59aed9612becd56aaa1249aac695af4c8a.zip |
Add a configure option to enable lock elision and disable by default
Can be enabled with --enable-lock-elision=yes at configure time.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in index cc065dbfab..cf118f8ffa 100644 --- a/configure.in +++ b/configure.in @@ -184,6 +184,15 @@ if test "$enable_stackguard_randomize" = yes; then AC_DEFINE(ENABLE_STACKGUARD_RANDOMIZE) fi +AC_ARG_ENABLE([lock-elision], + AC_HELP_STRING([--enable-lock-elision[=yes/no]], + [Enable lock elision for pthread mutexes and rwlocks by default]), + [enable_lock_elision=$enableval], + [enable_lock_elision=no]) +if test "$enable_lock_elision" = yes ; then + AC_DEFINE(ENABLE_LOCK_ELISION) +fi + dnl Generic infrastructure for drop-in additions to libc. AC_ARG_ENABLE([add-ons], AC_HELP_STRING([--enable-add-ons@<:@=DIRS...@:>@], |