diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-01 15:48:28 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-01 15:48:28 +0000 |
commit | 6db1d2ca83f9327020b75f6c1610649bb18e71db (patch) | |
tree | 729dc91fa97f38042aa7777ca6267ebed2edb3e8 /configure.ac | |
parent | d8219307493056ea48203be157f0cfb468698f2d (diff) | |
download | gcc-6db1d2ca83f9327020b75f6c1610649bb18e71db.tar.gz |
Add libatomic as a target library.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187018 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9195bd711ed..ad19defee65 100644 --- a/configure.ac +++ b/configure.ac @@ -154,6 +154,7 @@ target_libraries="target-libgcc \ target-libgloss \ target-newlib \ target-libgomp \ + target-libatomic \ target-libitm \ target-libstdc++-v3 \ target-libmudflap \ @@ -493,6 +494,22 @@ if test x$enable_libgomp = x ; then esac fi +# Disable libatomic on unsupported systems. +if test -d ${srcdir}/libatomic; then + if test x$enable_libatomic = x; then + AC_MSG_CHECKING([for libatomic support]) + if (srcdir=${srcdir}/libatomic; \ + . ${srcdir}/configure.tgt; \ + test -n "$UNSUPPORTED") + then + AC_MSG_RESULT([no]) + noconfigdirs="$noconfigdirs target-libatomic" + else + AC_MSG_RESULT([yes]) + fi + fi +fi + # Disable libitm on unsupported systems. if test -d ${srcdir}/libitm; then if test x$enable_libitm = x; then |