2 http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/mysql/files/configure-ps-cache-check.patch
4 It allows to specify through ac_cv_FIND_PROC how ps should be used on
5 the target to find the PID of a program.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 configure.in | 9 +++++----
11 1 file changed, 5 insertions(+), 4 deletions(-)
13 Index: mysql-5.1.53/configure.in
14 ===================================================================
15 --- mysql-5.1.53.orig/configure.in
16 +++ mysql-5.1.53/configure.in
18 # then Make, then shell. The autoconf substitution uses single quotes, so
19 # no unprotected single quotes should appear in the expression.
20 AC_PATH_PROG(PS, ps, ps)
21 -AC_MSG_CHECKING("how to check if pid exists")
23 +AC_CACHE_CHECK([how to check if pid exists], [ac_cv_FIND_PROC],
26 if $PS wwwp $$ 2> /dev/null | grep -- "$0" > /dev/null
29 AC_MSG_ERROR([Could not find the right ps and/or grep switches. Which OS is this? See the Installation chapter in the Reference Manual.])
33 -AC_MSG_RESULT("$FIND_PROC")
34 +ac_cv_FIND_PROC="$FIND_PROC"
36 +AC_SUBST([FIND_PROC], [$ac_cv_FIND_PROC])
38 # Check if a pid is valid
39 AC_PATH_PROG(KILL, kill, kill)