diff options
author | das <das@noemail.net> | 2005-12-14 02:10:17 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2005-12-14 02:10:17 (GMT) |
commit | 4605070c8700a7033ef760d13b82e1f505a3c5bb (patch) | |
tree | 5184e88fae8d2d42e9a5b69d4405bb9fedca70da /unix/configure.in | |
parent | ae08da580f89e2fe3406b78e0c3bb72ba014261e (diff) | |
download | tcl-4605070c8700a7033ef760d13b82e1f505a3c5bb.zip tcl-4605070c8700a7033ef760d13b82e1f505a3c5bb.tar.gz tcl-4605070c8700a7033ef760d13b82e1f505a3c5bb.tar.bz2 |
* unix/configure.in: run check for fts API on all platforms, since Linux
glibc2 and *BSDs also have this and using fts is more efficient than
recursive opendir/readdir (sync with HEAD).
* unix/configure: regen.
FossilOrigin-Name: bf5af5a4c2296534005d996bd5e4c1afdd326ccd
Diffstat (limited to 'unix/configure.in')
-rw-r--r-- | unix/configure.in | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/unix/configure.in b/unix/configure.in index 18079e9..6c0dd88 100644 --- a/unix/configure.in +++ b/unix/configure.in @@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to dnl generate the file "configure", which is run during Tcl installation dnl to configure the system for the local environment. # -# RCS: @(#) $Id: configure.in,v 1.106.2.22 2005/12/05 15:10:33 dgp Exp $ +# RCS: @(#) $Id: configure.in,v 1.106.2.23 2005/12/14 02:10:21 das Exp $ AC_INIT(../generic/tcl.h) AC_PREREQ(2.13) @@ -436,21 +436,19 @@ fi SC_ENABLE_LANGINFO #-------------------------------------------------------------------- -# Check for support of fts functions on Darwin (readdir replacement) +# Check for support of fts functions (readdir replacement) #-------------------------------------------------------------------- -if test "`uname -s`" = "Darwin" ; then - AC_CACHE_CHECK([for fts], tcl_cv_api_fts, [ - AC_TRY_LINK([#include <sys/param.h> - #include <sys/stat.h> - #include <fts.h>], - [char*const p[2] = {"/", NULL}; - FTS *f = fts_open(p, FTS_PHYSICAL|FTS_NOCHDIR|FTS_NOSTAT, NULL); - FTSENT *e = fts_read(f); fts_close(f);], - tcl_cv_api_fts=yes, tcl_cv_api_fts=no)]) - if test $tcl_cv_api_fts = yes; then - AC_DEFINE(HAVE_FTS) - fi +AC_CACHE_CHECK([for fts], tcl_cv_api_fts, [ + AC_TRY_LINK([#include <sys/param.h> + #include <sys/stat.h> + #include <fts.h>], + [char*const p[2] = {"/", NULL}; + FTS *f = fts_open(p, FTS_PHYSICAL|FTS_NOCHDIR|FTS_NOSTAT, NULL); + FTSENT *e = fts_read(f); fts_close(f);], + tcl_cv_api_fts=yes, tcl_cv_api_fts=no)]) +if test $tcl_cv_api_fts = yes; then + AC_DEFINE(HAVE_FTS, 1, [Do we have fts functions?]) fi #-------------------------------------------------------------------- |