diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-13 22:19:44 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-13 22:19:44 +0000 |
commit | 492e75a7336b4dbfe38207ea3abf8d5bd72376a9 (patch) | |
tree | dd156eee0ba51f7c0c86f86bfe11a78d9133fc1c /configure.ac | |
parent | 2d96fdefb3e9cd83a1523a506df71c3420dc6292 (diff) | |
download | gcc-492e75a7336b4dbfe38207ea3abf8d5bd72376a9.tar.gz |
Move libsanitizer configure logic to subdirectory
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193487 138bc75d-0d04-0410-961f-82ee72b054a4
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-*-*) |