Commit aa9dc53d by Albert Chin-A-Young Committed by Kaveh Ghazi

re PR bootstrap/10974 (Bootstrap failure)

	PR bootstrap/10974
	* physmem.c: Update comment.
	* configure.in: Modify test for _system_configuration for older
	AIX systems.

	* config.in, configure: Regenerated.

From-SVN: r67649
parent 017e1b43
2003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
PR bootstrap/10974
* physmem.c: Update comment.
* configure.in: Modify test for _system_configuration for older
AIX systems.
* config.in, configure: Regenerated.
2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR other/10810 PR other/10810
......
...@@ -316,9 +316,6 @@ ...@@ -316,9 +316,6 @@
/* Define if you have the sys_siglist variable. */ /* Define if you have the sys_siglist variable. */
#undef HAVE_SYS_SIGLIST #undef HAVE_SYS_SIGLIST
/* Define if you have the _system_configuration variable. */
#undef HAVE__SYSTEM_CONFIGURATION
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP
systems. This function is required for alloca.c support on those systems. This function is required for alloca.c support on those
systems. */ systems. */
...@@ -331,6 +328,9 @@ ...@@ -331,6 +328,9 @@
STACK_DIRECTION = 0 => direction of growth unknown */ STACK_DIRECTION = 0 => direction of growth unknown */
#undef STACK_DIRECTION #undef STACK_DIRECTION
/* Define if you have the _system_configuration variable. */
#undef HAVE__SYSTEM_CONFIGURATION
/* Define if canonicalize_file_name is not declared in system header files. */ /* Define if canonicalize_file_name is not declared in system header files. */
#undef NEED_DECLARATION_CANONICALIZE_FILE_NAME #undef NEED_DECLARATION_CANONICALIZE_FILE_NAME
...@@ -209,7 +209,7 @@ funcs="$funcs waitpid" ...@@ -209,7 +209,7 @@ funcs="$funcs waitpid"
# Also in the old function.def file: alloca, vfork, getopt. # Also in the old function.def file: alloca, vfork, getopt.
vars="sys_errlist sys_nerr sys_siglist _system_configuration" vars="sys_errlist sys_nerr sys_siglist"
checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday"
checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp" checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp"
...@@ -230,7 +230,6 @@ if test "x" = "y"; then ...@@ -230,7 +230,6 @@ if test "x" = "y"; then
AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.]) AC_DEFINE(HAVE_SYS_ERRLIST, 1, [Define if you have the sys_errlist variable.])
AC_DEFINE(HAVE_SYS_NERR, 1, [Define if you have the sys_nerr variable.]) AC_DEFINE(HAVE_SYS_NERR, 1, [Define if you have the sys_nerr variable.])
AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if you have the sys_siglist variable.]) AC_DEFINE(HAVE_SYS_SIGLIST, 1, [Define if you have the sys_siglist variable.])
AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1, [Define if you have the _system_configuration variable.])
fi fi
# For each of these functions, if the host does not provide the # For each of these functions, if the host does not provide the
...@@ -433,6 +432,17 @@ if test -z "${setobjs}"; then ...@@ -433,6 +432,17 @@ if test -z "${setobjs}"; then
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
fi fi
done done
# special check for _system_configuration because AIX <4.3.2 do not
# contain the `physmem' member.
AC_MSG_CHECKING([for external symbol _system_configuration])
AC_TRY_COMPILE([#include <sys/systemcfg.h>],
[double x = _system_configuration.physmem;],
[AC_MSG_RESULT([yes])
AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1,
[Define if you have the _system_configuration variable.])],
[AC_MSG_RESULT([no])])
AC_CHECK_FUNCS($checkfuncs) AC_CHECK_FUNCS($checkfuncs)
libiberty_NEED_DECLARATION(canonicalize_file_name) libiberty_NEED_DECLARATION(canonicalize_file_name)
fi fi
......
...@@ -145,7 +145,7 @@ physmem_total () ...@@ -145,7 +145,7 @@ physmem_total ()
#endif #endif
#if HAVE__SYSTEM_CONFIGURATION #if HAVE__SYSTEM_CONFIGURATION
/* This works on AIX. */ /* This works on AIX 4.3.3+. */
return _system_configuration.physmem; return _system_configuration.physmem;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment