summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-13 10:10:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:32 -0500
commitbf071a91aabe50a26fb8a63e05a5e264b21b66ab (patch)
tree6d81ebbcfa32c64cb863e14e9bdf5895c9a9ac12 /source4
parentb270dd3fd604b15147fb33491fff39ff718db959 (diff)
downloadsamba-bf071a91aabe50a26fb8a63e05a5e264b21b66ab.tar.gz
samba-bf071a91aabe50a26fb8a63e05a5e264b21b66ab.tar.bz2
samba-bf071a91aabe50a26fb8a63e05a5e264b21b66ab.zip
r18455: check if getdents() and getdirentries() are available.
(only for the nicer configure output) metze (This used to be commit d53eb6bd10903d696c5ed9aad3bca3ddf35b2b51)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace/repdir.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/replace/repdir.m4 b/source4/lib/replace/repdir.m4
index 1e23306f28..e2f94263e8 100644
--- a/source4/lib/replace/repdir.m4
+++ b/source4/lib/replace/repdir.m4
@@ -11,6 +11,7 @@ AC_CACHE_CHECK([for broken readdir],libreplace_READDIR_NEEDED,[
# try to replace with getdents() if needed
#
if test x"$libreplace_READDIR_NEEDED" = x"yes"; then
+AC_CHECK_FUNCS(getdents)
AC_CACHE_CHECK([for replacing readdir using getdents()],libreplace_READDIR_GETDENTS,[
AC_TRY_RUN([
#include "confdefs.h"
@@ -32,6 +33,7 @@ fi
# try to replace with getdirentries() if needed
#
if test x"$libreplace_READDIR_NEEDED" = x"yes"; then
+AC_CHECK_FUNCS(getdirentries)
AC_CACHE_CHECK([for replacing readdir using getdirentries()],libreplace_READDIR_GETDIRENTRIES,[
AC_TRY_RUN([
#include "confdefs.h"