File: cxx_have_lstring.m4

package info (click to toggle)
xerces-c 3.2.4%2Bdebian-1.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,948 kB
  • sloc: cpp: 167,201; xml: 23,619; sh: 4,789; ansic: 3,988; makefile: 1,438; perl: 355; javascript: 18
file content (25 lines) | stat: -rw-r--r-- 665 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
dnl @synopsis AC_CXX_HAVE_LSTRING
dnl
dnl If the compiler can prevent names clashes using namespaces, define
dnl HAVE_LSTRING.
dnl
dnl @category Cxx
dnl @author James Berry
dnl @version 2005-02-21
dnl @license AllPermissive

AC_DEFUN([AC_CXX_HAVE_LSTRING],
[AC_CACHE_CHECK([whether the compiler implements L"widestring"],
ac_cv_cxx_have_lstring,
[AC_LANG_SAVE
 AC_LANG_CPLUSPLUS
 AC_COMPILE_IFELSE(
	[AC_LANG_SOURCE(
		[[const wchar_t* s=L"wide string";]])],
 	ac_cv_cxx_have_lstring=yes, ac_cv_cxx_have_lstring=no)
 AC_LANG_RESTORE
])
if test "$ac_cv_cxx_have_lstring" = yes; then
  AC_DEFINE(HAVE_LSTRING,,[define if the compiler implements L"widestring"])
fi
])