diff options
Diffstat (limited to 'gcc/configure.in')
| -rw-r--r-- | gcc/configure.in | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/gcc/configure.in b/gcc/configure.in index 9a62f5b..3af0f44 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -151,6 +151,23 @@ if test x$local_prefix = x; then local_prefix=/usr/local fi +# Build a new-libstdc++ system (ie libstdc++-v3) +AC_MSG_CHECKING([for libstdc++ to install]) +AC_ARG_ENABLE(libstdcxx-v3, +[ --enable-libstdcxx-v3 + enable libstdc++-v3 for building and installation], + [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=yes]) + +if test x$enable_libstdcxx_v3 = xyes; then + AC_MSG_RESULT(v3) + HAVE_LIBSTDCXX_V3=1 + ac_esn=1 +else + AC_MSG_RESULT(v2) + HAVE_LIBSTDCXX_V3=0 + ac_esn=0 +fi + # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only # passed in by the toplevel make and thus we'd get different behavior # depending on where we built the sources. @@ -4942,22 +4959,6 @@ echo "Building a new-abi g++ compiler." ]) AC_SUBST(GXX_ABI_FLAG) -# Build a new-libstdc++ system (ie libstdc++-v3) -AC_MSG_CHECKING([for libstdc++ to install]) -AC_ARG_ENABLE(libstdcxx-v3, -[ --enable-libstdcxx-v3 - enable libstdc++-v3 for building and installation], - [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=yes]) - -if test x$enable_libstdcxx_v3 = xyes; then - AC_MSG_RESULT(v3) - HAVE_LIBSTDCXX_V3=1 - ac_esn=1 -else - AC_MSG_RESULT(v2) - HAVE_LIBSTDCXX_V3=0 - ac_esn=0 -fi AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn, [Define to 1 if you want to enable namespaces (-fhonor-std) by default.]) AC_SUBST(HAVE_LIBSTDCXX_V3) |
