From: Francis Dupont Date: Sat, 11 Apr 2020 14:51:54 +0000 (+0200) Subject: [#767] Added a warning when ps -p bugs X-Git-Tag: Kea-1.7.8~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44dc50d1d71a508fdf72d2ba8536b3f5c4d8e022;p=thirdparty%2Fkea.git [#767] Added a warning when ps -p bugs --- diff --git a/configure.ac b/configure.ac index b6e4195d06..aa641578de 100755 --- a/configure.ac +++ b/configure.ac @@ -67,6 +67,12 @@ AC_SUBST(SEP) # pkg-config can be required. AC_PATH_PROG([PKG_CONFIG], [pkg-config]) +# check against BusyBox ps not supporting ps -p. +ps -p 1234 2>&1 > /dev/null | grep 'unrecognized option: p' +if test $? -eq 0; then + AC_MSG_WARN("ps does not support -p. It is likely the BusyBox ps: please install a full ps like procps") +fi + # Enable low-performing debugging facilities? This option optionally # enables some debugging aids that perform slowly and hence aren't built # by default.