--- trunk/OOPSE-3.0/ac-tools/configure.in 2005/01/14 20:09:26 1946 +++ trunk/OOPSE-3.0/ac-tools/configure.in 2005/02/15 05:05:33 2024 @@ -115,8 +115,20 @@ dnl check for system getopt AC_SUBST(F90_MODULE_NAMES) AC_LANG_POP -dnl check for system getopt AC_LANG_PUSH(C) +AC_CHECK_HEADERS(unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h) +AC_CHECK_FUNCS(pstat_getstatic sysmp getsysinfo sysctl table) +# 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 ], + [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])]) + +dnl check for system getopt adl_FUNC_GETOPT_LONG dnl check for strong optimization options @@ -144,7 +156,32 @@ fi exit 1 fi +AC_PATH_PROG(PS, ps) +AC_CACHE_CHECK([for POSIX or BSD ps syntax], ac_cv_prog_ps_syntax, [ + if $PS -ef -o rss > /dev/null 2>&1; then + ac_cv_prog_ps_ef=yes + else + ac_cv_prog_ps_ef=no + fi + if $PS ax -o rss > /dev/null 2>&1; then + ac_cv_prog_ps_ax=yes + else + ac_cv_prog_ps_ax=no + fi + if test "$ac_cv_prog_ps_ef" = yes; then + ac_cv_prog_ps_syntax=POSIX + else + if test "$ac_cv_prog_ps_ax" = yes; then + ac_cv_prog_ps_syntax=BSD + else + AC_MSG_ERROR(Could not determine ps syntax) + fi + fi +]) +AC_DEFINE_UNQUOTED(PS, $PS, [Path to ps program]) +AC_DEFINE_UNQUOTED(PSTYPE, $ac_cv_prog_ps_syntax, [ps syntax type]) + AC_ARG_WITH(mpi, [AC_HELP_STRING([--with-mpi=], [compile with MPI installed in [default=no]])],