summaryrefslogtreecommitdiff
path: root/_pam_aconf.h.in
blob: 0569554d5a7da4435154348eb6166a6bf787404d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/*
 * $Id$
 *
 * 
 */

#ifndef PAM_ACONF_H
#define PAM_ACONF_H

/* lots of stuff gets written to /tmp/pam-debug.log */
#undef DEBUG

/* build libraries with different names (suffixed with 'd') */
#undef WITH_LIBDEBUG

/* provide a global locking facility within libpam */
#undef PAM_LOCKING

/* GNU systems as a class, all have the feature.h file */
#undef HAVE_FEATURES_H
#ifdef HAVE_FEATURES_H
# define _SVID_SOURCE
# define _BSD_SOURCE
# define __USE_BSD
# define __USE_SVID
# define __USE_MISC
# define _GNU_SOURCE
# include <features.h>
#endif /* HAVE_FEATURES_H */

/* we have libcrack available */
#undef HAVE_LIBCRACK

/* we have libcrypt - its not part of libc (do we need both definitions?) */
#undef HAVE_LIBCRYPT
#undef HAVE_CRYPT_H

/* we have libndbm and/or libdb */
#undef HAVE_DB_H
#undef HAVE_NDBM_H

/* have libfl (Flex) */
#undef HAVE_LIBFL

/* have libnsl - instead of libc support */
#undef HAVE_LIBNSL

/* have libpwdb - don't expect this to be important for much longer */
#undef HAVE_LIBPWDB

/* have gethostname() declared */
#undef HAVE_GETHOSTNAME

#undef HAVE_GETTIMEOFDAY
#undef HAVE_MKDIR
#undef HAVE_SELECT
#undef HAVE_STRCSPN
#undef HAVE_STRDUP
#undef HAVE_STRERROR
#undef HAVE_STRSPN
#undef HAVE_STRSTR
#undef HAVE_STRTOL
#undef HAVE_UNAME

/* Define if reentrant declarations of standard nss functions are available */
#undef HAVE_GETPWNAM_R
#undef HAVE_GETGRNAM_R

/* ugly hack to partially support old pam_strerror syntax */
#undef UGLY_HACK_FOR_PRIOR_BEHAVIOR_SUPPORT

/* read both confs - read /etc/pam.d and /etc/pam.conf in serial */
#undef PAM_READ_BOTH_CONFS

#undef HAVE_PATHS_H
#ifdef HAVE_PATHS_H
#include <paths.h>
#endif
/* location of the mail spool directory */
#undef PAM_PATH_MAILDIR

/* where should we include setfsuid's prototype from? If this is not
   defined, we get it from unistd.h */
#undef HAVE_SYS_FSUID_H

/* track all memory allocations and liberations */
#undef MEMORY_DEBUG
#ifdef MEMORY_DEBUG
/*
 * this is basically a hack - we need to include a semiarbitrary
 * number of headers to ensure that we don't get silly prototype/macro
 * confusion.
 */
# include <string.h>
# include <stdlib.h>
# include <security/pam_malloc.h>
#endif /* MEMORY_DEBUG */

#endif /* PAM_ACONF_H */