Enforce ordering constraints between gl_HEADER_STRING_H_DEFAULTS and the
[gnulib.git] / m4 / strcasestr.m4
1 # strcasestr.m4 serial 4
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   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
10   dnl No known system has a strcasestr() function that works correctly in
11   dnl multibyte locales. Therefore we use our version always.
12   AC_LIBOBJ(strcasestr)
13   REPLACE_STRCASESTR=1
14   gl_PREREQ_STRCASESTR
15 ])
16
17 # Prerequisites of lib/strcasestr.c.
18 AC_DEFUN([gl_PREREQ_STRCASESTR], [
19   AC_REQUIRE([gl_FUNC_MBRTOWC])
20   :
21 ])