X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fwrite.m4;h=c39d3d07a3329ef74326f06844e87d89074660b4;hb=a5e49274c570061dcf3d8153138392f5e4a6b8f7;hp=812b19b3b07ee5889766974cb733fccaacf325f5;hpb=94b87393b6947b51b2a842cd88820a3cb60d8cd4;p=gnulib.git diff --git a/m4/write.m4 b/m4/write.m4 index 812b19b3b..c39d3d07a 100644 --- a/m4/write.m4 +++ b/m4/write.m4 @@ -1,5 +1,5 @@ -# write.m4 serial 1 -dnl Copyright (C) 2008 Free Software Foundation, Inc. +# write.m4 serial 3 +dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -14,7 +14,12 @@ AC_DEFUN([gl_FUNC_WRITE], gl_SIGNAL_SIGPIPE if test $gl_cv_header_signal_h_SIGPIPE != yes; then REPLACE_WRITE=1 - AC_LIBOBJ([write]) + fi + ]) + m4_ifdef([gl_NONBLOCKING_IO], [ + gl_NONBLOCKING_IO + if test $gl_cv_have_nonblocking != yes; then + REPLACE_WRITE=1 fi ]) ])