Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_cxx_gnucxx_hashmap.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_CXX_GNUCXX_HASHMAP
  8. #
  9. # DESCRIPTION
  10. #
  11. # Test for the presence of GCC's hashmap STL extension.
  12. #
  13. # LICENSE
  14. #
  15. # Copyright (c) 2008 Patrick Mauritz <oxygene@studentenbude.ath.cx>
  16. #
  17. # Copying and distribution of this file, with or without modification, are
  18. # permitted in any medium without royalty provided the copyright notice
  19. # and this notice are preserved. This file is offered as-is, without any
  20. # warranty.
  21. #serial 7
  22. AU_ALIAS([AC_CXX_GNUCXX_HASHMAP], [AX_CXX_GNUCXX_HASHMAP])
  23. AC_DEFUN([AX_CXX_GNUCXX_HASHMAP],[
  24. AC_CACHE_CHECK(whether the compiler supports __gnu_cxx::hash_map,
  25. ax_cv_cxx_gnucxx_hashmap,
  26. [AC_LANG_SAVE
  27. AC_LANG_CPLUSPLUS
  28. AC_TRY_COMPILE([#include <ext/hash_map>
  29. using __gnu_cxx::hash_map;],
  30. [],
  31. ax_cv_cxx_gnucxx_hashmap=yes, ax_cv_cxx_gnucxx_hashmap=no)
  32. AC_LANG_RESTORE
  33. ])
  34. if test "$ax_cv_cxx_gnucxx_hashmap" = yes; then
  35. AC_DEFINE(HAVE_GNUCXX_HASHMAP,,[define if the compiler supports __gnu_cxx::hash_map])
  36. fi
  37. ])