configure: Use AC_CHECK_{FUNCS,HEADERS}_ONCE

instead of their non ONCE variants to speedup the configuration.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
diff --git a/configure.ac b/configure.ac
index 74b94c3..ddca14d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,7 +36,7 @@
 AC_CHECK_DECLS([MADV_MERGEABLE],,,[#include <sys/mman.h>])
 AC_CHECK_DECLS([PR_CAPBSET_DROP, PR_CAPBSET_READ],,,[#include <sys/prctl.h>])
 
-AC_CHECK_HEADERS([ \
+AC_CHECK_HEADERS_ONCE([ \
     asm/ldt.h \
     ifaddrs.h \
     keyutils.h \
@@ -75,7 +75,7 @@
 AC_CHECK_HEADERS(fts.h, [have_fts=1])
 AC_SUBST(HAVE_FTS_H, $have_fts)
 
-AC_CHECK_FUNCS([ \
+AC_CHECK_FUNCS_ONCE([ \
     clone3 \
     copy_file_range \
     epoll_pwait \