aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2011-10-28 07:14:58 -0700
committerRalph Giles <giles@mozilla.com>2011-10-28 10:20:16 -0700
commitc19bc346386544574bae65e7979ae94603688496 (patch)
treeb69990557e57a086b278efcdaa0ee88b323e7e66 /configure.ac
parented90cdc36903796752a89a789ef21f38306f230f (diff)
downloadlibopus-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.ac1
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)