(TESTS_ENVIRONMENT): Add `pwd`/ prefix to exported PATH value (though not strictly...
[coreutils.git] / m4 / uptime.m4
blob86570fa318a7bb65d8657395588ae01f9f5f6d98
1 #serial 2
3 AC_PREREQ(2.13)
5 AC_DEFUN(jm_SYS_PROC_UPTIME,
6 [ dnl Require AC_PROG_CC to see if we're cross compiling.
7   AC_REQUIRE([AC_PROG_CC])
8   AC_CACHE_CHECK([for /proc/uptime], jm_cv_have_proc_uptime,
9   [jm_cv_have_proc_uptime=no
10     test -f /proc/uptime \
11       && test $ac_cv_prog_cc_cross = no \
12       && cat < /proc/uptime >/dev/null 2>/dev/null \
13       && jm_cv_have_proc_uptime=yes])
14   if test $jm_cv_have_proc_uptime = yes; then
15     AC_DEFINE(HAVE_PROC_UPTIME, 1,
16               [  Define if your system has the /proc/uptime special file.])
17   fi