summaryrefslogtreecommitdiff
path: root/m4/strcasestr.m4
blob: ae83c481d791fcbaeccf8677c9c8d2799a89a0a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# strcasestr.m4 serial 2
dnl Copyright (C) 2005 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.

AC_DEFUN([gl_FUNC_STRCASESTR],
[
  dnl No known system has a strcasestr() function that works correctly in
  dnl multibyte locales. Therefore we use our version always.
  AC_LIBOBJ(strcasestr)
  AC_DEFINE(strcasestr, rpl_strcasestr, [Define to rpl_strcasestr always.])
  gl_PREREQ_STRCASESTR
])

# Prerequisites of lib/strcasestr.c.
AC_DEFUN([gl_PREREQ_STRCASESTR], [
  AC_REQUIRE([gl_FUNC_MBRTOWC])
  :
])