Declare strcasestr() in the <string.h> replacement, rather than in
[gnulib.git] / m4 / strcasestr.m4
1 # strcasestr.m4 serial 3
2 dnl Copyright (C) 2005, 2007 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gl_FUNC_STRCASESTR],
8 [
9   dnl No known system has a strcasestr() function that works correctly in
10   dnl multibyte locales. Therefore we use our version always.
11   AC_LIBOBJ(strcasestr)
12   REPLACE_STRCASESTR=1
13   gl_PREREQ_STRCASESTR
14 ])
15
16 # Prerequisites of lib/strcasestr.c.
17 AC_DEFUN([gl_PREREQ_STRCASESTR], [
18   AC_REQUIRE([gl_FUNC_MBRTOWC])
19   :
20 ])