./configure  &&

if gcc -include netinet/in.h -E - < /dev/null | grep -q IPPROTO_SCTP ; then
  echo "" > sctpfix.h
else
  cat << EOF > sctpfix.h
enum { IPPROTO_SCTP = 132 };
#define IPPROTO_SCTP               IPPROTO_SCTP
EOF
fi  &&

make  &&

# Verify that ip built ok.
if ! test -e ip/ip ; then
  message "${PROBLEM_COLOR}The ip program failed to build.${DEFAULT_COLOR}"
  return 1
fi  &&

if  [  "$BUILD_DOCS"  =  y  ];  then
  cd $SOURCE_DIRECTORY/doc                         &&
  make                                             &&
  mkdir -p ${INSTALL_ROOT}/usr/share/doc/${SPELL}  &&
  cd $SOURCE_DIRECTORY
fi
