]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/binutils-tumbl.git/commitdiff
Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 21 Sep 2009 19:25:05 +0000 (19:25 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 21 Sep 2009 19:25:05 +0000 (19:25 +0000)
/:
* configure.ac: Diagnose --enable-build-with-cxx bootstrap
with --enable-languages not containing c++.
* configure: Regenerate.

ChangeLog
configure
configure.ac

index fdfa5c92d2cbb1e6e43868234a9db053d1ad68b7..ca58d0d8731b4788dcb6d5c1a370895a83dc3a3a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * configure.ac: Diagnose --enable-build-with-cxx bootstrap
+       with --enable-languages not containing c++.
+       * configure: Regenerate.
+
 2009-09-16  Jie Zhang  <jie.zhang@analog.com>
 
        * configure.ac: Disable java and boehm-gc for bfin-*-*.
index 6119983307a43a18f4cf5be71be8b7cfbebb9941..df2b37f5670626c5ccc13628d8abf97b730e2464 100755 (executable)
--- a/configure
+++ b/configure
@@ -6574,6 +6574,13 @@ $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
     ;;
 esac
 
+case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
+  *,c++,*:yes:yes) ;;
+  *:yes:yes)
+    as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
+    ;;
+esac
+
 # Adjust the toplevel makefile according to whether bootstrap was selected.
 case $enable_bootstrap in
   yes)
index f3d511973ce8d05764a5b343818a7fd2abda92e5..a8fb3b79714f8cdacd8f1344807cad55b1a0cc8c 100644 (file)
@@ -2460,6 +2460,13 @@ case "$have_compiler:$host:$target:$enable_bootstrap" in
     ;;
 esac
 
+case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
+  *,c++,*:yes:yes) ;;
+  *:yes:yes)
+    AC_MSG_ERROR([bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages])
+    ;;
+esac
+
 # Adjust the toplevel makefile according to whether bootstrap was selected.
 case $enable_bootstrap in
   yes)