Commit b0e44248 authored by Rob Browning's avatar Rob Browning
Browse files

* 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.
parent 28528604
......@@ -2010,6 +2010,9 @@ case "${canonical}" in
hppa*-hp-hpux9* )
machine=hp800 opsys=hpux9
;;
hppa*-hp-hpux10.2* )
machine=hp800 opsys=hpux10-20
;;
hppa*-hp-hpux10* )
machine=hp800 opsys=hpux10
;;
......@@ -11204,6 +11207,8 @@ done
 
 
 
 
 
 
......@@ -11214,7 +11219,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
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
......
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment