Don't enable functions 'time' or 'getrusage' when OpenMP is selected

This commit is contained in:
Holger Vogt 2024-07-11 10:57:00 +02:00
parent fcbf6d5d42
commit 16513beb42
1 changed files with 1 additions and 1 deletions

View File

@ -907,7 +907,7 @@ AC_CHECK_FUNCS([localtime])
AC_CHECK_FUNCS([ftime gettimeofday])
# Do not use time or getrusage function for CPU time measurement under OpenMP
if test "x$enable_openmp" != xyes; then
if test "x$enable_openmp" = xno; then
AC_CHECK_FUNCS([time getrusage])
fi
AC_CHECK_FUNCS([utimes])