aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2011-11-08 08:06:25 -0800
committerRichard Henderson <rth@gcc.gnu.org>2011-11-08 08:06:25 -0800
commit01f3428cafc13f5ae765d304494cac750892bb80 (patch)
tree257f6d91d2117a12fa1ed620ee8ebfeabd03a360 /configure.ac
parentf2906a8e9e0ed8aba6a7e39a1986f785e9d467f1 (diff)
downloadgcc-01f3428cafc13f5ae765d304494cac750892bb80.zip
gcc-01f3428cafc13f5ae765d304494cac750892bb80.tar.gz
gcc-01f3428cafc13f5ae765d304494cac750892bb80.tar.bz2
Check for libitm support at top-level.
From-SVN: r181168
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac23
1 files changed, 8 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac
index 4bca6d8..0a30880 100644
--- a/configure.ac
+++ b/configure.ac
@@ -493,22 +493,15 @@ if test x$enable_libgomp = x ; then
esac
fi
-# Disable libitm on non POSIX hosted systems.
-if test x$enable_libitm = x ; then
- # Enable libitm by default on hosted POSIX systems.
- case "${target}" in
- *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu)
- ;;
- *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
- ;;
- *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
- ;;
- *-*-darwin* | *-*-aix*)
- ;;
- *)
+# Disable libitm on unsupported hosted systems.
+if test x$enable_libitm = x; then
+ AC_MSG_CHECKING([for libitm support])
+ if (. ${srcdir}/libitm/configure.tgt; test -n "$UNSUPPORTED"); then
+ AC_MSG_RESULT([no])
noconfigdirs="$noconfigdirs target-libitm"
- ;;
- esac
+ else
+ AC_MSG_RESULT([yes])
+ fi
fi
# Disable libssp for some systems.