pike.git / src / modules / _Stdio / configure.in

version» Context lines:

pike.git/src/modules/_Stdio/configure.in:58:   AC_CHECK_LIB(socket, socket)   AC_CHECK_LIB(nsl, gethostbyname)   AC_CHECK_LIB(net, __get_socket_descriptor)   dnl AC_CHECK_LIB(zfs, libzfs_init)      dnl GMP is required and tested for in Gmp module. We just want LIBS   dnl updated here. This is needed in case the gmp library is not a   dnl shared library.   AC_CHECK_LIB(gmp, main)    - AC_HAVE_FUNCS(getwd readdir_r statvfs statfs ustat lseek64 lstat fsync \ + AC_HAVE_FUNCS(readdir_r statvfs statfs ustat lseek64 lstat fsync \    grantpt unlockpt ptsname posix_openpt socketpair writev sendfile munmap \    madvise poll setsockopt getprotobyname truncate64 ftruncate64 inet_ntoa \    inet_ntop execve listxattr flistxattr getxattr fgetxattr setxattr fsetxattr \    fdopendir pathconf fpathconf dirfd fstatat openat unlinkat kqueue access)      AC_MSG_CHECKING([whether IPPROTO_IPV6 exists])   AC_CACHE_VAL(pike_cv_have_IPPROTO_IPV6, [    AC_TRY_COMPILE([   // The WIN32 SDK hides the symbol if the API level is not at least 5.2.   #define WIN32 100
pike.git/src/modules/_Stdio/configure.in:360:    AC_DEFINE(HAVE_HPUX_SENDFILE)    fi    else    AC_MSG_RESULT([4 - Linux style])    fi    fi   else    :   fi    - AC_MSG_CHECKING(if mkdir takes 1 or 2 arguments) - AC_CACHE_VAL(pike_cv_func_mkdir_args,[ - AC_TRY_COMPILE([ - #ifndef _LARGEFILE_SOURCE - # define _FILE_OFFSET_BITS 64 - # define _LARGEFILE_SOURCE - # define _LARGEFILE64_SOURCE 1 - #endif - /* HPUX needs these too... */ - #ifndef __STDC_EXT__ - # define __STDC_EXT__ - #endif /* !__STDC_EXT__ */ -  - #include <sys/types.h> - #ifdef HAVE_UNISTD_H - #include <unistd.h> - #endif - #ifdef HAVE_DIRECT_H - #include <direct.h> - #endif - ],[ -  mkdir("conftestdir",0666); - ],pike_cv_func_mkdir_args=2,pike_cv_func_mkdir_args=1) - ]) -  - AC_MSG_RESULT($pike_cv_func_mkdir_args) - AC_DEFINE_UNQUOTED(MKDIR_ARGS,$pike_cv_func_mkdir_args) -  +    if test x$ac_cv_func_getxattr = xyes ; then    AC_MSG_CHECKING(if getxattr takes 4(Linux) or 6(Darwin) arguments)    AC_CACHE_VAL(pike_cv_func_darwin_getxattr, [    AC_TRY_COMPILE([   #ifndef _LARGEFILE_SOURCE   # define _FILE_OFFSET_BITS 64   # define _LARGEFILE_SOURCE   # define _LARGEFILE64_SOURCE 1   #endif   /* HPUX needs these too... */
pike.git/src/modules/_Stdio/configure.in:1368:   ,   pike_cv_socket_buffer_max=0,   pike_cv_socket_buffer_max=0   )   fi   ])      AC_DEFINE_UNQUOTED(SOCKET_BUFFER_MAX,$pike_cv_socket_buffer_max)   AC_MSG_RESULT($pike_cv_socket_buffer_max)    - AC_MSG_CHECKING(for working getcwd) - AC_CACHE_VAL(pike_cv_func_working_getcwd, - [ - AC_TRY_RUN([ - #ifndef _LARGEFILE_SOURCE - # define _FILE_OFFSET_BITS 64 - # define _LARGEFILE_SOURCE - # define _LARGEFILE64_SOURCE 1 - #endif - /* HPUX needs these too... */ - #ifndef __STDC_EXT__ - # define __STDC_EXT__ - #endif /* !__STDC_EXT__ */ -  - #ifndef POSIX_SOURCE - #define POSIX_SOURCE - #endif - #ifdef HAVE_UNISTD_H - #include <unistd.h> - #endif - #ifdef HAVE_DIRECT_H - #include <direct.h> - #endif /* HAVE_DIRECT_H */ - #include <signal.h> -  - #ifndef __NT__ - int sig_child(int arg) - { - #ifdef HAVE_WAITPID -  waitpid(-1,0,WNOHANG); - #else - #ifdef HAVE_WAIT3 -  wait3(0,WNOHANG,0); - #else - #ifdef HAVE_WAIT4 -  wait3(-1,0,WNOHANG,0); - #else -  -  /* Leave them hanging */ -  - #endif /* HAVE_WAIT4 */ - #endif /* HAVE_WAIT3 */ - #endif /* HAVE_WAITPID */ -  - #ifdef SIGNAL_ONESHOT -  my_signal(SIGCHLD, sig_child); - #endif - } -  - int sig_alarm() { exit(1); } - #endif /* !__NT__ */ -  - int main() - { -  char *tmp; - #ifndef __NT__ -  signal(SIGCHLD,sig_child); -  signal(SIGALRM,sig_alarm); -  alarm(4); - #endif /* !__NT__ */ -  tmp=getcwd(0,10000); -  if(tmp && strlen(tmp) <10000) exit(0); -  exit(1); - } - ],pike_cv_func_working_getcwd=yes,pike_cv_func_working_getcwd=no, -  pike_cv_func_working_getcwd=yes)]) -  - if test "$pike_cv_func_working_getcwd" = yes; then -  AC_MSG_RESULT(yes) -  AC_DEFINE(HAVE_WORKING_GETCWD) - else -  AC_MSG_RESULT(no) - fi -  +    AC_MSG_CHECKING(for pty master device)   AC_CACHE_VAL(pike_cv_pty_master_pathname, [    pike_cv_pty_master_pathname=no    for i in ptmx ptc; do    if test -c /dev/$i; then    pike_cv_pty_master_pathname="/dev/$i"    break    else    :    fi