| 132 |
|
dnl Checks for libraries. |
| 133 |
|
AC_CHECK_LIB(m, asin, , exit) |
| 134 |
|
|
| 135 |
– |
AC_LANG_C |
| 135 |
|
ACX_CHECK_ZLIB |
| 136 |
|
dnl Checks for header files. |
| 137 |
|
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]) |
| 170 |
|
ACX_PROG_F90_MAXOPT |
| 171 |
|
;; |
| 172 |
|
esac |
| 173 |
+ |
|
| 174 |
+ |
AC_LANG_CPLUSPLUS |
| 175 |
+ |
# AC_CPP_FUNC |
| 176 |
+ |
# ------------------ # |
| 177 |
+ |
# Checks to see if ANSI C99 CPP variable __func__ works. |
| 178 |
+ |
# If not, perhaps __FUNCTION__ works instead. |
| 179 |
+ |
# If not, we'll just define __func__ to "". |
| 180 |
+ |
AC_DEFUN([AC_CPP_FUNC], |
| 181 |
+ |
[AC_REQUIRE([AC_PROG_CC_STDC])dnl |
| 182 |
+ |
AC_CACHE_CHECK([for an ANSI C99-conforming __func__], ac_cv_cpp_func, |
| 183 |
+ |
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], |
| 184 |
+ |
[[const char *foo = __func__;]])], |
| 185 |
+ |
[ac_cv_cpp_func=yes], |
| 186 |
+ |
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], |
| 187 |
+ |
[[const char *foo = __FUNCTION__;]])], |
| 188 |
+ |
[ac_cv_cpp_func=__FUNCTION__], |
| 189 |
+ |
[ac_cv_cpp_func=no])])]) |
| 190 |
+ |
if test $ac_cv_cpp_func = __FUNCTION__; then |
| 191 |
+ |
AC_DEFINE(__func__,__FUNCTION__, |
| 192 |
+ |
[Define to __FUNCTION__ or "" if `__func__' does not conform to |
| 193 |
+ |
ANSI C.]) |
| 194 |
+ |
elif test $ac_cv_cpp_func = no; then |
| 195 |
+ |
AC_DEFINE(__func__,"", |
| 196 |
+ |
[Define to __FUNCTION__ or "" if `__func__' does not conform to |
| 197 |
+ |
ANSI C.]) |
| 198 |
+ |
fi |
| 199 |
+ |
])# AC_CPP_FUNC |
| 200 |
|
|
| 201 |
+ |
AC_CPP_FUNC |
| 202 |
+ |
AC_SUBST(__func__) |
| 203 |
+ |
AC_LANG_C |
| 204 |
+ |
|
| 205 |
|
AC_PROG_INSTALL |
| 206 |
|
AC_PROG_LN_S |
| 207 |
|
AC_PROG_MAKE_SET |