8000 AC_RUN_IFELSE · util-linux/util-linux@8dca048 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8dca048

Browse files
committed
AC_RUN_IFELSE
1 parent 0aa6021 commit 8dca048

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

configure.ac

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ AS_IF([test x"$have_dirfd" = xno], [
823823
AM_CONDITIONAL([HAVE_DIRFD], [test "x$have_dirfd" = xyes || test "x$have_ddfd" = xyes])
824824

825825
AC_MSG_CHECKING([Whether fts_read() actually works])
826-
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
826+
AC_RUN_IFELSE([AC_LANG_PROGRAM([[
827827
#include <stdio.h>
828828
#include <stdlib.h>
829829
#include <unistd.h>
@@ -893,11 +893,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
893893
while ((node = fts_read(fts)) != NULL) {
894894
switch (node->fts_info) {
895895
case FTS_F:
896-
printf("F %s\n", node->fts_path);
897896
files--;
898897
break;
899898
case FTS_D:
900-
printf("D %s\n", node->fts_path);
901899
dirs--;
902900
break;
903901
case FTS_ERR:
@@ -921,8 +919,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
921919
fprintf(stderr, "Error: %d directories not found\n", dirs);
922920
return 1;
923921
}
924-
925-
return 0;
926922
]])], [
927923
AC_MSG_RESULT([yes])
928924
AC_DEFINE([HAVE_FTS_OPEN], [1],

0 commit comments

Comments
 (0)
0