Distribute allocsa.valgrind.
[gnulib.git] / m4 / argp.m4
1 # argp.m4 serial 3
2 dnl Copyright (C) 2003, 2004 Free Software Foundation, Inc.
3 dnl This file is free software, distributed under the terms of the GNU
4 dnl General Public License.  As a special exception to the GNU General
5 dnl Public License, this file may be distributed as part of a program
6 dnl that contains a configuration script generated by Autoconf, under
7 dnl the same distribution terms as the rest of that program.
8
9 AC_DEFUN([gl_ARGP],
10 [
11   AC_REQUIRE([AC_C_INLINE])
12   AC_REQUIRE([gl_FUNC_GLIBC_UNLOCKED_IO])
13   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
14   AC_CHECK_DECLS([program_invocation_name, program_invocation_short_name],,,
15     [#include <errno.h>])
16   AC_CHECK_FUNCS_ONCE([flockfile funlockfile])
17   AC_CHECK_HEADERS_ONCE([features.h linewrap.h])
18   AC_CHECK_FUNC(_getopt_long_only_r, :, [gl_GETOPT_SUBSTITUTE])
19 ])