diff options
author | Richard Henderson <rth@redhat.com> | 2012-11-13 14:19:44 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2012-11-13 14:19:44 -0800 |
commit | 93bf539055e8ad7972ff3de821b81df3c097001f (patch) | |
tree | dd156eee0ba51f7c0c86f86bfe11a78d9133fc1c /configure.ac | |
parent | beb42d2022899f07712a3537beedbedd13f67fab (diff) | |
download | gcc-93bf539055e8ad7972ff3de821b81df3c097001f.tar.gz |
Move libsanitizer configure logic to subdirectory
From-SVN: r193487
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 6c1b008b616..91ccb3dd0c6 100644 --- a/configure.ac +++ b/configure.ac @@ -538,6 +538,22 @@ if test -d ${srcdir}/libitm; then fi fi +# Disable libsanitizer on unsupported systems. +if test -d ${srcdir}/libsanitizer; then + if test x$enable_libsanitizer = x; then + AC_MSG_CHECKING([for libsanitizer support]) + if (srcdir=${srcdir}/libsanitizer; \ + . ${srcdir}/configure.tgt; \ + test -n "$UNSUPPORTED") + then + AC_MSG_RESULT([no]) + noconfigdirs="$noconfigdirs target-libsanitizer" + else + AC_MSG_RESULT([yes]) + fi + fi +fi + # Disable libquadmath for some systems. case "${target}" in avr-*-*) @@ -550,15 +566,6 @@ case "${target}" in ;; esac -# Disable libsanitizer on all systems but x86 linux for now. -case "${target}" in - x86_64-*-linux-* | i?86-*-linux-*) - ;; - *) - noconfigdirs="$noconfigdirs target-libsanitizer" - ;; -esac - # Disable libssp for some systems. case "${target}" in avr-*-*) |