mysql_client-5.1.47-configure-ps-cache-check.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. Index: mysql-4.1.22/configure.in
  7. ===================================================================
  8. --- mysql-4.1.22.orig/configure.in 2009-01-28 16:33:28.000000000 +0000
  9. +++ mysql-4.1.22/configure.in 2009-01-28 16:43:26.000000000 +0000
  10. @@ -471,8 +471,8 @@
  11. # Lock for PS
  12. AC_PATH_PROG(PS, ps, ps)
  13. -AC_MSG_CHECKING("how to check if pid exists")
  14. -PS=$ac_cv_path_PS
  15. +AC_CACHE_CHECK([how to check if pid exists], [ac_cv_FIND_PROC],
  16. +[
  17. # Linux style
  18. if $PS p $$ 2> /dev/null | grep $0 > /dev/null
  19. then
  20. @@ -511,8 +511,9 @@
  21. AC_MSG_ERROR([Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual.])
  22. esac
  23. fi
  24. -AC_SUBST(FIND_PROC)
  25. -AC_MSG_RESULT("$FIND_PROC")
  26. +ac_cv_FIND_PROC="$FIND_PROC"
  27. +])
  28. +AC_SUBST([FIND_PROC], [$ac_cv_FIND_PROC])
  29. # Check if a pid is valid
  30. AC_PATH_PROG(KILL, kill, kill)