]> code.delx.au - gnu-emacs/blob - m4/st_dm_mode.m4
Merge from origin/emacs-24
[gnu-emacs] / m4 / st_dm_mode.m4
1 # serial 6
2
3 # Copyright (C) 1998-1999, 2001, 2009-2015 Free Software Foundation,
4 # Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # Define HAVE_ST_DM_MODE if struct stat has an st_dm_mode member.
10
11 AC_DEFUN([AC_STRUCT_ST_DM_MODE],
12 [AC_CACHE_CHECK([for st_dm_mode in struct stat], [ac_cv_struct_st_dm_mode],
13 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
14 #include <sys/types.h>
15 #include <sys/stat.h>]], [[struct stat s; s.st_dm_mode;]])],
16 [ac_cv_struct_st_dm_mode=yes],
17 [ac_cv_struct_st_dm_mode=no])])
18
19 if test $ac_cv_struct_st_dm_mode = yes; then
20 AC_DEFINE([HAVE_ST_DM_MODE], [1],
21 [Define if struct stat has an st_dm_mode member. ])
22 fi
23 ]
24 )