6 dnl Check where DIRSIZ lives
9 AC_DEFUN([AC_CHECK_DIRSIZ], [
11 AC_CACHE_CHECK([if DIRSIZ lives in dirent.h], ac_cv_dirsiz_in_dirent,
12 AC_EGREP_CPP(yes,[#include <dirent.h>
16 eval "ac_cv_dirsiz_in_dirent=yes",
17 eval "ac_cv_dirsiz_in_dirent=no"))
18 if test "$ac_cv_dirsiz_in_dirent" = "yes"; then
19 AC_DEFINE(DIRSIZ_IN_DIRENT_H, 1, [define if DIRSIZ is defined in dirent.h])
22 AC_CACHE_CHECK([if DIRSIZ lives in sys/dir.h], ac_cv_dirsiz_in_sys_dir,
23 AC_EGREP_CPP(yes,[#include <sys/dir.h>
27 eval "ac_cv_dirsiz_in_sys_dir=yes",
28 eval "ac_cv_dirsiz_in_sys_dir=no"))
29 if test "$ac_cv_dirsiz_in_sys_dir" = "yes"; then
30 AC_DEFINE(DIRSIZ_IN_SYS_DIR_H, 1, [define if DIRSIZ is defined in sys/dir.h])
33 AC_CACHE_CHECK([if _GENERIC_DIRSIZ lives in sys/dirent.h],
34 ac_cv_generic_dirsiz_in_sys_dirent,
35 AC_EGREP_CPP(yes,[#include <sys/dirent.h>
36 #ifdef _GENERIC_DIRSIZ
39 eval "ac_cv_generic_dirsiz_in_sys_dirent=yes",
40 eval "ac_cv_generic_dirsiz_in_sys_dirent=no"))
41 if test "$ac_cv_generic_dirsiz_in_sys_dirent" = "yes"; then
42 AC_DEFINE(GENERIC_DIRSIZ_IN_SYS_DIRENT_H, 1,
43 [define if DIRSIZ is defined in sys/dirent.h])