2
dnl Copyright (C) 2002-2003, 2007-2012 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.
7
AC_DEFUN([gl_FUNC_RPMATCH],
9
dnl Persuade glibc <stdlib.h> to declare rpmatch().
10
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
12
AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
13
AC_CHECK_FUNCS([rpmatch])
14
if test $ac_cv_func_rpmatch = no; then
19
# Prerequisites of lib/rpmatch.c.
20
AC_DEFUN([gl_PREREQ_RPMATCH], [
21
AC_CACHE_CHECK([for nl_langinfo and YESEXPR], [gl_cv_langinfo_yesexpr],
22
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]],
23
[[char* cs = nl_langinfo(YESEXPR); return !cs;]])],
24
[gl_cv_langinfo_yesexpr=yes],
25
[gl_cv_langinfo_yesexpr=no])
27
if test $gl_cv_langinfo_yesexpr = yes; then
28
AC_DEFINE([HAVE_LANGINFO_YESEXPR], [1],
29
[Define if you have <langinfo.h> and nl_langinfo(YESEXPR).])