File: mbchar.m4

package info (click to toggle)
rcs-blame 1.4%2B20240206-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,816 kB
  • sloc: ansic: 15,922; sh: 10,108; makefile: 399; yacc: 389; lex: 156
file content (23 lines) | stat: -rw-r--r-- 766 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# mbchar.m4 serial 4
dnl Copyright (C) 2005-2006 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

dnl autoconf tests required for use of mbchar.m4
dnl From Bruno Haible.

AC_DEFUN([gl_MBCHAR],
[
  AC_REQUIRE([AC_GNU_SOURCE])
  dnl The following line is that so the user can test HAVE_WCHAR_H
  dnl before #include "mbchar.h".
  AC_CHECK_HEADERS([wchar.h])
  dnl Compile mbchar.c only if HAVE_WCHAR_H.
  if test $ac_cv_header_wchar_h = yes; then
    AC_LIBOBJ([mbchar])
    dnl Prerequisites of mbchar.h and mbchar.c.
    AC_CHECK_HEADERS([wctype.h])
    AC_CHECK_FUNCS([iswcntrl])
  fi
])