It seems, whenever a new version is released terminal asks for different versions of Glibc. So if terminal gives such an error:
checking the GLIBC_VERSION version... unsupported version 2.19
configure: error: Valgrind requires glibc version 2.2 - 2.14
Then you will need to edit configure file for 2.19 version, because that version is unsupported as reported in teminal.
So find and open the file called configure in valgrind directory and via CTRL+F find in the file following piece of code:
case
"${GLIBC_VERSION}" in
2.2)
When you get to that line of code in the editor(always line number may change by release new version) you find the below code beginning with 2.2).
2.2)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.15 family" >&5
$as_echo "2.15 family" >&6; }
$as_echo "#define GLIBC_2_14 1" >>confdefs.h
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}"
;;
And if you get down there should be the same code for every version from 2.2 to 2.21 or more. Copy the code of any version and past it after last version, but notice that the above code is only for 2.2 version, which is beginning with 2.2) you will need to change all those 2.2)'s to the version you are required from terminal which is 2.19) in my case.
So if version 2.19 is required by terminal the code you will be adding will look like:
2.19)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 2.19 family" >&5
$as_echo "2.19 family" >&6; }
$as_echo "#define GLIBC_2_19 1" >>confdefs.h
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}"
;;
And following your code if go down the file there should be darwin) on the next lines.