--- configure.in.old Wed Apr 17 13:09:08 2002 +++ configure.in Wed Apr 17 13:09:11 2002 @@ -225,14 +225,9 @@ AC_MSG_ERROR(not found library: pthread !!!)) fi -AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_have_tm_gmtoff, - [AC_TRY_COMPILE([#include ], - [struct tm t; t.tm_gmtoff = 0], - ac_cv_have_tm_gmtoff=yes, - ac_cv_have_tm_gmtoff=no)]) -if test $ac_cv_have_tm_gmtoff = yes; then - AC_DEFINE(HAVE_TM_GMTON) -fi +AC_CHECK_MEMBER(struct tm.tm_gmtoff, + AC_DEFINE(HAVE_TM_GMTON),, + [#include ]) AC_CACHE_CHECK(for timer operations, ac_cv_have_timeops, [AC_TRY_LINK([#include ], @@ -269,14 +264,9 @@ fi if test $have_termios = "no"; then - AC_CACHE_CHECK(for c_ispeed and c_ospeed in struct termios, ac_cv_have_c_iospeed, - [AC_TRY_COMPILE([#include ], - [struct termios t; t.c_iflag = B9600; t.c_oflag = B9600;], - ac_cv_have_c_iospeed=yes, - ac_cv_have_c_iospeed=yes)]) - if test ac_cv_have_c_iospeed = yes; then - AC_DEFINE(HAVE_TERMIOS_CSPEED) - fi + AC_CHECK_MEMBERS([struct termios.c_iflag, struct termios.c_oflag], + AC_DEFINE(HAVE_TERMIOS_CSPEED),, + [#include ]) fi dnl ======================== Checks for getopt_long support @@ -435,11 +425,10 @@ ] ) -AC_TRY_COMPILE( [#define _XOPEN_SOURCE 500 +AC_CHECK_MEMBER(struct msg.msg_control,,, + [#define _XOPEN_SOURCE 500 #include - #include ], - [struct msghdr msg; msg.msg_control;], - AC_DEFINE(HAVE_MSGHDR_MSG_CONTROL) + #include ] ) dnl ======================== Checks for header files.