gnupload: Support option -h as alias of --help.
[gnulib.git] / m4 / fts.m4
blob2fb39c7208c2b4f3cfd16c011309780163f2e6d7
1 #serial 21
2 dnl Copyright (C) 2005-2018 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.
7 AC_DEFUN([gl_FUNC_FTS],
9   gl_FUNC_FTS_CORE
12 AC_DEFUN([gl_FUNC_FTS_CORE],
14   dnl Prerequisites of lib/fts.c.
15   gl_FUNC_OPENAT
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