4 dnl Check if we can include both dirent.h and sys/dir.h
7 AC_DEFUN([AC_DIRENT_SYS_DIR_H], [
8 AC_CACHE_CHECK(if we can include both dirent.h and sys/dir.h,
9 ac_cv_header_dirent_and_sys_dir,
11 #include <sys/types.h>
15 ac_cv_header_dirent_and_sys_dir=yes,
16 ac_cv_header_dirent_and_sys_dir=no))
17 if test "$ac_cv_header_dirent_and_sys_dir" = yes; then
18 AC_DEFINE(DIRENT_AND_SYS_DIR_H, 1,
19 [define if you can include both dirent.h and sys/dir.h])