File tree 1 file changed +1
-5
lines changed 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -823,7 +823,7 @@ AS_IF([test x"$have_dirfd" = xno], [
823
823
AM_CONDITIONAL([ HAVE_DIRFD] , [ test "x$have_dirfd" = xyes || test "x$have_ddfd" = xyes] )
824
824
825
825
AC_MSG_CHECKING ( [ Whether fts_read() actually works] )
826
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
826
+ AC_RUN_IFELSE ( [ AC_LANG_PROGRAM ( [ [
827
827
#include <stdio.h>
828
828
#include <stdlib.h>
829
829
#include <unistd.h>
@@ -893,11 +893,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
893
893
while ((node = fts_read(fts)) != NULL) {
894
894
switch (node->fts_info) {
895
895
case FTS_F:
896
- printf("F %s\n", node->fts_path);
897
896
files--;
898
897
break;
899
898
case FTS_D:
900
- printf("D %s\n", node->fts_path);
901
899
dirs--;
902
900
break;
903
901
case FTS_ERR:
@@ -921,8 +919,6 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
921
919
fprintf(stderr, "Error: %d directories not found\n", dirs);
922
920
return 1;
923
921
}
924
-
925
- return 0;
926
922
] ] ) ] , [
927
923
AC_MSG_RESULT ( [ yes] )
928
924
AC_DEFINE ( [ HAVE_FTS_OPEN] , [ 1] ,
You can’t perform that action at this time.
0 commit comments