aboutsummaryrefslogtreecommitdiff
path: root/m4/macros/func_bad_memcmp.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/macros/func_bad_memcmp.m4')
-rw-r--r--m4/macros/func_bad_memcmp.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/m4/macros/func_bad_memcmp.m4 b/m4/macros/func_bad_memcmp.m4
new file mode 100644
index 000000000000..1713ff9cf1c1
--- /dev/null
+++ b/m4/macros/func_bad_memcmp.m4
@@ -0,0 +1,11 @@
+dnl My version is similar to the one from Autoconf 2.52, but I also
+dnl define HAVE_BAD_MEMCMP so that I can do smarter things to avoid
+dnl linkage conflicts with bad memcmp versions that are in libc.
+AC_DEFUN([AMU_FUNC_BAD_MEMCMP],
+[
+AC_FUNC_MEMCMP
+if test "$ac_cv_func_memcmp_working" = no
+then
+AC_DEFINE(HAVE_BAD_MEMCMP)
+fi
+])