summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-16 18:23:18 +0000
committerJim Meyering <jim@meyering.net>2003-01-16 18:23:18 +0000
commit86c7ef826a744c0b89f6f1f956ebd0d2b6fdf931 (patch)
tree7a9c3181d5ddd425554812cc297b2cfa38568c70 /m4
parenta578d7d8e93c18753dd72e4f6f19f29818796159 (diff)
downloadcoreutils-86c7ef826a744c0b89f6f1f956ebd0d2b6fdf931.tar.xz
move prerequisites to precede AC_CACHE_CHECK
Diffstat (limited to 'm4')
-rw-r--r--m4/ftw.m415
1 files changed, 8 insertions, 7 deletions
diff --git a/m4/ftw.m4 b/m4/ftw.m4
index 6f03ea123..7738cf3cd 100644
--- a/m4/ftw.m4
+++ b/m4/ftw.m4
@@ -3,13 +3,14 @@
# From Jim Meyering
AC_DEFUN([AC_FUNC_FTW],
-[AC_CACHE_CHECK([for working GNU ftw], ac_cv_func_ftw_working,
[
# prerequisites
AC_REQUIRE([AC_HEADER_DIRENT])
AC_CHECK_HEADERS(sys/param.h)
AC_CHECK_DECLS([stpcpy])
AC_CHECK_FUNC([tdestroy], , [need_tdestroy=1])
+ AC_CACHE_CHECK([for working GNU ftw], ac_cv_func_ftw_working,
+ [
# The following test would fail prior to glibc-2.3.2, because `depth'
# would be 2 rather than 4.
@@ -43,11 +44,11 @@ main ()
[ac_cv_func_ftw_working=yes],
[ac_cv_func_ftw_working=no],
[ac_cv_func_ftw_working=no])])
-if test $ac_cv_func_ftw_working = no; then
- AC_LIBOBJ([ftw])
- # Add tsearch.o IFF we have to use the replacement ftw.c.
- if test -n "$need_tdestroy"; then
- AC_LIBOBJ([tsearch])
+ if test $ac_cv_func_ftw_working = no; then
+ AC_LIBOBJ([ftw])
+ # Add tsearch.o IFF we have to use the replacement ftw.c.
+ if test -n "$need_tdestroy"; then
+ AC_LIBOBJ([tsearch])
+ fi
fi
-fi
])# AC_FUNC_FTW