Ignore:
Timestamp:
08/12/2007 23:40:29 (4 years ago)
Author:
chris
Message:

Check for optreset (fixes [1930])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/configure.ac

    r1866 r1974  
    4242AC_DEFINE_UNQUOTED([PERL_EXECUTABLE], ["$TARGET_PERL"],  
    4343        [Location of the perl executable]) 
     44 
     45AC_CHECK_PROGS([AR],     [ar],     
     46        [AC_MSG_ERROR([[cannot find ar executable]])]) 
     47AC_CHECK_PROGS([RANLIB], [ranlib], 
     48        [AC_MSG_ERROR([[cannot find ranlib executable]])]) 
    4449 
    4550### Checks for libraries. 
     
    138143AC_CHECK_TYPES([u_int8_t, u_int16_t, u_int32_t, u_int64_t]) 
    139144AC_CHECK_TYPES([uint8_t, uint16_t, uint32_t, uint64_t]) 
     145 
    140146AC_HEADER_STDBOOL 
    141147AC_C_CONST 
     
    147153AC_TYPE_PID_T 
    148154AC_TYPE_SIZE_T 
     155 
    149156AC_CHECK_MEMBERS([struct stat.st_flags]) 
    150157AC_CHECK_MEMBERS([struct stat.st_mtimespec]) 
     
    153160  #include <netinet/in.h> 
    154161  ]]) 
     162 
    155163AC_CHECK_DECLS([INFTIM],,, [[#include <poll.h>]]) 
    156164AC_CHECK_DECLS([SO_PEERCRED],,, [[#include <sys/socket.h>]]) 
    157165AC_CHECK_DECLS([O_BINARY],,,) 
     166 
     167AC_CHECK_DECLS([optreset],,, [[#include <getopt.h>]]) 
     168AC_CHECK_DECL([dirfd], 
     169        [], 
     170        AC_DEFINE([dirfd(x)], [(x)->d_fd], [dirfd() replacement for Solaris]), 
     171        [#include <getopt.h>]) 
     172 
    158173AC_HEADER_TIME 
    159174AC_STRUCT_TM 
Note: See TracChangeset for help on using the changeset viewer.