elf.m4 948 B

123456789101112131415161718192021222324252627282930
  1. dnl Copyright (C) 2010, 2011, 2015 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 From Paolo Bonzini.
  8. dnl Is this an ELF target supporting the LTO plugin?
  9. dnl usage: ACX_ELF_TARGET_IFELSE([if-elf], [if-not-elf])
  10. AC_DEFUN([ACX_ELF_TARGET_IFELSE], [
  11. AC_REQUIRE([AC_CANONICAL_TARGET])
  12. target_elf=no
  13. case $target in
  14. *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
  15. *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
  16. alpha*-dec-osf* | *-interix* | hppa[[12]]*-*-hpux* | \
  17. nvptx-*-none)
  18. target_elf=no
  19. ;;
  20. *)
  21. target_elf=yes
  22. ;;
  23. esac
  24. AS_IF([test $target_elf = yes], [$1], [$2])
  25. ])