1dnl Copyright (C) 2012 Free Software Foundation, Inc.
2dnl This file is free software, distributed under the terms of the GNU
3dnl General Public License.  As a special exception to the GNU General
4dnl Public License, this file may be distributed as part of a program
5dnl that contains a configuration script generated by Autoconf, under
6dnl the same distribution terms as the rest of that program.
7
8dnl Define header location by thread model
9
10dnl usage: GCC_AC_THREAD_HEADER([thread_model])
11AC_DEFUN([GCC_AC_THREAD_HEADER],
12[
13case $1 in
14    aix)  thread_header=config/rs6000/gthr-aix.h ;;
15    dce)  thread_header=config/pa/gthr-dce.h ;;
16    gcn)  thread_header=config/gcn/gthr-gcn.h ;;
17    lynx) thread_header=config/gthr-lynx.h ;;
18    mipssde)        thread_header=config/mips/gthr-mipssde.h ;;
19    posix)          thread_header=gthr-posix.h ;;
20    rtems)          thread_header=config/gthr-rtems.h ;;
21    single)         thread_header=gthr-single.h ;;
22    tpf)  thread_header=config/s390/gthr-tpf.h ;;
23    vxworks)        thread_header=config/gthr-vxworks.h ;;
24    win32)          thread_header=config/i386/gthr-win32.h ;;
25    mcf)  thread_header=config/i386/gthr-mcf.h ;;
26esac
27AC_SUBST(thread_header)
28])
29
30