Dear all, I have observer that recent Solaris versions are lacking <protocols/talkd.h>, thus "talk" and "talkd" are not buildable there. Efter several experiments the following alteration to "configure.ac" came up for automatic disabling of said software. Is this alteration good enough that it might get pushed? My ability to write autotools code is still very much in doubt, so I need your blessing before proceeding any further. It was the absolute positioning of the inserts that made several runs necessary!
The patch has been tested on OpenIndiana, OpenBSD, and GNU/kFreeBSD with the intended outcome. Best regards, Mats diff --git a/configure.ac b/configure.ac index b0259e5..5ebe9fe 100644 --- a/configure.ac +++ b/configure.ac @@ -190,6 +190,21 @@ fi AC_SUBST(LIBLS) AC_SUBST(libls_BUILD) +dnl At least OpenSolaris is missing <protocols/talkd.h>. +AC_CHECK_HEADER(protocols/talkd.h, , , + [IU_FLUSHLEFT([#ifdef HAVE_SYS_TYPES_H + # include <sys/types.h> + #endif + #include <sys/socket.h>])]) + +if test "$ac_cv_header_protocols_talkd_h" = no; then + AC_MSG_WARN([protocols/talkd.h is not available, not building talk, nor talkd]) + enable_talk=no + talk_BUILD='' + enable_talkd=no + talkd_BUILD='' +fi + # Only talk uses curses, so only check for it if we want that if test "$enable_talk" != no; then IU_LIB_CURSES
