Mercurial > emacs
changeset 50012:088ec1541d38
* 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.
author | Rob Browning <rlb@defaultvalue.org> |
---|---|
date | Mon, 03 Mar 2003 18:29:58 +0000 |
parents | e6b3933a36f6 |
children | 1851c50836dd |
files | configure configure.in |
diffstat | 2 files changed, 17 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Mon Mar 03 15:13:01 2003 +0000 +++ b/configure Mon Mar 03 18:29:58 2003 +0000 @@ -2010,6 +2010,9 @@ hppa*-hp-hpux9* ) machine=hp800 opsys=hpux9 ;; + hppa*-hp-hpux10.2* ) + machine=hp800 opsys=hpux10-20 + ;; hppa*-hp-hpux10* ) machine=hp800 opsys=hpux10 ;; @@ -11207,6 +11210,8 @@ + + for ac_func in gethostname getdomainname dup2 \ rename closedir mkdir rmdir sysinfo \ random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ @@ -11214,7 +11219,8 @@ 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
--- a/configure.in Mon Mar 03 15:13:01 2003 +0000 +++ b/configure.in Mon Mar 03 18:29:58 2003 +0000 @@ -2209,7 +2209,8 @@ 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 @@ # 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 */