X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fperror.m4;h=42549ba212c990ec328bd0488a365174c46b47f5;hb=da8054d48dc22e1c051db54049e005d51a006e69;hp=6a2d9b242349c8880b66cd536c576433224e75a3;hpb=3258ce39ae1d5833c693ac4b75cb4a4b218a2159;p=gnulib.git diff --git a/m4/perror.m4 b/m4/perror.m4 index 6a2d9b242..42549ba21 100644 --- a/m4/perror.m4 +++ b/m4/perror.m4 @@ -1,5 +1,5 @@ -# perror.m4 serial 5 -dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. +# perror.m4 serial 6 +dnl Copyright (C) 2008-2013 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. @@ -36,9 +36,10 @@ AC_DEFUN([gl_FUNC_PERROR], puts (str); errno = -1; perror (""); + return 0; ]])], - [CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 - if cmp conftest.txt1 conftest.txt2 >/dev/null; then + [if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \ + && cmp conftest.txt1 conftest.txt2 >/dev/null; then gl_cv_func_perror_works=yes else gl_cv_func_perror_works=no