AC_CACHE_CHECK([for struct option in <getopt.h>], [dx_cv_have_struct_option],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <getopt.h>],
[[struct option opt = { "aaaa", 2, (void *)0, 'a' };
return opt.name[opt.flag ? opt.val : opt.has_arg];]])],
[dx_cv_have_struct_option=yes], [dx_cv_have_struct_option=no])])
AC_CACHE_CHECK([for struct option in <getopt.h>], [dx_cv_have_struct_option],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <getopt.h>],
[[struct option opt = { "aaaa", 2, (void *)0, 'a' };
return opt.name[opt.flag ? opt.val : opt.has_arg];]])],
[dx_cv_have_struct_option=yes], [dx_cv_have_struct_option=no])])