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.

25 lines
663 B

  1. dnl @synopsis AC_CXX_HAVE_LSTRING
  2. dnl
  3. dnl If the compiler can prevent names clashes using namespaces, define
  4. dnl HAVE_LSTRING.
  5. dnl
  6. dnl @category Cxx
  7. dnl @author James Berry
  8. dnl @version 2005-02-21
  9. dnl @license AllPermissive
  10. AC_DEFUN([AC_CXX_HAVE_LSTRING],
  11. [AC_CACHE_CHECK([whether the compiler implements L"widestring"],
  12. ac_cv_cxx_have_lstring,
  13. [AC_LANG_SAVE
  14. AC_LANG_CPLUSPLUS
  15. AC_COMPILE_IFELSE(
  16. AC_LANG_SOURCE(
  17. [[const wchar_t* s=L"wide string";]]),
  18. ac_cv_cxx_have_lstring=yes, ac_cv_cxx_have_lstring=no)
  19. AC_LANG_RESTORE
  20. ])
  21. if test "$ac_cv_cxx_have_lstring" = yes; then
  22. AC_DEFINE(HAVE_LSTRING,,[define if the compiler implements L"widestring"])
  23. fi
  24. ])