prepare to upload
[debian/sudo] / aclocal.m4
index 255b91fb6a64563a0a3d2ec9261a9b1fcd0cadda..e83926cf9a4419545355efeb967b583175f24c76 100644 (file)
@@ -79,6 +79,24 @@ if test X"$found" != X"yes"; then
 fi
 ])dnl
 
+dnl
+dnl check for utmp file
+dnl
+AC_DEFUN([SUDO_PATH_UTMP], [AC_MSG_CHECKING([for utmp file path])
+found=no
+for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
+    if test -r "$p"; then
+       found=yes
+       AC_MSG_RESULT([$p])
+       SUDO_DEFINE_UNQUOTED(_PATH_UTMP, "$p")
+       break
+    fi
+done
+if test X"$found" != X"yes"; then
+    AC_MSG_RESULT([not found])
+fi
+])dnl
+
 dnl
 dnl Where the log file goes, use /var/log if it exists, else /{var,usr}/adm
 dnl
@@ -234,22 +252,6 @@ AC_DEFUN([SUDO_FUNC_UNSETENV_VOID],
     fi
   ])
 
-dnl
-dnl check putenv() argument for const
-dnl
-AC_DEFUN([SUDO_FUNC_PUTENV_CONST],
-[AC_CACHE_CHECK([whether putenv has a const argument],
-sudo_cv_func_putenv_const,
-[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT
-int putenv(const char *string) {return 0;}], [])],
-    [sudo_cv_func_putenv_const=yes],
-    [sudo_cv_func_putenv_const=no])
-  ])
-  if test $sudo_cv_func_putenv_const = yes; then
-    AC_DEFINE(PUTENV_CONST, 1, [Define to 1 if the `putenv' has a const argument.])
-  fi
-])
-
 dnl
 dnl check for sa_len field in struct sockaddr
 dnl