1*d5c9a868SElliott Hughesdnl Copyright 1997,2001-2003 Alain Knaff. 2*d5c9a868SElliott Hughesdnl This file is part of mtools. 3*d5c9a868SElliott Hughesdnl 4*d5c9a868SElliott Hughesdnl Mtools is free software: you can redistribute it and/or modify 5*d5c9a868SElliott Hughesdnl it under the terms of the GNU General Public License as published by 6*d5c9a868SElliott Hughesdnl the Free Software Foundation, either version 3 of the License, or 7*d5c9a868SElliott Hughesdnl (at your option) any later version. 8*d5c9a868SElliott Hughesdnl 9*d5c9a868SElliott Hughesdnl Mtools is distributed in the hope that it will be useful, 10*d5c9a868SElliott Hughesdnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11*d5c9a868SElliott Hughesdnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12*d5c9a868SElliott Hughesdnl GNU General Public License for more details. 13*d5c9a868SElliott Hughesdnl 14*d5c9a868SElliott Hughesdnl You should have received a copy of the GNU General Public License 15*d5c9a868SElliott Hughesdnl along with Mtools. If not, see <http://www.gnu.org/licenses/>. 16*d5c9a868SElliott Hughesdnl 17*d5c9a868SElliott Hughesdnl Check for declaration of sys_errlist in one of stdio.h and errno.h. 18*d5c9a868SElliott Hughesdnl Declaration of sys_errlist on BSD4.4 interferes with our declaration. 19*d5c9a868SElliott Hughesdnl Reported by Keith Bostic. 20*d5c9a868SElliott HughesAC_DEFUN([CF_SYS_ERRLIST], 21*d5c9a868SElliott Hughes[ 22*d5c9a868SElliott HughesAC_MSG_CHECKING([declaration of sys_errlist]) 23*d5c9a868SElliott HughesAC_CACHE_VAL(cf_cv_dcl_sys_errlist,[ 24*d5c9a868SElliott Hughes AC_TRY_COMPILE([ 25*d5c9a868SElliott Hughes#include <stdio.h> 26*d5c9a868SElliott Hughes#include <sys/types.h> 27*d5c9a868SElliott Hughes#include <errno.h> ], 28*d5c9a868SElliott Hughes [char *c = (char *) *sys_errlist], 29*d5c9a868SElliott Hughes [cf_cv_dcl_sys_errlist=yes], 30*d5c9a868SElliott Hughes [cf_cv_dcl_sys_errlist=no])]) 31*d5c9a868SElliott HughesAC_MSG_RESULT($cf_cv_dcl_sys_errlist) 32*d5c9a868SElliott Hughestest $cf_cv_dcl_sys_errlist = no || AC_DEFINE([DECL_SYS_ERRLIST],1,[Define when sys_errlist is defined in the standard include files]) 33*d5c9a868SElliott Hughes])dnl 34*d5c9a868SElliott Hughesdnl 35