VirtualBox

source: kBuild/trunk/src/grep/m4/fts.m4

Last change on this file was 3529, checked in by bird, 3 years ago

Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.

  • Property svn:eol-style set to LF
File size: 1.6 KB
Line 
1#serial 22
2dnl Copyright (C) 2005-2021 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved.
6
7AC_DEFUN([gl_FUNC_FTS],
8[
9 gl_FUNC_FTS_CORE
10])
11
12AC_DEFUN([gl_FUNC_FTS_CORE],
13[
14 dnl Prerequisites of lib/fts.c.
15 gl_FUNC_OPENAT
16
17 AC_CHECK_FUNCS_ONCE([fstatfs])
18 AC_CHECK_HEADERS_ONCE([sys/param.h sys/vfs.h])dnl
19 if test "$ac_cv_func_fstatfs,$ac_cv_header_sys_vfs_h" = yes,yes; then
20 AC_CHECK_MEMBERS([struct statfs.f_type], [], [],
21 [[$ac_includes_default
22 #include <sys/vfs.h>
23 ]])
24 if test "$ac_cv_member_struct_statfs_f_type" = yes; then
25 AC_CHECK_TYPES([__fsword_t], [], [],
26 [[$ac_includes_default
27 #include <sys/vfs.h>
28 ]])
29 fi
30 fi
31
32 AC_CHECK_FUNC([fts_open])
33 if test $ac_cv_func_fts_open = yes; then
34 dnl The system already has the symbols fts_open, etc.
35 dnl Avoid conflicts between these symbols and ours at the linker level.
36 AC_DEFINE([fts_open], [rpl_fts_open],
37 [Define to the overridden function name])
38 AC_DEFINE([fts_close], [rpl_fts_close],
39 [Define to the overridden function name])
40 AC_DEFINE([fts_read], [rpl_fts_read],
41 [Define to the overridden function name])
42 AC_DEFINE([fts_set], [rpl_fts_set],
43 [Define to the overridden function name])
44 AC_DEFINE([fts_children], [rpl_fts_children],
45 [Define to the overridden function name])
46 AC_DEFINE([fts_cross_check], [rpl_fts_cross_check],
47 [Define to the overridden function name])
48 fi
49])
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette