From e98fb73ed7431dc2ec2d3e6812c124b435966e5b Mon Sep 17 00:00:00 2001 From: mmitchel Date: Sun, 19 May 2002 16:25:51 +0000 Subject: * configure.in (AC_CHECK_FUNCS): Add checks for scandir and alphasort. * config.in: Regenerated. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53633 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/java/jcf.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gcc/java/jcf.h') diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h index c683e2b7de9..e674bdb7022 100644 --- a/gcc/java/jcf.h +++ b/gcc/java/jcf.h @@ -63,6 +63,14 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */ #define JCF_word JCF_u4 #endif +/* If we have both "scandir" and "alphasort", we can cache directory + listings to reduce the time taken to search the classpath. */ +#if defined(HAVE_SCANDIR) && defined(HAVE_ALPHASORT) +#define JCF_USE_SCANDIR 1 +#else +#define JCF_USE_SCANDIR 0 +#endif + struct JCF; typedef int (*jcf_filbuf_t) PARAMS ((struct JCF*, int needed)); -- cgit v1.2.1