tuklib_physmem.m4 | tuklib_physmem.m4 | |||
---|---|---|---|---|
skipping to change at line 56 | skipping to change at line 56 | |||
AC_CACHE_CHECK([how to detect the amount of physical memory], | AC_CACHE_CHECK([how to detect the amount of physical memory], | |||
[tuklib_cv_physmem_method], [ | [tuklib_cv_physmem_method], [ | |||
# Maybe checking $host_os would be enough but this matches what | # Maybe checking $host_os would be enough but this matches what | |||
# tuklib_physmem.c does. | # tuklib_physmem.c does. | |||
# | # | |||
# NOTE: IRIX has a compiler that doesn't error out with #error, so use | # NOTE: IRIX has a compiler that doesn't error out with #error, so use | |||
# a non-compilable text instead of #error to generate an error. | # a non-compilable text instead of #error to generate an error. | |||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ | AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ | |||
#if defined(_WIN32) || defined(__CYGWIN__) || defined(__OS2__) \ | #if defined(_WIN32) || defined(__CYGWIN__) || defined(__OS2__) \ | |||
|| defined(__DJGPP__) || defined(__VMS) | || defined(__DJGPP__) || defined(__VMS) \ | |||
|| defined(AMIGA) || defined(__AROS__) | ||||
int main(void) { return 0; } | int main(void) { return 0; } | |||
#else | #else | |||
compile error | compile error | |||
#endif | #endif | |||
]])], [tuklib_cv_physmem_method=special], [ | ]])], [tuklib_cv_physmem_method=special], [ | |||
# Look for AIX-specific solution before sysconf(), because the test | # Look for AIX-specific solution before sysconf(), because the test | |||
# for sysconf() will pass on AIX but won't actually work | # for sysconf() will pass on AIX but won't actually work | |||
# (sysconf(_SC_PHYS_PAGES) compiles but always returns -1 on AIX). | # (sysconf(_SC_PHYS_PAGES) compiles but always returns -1 on AIX). | |||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ | AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |