annotate m4/sysexits.m4 @ 276:23034db7dd8a 2.5

fixed expression 'slots' to not store null on a pass 1 store
author lost
date Mon, 31 Aug 2009 08:39:36 +0000
parents d5392bb5da3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
272
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1 # sysexits.m4 serial 4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
2 dnl Copyright (C) 2003, 2005, 2007 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
d5392bb5da3c Added generated files
lost
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
6
d5392bb5da3c Added generated files
lost
parents:
diff changeset
7 AC_DEFUN([gl_SYSEXITS],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
8 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
9 AC_CHECK_HEADERS_ONCE([sysexits.h])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
10 if test $ac_cv_header_sysexits_h = yes; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
11 HAVE_SYSEXITS_H=1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
12 gl_CHECK_NEXT_HEADERS([sysexits.h])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
13 AC_TRY_COMPILE([#include <sysexits.h>],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
14 [switch (0)
d5392bb5da3c Added generated files
lost
parents:
diff changeset
15 {
d5392bb5da3c Added generated files
lost
parents:
diff changeset
16 case EX_OK:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
17 case EX_USAGE:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
18 case EX_DATAERR:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
19 case EX_NOINPUT:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
20 case EX_NOUSER:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
21 case EX_NOHOST:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
22 case EX_UNAVAILABLE:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
23 case EX_SOFTWARE:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
24 case EX_OSERR:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
25 case EX_OSFILE:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
26 case EX_CANTCREAT:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
27 case EX_IOERR:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
28 case EX_TEMPFAIL:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
29 case EX_PROTOCOL:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
30 case EX_NOPERM:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
31 case EX_CONFIG:
d5392bb5da3c Added generated files
lost
parents:
diff changeset
32 break;
d5392bb5da3c Added generated files
lost
parents:
diff changeset
33 }
d5392bb5da3c Added generated files
lost
parents:
diff changeset
34 ],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
35 [SYSEXITS_H=],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
36 [SYSEXITS_H=sysexits.h])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
37 else
d5392bb5da3c Added generated files
lost
parents:
diff changeset
38 HAVE_SYSEXITS_H=0
d5392bb5da3c Added generated files
lost
parents:
diff changeset
39 SYSEXITS_H=sysexits.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
40 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
41 AC_SUBST([HAVE_SYSEXITS_H])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
42 AC_SUBST([SYSEXITS_H])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
43 ])