patch-configure 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- valgrind-3.3.1.orig/configure 2008-06-01 03:44:42.000000000 +0200
  3. +++ valgrind-3.3.1/configure 2009-12-12 00:28:43.000000000 +0100
  4. @@ -4129,7 +4129,7 @@ echo "${ECHO_T}ok (${host_os})" >&6
  5. echo "$as_me:$LINENO: checking for the kernel version" >&5
  6. echo $ECHO_N "checking for the kernel version... $ECHO_C" >&6
  7. - kernel=`uname -r`
  8. + kernel=2.6.32
  9. case "${kernel}" in
  10. 2.6.*)
  11. @@ -4637,6 +4637,27 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&
  12. fi
  13. rm -f conftest*
  14. +cat >conftest.$ac_ext <<_ACEOF
  15. +/* confdefs.h. */
  16. +_ACEOF
  17. +cat confdefs.h >>conftest.$ac_ext
  18. +cat >>conftest.$ac_ext <<_ACEOF
  19. +/* end confdefs.h. */
  20. +
  21. +#include <features.h>
  22. +#ifdef __GNU_LIBRARY__
  23. + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 11)
  24. + GLIBC_211
  25. + #endif
  26. +#endif
  27. +
  28. +_ACEOF
  29. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30. + $EGREP "GLIBC_211" >/dev/null 2>&1; then
  31. + libc="2.11"
  32. +fi
  33. +rm -f conftest*
  34. +
  35. cat >conftest.$ac_ext <<_ACEOF
  36. /* confdefs.h. */
  37. @@ -4742,6 +4763,17 @@ _ACEOF
  38. DEFAULT_SUPP="glibc-2.8.supp ${DEFAULT_SUPP}"
  39. DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
  40. ;;
  41. + 2.11)
  42. + echo "$as_me:$LINENO: result: 2.11 family" >&5
  43. +echo "${ECHO_T}2.11 family" >&6
  44. +
  45. +cat >>confdefs.h <<\_ACEOF
  46. +#define GLIBC_2_11 1
  47. +_ACEOF
  48. +
  49. + DEFAULT_SUPP="glibc-2.8.supp ${DEFAULT_SUPP}"
  50. + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}"
  51. + ;;
  52. aix5)
  53. echo "$as_me:$LINENO: result: AIX 5.1 or 5.2 or 5.3" >&5
  54. echo "${ECHO_T}AIX 5.1 or 5.2 or 5.3" >&6