mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
Ticket #2998: configure.ac cleanups.
Remove tests whose results are not used: * AC_CHECK_HEADERS of unistd.h, fcntl.h, sys/time.h, sys/types.h * AC_HEADER_MAJOR * AC_HEADER_TIME * AC_HEADER_DIRENT * AC_CHECK_FUNCS of isascii, statfs, sysconf, tcgetattr, tcsetattr, ftruncate * AC_FUNC_STRCOLL AC_C_CONST is obsolete, today it is safe to assume all C compilers support at least C89. The INTERACTIVE UNIX that needed AC_ISC_POSIX is long dead. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
6d172837f0
commit
73588a1a59
17
configure.ac
17
configure.ac
@ -156,13 +156,10 @@ dnl ############################################################################
|
||||
dnl Check for header files
|
||||
dnl ############################################################################
|
||||
|
||||
AC_CHECK_HEADERS([unistd.h string.h memory.h limits.h malloc.h \
|
||||
utime.h fcntl.h sys/statfs.h sys/vfs.h sys/time.h \
|
||||
AC_CHECK_HEADERS([string.h memory.h limits.h malloc.h \
|
||||
utime.h sys/statfs.h sys/vfs.h \
|
||||
sys/select.h sys/ioctl.h stropts.h arpa/inet.h \
|
||||
sys/socket.h sys/sysmacros.h sys/types.h sys/mkdev.h])
|
||||
AC_HEADER_MAJOR
|
||||
AC_HEADER_TIME
|
||||
AC_HEADER_DIRENT
|
||||
sys/socket.h sys/sysmacros.h sys/mkdev.h])
|
||||
AC_HEADER_ASSERT
|
||||
|
||||
|
||||
@ -170,7 +167,6 @@ dnl ############################################################################
|
||||
dnl Check for types
|
||||
dnl ############################################################################
|
||||
|
||||
AC_C_CONST
|
||||
dnl Check largefile before type sizeof checks
|
||||
AC_SYS_LARGEFILE
|
||||
|
||||
@ -226,15 +222,10 @@ dnl Check for functions
|
||||
dnl ############################################################################
|
||||
|
||||
AC_CHECK_FUNCS([\
|
||||
isascii \
|
||||
statfs sysconf \
|
||||
tcgetattr tcsetattr \
|
||||
ftruncate \
|
||||
strverscmp \
|
||||
strncasecmp \
|
||||
realpath
|
||||
])
|
||||
AC_FUNC_STRCOLL
|
||||
|
||||
dnl getpt is a GNU Extension (glibc 2.1.x)
|
||||
AC_CHECK_FUNCS(posix_openpt, , [AC_CHECK_FUNCS(getpt)])
|
||||
@ -280,8 +271,6 @@ dnl ############################################################################
|
||||
dnl OS specific flags
|
||||
dnl ############################################################################
|
||||
|
||||
AC_ISC_POSIX
|
||||
|
||||
case $host_os in
|
||||
aux*)
|
||||
# A/UX
|
||||
|
Loading…
Reference in New Issue
Block a user