Elliott Hughes | 5dec78d | 2014-02-26 15:56:23 -0800 | [diff] [blame] | 1 | dnl ### A macro to determine whether stat64 is defined. |
| 2 | AC_DEFUN([AC_STAT64], |
| 3 | [AC_MSG_CHECKING(for stat64 in (asm|sys)/stat.h) |
| 4 | AC_CACHE_VAL(ac_cv_type_stat64, |
| 5 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
| 6 | #include <sys/types.h> |
| 7 | #include <linux/types.h> |
| 8 | #include <asm/stat.h> |
| 9 | ]], [[struct stat64 st;]])],[ac_cv_type_stat64=yes],[ac_cv_type_stat64=no])]) |
| 10 | AC_MSG_RESULT($ac_cv_type_stat64) |
| 11 | if test "$ac_cv_type_stat64" = yes |
| 12 | then |
| 13 | AC_DEFINE([HAVE_STAT64], 1, |
| 14 | [Define if stat64 is available in asm/stat.h.]) |
| 15 | fi |
| 16 | ]) |