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

version» Context lines:

pike.git/src/modules/_Stdio/configure.in:56:   fi         AC_HEADER_DIRENT   AC_CHECK_LIB(bind, __inet_ntoa)   AC_CHECK_LIB(socket, socket)   AC_CHECK_LIB(nsl, gethostbyname)   AC_CHECK_LIB(net, __get_socket_descriptor)   dnl AC_CHECK_LIB(zfs, libzfs_init)    - 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:1265:   ,   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