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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [config/] [unwind_ipinfo.m4] - Blame information for rev 859

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

Line No. Rev Author Line
1 264 jeremybenn
dnl
2
dnl Check whether _Unwind_GetIPInfo is available without doing a link
3
dnl test so we can use this with libstdc++-v3 and libjava.  Need to
4
dnl use $target to set defaults because automatic checking is not possible
5
dnl without a link test (and maybe even with a link test).
6
dnl
7
 
8
AC_DEFUN([GCC_CHECK_UNWIND_GETIPINFO], [
9
  AC_ARG_WITH(system-libunwind,
10
  [  --with-system-libunwind use installed libunwind])
11
  # If system-libunwind was not specifically set, pick a default setting.
12
  if test x$with_system_libunwind = x; then
13
    case ${target} in
14
      ia64-*-hpux*) with_system_libunwind=yes ;;
15
      *) with_system_libunwind=no ;;
16
    esac
17
  fi
18
  # Based on system-libunwind and target, do we have ipinfo?
19
  if  test x$with_system_libunwind = xyes; then
20
    case ${target} in
21
      ia64-*-*) have_unwind_getipinfo=no ;;
22
      *) have_unwind_getipinfo=yes ;;
23
    esac
24
  else
25
    # Darwin before version 9 does not have _Unwind_GetIPInfo.
26
    changequote(,)
27
    case ${target} in
28
      *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
29
      *) have_unwind_getipinfo=yes ;;
30
    esac
31
    changequote([,])
32
  fi
33
 
34
  if test x$have_unwind_getipinfo = xyes; then
35
    AC_DEFINE(HAVE_GETIPINFO, 1, [Define if _Unwind_GetIPInfo is available.])
36
  fi
37
])

powered by: WebSVN 2.1.0

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