diff options
author | Julio M. Merino Vidal <jmmv@NetBSD.org> | 2006-07-22 19:58:10 +0800 |
---|---|---|
committer | Harish Krishnaswamy <kharish@src.gnome.org> | 2006-07-22 19:58:10 +0800 |
commit | bbbfb5e4ab6b1192c176ec51660cd09eb68c0d92 (patch) | |
tree | 479b715d6fd06a61d3853010855d2db0a0cc1874 | |
parent | ad08df17c10a4bcd4c122230406c66ef4de6612a (diff) | |
download | gsoc2013-evolution-bbbfb5e4ab6b1192c176ec51660cd09eb68c0d92.tar.gz gsoc2013-evolution-bbbfb5e4ab6b1192c176ec51660cd09eb68c0d92.tar.zst gsoc2013-evolution-bbbfb5e4ab6b1192c176ec51660cd09eb68c0d92.zip |
Do not assume that only SunOS has pkill because other systems (e.g.
2006-07-22 Julio M. Merino Vidal <jmmv@NetBSD.org>
* configure.in: Do not assume that only SunOS has pkill because
other systems (e.g. NetBSD) also have it. Fix the check that
looks for an utility to kill a process by name to properly detect
either pkill or killall. Fixes bug #336853.
svn path=/trunk/; revision=32386
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | configure.in | 18 |
2 files changed, 12 insertions, 13 deletions
@@ -1,3 +1,10 @@ +2006-07-22 Julio M. Merino Vidal <jmmv@NetBSD.org> + + * configure.in: Do not assume that only SunOS has pkill because + other systems (e.g. NetBSD) also have it. Fix the check that + looks for an utility to kill a process by name to properly detect + either pkill or killall. Fixes bug #336853. + 2006-07-13 Andre Klapper <a9016009@gmx.de> * configure.in: diff --git a/configure.in b/configure.in index 3cacc1564e..9bf5e0e61f 100644 --- a/configure.in +++ b/configure.in @@ -1014,20 +1014,12 @@ dnl ***************** dnl killall or pkill? dnl ***************** -AC_MSG_CHECKING(for command to kill processes) - -if test `uname -s` = "SunOS" ; then - KILL_PROCESS_CMD="pkill"; -else - KILL_PROCESS_CMD="killall"; -fi - -KILL_PROCESS_CMD=`which $KILL_PROCESS_CMD` -if test -z "$KILL_PROCESS_CMD" ; then - AC_MSG_RESULT(none) +AC_PATH_PROGS(KILL_PROCESS_CMD, killall pkill) +if test -z "$KILL_PROCESS_CMD"; then + AC_MSG_WARN([Could not find a command to kill a process by name]) else - AC_MSG_RESULT($KILL_PROCESS_CMD) - AC_DEFINE_UNQUOTED([KILL_PROCESS_CMD], "$KILL_PROCESS_CMD", [Command to kill processes by name]) + AC_DEFINE_UNQUOTED([KILL_PROCESS_CMD], "$KILL_PROCESS_CMD", + [Command to kill processes by name]) fi dnl ****************************** |