From 3f689dbfffbf25dc8c2495d59ac288314bd36b05 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 14 Oct 2012 22:25:21 +0000 Subject: [PATCH] Also check for sys/resource.h. git-svn-id: https://svn.dealii.org/trunk@27124 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/configure | 6 +++++- deal.II/configure.in | 1 + deal.II/include/deal.II/base/config.h.in | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deal.II/configure b/deal.II/configure index da6d3051d4..391072862f 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 27121 . +# From configure.in Revision: 27122 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for deal.II 7.3.pre. # @@ -2343,6 +2343,7 @@ as_fn_append ac_func_list " getpid" as_fn_append ac_header_list " sys/syscall.h" as_fn_append ac_header_list " sys/times.h" as_fn_append ac_header_list " sys/time.h" +as_fn_append ac_header_list " sys/resource.h" # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -8978,6 +8979,9 @@ done + + + for ac_func in times do : ac_fn_cxx_check_func "$LINENO" "times" "ac_cv_func_times" diff --git a/deal.II/configure.in b/deal.II/configure.in index aab6919282..0081b431e4 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -244,6 +244,7 @@ AC_CHECK_FUNCS_ONCE([gethostname getpid]) AC_CHECK_HEADERS_ONCE([sys/syscall.h]) AC_CHECK_HEADERS_ONCE([sys/times.h]) AC_CHECK_HEADERS_ONCE([sys/time.h]) +AC_CHECK_HEADERS_ONCE([sys/resource.h]) AC_CHECK_FUNCS(times) DEAL_II_CHECK_BROKEN_SOCKETS diff --git a/deal.II/include/deal.II/base/config.h.in b/deal.II/include/deal.II/base/config.h.in index b34f2d87c3..7f36a2ab7b 100644 --- a/deal.II/include/deal.II/base/config.h.in +++ b/deal.II/include/deal.II/base/config.h.in @@ -500,6 +500,9 @@ /* Define to 1 if you have the `strtrs_' function. */ #undef HAVE_STRTRS_ +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_RESOURCE_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H -- 2.39.5