From: Bruno Haible Date: Sun, 9 Oct 2011 13:03:23 +0000 (+0200) Subject: poll: Make macro safer. X-Git-Tag: v0.1~1617 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=8898b893b45d6584e8678df4255120fb0d3e9f02;p=gnulib.git poll: Make macro safer. * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H, ac_cv_header_poll_h is not set. --- diff --git a/ChangeLog b/ChangeLog index e27cfc1aa..9bbca90ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-10-09 Bruno Haible + poll: Make macro safer. + * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H, + ac_cv_header_poll_h is not set. + +2011-10-09 Bruno Haible + copysign: Provide replacement. * lib/math.in.h (copysign): New declaration. * lib/copysign.c: New file. diff --git a/m4/poll.m4 b/m4/poll.m4 index 0cf3183d1..91a494c59 100644 --- a/m4/poll.m4 +++ b/m4/poll.m4 @@ -1,4 +1,4 @@ -# poll.m4 serial 15 +# poll.m4 serial 16 dnl Copyright (c) 2003, 2005-2007, 2009-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, @@ -8,7 +8,7 @@ AC_DEFUN([gl_FUNC_POLL], [ AC_REQUIRE([gl_POLL_H]) AC_REQUIRE([gl_SOCKETS]) - if test "$ac_cv_header_poll_h" = no; then + if test $ac_cv_header_poll_h = no; then ac_cv_func_poll=no gl_cv_func_poll=no else