#!/usr/bin/env ruby

require "mkmf"

dir_config("wrap")
dir_config("ident")
if have_header("tcpd.h") and
    have_library("wrap", nil)
  have_func("hsterror")
  if have_header("ident.h") and
      have_library("ident", "ident_id")
    have_func("ident_id")
  end
  create_makefile("tcpwrap")
end

