[project @ 2002-10-08 08:03:01 by wolfgang]
authorwolfgang <unknown>
Tue, 8 Oct 2002 08:03:02 +0000 (08:03 +0000)
committerwolfgang <unknown>
Tue, 8 Oct 2002 08:03:02 +0000 (08:03 +0000)
Make the new Posix bindings compile on Mac OS X.
Most notable, Mac OS X lacks
*) lchown
*) SIGPOLL
I don't know of a replacement of either, so they are just left out when
they are not detected by configure.

configure.in
mk/config.h.in

index c9c7702..a7fa648 100644 (file)
@@ -711,7 +711,8 @@ dnl ** check for full ANSI header (.h) files
 AC_HEADER_STDC
 
 dnl ** check for specific header (.h) files that we are interested in
-AC_CHECK_HEADERS(Files.h arpa/inet.h assert.h console.h ctype.h dirent.h errno.h fcntl.h float.h ftw.h grp.h ieee754.h inttypes.h limits.h malloc.h memory.h nlist.h pascal.h pwd.h sgtty.h siginfo.h signal.h stat.h stdint.h stdlib.h stddef.h stdarg.h string.h sys/fault.h sys/file.h sys/ioctl.h sys/limits.h sys/mman.h sys/param.h sys/procfs.h sys/resource.h sys/signal.h sys/socket.h netdb.h netinet/in.h netinet/tcp.h sys/stat.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/types.h sys/un.h sys/utsname.h sys/vadvise.h sys/wait.h termio.h termios.h time.h types.h unistd.h utime.h values.h vfork.h bfd.h winsock.h pthread.h sys/uio.h)
+AC_CHECK_HEADERS(Files.h arpa/inet.h assert.h console.h ctype.h dirent.h errno.h fcntl.h float.h ftw.h grp.h ieee754.h inttypes.h limits.h malloc.h memory.h nlist.h pascal.h pwd.h sgtty.h siginfo.h signal.h stat.h stdint.h stdlib.h stddef.h stdarg.h string.h sys/fault.h sys/file.h sys/ioctl.h sys/limits.h sys/mman.h sys/param.h sys/procfs.h sys/resource.h sys/signal.h sys/socket.h netdb.h netinet/in.h netinet/tcp.h sys/stat.h sys/syscall.h sys/time.h sys/timeb.h sys/timers.h sys/times.h sys/types.h sys/un.h sys/utsname.h sys/vadvise.h sys/wait.h termio.h termios.h time.h types.h utime.h values.h vfork.h bfd.h winsock.h pthread.h sys/uio.h)
+AC_CHECK_HEADER(unistd.h,AC_CHECK_FUNC(lchown))
 
 AC_CHECK_HEADER(readline/readline.h, HaveReadlineReadlineH=YES, HaveReadlineReadlineH=NO)
 AC_CHECK_HEADER(readline/history.h, HaveReadlineHistoryH=YES, HaveReadlineHistoryH=NO)
@@ -1176,4 +1177,12 @@ esac
 AC_SUBST(LdCmd)
 FPTOOLS_LD_X
 
+AC_MSG_CHECKING([for SIGPOLL])
+AC_EGREP_CPP(we_have_sigpoll,
+[#include <signal.h>
+#ifdef SIGPOLL
+we_have_sigpoll
+#endif
+], AC_DEFINE(HAVE_SIGPOLL) haveSIGPOLL=yes, haveSIGPOLL=no)
+AC_MSG_RESULT([$haveSIGPOLL])
 AC_OUTPUT(mk/config.mk, echo timestamp > mk/stamp-h )
index 137c17a..b7d5889 100644 (file)
 /* Define if you have the <unistd.h> header file. */
 #undef HAVE_UNISTD_H
 
+/* Define if you have the `lchown' function. */
+#undef HAVE_LCHOWN
+
 /* Define if you have the <utime.h> header file. */
 #undef HAVE_UTIME_H
 
 
 /* Define to empty if `const' does not conform to ANSI C. */
 #undef const
+
+/* Define if signal.h defines SIGPOLL */
+#undef HAVE_SIGPOLL
+