Port: Add compat for dirfd
[babeltrace.git] / configure.ac
index a4dde9e00e214650f96d0ba14ce24ce2ebf5b28f..1ddfec0643ec95ee12ff8d214f3b8b7b29c6c93d 100644 (file)
@@ -95,6 +95,7 @@ AC_CHECK_FUNCS([ \
        gettimeofday munmap strtoul ftruncate gethostbyname \
        localtime_r memset mkdir rmdir setenv socket \
        strchr strdup strerror strndup strrchr strtoull tzset \
+       strnlen mkdtemp dirfd \
 ])
 
 # Check for MinGW32.
@@ -154,11 +155,17 @@ AC_CHECK_LIB([c], [posix_fallocate],
 ]
 )
 
+# Check for faccessat
+AC_CHECK_LIB([c], [faccessat],
+[
+       AC_DEFINE_UNQUOTED([BABELTRACE_HAVE_FACCESSAT], 1, [Has faccessat support.])
+]
+)
+
 AC_CHECK_LIB([popt], [poptGetContext], [],
         [AC_MSG_ERROR([Cannot find popt.])]
 )
 
-
 # For Python
 # SWIG version needed or newer:
 swig_version=2.0.0
This page took 0.029172 seconds and 4 git commands to generate.