summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-02 10:04:48 +0000
committerJim Meyering <jim@meyering.net>2003-03-02 10:04:48 +0000
commit5d1c3777794a871a30cc3b2d788b66e33ee4fa80 (patch)
treeb836975833db162e257cc595f6231ec49df70c18 /aclocal.m4
parentb254cdd31df8093bfe66a00d235d9d717db666c7 (diff)
downloadcoreutils-5d1c3777794a871a30cc3b2d788b66e33ee4fa80.tar.xz
.
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m428
1 files changed, 26 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 37a06816b..4fce8c304 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1865,10 +1865,34 @@ AC_DEFUN([jm_PREREQ_MEMCHR],
AC_CHECK_HEADERS(limits.h stdlib.h bp-sym.h)
])
+# Check for the external symbol, _system_configuration,
+# a struct with member `physmem'.
+AC_DEFUN([gl_SYS__SYSTEM_CONFIGURATION],
+ [AC_CACHE_CHECK(for external symbol _system_configuration,
+ gl_cv_var__system_configuration,
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM(
+ [[#include <sys/systemcfg.h>
+ ]],
+ [double x = _system_configuration.physmem;])],
+ [gl_cv_var__system_configuration=yes],
+ [gl_cv_var__system_configuration=no])])
+
+ if test $gl_cv_var__system_configuration = yes; then
+ AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1,
+ [Define to 1 if you have the external variable,
+ _system_configuration with a member named physmem.])
+ fi
+ ]
+)
+
AC_DEFUN([jm_PREREQ_PHYSMEM],
[
- AC_CHECK_HEADERS(sys/pstat.h unistd.h sys/sysmp.h)
- AC_CHECK_FUNCS(pstat_getstatic pstat_getdynamic)
+ AC_CHECK_HEADERS([unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h \
+ machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
+ sys/systemcfg.h])
+ AC_CHECK_FUNCS(pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table)
+
+ AC_REQUIRE([gl_SYS__SYSTEM_CONFIGURATION])
])
AC_DEFUN([jm_PREREQ_POSIXVER],