Even though we'll find it, it won't work.
See also:
http://bugs.debian.org/651104
http://lists.debian.org/debian-bsd/2011/03/msg00063.html
Signed-off-by: Gonéri Le Bouder <goneri@rulezlan.org>
[rlb@defaultvalue.org: adjust indentation, comments, and message.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
AC_CHECK_HEADERS linux/fs.h
AC_CHECK_HEADERS sys/ioctl.h
-AC_CHECK_FUNCS utimensat
+# On GNU/kFreeBSD utimensat is defined in GNU libc, but won't work.
+if [ -z "$OS_GNUKFREEBSD" ]; then
+ AC_CHECK_FUNCS utimensat
+fi
AC_CHECK_FUNCS utimes
AC_CHECK_FUNCS lutimes