patch-m4_spawn_h_m4 722 B

12345678910111213141516171819
  1. --- wget-1.15.orig/m4/spawn_h.m4 2014-01-19 11:00:21.000000000 +0100
  2. +++ wget-1.15/m4/spawn_h.m4 2014-02-21 17:25:19.000000000 +0100
  3. @@ -64,7 +64,15 @@ 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. +
  16. if test $ac_cv_func_posix_spawn != yes; then
  17. HAVE_POSIX_SPAWN=0
  18. fi