cvsimport
[findutils.git] / m4 / withfts.m4
blob3ee16e55c0492dc679397c8cb9e11854e3023aee
1 AC_DEFUN([FIND_WITH_FTS],
2 [AC_ARG_WITH([fts],
3 [  --without-fts           Use an older mechanism for searching the filesystem, instead of using fts()],[with_fts=$withval],[])
4   case $with_fts in 
5         yes|no) ;;
6         '')     with_fts=yes ;;
7         *) AC_MSG_ERROR([Invalid value for --with-fts: $with_fts])
8   esac
9   AM_CONDITIONAL(WITH_FTS, [[test x"${with_fts-no}" != xno]])
10   if test x"${with_fts-no}" != xno ; then
11         AC_DEFINE(WITH_FTS, 1, [Define if you want to use fts() to do the filesystem search.])
12   fi