diff options
author | Richard Henderson <rth@redhat.com> | 2011-11-08 13:18:26 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-11-08 13:18:26 -0800 |
commit | e948157df85d8bfbb9302263227dab1ff8d9ba74 (patch) | |
tree | 0bff03ed84c4fe244e59b64d21af8f00e91bf32b /configure.ac | |
parent | 86fc3d06b086930c41fa9fa1be82a0fa92699a12 (diff) | |
download | gcc-e948157df85d8bfbb9302263227dab1ff8d9ba74.tar.gz |
Test for libitm directory present before testing for support.
From-SVN: r181179
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. |