X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fstrsignal.m4;h=856f8af8fef2e5ca566b51a2db1d852a168fe501;hb=fda17d3be428024474e30d689a9d25bb52527e1a;hp=be3c73392e64628e2e8b593f0f6c5c9a4c25cb91;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/m4/strsignal.m4 b/m4/strsignal.m4 index be3c73392..856f8af8f 100644 --- a/m4/strsignal.m4 +++ b/m4/strsignal.m4 @@ -1,5 +1,5 @@ -# strsignal.m4 serial 3 -dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. +# strsignal.m4 serial 5 +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. @@ -26,9 +26,16 @@ AC_DEFUN([gl_FUNC_STRSIGNAL], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include +#include /* NetBSD 5.0 declares it in wrong header. */ ]], - [[char *s = strsignal (-1); - return !(s != (char *) 0 && s != (char *) -1);]])], + [[int result = 0; + char *s = strsignal (-1); + if (s == (char *) 0) + result |= 1; + if (s == (char *) -1) + result |= 2; + return result; + ]])], [gl_cv_func_working_strsignal=yes], [gl_cv_func_working_strsignal=no], [case "$host_os" in