summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorRob Browning <rlb@defaultvalue.org>2003-03-03 18:29:58 +0000
committerRob Browning <rlb@defaultvalue.org>2003-03-03 18:29:58 +0000
commitb0e442481b4718f1f372381e6be78ce7aaf7b522 (patch)
tree43a2a9b6b167e1071cafc3f76f3c03fe9db1790c /configure.in
parent285286045fedc427d537a1dae9823d27ba3a3823 (diff)
downloademacs-b0e442481b4718f1f372381e6be78ce7aaf7b522.tar.gz
* 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.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in17
1 files changed, 10 insertions, 7 deletions
diff --git a/configure.in b/configure.in
index 5c253eb583c..b4c473ac102 100644
--- a/configure.in
+++ b/configure.in
@@ -2209,7 +2209,8 @@ strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
__fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
sendto recvfrom getsockopt setsockopt getsockname getpeername \
-gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset)
+gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
+memset memcmp memmove)
AC_CHECK_HEADERS(sys/un.h)
@@ -2826,14 +2827,16 @@ typedef unsigned size_t;
# endif
#endif
-#ifndef HAVE_BCOPY
-#define bcopy(a,b,s) memcpy (b,a,s)
+/* avoid deprecated functions */
+#ifdef HAVE_MEMCPY
+# define bcopy(a,b,s) memcpy (b,a,s)
#endif
-#ifndef HAVE_BZERO
-#define bzero(a,s) memset (a,0,s)
+#ifdef HAVE_MEMSET
+# define bzero(a,s) memset (a,0,s)
#endif
-#ifndef HAVE_BCMP
-#define BCMP memcmp
+#ifdef HAVE_MEMCMP
+# define BCMP memcmp
+# define bcmp memcmp
#endif
#endif /* EMACS_CONFIG_H */