Menu

[r481]: / branches / PHP-5 / php-java-bridge / tests.m4 / function_checks.m4  Maximize  Restore  History

Download this file

27 lines (23 with data), 680 Bytes

AC_DEFUN(JAVA_FUNCTION_CHECKS,[

 AC_CHECK_HEADERS([ \
   sys/param.h sys/types.h sys/time.h assert.h fcntl.h \
   limits.h signal.h stdarg.h stdlib.h string.h \
   syslog.h sys/ioctl.h sys/poll.h sys/select.h \
   sys/socket.h sys/un.h sys/wait.h unistd.h 
 ],[],[],[
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
 ])

 AC_CHECK_FUNCS(longjmp perror snprintf tempnam \
  strerror strdup unlink putenv execv fork \
  memcpy memmove sigwait)

dnl add -lsocket to the link line of the module and the server part
 AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
])
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.