summaryrefslogtreecommitdiff
path: root/package/coreutils/patches/patch-m4_spawn_h_m4
diff options
context:
space:
mode:
Diffstat (limited to 'package/coreutils/patches/patch-m4_spawn_h_m4')
-rw-r--r--package/coreutils/patches/patch-m4_spawn_h_m418
1 files changed, 18 insertions, 0 deletions
diff --git a/package/coreutils/patches/patch-m4_spawn_h_m4 b/package/coreutils/patches/patch-m4_spawn_h_m4
new file mode 100644
index 000000000..5273ee3d3
--- /dev/null
+++ b/package/coreutils/patches/patch-m4_spawn_h_m4
@@ -0,0 +1,18 @@
+--- coreutils-8.22.orig/m4/spawn_h.m4 2013-12-04 15:53:33.000000000 +0100
++++ coreutils-8.22/m4/spawn_h.m4 2014-02-21 15:19:26.000000000 +0100
+@@ -64,7 +64,14 @@ AC_DEFUN([gl_HAVE_POSIX_SPAWN],
+ dnl once only, before all statements that occur in other macros.
+ AC_REQUIRE([gl_SPAWN_H_DEFAULTS])
+
+- AC_CHECK_FUNCS_ONCE([posix_spawn])
++ LIB_POSIX_SPAWN=
++ AC_SUBST([LIB_POSIX_SPAWN])
++ gl_saved_libs=$LIBS
++ AC_SEARCH_LIBS([posix_spawn], [rt],
++ [test "$ac_cv_search_posix_spawn" = "none required" ||
++ LIB_POSIX_SPAWN=$ac_cv_search_posix_spawn])
++ AC_CHECK_FUNCS([posix_spawn])
++ LIBS=$gl_saved_libs
+ if test $ac_cv_func_posix_spawn != yes; then
+ HAVE_POSIX_SPAWN=0
+ fi