OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [config/] [gxx-include-dir.m4] - Blame information for rev 745

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 722 jeremybenn
dnl Usage: TL_AC_GXX_INCLUDE_DIR
2
dnl
3
dnl Set $gxx_include_dir to the location of the installed C++ include
4
dnl directory.  The value depends on $gcc_version and the configuration
5
dnl options --with-gxx-include-dir and --enable-version-specific-runtime-libs.
6
dnl
7
dnl If you change the default here, you'll need to change the gcc and
8
dnl libstdc++-v3 subdirectories too.
9
AC_DEFUN([TL_AC_GXX_INCLUDE_DIR],
10
[
11
case "${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='include/$(libstdcxx_incdir)'
21
        if test -n "$with_cross_host" &&
22
           test x"$with_cross_host" != x"no"; then
23
          gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
24
        else
25
          gxx_include_dir='${prefix}/'"$gxx_include_dir"
26
        fi;;
27
    esac ;;
28
  *) gxx_include_dir=${with_gxx_include_dir} ;;
29
esac
30
AC_SUBST(gxx_include_dir)
31
AC_SUBST(libstdcxx_incdir)
32
])

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.