Commit 12c0a8da authored by Dave Love's avatar Dave Love
Browse files

Check for memcpy, mempcpy, mblen, mbrlen. Use

AC_FUNC_STRFTIME, AC_STRUCT_TIMEZONE, AC_TYPE_MBSTATE_T.
(NLIST_STRUCT): Don't define.
parent 87c35974
......@@ -2225,11 +2225,11 @@ AC_CHECK_FUNCS(gethostname getdomainname dup2 \
rename closedir mkdir rmdir sysinfo \
random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
utimes setrlimit setpgid getcwd getwd shutdown 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 memcmp memmove difftime)
memset memcmp memmove difftime memcpy mempcpy mblen mbrlen)
AC_CHECK_HEADERS(sys/un.h)
......@@ -2244,6 +2244,8 @@ AC_FUNC_FSEEKO
AC_FUNC_GETPGRP
AC_FUNC_STRFTIME
# UNIX98 PTYs.
AC_CHECK_FUNCS(grantpt)
......@@ -2378,6 +2380,9 @@ if test "x$HAVE_TIMEVAL" = xyes; then
fi
fi
# This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
AC_STRUCT_TIMEZONE
dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect.
if test "$ac_cv_func_gettimeofday" = yes; then
AC_CACHE_CHECK([for struct timezone], emacs_cv_struct_timezone,
......@@ -2450,6 +2455,8 @@ fi
AC_CHECK_TYPES(size_t)
AC_TYPE_MBSTATE_T
dnl Restrict could probably be used effectively other than in regex.c.
AC_CACHE_CHECK([for C restrict keyword], emacs_cv_c_restrict,
[AC_TRY_COMPILE([void fred (int *restrict x);], [],
......@@ -2477,9 +2484,6 @@ if test "$emacs_cv_c_restrict_arr" = yes; then
declarations. Define as empty for no equivalent.])
fi
AC_CHECK_HEADERS(nlist.h, [AC_DEFINE(NLIST_STRUCT, 1,
[Define to 1 if you have <nlist.h>.])])
dnl Fixme: AC_SYS_POSIX_TERMIOS should probably be used, but it's not clear
dnl how the tty code is related to POSIX and/or other versions of termios.
dnl The following looks like a useful start.
......
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