aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2008-02-06 23:07:30 +0000
committerAvatar Fernando J. Pereda <ferdy@ferdyx.org> 2008-02-06 23:07:30 +0000
commit2b8ee08102840f125b247b570d69936082453f5f (patch)
treeee624a61e8238df2b36970480f59fa25c5af5053 /configure.ac
parent70e7b4d8c51be1aa06bdd6cecb2fc375185bc69a (diff)
downloadpaludis-2b8ee08102840f125b247b570d69936082453f5f.tar.gz
paludis-2b8ee08102840f125b247b570d69936082453f5f.tar.xz
Avoid doing as many stat calls as possible
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2fa0ba448..0c968fd76 100644
--- a/configure.ac
+++ b/configure.ac
@@ -481,6 +481,25 @@ if test "x$ac_cv_func_canonicalize_file_name" = "xyes"; then
fi
dnl }}}
+dnl {{{ check for dirent.d_type
+AC_MSG_CHECKING([for dirent.d_type])
+AC_COMPILE_IFELSE([
+#include <sys/types.h>
+#include <dirent.h>
+int main(int, char **)
+{
+ struct dirent dent;
+ dent.d_type = DT_LNK;
+}
+],
+ [have_dirent_dtype=yes],
+ [have_dirent_dtype=no])
+AC_MSG_RESULT([$have_dirent_dtype])
+if test "x$have_dirent_dtype" = "xyes"; then
+ AC_DEFINE([HAVE_DIRENT_DTYPE], [1], [Use dirent.d_type])
+fi
+dnl }}}
+
dnl {{{ check for cxxflags
if test x = x"$LET_ME_RICE"
then