]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - configure.ac
re PR libitm/51072 (Build with --disable-bootstrap fails in libitm)
[thirdparty/gcc.git] / configure.ac
index 9fee56378e184a3c192d8c7fdb1740f954b489e5..b97c5051044ca8252f463f6163f3e9ca24736ec5 100644 (file)
@@ -1982,6 +1982,14 @@ case ,${enable_languages},:${enable_objc_gc} in
     ;;
 esac
 
+# Disable libitm if we're not building C++
+case ,${enable_languages}, in
+  *,c++) ;;
+  *)
+    noconfigdirs="$noconfigdirs target-libitm"
+    ;;
+esac
+
 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
 # $build_configdirs and $target_configdirs.
 # If we have the source for $noconfigdirs entries, add them to $notsupp.