diff options
author | Ralph Giles <giles@thaumas.net> | 2011-10-28 07:14:58 -0700 |
---|---|---|
committer | Ralph Giles <giles@mozilla.com> | 2011-10-28 10:20:16 -0700 |
commit | c19bc346386544574bae65e7979ae94603688496 (patch) | |
tree | b69990557e57a086b278efcdaa0ee88b323e7e66 /configure.ac | |
parent | ed90cdc36903796752a89a789ef21f38306f230f (diff) | |
download | libopus-c19bc346386544574bae65e7979ae94603688496.tar.gz |
Check for __malloc_hook and define MALLOC_FAIL appropriately.
The glibc 2.14 NEWS file says __malloc_hook will be removed
in the next release, so future-proof our use by checking
for this symbol at configure time and only compiling the
malloc failure tests if it is present.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 656ee371..b689c641 100644 --- a/configure.ac +++ b/configure.ac @@ -185,6 +185,7 @@ fi AC_CHECK_FUNCS([lrintf]) AC_CHECK_FUNCS([lrint]) +AC_CHECK_FUNCS([__malloc_hook]) AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(int) |