File: pr_set_dumpable.m4

package info (click to toggle)
dovecot 1%3A2.4.1%2Bdfsg1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 46,224 kB
  • sloc: ansic: 596,204; makefile: 7,825; sh: 6,005; cpp: 1,866; perl: 487; yacc: 412; lex: 320; python: 253; xml: 232
file content (16 lines) | stat: -rw-r--r-- 481 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
AC_DEFUN([DOVECOT_PR_SET_DUMPABLE], [
  AC_CACHE_CHECK([whether PR_SET_DUMPABLE exists],i_cv_have_pr_set_dumpable,[
    AC_LINK_IFELSE([AC_LANG_PROGRAM([[
      #include <sys/prctl.h>
    ]], [[
      prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
    ]])],[
      i_cv_have_pr_set_dumpable=yes
    ], [
      i_cv_have_pr_set_dumpable=no
    ])
  ])
  AS_IF([test $i_cv_have_pr_set_dumpable = yes], [
    AC_DEFINE(HAVE_PR_SET_DUMPABLE,, [Define if you have prctl(PR_SET_DUMPABLE)])
  ])
])