diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-08 21:18:26 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-08 21:18:26 +0000 |
commit | 42b15c817a6590e23a268386c5abbed413713fdc (patch) | |
tree | 0bff03ed84c4fe244e59b64d21af8f00e91bf32b /configure.ac | |
parent | f8a8fc7b8b3b566324e82bf5c629272c202cbd01 (diff) | |
download | gcc-42b15c817a6590e23a268386c5abbed413713fdc.tar.gz |
Test for libitm directory present before testing for support.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181179 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/configure.ac b/configure.ac index 888d0514336..efabad4a224 100644 --- a/configure.ac +++ b/configure.ac @@ -493,17 +493,20 @@ if test x$enable_libgomp = x ; then esac fi -# Disable libitm on unsupported hosted systems. -if test x$enable_libitm = x; then - AC_MSG_CHECKING([for libitm support]) - if (srcdir=${srcdir}/libitm; \ - . ${srcdir}/configure.tgt; \ - test -n "$UNSUPPORTED"); then - AC_MSG_RESULT([no]) - noconfigdirs="$noconfigdirs target-libitm" - else - AC_MSG_RESULT([yes]) - fi +# Disable libitm on unsupported systems. +if test -d ${srcdir}/libitm; then + if test x$enable_libitm = x; then + AC_MSG_CHECKING([for libitm support]) + if (srcdir=${srcdir}/libitm; \ + . ${srcdir}/configure.tgt; \ + test -n "$UNSUPPORTED") + then + AC_MSG_RESULT([no]) + noconfigdirs="$noconfigdirs target-libitm" + else + AC_MSG_RESULT([yes]) + fi + fi fi # Disable libssp for some systems. |