From 5c17895a272b06897608d951ea4e60c539138208 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 25 Jan 2013 10:57:54 -0500 Subject: TOOLS: Compile on old platforms such as RHEL5 Provides compatible declarations for modern file management functions such as futimens or opening with the O_CLOEXEC flag --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9ee5844f7..57dec022a 100644 --- a/configure.ac +++ b/configure.ac @@ -63,6 +63,10 @@ AC_CHECK_FUNCS([ pthread_mutexattr_setrobust \ pthread_mutex_consistent_np ]) LIBS=$SAVE_LIBS +# Check for presence of modern functions for setting file timestamps +AC_CHECK_FUNCS([ utimensat \ + futimens ]) + #Check for PAM headers AC_CHECK_HEADERS([security/pam_appl.h security/pam_misc.h security/pam_modules.h], [AC_CHECK_LIB(pam, pam_get_item, [ PAM_LIBS="-lpam" ], [AC_MSG_ERROR([PAM must support pam_get_item])])], -- cgit