OSDN Git Service

Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++
authorrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Sep 2009 19:24:40 +0000 (19:24 +0000)
committerrwild <rwild@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 21 Sep 2009 19:24:40 +0000 (19:24 +0000)
/*
* configure.ac: Diagnose --enable-build-with-cxx bootstrap
with --enable-languages not containing c++.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151939 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
configure
configure.ac

index 7aaa1f6..ce1b5fa 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-15  Jie Zhang  <jie.zhang@analog.com>
 
        * configure.ac: Disable java and boehm-gc for bfin-*-*.
 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
 
        * configure.ac: Disable java and boehm-gc for bfin-*-*.
index 6119983..df2b37f 100755 (executable)
--- a/configure
+++ b/configure
@@ -6574,6 +6574,13 @@ $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
     ;;
 esac
 
     ;;
 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)
 # Adjust the toplevel makefile according to whether bootstrap was selected.
 case $enable_bootstrap in
   yes)
index f3d5119..a8fb3b7 100644 (file)
@@ -2460,6 +2460,13 @@ case "$have_compiler:$host:$target:$enable_bootstrap" in
     ;;
 esac
 
     ;;
 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)
 # Adjust the toplevel makefile according to whether bootstrap was selected.
 case $enable_bootstrap in
   yes)