These are needed for passing fd through a socket.
CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F)
CPPFLAGS += @SSL_CPPFLAGS@
CPPFLAGS += @ncurses_cppflags@
+CPPFLAGS += @arch_cppflags@
BINARIES = para_server para_client para_audioc para_recv \
para_filter para_write para_fsck @extra_binaries@
OSTYPE="`$UNAMEPATH -s`"
AC_MSG_RESULT("$OSTYPE")
+if test "$OSTYPE" = "SunOS"; then
+ # needed on SunOS for socket magic
+ arch_cppflags="-D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
+ AC_SUBST(arch_cppflags)
+fi
+
AC_C_BIGENDIAN()
AC_PROG_CC