diff options
-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 ****************************** |