An independent .m4 file for each module.
[gnulib.git] / m4 / stat.m4
1 #serial 8
2
3 dnl From Jim Meyering.
4 dnl Determine whether stat has the bug that it succeeds when given the
5 dnl zero-length file name argument.  The stat from SunOS4.1.4 and the Hurd
6 dnl (as of 1998-11-01) do this.
7 dnl
8 dnl If it does, then define HAVE_STAT_EMPTY_STRING_BUG and arrange to
9 dnl compile the wrapper function.
10 dnl
11
12 AC_DEFUN([jm_FUNC_STAT],
13 [
14   AC_FUNC_STAT
15   dnl Note: AC_FUNC_STAT does AC_LIBOBJ(stat).
16   if test $ac_cv_func_stat_empty_string_bug = yes; then
17     gl_PREREQ_STAT
18   fi
19 ])
20
21 # Prerequisites of lib/stat.c.
22 AC_DEFUN([gl_PREREQ_STAT],
23 [
24   :
25 ])