about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorHan Pingtian <hanpt@linux.vnet.ibm.com>2021-05-15 14:23:28 -0700
committerBart Schaefer <schaefer@ipost.com>2021-05-15 14:23:28 -0700
commit8bdbc6149709e4c5e9abfe9a02cdc5101114901a (patch)
tree2d7619c0c71599087223b81215ce8fcd68515b96 /configure.ac
parent4fa4dcad17f593a8def8799ad1d5258c328d9ead (diff)
downloadzsh-8bdbc6149709e4c5e9abfe9a02cdc5101114901a.tar.gz
zsh-8bdbc6149709e4c5e9abfe9a02cdc5101114901a.tar.xz
zsh-8bdbc6149709e4c5e9abfe9a02cdc5101114901a.zip
33465: use prctl() for "jobs -Z" where available
Bart apologizes for waiting 7 years to apply this change.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e2ddf0e55..dd0d3ffac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2065,6 +2065,12 @@ AH_TEMPLATE([HAVE_SETPROCTITLE],
 AC_CHECK_FUNC(setproctitle,AC_DEFINE(HAVE_SETPROCTITLE),
 AC_SEARCH_LIBS(setproctitle,util,AC_DEFINE(HAVE_SETPROCTITLE)))
 
+dnl CHECK FOR prctl() FOR jobs -Z / ARGV0 when checking with ps -e
+AH_TEMPLATE([HAVE_PRCTL],
+[Define to 1 if the system supports `prctl' to change process name])
+AC_CHECK_FUNC(prctl,AC_DEFINE(HAVE_PRCTL),
+AC_SEARCH_LIBS(prctl,c,AC_DEFINE(HAVE_PRCTL)))
+
 dnl -------------
 dnl CHECK FOR NIS
 dnl -------------