2024-01-05 01:13:32 -05:00
|
|
|
# mbtowc.m4 serial 5
|
|
|
|
dnl Copyright (C) 2011-2024 Free Software Foundation, Inc.
|
2011-08-28 21:42:10 -04:00
|
|
|
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_MBTOWC],
|
|
|
|
[
|
|
|
|
AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
|
|
|
|
|
2024-01-05 01:13:32 -05:00
|
|
|
gl_CHECK_FUNCS_ANDROID([mbtowc], [[#include <stdlib.h>]])
|
2019-11-12 16:58:46 -05:00
|
|
|
if test $ac_cv_func_mbtowc = no; then
|
|
|
|
HAVE_MBTOWC=0
|
2024-01-05 01:13:32 -05:00
|
|
|
case "$gl_cv_onwards_func_mbtowc" in
|
|
|
|
future*) REPLACE_MBTOWC=1 ;;
|
|
|
|
esac
|
2019-11-12 16:58:46 -05:00
|
|
|
else
|
|
|
|
if false; then
|
|
|
|
REPLACE_MBTOWC=1
|
|
|
|
fi
|
2011-08-28 21:42:10 -04:00
|
|
|
fi
|
|
|
|
])
|
|
|
|
|
|
|
|
# Prerequisites of lib/mbtowc.c.
|
|
|
|
AC_DEFUN([gl_PREREQ_MBTOWC], [
|
|
|
|
:
|
|
|
|
])
|