From d04fb5dc5364513882e3e7619bfb4d459fc3ed51 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Tue, 8 Oct 2002 08:03:02 +0000 Subject: [PATCH] [project @ 2002-10-08 08:03:01 by wolfgang] 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 | 11 ++++++++++- mk/config.h.in | 7 +++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index c9c7702..a7fa648 100644 --- a/configure.in +++ b/configure.in @@ -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 +#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 ) diff --git a/mk/config.h.in b/mk/config.h.in index 137c17a..b7d5889 100644 --- a/mk/config.h.in +++ b/mk/config.h.in @@ -931,6 +931,9 @@ /* Define if you have the header file. */ #undef HAVE_UNISTD_H +/* Define if you have the `lchown' function. */ +#undef HAVE_LCHOWN + /* Define if you have the header file. */ #undef HAVE_UTIME_H @@ -1047,3 +1050,7 @@ /* Define to empty if `const' does not conform to ANSI C. */ #undef const + +/* Define if signal.h defines SIGPOLL */ +#undef HAVE_SIGPOLL + -- 1.7.10.4