.
[coreutils.git] / m4 / jm-glibc-io.m4
blobe8054f0bd285eedd5c1bf8ff925d4bc63c03fda7
1 #serial 7 -*- autoconf -*-
3 dnl From Jim Meyering.
4 dnl
5 dnl See if the glibc *_unlocked I/O macros are available.
6 dnl Use only those *_unlocked macros that are declared.
7 dnl
9 AC_DEFUN([jm_FUNC_GLIBC_UNLOCKED_IO],
10   [AC_CHECK_DECLS(
11      [clearerr_unlocked, feof_unlocked, ferror_unlocked,
12       fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
13       fread_unlocked, fwrite_unlocked, getc_unlocked,
14       getchar_unlocked, putc_unlocked, putchar_unlocked])])