0001-configure-ps-cache-check.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Patch borrowed from
  2. http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/mysql/files/configure-ps-cache-check.patch
  3. It allows to specify through ac_cv_FIND_PROC how ps should be used on
  4. the target to find the PID of a program.
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. ---
  7. configure.in | 9 +++++----
  8. 1 file changed, 5 insertions(+), 4 deletions(-)
  9. Index: mysql-5.1.53/configure.in
  10. ===================================================================
  11. --- mysql-5.1.53.orig/configure.in
  12. +++ mysql-5.1.53/configure.in
  13. @@ -462,8 +462,8 @@
  14. # then Make, then shell. The autoconf substitution uses single quotes, so
  15. # no unprotected single quotes should appear in the expression.
  16. AC_PATH_PROG(PS, ps, ps)
  17. -AC_MSG_CHECKING("how to check if pid exists")
  18. -PS=$ac_cv_path_PS
  19. +AC_CACHE_CHECK([how to check if pid exists], [ac_cv_FIND_PROC],
  20. +[
  21. # Linux style
  22. if $PS wwwp $$ 2> /dev/null | grep -- "$0" > /dev/null
  23. then
  24. @@ -502,8 +502,9 @@
  25. 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.])
  26. esac
  27. fi
  28. -AC_SUBST(FIND_PROC)
  29. -AC_MSG_RESULT("$FIND_PROC")
  30. +ac_cv_FIND_PROC="$FIND_PROC"
  31. +])
  32. +AC_SUBST([FIND_PROC], [$ac_cv_FIND_PROC])
  33. # Check if a pid is valid
  34. AC_PATH_PROG(KILL, kill, kill)