summaryrefslogtreecommitdiffstats
path: root/c/src/aclocal/ppc.m4
blob: 7275685a44fcea1709d1b0f128380b7da932a92f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $Id$
#
# Some hacks for handling powerpc-exception subdirectories
#
# Note: Consider this file a temporary band-aid until a better, more general
# subdirectory handling solution is introduced to RTEMS.

AC_DEFUN([RTEMS_PPC_EXCEPTIONS],
[
AC_MSG_CHECKING([for style of powerpc exceptions])
AC_COMPILE_IFELSE(
  [AC_LANG_PROGRAM(
    [],
    [#if defined(_OLD_EXCEPTIONS)
     choke me
     #endif])],
  [EXCEPTIONS=new],
  [EXCEPTIONS=old])
AC_MSG_RESULT([$EXCEPTIONS])
AC_SUBST([exceptions],[$EXCEPTIONS-exceptions])
])