gc++filt.m4 1.1 KB

1234567891011121314151617181920212223242526
  1. # gc++filt.m4 serial 1 -*- Autoconf -*-
  2. # Find an instance of GNU c++filt on PATH.
  3. dnl Copyright (C) 2010 Free Software Foundation, Inc.
  4. dnl This file is free software, distributed under the terms of the GNU
  5. dnl General Public License. As a special exception to the GNU General
  6. dnl Public License, this file may be distributed as part of a program
  7. dnl that contains a configuration script generated by Autoconf, under
  8. dnl the same distribution terms as the rest of that program.
  9. dnl From Rainer Orth.
  10. # GCC_PROG_GNU_CXXFILT
  11. # --------------------
  12. # Check for GNU c++filt.
  13. # FIXME: Maybe need TARGET variant, though c++filt should be target
  14. # independent.
  15. AC_DEFUN([GCC_PROG_GNU_CXXFILT],
  16. [AC_ARG_VAR([CXXFILT], [Location of GNU c++filt. Defaults to the first
  17. GNU version of `c++filt', `gc++filt' on PATH.])
  18. AC_CACHE_CHECK([for GNU c++filt], [ac_cv_path_CXXFILT],
  19. [AC_PATH_PROGS_FEATURE_CHECK([CXXFILT], [c++filt gc++filt],
  20. [_AC_PATH_PROG_FLAVOR_GNU([$ac_path_CXXFILT],
  21. [ac_cv_path_CXXFILT=$ac_path_CXXFILT && ac_path_CXXFILT_found=:])])])
  22. CXXFILT=$ac_cv_path_CXXFILT
  23. ])