Apply some improvements suggested by Mike Frysinger.

These improvements were suggested at https://savannah.gnu.org/bugs/?46714.
* find/Makefile.am (check_PROGRAMS): Put oldfind in check_PROGRAMS
instead of noinst_PROGRAMS, so that we don't build it when it is
not needed.
* m4/withfts.m4 (FIND_WITH_FTS): Fix whitespace alignment.
(FIND_WITH_FTS): The WITH_FTS C preprocessor macro and the
accompanying Automake conditional are no longer needed.
* THANKS: Add Mike Frysinger.
This commit is contained in:
James Youngman 2015-12-28 10:38:28 +00:00
parent f593432309
commit 601cef07bb
3 changed files with 3 additions and 4 deletions

1
THANKS
View File

@ -34,6 +34,7 @@ Mark Kettenis <kettenis@gnu.org>
Martin Buchholz Martin Buchholz
Matt Mueller <donut@azstarnet.com> Matt Mueller <donut@azstarnet.com>
Michael Haubenwallner <michael.haubenwallner@salomon.at> Michael Haubenwallner <michael.haubenwallner@salomon.at>
Mike Frysinger <vapier@gentoo.org>
Nelson Beebe Nelson Beebe
Nigel Stepp <stepp@atistart.net> Nigel Stepp <stepp@atistart.net>
Nix <nix@esperi.org.uk> Nix <nix@esperi.org.uk>

View File

@ -9,7 +9,7 @@ libfindtools_a_SOURCES = finddata.c fstype.c parser.c pred.c exec.c tree.c util.
# one without (called "oldfind"). The oldfind binary is no longer # one without (called "oldfind"). The oldfind binary is no longer
# installed. # installed.
bin_PROGRAMS = find bin_PROGRAMS = find
noinst_PROGRAMS = oldfind check_PROGRAMS = oldfind
find_SOURCES = ftsfind.c find_SOURCES = ftsfind.c
oldfind_SOURCES = oldfind.c oldfind_SOURCES = oldfind.c
man_MANS = find.1 man_MANS = find.1

View File

@ -6,9 +6,7 @@ AC_DEFUN([FIND_WITH_FTS],
case $with_fts in case $with_fts in
yes) ;; yes) ;;
'') with_fts=yes ;; '') with_fts=yes ;;
no) AC_MSG_ERROR([Using --without-fts is not longer supported]) ;; no) AC_MSG_ERROR([Using --without-fts is not longer supported]) ;;
*) AC_MSG_ERROR([Invalid value for --with-fts: $with_fts]) *) AC_MSG_ERROR([Invalid value for --with-fts: $with_fts])
esac esac
AM_CONDITIONAL(WITH_FTS, [[test x"${with_fts-no}" != xno]])
AC_DEFINE([WITH_FTS], 1, [Define if you want to use fts() to do the filesystem search.])
]) ])