view modules/fnmatch-gnu @ 39771:9fdbd340bb73

fnmatch-h: New module. * lib/fnmatch.in.h: Use the usual gnulib idioms for header file replacements. (FNM_*): Don't redefine if fnmatch exists and we are not overriding it. (fnmatch): Use the usual gnulib idiom for function declarations. Enable 'posixcheck' warning. * m4/fnmatch_h.m4: New file. * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH as appropriate. * modules/fnmatch-h: New file. * modules/fnmatch (Files): Remove lib/fnmatch.in.h. (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change conditions. (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module indicator. (Makefile.am): Remove code that is moved to fnmatch-h. * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module. * modules/posixcheck (Depends-on): Add fnmatch-h.
author Bruno Haible <bruno@clisp.org>
date Mon, 06 Aug 2018 15:00:38 +0200
parents 56ef3f2912e0
children 376d06f8f917
line wrap: on
line source

Description:
fnmatch() function: wildcard matching, with GNU extensions.

Files:

Depends-on:
fnmatch

configure.ac:
gl_FUNC_FNMATCH_GNU
if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
  AC_LIBOBJ([fnmatch])
  gl_PREREQ_FNMATCH
fi

Makefile.am:

Include:
<fnmatch.h>

License:
LGPLv2+

Maintainer:
all