I do not know which platforms offer stat.h, but it does not appear to be
anything Graphviz currently supports. On all currently supported platforms (even
Windows) this file lives at sys/stat.h which is detected separately.
check_include_file( fcntl.h HAVE_FCNTL_H )
check_include_file( search.h HAVE_SEARCH_H )
-check_include_file( stat.h HAVE_STAT_H )
check_include_file( sys/inotify.h HAVE_SYS_INOTIFY_H )
check_include_file( sys/ioctl.h HAVE_SYS_IOCTL_H )
check_include_file( sys/mman.h HAVE_SYS_MMAN_H )
// Include headers
#cmakedefine HAVE_FCNTL_H
#cmakedefine HAVE_SEARCH_H
-#cmakedefine HAVE_STAT_H
#cmakedefine HAVE_SYS_INOTIFY_H
#cmakedefine HAVE_SYS_IOCTL_H
#cmakedefine HAVE_SYS_MMAN_H
# AC_HEADER_STDC
AC_CHECK_HEADERS( \
fcntl.h search.h stropts.h termios.h \
- stat.h \
sys/time.h sys/types.h sys/select.h sys/socket.h \
sys/stat.h sys/mman.h \
sys/ioctl.h sys/inotify.h)
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
-# undef HAVE_SYS_STAT_H
-# define HAVE_SYS_STAT_H 1
-#else
-# ifdef HAVE_STAT_H
-# include <stat.h>
-# define HAVE_SYS_STAT_H 1
-# endif
#endif /*HAVE_SYS_STAT_H*/
#include <fcntl.h>