AC_MSG_CHECKING(whether sys/mtio.h defines GMT_EOF and mtget has a member mt_gstat)
AC_LANG_C
AC_TRY_COMPILE(
[#include <sys/mtio.h>],
[struct mtget tapeStatus; GMT_EOF ( tapeStatus.mt_gstat );],
[AC_MSG_RESULT(yes)],
[  DO_NOT_COMPILE="$DO_NOT_COMPILE kdat"
  AC_MSG_RESULT([no...Skipping kdat]) ]
)

