Ticket #2998: 0001-configure.ac-cleanups.patch

File 0001-configure.ac-cleanups.patch, 2.3 KB (added by Adrian Bunk, 8 years ago)

patch

  • configure.ac

    From 28ee83c1f4f3901bbfd0316320006b3bbfaf8b42 Mon Sep 17 00:00:00 2001
    From: Adrian Bunk <bunk@stusta.de>
    Date: Sun, 7 Apr 2013 12:32:28 +0300
    Subject: 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.
    ---
     configure.ac |   17 +++--------------
     1 file changed, 3 insertions(+), 14 deletions(-)
    
    diff --git a/configure.ac b/configure.ac
    index 2c35d06..63fef7f 100644
    a b dnl ############################################################################ 
    156156dnl Check for header files 
    157157dnl ############################################################################ 
    158158 
    159 AC_CHECK_HEADERS([unistd.h string.h memory.h limits.h malloc.h \ 
    160         utime.h fcntl.h sys/statfs.h sys/vfs.h sys/time.h \ 
     159AC_CHECK_HEADERS([string.h memory.h limits.h malloc.h \ 
     160        utime.h sys/statfs.h sys/vfs.h \ 
    161161        sys/select.h sys/ioctl.h stropts.h arpa/inet.h \ 
    162         sys/socket.h sys/sysmacros.h sys/types.h sys/mkdev.h]) 
    163 AC_HEADER_MAJOR 
    164 AC_HEADER_TIME 
    165 AC_HEADER_DIRENT 
     162        sys/socket.h sys/sysmacros.h sys/mkdev.h]) 
    166163AC_HEADER_ASSERT 
    167164 
    168165 
    dnl ############################################################################ 
    170167dnl Check for types 
    171168dnl ############################################################################ 
    172169 
    173 AC_C_CONST 
    174170dnl Check largefile before type sizeof checks 
    175171AC_SYS_LARGEFILE 
    176172 
    dnl Check for functions 
    226222dnl ############################################################################ 
    227223 
    228224AC_CHECK_FUNCS([\ 
    229         isascii \ 
    230         statfs sysconf \ 
    231         tcgetattr tcsetattr \ 
    232         ftruncate \ 
    233225        strverscmp \ 
    234226        strncasecmp \ 
    235227        realpath 
    236228]) 
    237 AC_FUNC_STRCOLL 
    238229 
    239230dnl getpt is a GNU Extension (glibc 2.1.x) 
    240231AC_CHECK_FUNCS(posix_openpt, , [AC_CHECK_FUNCS(getpt)]) 
    dnl ############################################################################ 
    280271dnl OS specific flags 
    281272dnl ############################################################################ 
    282273 
    283 AC_ISC_POSIX 
    284  
    285274case $host_os in 
    286275aux*) 
    287276    # A/UX