Ignore:
Timestamp:
May 12, 2014, 8:58:38 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.6: updated vendor to latest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/replace/libreplace.m4

    r740 r860  
    6767
    6868AC_CHECK_HEADERS(stdbool.h stdint.h sys/select.h)
    69 AC_CHECK_HEADERS(setjmp.h utime.h)
     69AC_CHECK_HEADERS(setjmp.h utime.h sys/wait.h)
    7070
    7171LIBREPLACE_PROVIDE_HEADER([stdint.h])
     
    106106AC_CHECK_HEADERS(stropts.h)
    107107AC_CHECK_HEADERS(unix.h)
     108AC_CHECK_HEADERS(sys/ucontext.h)
    108109
    109110AC_CHECK_FUNCS(seteuid setresuid setegid setresgid chroot bzero strerror strerror_r)
     
    267268
    268269
     270dnl Check if the C compiler understands volatile (it should, being ANSI).
     271AC_CACHE_CHECK([that the C compiler understands volatile],libreplace_cv_volatile, [
     272        AC_TRY_COMPILE([#include <sys/types.h>],[volatile int i = 0],
     273                libreplace_cv_volatile=yes,libreplace_cv_volatile=no)])
     274if test x"$libreplace_cv_volatile" = x"yes"; then
     275        AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile])
     276fi
     277
     278m4_include(system/config.m4)
     279
    269280AC_CACHE_CHECK([for O_DIRECT flag to open(2)],libreplace_cv_HAVE_OPEN_O_DIRECT,[
    270281AC_TRY_COMPILE([
     
    278289    AC_DEFINE(HAVE_OPEN_O_DIRECT,1,[Whether the open(2) accepts O_DIRECT])
    279290fi
    280 
    281 
    282 dnl Check if the C compiler understands volatile (it should, being ANSI).
    283 AC_CACHE_CHECK([that the C compiler understands volatile],libreplace_cv_volatile, [
    284         AC_TRY_COMPILE([#include <sys/types.h>],[volatile int i = 0],
    285                 libreplace_cv_volatile=yes,libreplace_cv_volatile=no)])
    286 if test x"$libreplace_cv_volatile" = x"yes"; then
    287         AC_DEFINE(HAVE_VOLATILE, 1, [Whether the C compiler understands volatile])
    288 fi
    289 
    290 m4_include(system/config.m4)
    291291
    292292m4_include(dlfcn.m4)
     
    325325if test x"$libreplace_cv_struct_timespec" = x"yes"; then
    326326   AC_DEFINE(HAVE_STRUCT_TIMESPEC,1,[Whether we have struct timespec])
     327fi
     328
     329AC_CACHE_CHECK([for ucontext_t type],libreplace_cv_ucontext_t, [
     330    AC_TRY_COMPILE([
     331#include <signal.h>
     332#if HAVE_SYS_UCONTEXT_H
     333#include <sys/ucontext.h>
     334# endif
     335],[ucontext_t uc; sigaddset(&uc.uc_sigmask, SIGUSR1);],
     336    libreplace_cv_ucontext_t=yes,libreplace_cv_ucontext_t=no)])
     337if test x"$libreplace_cv_ucontext_t" = x"yes"; then
     338    AC_DEFINE(HAVE_UCONTEXT_T,1,[Whether we have ucontext_t])
    327339fi
    328340
Note: See TracChangeset for help on using the changeset viewer.