diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-09-21 19:25:05 +0000 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2009-09-21 19:25:05 +0000 |
commit | 4385ad3c0987c92590d3c30bbb19da53574be01b (patch) | |
tree | c93e1310ade09bcd2b9c3810c7e36db0b4471662 | |
parent | e8269d5fd91be00a0232813bf1fa752d78bd513b (diff) | |
download | gdb-4385ad3c0987c92590d3c30bbb19da53574be01b.zip gdb-4385ad3c0987c92590d3c30bbb19da53574be01b.tar.gz gdb-4385ad3c0987c92590d3c30bbb19da53574be01b.tar.bz2 |
Diagnose --enable-build-with-cxx --enable-bootstrap --enable-languages w/o c++
/:
* configure.ac: Diagnose --enable-build-with-cxx bootstrap
with --enable-languages not containing c++.
* configure: Regenerate.
-rw-r--r-- | ChangeLog | 6 | ||||
-rwxr-xr-x | configure | 7 | ||||
-rw-r--r-- | configure.ac | 7 |
3 files changed, 20 insertions, 0 deletions
@@ -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-*-*. @@ -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) diff --git a/configure.ac b/configure.ac index f3d5119..a8fb3b7 100644 --- a/configure.ac +++ b/configure.ac @@ -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) |