diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2009-02-01 19:01:11 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2009-02-01 19:01:11 +0000 |
commit | 5d425e876618dfb41d01afc4bfec334fdbc55b7a (patch) | |
tree | 8542b534bd3f5fe8389eeb4e254b1e58ca2ea55b | |
parent | c6d86a3764861c0db49ef1a93fa34b42432e344e (diff) | |
download | valgrind-5d425e876618dfb41d01afc4bfec334fdbc55b7a.tar.gz |
Add support for glibc-2.10 (when it eventually appears).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9096 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r-- | configure.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/configure.in b/configure.in index b6e6b2798..15aabb1ae 100644 --- a/configure.in +++ b/configure.in @@ -577,6 +577,16 @@ AC_EGREP_CPP([GLIBC_29], [ ], GLIBC_VERSION="2.9") +AC_EGREP_CPP([GLIBC_210], [ +#include <features.h> +#ifdef __GNU_LIBRARY__ + #if (__GLIBC__ == 2 && __GLIBC_MINOR__ == 10) + GLIBC_210 + #endif +#endif +], +GLIBC_VERSION="2.10") + AC_EGREP_CPP([AIX5_LIBC], [ #include <standards.h> #if defined(_AIXVERSION_510) || defined(_AIXVERSION_520) || defined(_AIXVERSION_530) @@ -647,6 +657,13 @@ case "${GLIBC_VERSION}" in DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" ;; + 2.10) + AC_MSG_RESULT(2.10 family) + AC_DEFINE([GLIBC_2_10], 1, [Define to 1 if you're using glibc 2.10.x]) + DEFAULT_SUPP="glibc-2.X.supp ${DEFAULT_SUPP}" + DEFAULT_SUPP="glibc-2.34567-NPTL-helgrind.supp ${DEFAULT_SUPP}" + DEFAULT_SUPP="glibc-2.X-drd.supp ${DEFAULT_SUPP}" + ;; aix5) AC_MSG_RESULT(AIX 5.1 or 5.2 or 5.3) AC_DEFINE([AIX5_LIBC], 1, [Define to 1 if you're using AIX 5.1 or 5.2 or 5.3]) @@ -655,7 +672,7 @@ case "${GLIBC_VERSION}" in *) AC_MSG_RESULT(unsupported version) - AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.9]) + AC_MSG_ERROR([Valgrind requires glibc version 2.2 - 2.10]) AC_MSG_ERROR([or AIX 5.1 or 5.2 or 5.3 GLIBC_VERSION]) ;; esac |