re PR bootstrap/53197 (bootstrap comparison failure)
[gcc.git] / configure.ac
index 9195bd711ed7eb1751c1e50794150fd5826e9826..ad19defee6570cb6a5793fb0f85cdbb957977217 100644 (file)
@@ -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