]> granicus.if.org Git - zfs/blob - config/user-frame-larger-than.m4
Use provided uid/gid for setattr
[zfs] / config / user-frame-larger-than.m4
1 dnl #
2 dnl # Check if gcc supports -Wframe-larger-than=<size> option.
3 dnl #
4 AC_DEFUN([ZFS_AC_CONFIG_USER_FRAME_LARGER_THAN], [
5         AC_MSG_CHECKING([for -Wframe-larger-than=<size> support])
6
7         saved_flags="$CFLAGS"
8         CFLAGS="$CFLAGS -Wframe-larger-than=1024"
9
10         AC_RUN_IFELSE(AC_LANG_PROGRAM( [], []),
11         [
12                 FRAME_LARGER_THAN=-Wframe-larger-than=1024
13                 AC_MSG_RESULT([yes])
14         ],
15         [
16                 FRAME_LARGER_THAN=
17                 AC_MSG_RESULT([no])
18         ])
19
20         CFLAGS="$saved_flags"
21         AC_SUBST([FRAME_LARGER_THAN])
22 ])