patch-m4_spawn_h_m4 730 B

123456789101112131415161718
  1. --- coreutils-8.22.orig/m4/spawn_h.m4 2013-12-04 15:53:33.000000000 +0100
  2. +++ coreutils-8.22/m4/spawn_h.m4 2014-02-21 15:19:26.000000000 +0100
  3. @@ -64,7 +64,14 @@ AC_DEFUN([gl_HAVE_POSIX_SPAWN],
  4. dnl once only, before all statements that occur in other macros.
  5. AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
  6. - AC_CHECK_FUNCS_ONCE([posix_spawn])
  7. + LIB_POSIX_SPAWN=
  8. + AC_SUBST([LIB_POSIX_SPAWN])
  9. + gl_saved_libs=$LIBS
  10. + AC_SEARCH_LIBS([posix_spawn], [rt],
  11. + [test "$ac_cv_search_posix_spawn" = "none required" ||
  12. + LIB_POSIX_SPAWN=$ac_cv_search_posix_spawn])
  13. + AC_CHECK_FUNCS([posix_spawn])
  14. + LIBS=$gl_saved_libs
  15. if test $ac_cv_func_posix_spawn != yes; then
  16. HAVE_POSIX_SPAWN=0
  17. fi