]> granicus.if.org Git - sudo/commitdiff
SUDO_FUNC_UTIME_NULL -> AC_FUNC_UTIME_NULL
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 20 Jun 1995 20:56:03 +0000 (20:56 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 20 Jun 1995 20:56:03 +0000 (20:56 +0000)
aclocal.m4
configure.in

index d3b7ed608f48196210d6be51a8e31b48a69a5f15..56d9e7e842f11fccd8b34d3ad730be2a29787a1e 100644 (file)
@@ -152,30 +152,6 @@ AC_DEFUN(SUDO_TYPE_SSIZE_T,
 [SUDO_CHECK_TYPE(ssize_t, int)])
 
 dnl
-dnl Check to see if POSIX utime() takes a null arg
-dnl (only change from AC_FUNC_UTIME_NULL is an added sleep(1)
-dnl
-AC_DEFUN(SUDO_FUNC_UTIME_NULL,
-[AC_MSG_CHECKING(whether utime accepts a null argument)
-AC_CACHE_VAL(ac_cv_func_utime_null,
-[rm -f conftestdata; > conftestdata
-# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
-AC_TRY_RUN([#include <sys/types.h>
-#include <sys/stat.h>
-main() {
-struct stat s, t;
-exit(!(stat ("conftestdata", &s) == 0 && !sleep(1) && utime("conftestdata", (long *)0) == 0
-&& stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
-&& t.st_mtime - s.st_mtime < 120));
-}], ac_cv_func_utime_null=yes, ac_cv_func_utime_null=no,
-  ac_cv_func_utime_null=no)
-rm -f core core.* *.core])dnl
-AC_MSG_RESULT($ac_cv_func_utime_null)
-if test $ac_cv_func_utime_null = yes; then
-  AC_DEFINE(HAVE_UTIME_NULL)
-fi
-])
-
 dnl check for POSIX utime() using struct utimbuf
 dnl
 AC_DEFUN(SUDO_FUNC_UTIME_POSIX,
index 0399109f98c342652c681dd8bbde16719db21c30..53dfdc99066b979d2c767ea045da444a26d7de4c 100644 (file)
@@ -246,7 +246,7 @@ AC_CHECK_FUNC(lsearch, AC_DEFINE(HAVE_LSEARCH), LIBOBJS="$LIBOBJS lsearch.o")
 AC_CHECK_FUNC(setenv, AC_DEFINE(HAVE_SETENV), AC_FUNC_CHECK(putenv, AC_DEFINE(HAVE_PUTENV), LIBOBJS="$LIBOBJS putenv.o"))
 AC_CHECK_FUNC(utime, AC_DEFINE(HAVE_UTIME)
 SUDO_FUNC_UTIME_POSIX
-SUDO_FUNC_UTIME_NULL, LIBOBJS="$LIBOBJS utime.o")
+AC_FUNC_UTIME_NULL, LIBOBJS="$LIBOBJS utime.o")
 dnl
 dnl if crypt(3) not in libc, look elsewhere
 dnl