7 # Check for one of the readdir variants, as well as the dirent headers.
8 # See common-src/util.c and amanda.h for the use of these symbols.
10 AC_DEFUN([AMANDA_CHECK_READDIR], [
13 # include the dirent headers as described in the autoconf documentation.
14 AC_CHECK_DECLS([readdir, readdir_r, readdir64, readdir64_r],,,[
17 # define NAMLEN(dirent) strlen((dirent)->d_name)
19 # define dirent direct
20 # define NAMLEN(dirent) (dirent)->d_namlen
22 # include <sys/ndir.h>