diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-29 23:13:57 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-07-29 23:13:57 +0000 |
commit | f890b212fb3498108f0964d4acc8f44f657bb5bc (patch) | |
tree | 4893de62697f4337dbe51c1a64ed540c64abe791 /configure | |
parent | f2c5c1a50b8d27b34e6cede045922129581b5170 (diff) | |
download | gcc-f890b212fb3498108f0964d4acc8f44f657bb5bc.tar.gz |
1998-07-29 Manfred Hollstein <manfred@s-direktnet.de>
* configure: Fix --without/--disable cases for gxx-include-dir.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21486 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/configure b/configure index af334067649..99e35e9a364 100755 --- a/configure +++ b/configure @@ -1240,14 +1240,29 @@ EOF # provide a proper gxx_include_dir to all subdirs. # Note, if you change the default, make sure to fix both here # and in the gcc subdirectory. - if test -z "${with_gxx_include_dir}"; then + # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. + gxx_include_dir= + if test -n "${with_gxx_include_dir}"; then + case "${with_gxx_include_dir}" in + yes ) + echo "configure: error: bad value ${withval} given for g++ include directory" 1>&2 + exit 1 + ;; + no ) + ;; + * ) + gxx_include_dir=${with_gxx_include_dir} + ;; + esac + fi + if test x${gxx_include_dir} = x; then if test x${enable_version_specific_runtime_libs} = xyes; then echo gxx_include_dir = '${libsubdir}/include/g++' >> ${Makefile} else echo gxx_include_dir = '${prefix}/include/g++' >> ${Makefile} fi else - echo gxx_include_dir = ${with_gxx_include_dir} >> ${Makefile} + echo gxx_include_dir = ${gxx_include_dir} >> ${Makefile} fi # record if we want to build shared libs. |