Hi,

Current HEAD fails build when --enable-languages=c, i.e. C++ is not
being built.  Attached patch fixes this.

Regards,
Siddhesh

ChangeLog:

2012-11-15  Siddhesh Poyarekar  <siddh...@redhat.com>

        * configure.ac: Disable libsanitizer if we're not building C++.
        * configure: Regenerate.

diff --git a/configure b/configure
index d72d4f9..16bbaa8 100755
--- a/configure
+++ b/configure
@@ -6437,11 +6437,11 @@ case ,${enable_languages},:${enable_objc_gc} in
     ;;
 esac
 
-# Disable libitm if we're not building C++
+# Disable libitm and libsanitizer if we're not building C++
 case ,${enable_languages}, in
   *,c++,*) ;;
   *)
-    noconfigdirs="$noconfigdirs target-libitm"
+    noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
     ;;
 esac
 
diff --git a/configure.ac b/configure.ac
index 24ea7e5..cd6721e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2008,11 +2008,11 @@ case ,${enable_languages},:${enable_objc_gc} in
     ;;
 esac
 
-# Disable libitm if we're not building C++
+# Disable libitm and libsanitizer if we're not building C++
 case ,${enable_languages}, in
   *,c++,*) ;;
   *)
-    noconfigdirs="$noconfigdirs target-libitm"
+    noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
     ;;
 esac
 

Reply via email to