gthr.m4 1.1 KB

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