+2003-03-03 Rob Browning <rlb@defaultvalue.org>
+
+ * configure.in: add AC_CHECK_FUNCS for memcmp and memmove.
+ (AH_BOTTOM): switch tests to prefer memcmp, memset, and memmove
+ over bzero, bcmp, and bcopy.
+
2003-02-23 Simon Josefsson <jas@extundo.com>
* Makefile.in (install-arch-indep, uninstall): Add SMTP manual.
/* Define to 1 if you have the `mbsinit' function. */
#undef HAVE_MBSINIT
+/* Define to 1 if you have the `memcmp' function. */
+#undef HAVE_MEMCMP
+
/* Define to 1 if you have the `memmove' function. */
#undef HAVE_MEMMOVE
# endif
#endif
-#ifndef HAVE_BCOPY
-#define bcopy(a,b,s) memcpy (b,a,s)
+/* avoid deprecated functions */
+#if HAVE_MEMCPY
+# define bcopy(a,b,s) memcpy (b,a,s)
#endif
-#ifndef HAVE_BZERO
-#define bzero(a,s) memset (a,0,s)
+#if HAVE_MEMSET
+# define bzero(a,s) memset (a,0,s)
#endif
-#ifndef HAVE_BCMP
-#define BCMP memcmp
+#if HAVE_MEMCMP
+# define BCMP memcmp
+# define bcmp memcmp
#endif
#endif /* EMACS_CONFIG_H */