Add, forgotten in last commit.
[gnulib.git] / m4 / argp.m4
1 # argp.m4 serial 5
2 dnl Copyright (C) 2003-2005 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_ARGP],
8 [
9   AC_REQUIRE([AC_C_INLINE])
10   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
11   AC_REQUIRE([gl_GETOPT_SUBSTITUTE])
12   AC_CHECK_DECLS([program_invocation_name, program_invocation_short_name],,,
13     [#include <errno.h>])
14   AC_CHECK_DECLS_ONCE(
15      [clearerr_unlocked feof_unlocked ferror_unlocked
16       fflush_unlocked fgets_unlocked fputc_unlocked fputs_unlocked
17       fread_unlocked fwrite_unlocked getc_unlocked
18       getchar_unlocked putc_unlocked putchar_unlocked])
19   AC_CHECK_FUNCS_ONCE([flockfile funlockfile])
20   AC_CHECK_HEADERS_ONCE([features.h linewrap.h])
21 ])