2 dnl Copyright (C) 2003, 2005, 2007, 2009-2019 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 AC_DEFUN([gl_SYSEXITS],
9 AC_CHECK_HEADERS_ONCE([sysexits.h])
10 if test $ac_cv_header_sysexits_h = yes; then
12 gl_CHECK_NEXT_HEADERS([sysexits.h])
13 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sysexits.h>]],
36 [SYSEXITS_H=sysexits.h])
41 AC_SUBST([HAVE_SYSEXITS_H])
42 AC_SUBST([SYSEXITS_H])
43 AM_CONDITIONAL([GL_GENERATE_SYSEXITS_H], [test -n "$SYSEXITS_H"])