--- configure.in.orig Tue Nov 16 04:03:30 2004 +++ configure.in Fri Nov 26 02:04:59 2004 @@ -829,6 +831,13 @@ AC_DEFINE(HAVE_SIG_ATOMIC_T_TYPE,1,[Whether we have the atomic_t variable type]) fi +AC_CACHE_CHECK([for optreset], samba_cv_var_optreset, [ + AC_TRY_LINK([#include ],[optreset = 1], + [samba_cv_var_optreset=yes],[samba_cv_var_optreset=no])]) +if test x"$samba_cv_var_optreset" = x"yes"; then + AC_DEFINE(HAVE_OPTRESET,1,[Whether the system has optreset]) +fi + # stupid headers have the functions but no declaration. grrrr. AC_HAVE_DECL(errno, [#include ]) AC_HAVE_DECL(setresuid, [#include ])