Ignore:
Timestamp:
Jan 18, 2007, 1:21:07 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Added enough autoconf checks and #ifdefs so that libzzuf builds on Win32. zzuf itself doesn't build yet, though.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r1674 r1695  
    1515AC_PROG_LIBTOOL
    1616
    17 AC_CHECK_HEADERS(inttypes.h stdint.h getopt.h libc.h malloc.h)
    18 AC_CHECK_FUNCS(open64 lseek64 mmap64 fopen64 fseeko _IO_getc getline getdelim __getdelim fgetln __srefill map_fd memalign posix_memalign)
     17AC_CHECK_HEADERS(inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h)
     18AC_CHECK_FUNCS(open64 lseek64 mmap64 fopen64 fseeko _IO_getc getline getdelim __getdelim fgetln __srefill map_fd memalign posix_memalign aio_read accept socket readv pread recv recvfrom recvmsg mmap valloc sigaction)
    1919AC_CHECK_TYPES(sighandler_t, [], [],
    2020  [#define _GNU_SOURCE
     
    2525  [#include <sys/types.h>
    2626   #include <sys/socket.h>])
     27
     28AC_MSG_CHECKING(for read() prototype)
     29AC_TRY_COMPILE([#include <unistd.h>],
     30 [ssize_t read(int fd, void *buf, size_t count);],
     31 [AC_MSG_RESULT(ssize_t read(... size_t);)
     32  AC_DEFINE(READ_USES_SSIZE_T, 1, [Define to 1 if read() uses ssize_t.])],
     33 [AC_MSG_RESULT(int read(... unsigned int);)])
    2734
    2835AC_CHECK_FUNCS(getopt_long,
Note: See TracChangeset for help on using the changeset viewer.