diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-17 06:24:50 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-17 06:24:50 +0000 |
commit | fe9a4c1201a3e0867cbc0324c55cfe90dce9415b (patch) | |
tree | 1cfc4aa11a0b71f31000b3fb7abecc367dd52180 /gold/configure.ac | |
parent | ae326da8ebcb14de70678bb726732a1c8923d63c (diff) | |
download | gdb-fe9a4c1201a3e0867cbc0324c55cfe90dce9415b.zip gdb-fe9a4c1201a3e0867cbc0324c55cfe90dce9415b.tar.gz gdb-fe9a4c1201a3e0867cbc0324c55cfe90dce9415b.tar.bz2 |
Add infrastructure for threading support.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r-- | gold/configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gold/configure.ac b/gold/configure.ac index aefd617..d8f71df 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -38,6 +38,21 @@ AC_DEFINE_UNQUOTED(TARGET_SYSTEM_ROOT, "$sysroot", AC_DEFINE_UNQUOTED(TARGET_SYSTEM_ROOT_RELOCATABLE, $sysroot_relocatable, [Whether the system root can be relocated]) +dnl For now threads are a configure time option. +AC_ARG_ENABLE([threads], +[ --enable-threads multi-threaded linking], +[case "${enableval}" in + yes | "") threads=yes ;; + no) threads=no ;; + *) threads=yes ;; + esac], +[threads=no]) +if test "$threads" = "yes"; then + AC_DEFINE(ENABLE_THREADS, 1, + [Define to do multi-threaded linking]) +fi +AM_CONDITIONAL(THREADS, test "$threads" = "yes") + AC_ARG_ENABLE([targets], [ --enable-targets alternative target configurations], [case "${enableval}" in |