| 5 |
|
|
| 6 |
|
builtin(include, ac-tools/fortran90.m4) |
| 7 |
|
builtin(include, ac-tools/aclocal.m4) |
| 8 |
+ |
builtin(include, ac-tools/AC_CXX_HAVE_STL.m4) |
| 9 |
+ |
builtin(include, ac-tools/AC_CXX_NAMESPACES.m4) |
| 10 |
+ |
builtin(include, ac-tools/AC_CXX_STD.m4) |
| 11 |
|
|
| 12 |
|
AC_CONFIG_SRCDIR([src/applications/oopse/oopse.cpp]) |
| 13 |
|
|
| 34 |
|
|
| 35 |
|
|
| 36 |
|
dnl Checks for C compiler |
| 37 |
< |
AC_PROG_CC([icc xlc gcc cc]) |
| 37 |
> |
AC_PROG_CC([pathcc icc xlc gcc cc]) |
| 38 |
|
|
| 39 |
|
dnl Checks for C++ compiler |
| 40 |
< |
AC_PROG_CXX([icpc icc xlc++ xlC CC g++ c++]) |
| 40 |
> |
AC_PROG_CXX([pathCC icpc icc xlc++ xlC CC g++ c++]) |
| 41 |
|
|
| 42 |
|
dnl Checks for C preprocessor |
| 43 |
|
AC_PROG_CPP |
| 92 |
|
|
| 93 |
|
dnl Fortran 90 compilation checks are next |
| 94 |
|
|
| 95 |
< |
AC_PROG_F90([ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95]) |
| 95 |
> |
AC_PROG_F90([pathf95 ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95]) |
| 96 |
|
dnl Check the flag for Fortran90 preprocessing |
| 97 |
|
ACX_PROG_F90_PREPFLAG |
| 98 |
|
dnl Check to see if a flag is required for preprocessing defines |
| 125 |
|
AC_LANG_POP |
| 126 |
|
|
| 127 |
|
AC_LANG_CPLUSPLUS |
| 128 |
+ |
AC_HEADER_STDC |
| 129 |
+ |
AC_CXX_NAMESPACES |
| 130 |
+ |
AC_CXX_STD |
| 131 |
+ |
|
| 132 |
|
dnl Checks for libraries. |
| 133 |
|
AC_CHECK_LIB(m, asin, , exit) |
| 134 |
|
|
| 135 |
|
AC_LANG_C |
| 136 |
|
ACX_CHECK_ZLIB |
| 137 |
|
dnl Checks for header files. |
| 138 |
< |
AC_CHECK_HEADERS(sys/time.h unistd.h stdlib.h stdio.h conio.h string.h) |
| 132 |
< |
AC_CHECK_HEADERS(strstream.h iostream.h fstream.h math.h time.h) |
| 138 |
> |
AC_CHECK_HEADERS([stdlib.h string.h sys/param.h unistd.h sys/time.h stdio.h conio.h strstream.h iostream.h fstream.h math.h time.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h]) |
| 139 |
|
AC_LANG_CPLUSPLUS |
| 140 |
< |
AC_CHECK_HEADERS(ctype.h iostream fstream sstream strstream) |
| 140 |
> |
AC_CHECK_HEADERS([ctype.h iostream fstream sstream strstream]) |
| 141 |
|
AC_LANG_C |
| 142 |
< |
AC_CHECK_HEADERS(sys/pstat.h sys/sysmp.h sys/sysinfo.h) |
| 137 |
< |
AC_CHECK_HEADERS(sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h) |
| 138 |
< |
AC_CHECK_HEADERS(machine/hal_sysinfo.h) |
| 139 |
< |
AC_CHECK_FUNCS(rint snprintf sranddev strncasecmp) |
| 140 |
< |
AC_CHECK_FUNCS(pstat_getstatic sysmp getsysinfo sysctl table) |
| 142 |
> |
AC_CHECK_FUNCS([rint snprintf sranddev strcasecmp strncasecmp stricmp strnicmp pstat_getstatic sysmp getsysinfo sysctl table]) |
| 143 |
|
# special check for _system_configuration because AIX <4.3.2 do not |
| 144 |
|
# contain the `physmem' member. |
| 145 |
|
AC_MSG_CHECKING([for external symbol _system_configuration]) |
| 156 |
|
AC_C_CONST |
| 157 |
|
AC_C_INLINE |
| 158 |
|
|
| 157 |
– |
dnl Checks for library functions. |
| 158 |
– |
AC_CHECK_FUNCS([rint sranddev]) |
| 159 |
|
|
| 160 |
|
dnl check for system getopt |
| 161 |
|
adl_FUNC_GETOPT_LONG |
| 214 |
|
|
| 215 |
|
|
| 216 |
|
if test "$ac_cv_prog_ps_syntax" = BSD; then |
| 217 |
< |
AC_DEFINE(PSTYPE_IS_BSD, 1) |
| 217 |
> |
AC_DEFINE(PSTYPE_IS_BSD, 1, [ps uses BSD-style arguments]) |
| 218 |
|
else |
| 219 |
|
if test "$ac_cv_prog_ps_syntax" = POSIX; then |
| 220 |
< |
AC_DEFINE(PSTYPE_IS_POSIX, 1) |
| 220 |
> |
AC_DEFINE(PSTYPE_IS_POSIX, 1, [ps uses POSIX-style arguments]) |
| 221 |
|
else |
| 222 |
|
AC_MSG_ERROR(Unknown ps syntax type!) |
| 223 |
|
fi |