Introduce config/gxx-include-dir.m4.
[deliverable/binutils-gdb.git] / config / gxx-include-dir.m4
CommitLineData
3da796a2
RS
1dnl Usage: TL_AC_GXX_INCLUDE_DIR
2dnl
3dnl Set $gxx_include_dir to the location of the installed C++ include
4dnl directory. The value depends on $gcc_version and the configuration
5dnl options --with-gxx-include-dir and --enable-version-specific-runtime-libs.
6dnl
7dnl If you change the default here, you'll need to change the gcc and
8dnl libstdc++-v3 subdirectories too.
9AC_DEFUN([TL_AC_GXX_INCLUDE_DIR],
10[
11case "${with_gxx_include_dir}" in
12 yes)
13 AC_MSG_ERROR([--with-gxx-include-dir=[[dir]] requires a directory])
14 ;;
15 no | "")
16 case "${enable_version_specific_runtime_libs}" in
17 yes) gxx_include_dir='${libsubdir}/include/c++' ;;
18 *)
19 libstdcxx_incdir=c++/${gcc_version}
20 gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
21 esac ;;
22 *) gxx_include_dir=${with_gxx_include_dir} ;;
23esac
24AC_SUBST(gxx_include_dir)
25AC_SUBST(libstdcxx_incdir)
26])
This page took 0.023785 seconds and 4 git commands to generate.