s4:s3compat Remove even more Samba3 modules
[abartlet/samba.git/.git] / source4 / s3compat / compat / config.h
1 /* this is taken from the s3 waf build. It is a temporary
2    solution until we have all the configure tests that the
3    s3 code needs in the s4 build
4 */
5 #ifndef _INCLUDE_CONFIG_H_WAF
6 #include "source4/include/config.h"
7 #define _INCLUDE_CONFIG_H_WAF
8
9 /* pretend to be samba3 */
10 #undef _SAMBA_BUILD_
11 #define _SAMBA_BUILD_ 3
12
13 /* setup for builtin heimdal */
14 #define HAVE_GSSAPI_GSSAPI_H 1
15 #define HAVE_KRB5_ADDRESSES 1
16 #define HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK 1
17 #define HAVE_KRB5_SET_REAL_TIME 1
18 #undef HAVE_KRB5_DEPRECATED_WITH_IDENTIFIER
19 #define HAVE_COM_ERR_H 1
20 #define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
21 #define HAVE_GSSAPI_GSSAPI_H 1
22 #define HAVE_GSS_DISPLAY_STATUS 1
23 #define HAVE_LIBGSSAPI 1
24 #define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
25 #define HAVE_CHECKSUM_IN_KRB5_CHECKSUM 1
26 #define HAVE_DECL_KRB5_AUTH_CON_SET_REQ_CKSUMTYPE 0
27 #define HAVE_DECL_KRB5_GET_CREDENTIALS_FOR_USER 0
28 #define HAVE_E_DATA_POINTER_IN_KRB5_ERROR 1
29 #define HAVE_INITIALIZE_KRB5_ERROR_TABLE 1
30 #define HAVE_KRB5_ADDRESSES 1
31 #define HAVE_KRB5_AUTH_CON_SETKEY 1
32 #define HAVE_KRB5_CRYPTO 1
33 #define HAVE_KRB5_CRYPTO_DESTROY 1
34 #define HAVE_KRB5_CRYPTO_INIT 1
35 #define HAVE_KRB5_C_ENCTYPE_COMPARE 1
36 #define HAVE_KRB5_C_VERIFY_CHECKSUM 1
37 #define HAVE_KRB5_DECODE_AP_REQ 1
38 #define HAVE_KRB5_ENCTYPES_COMPATIBLE_KEYS 1
39 #define HAVE_KRB5_ENCTYPE_TO_STRING 1
40 #define HAVE_KRB5_ENCTYPE_TO_STRING_WITH_KRB5_CONTEXT_ARG 1
41 #define HAVE_KRB5_FREE_ERROR_CONTENTS 1
42 #define HAVE_KRB5_FREE_HOST_REALM 1
43 #define HAVE_KRB5_FWD_TGT_CREDS 1
44 #define HAVE_KRB5_GET_CREDS 1
45 #define HAVE_KRB5_GET_CREDS_OPT_ALLOC 1
46 #define HAVE_KRB5_GET_CREDS_OPT_SET_IMPERSONATE 1
47 #define HAVE_KRB5_GET_DEFAULT_IN_TKT_ETYPES 1
48 #define HAVE_KRB5_GET_HOST_REALM 1
49 #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
50 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1
51 #define HAVE_KRB5_GET_INIT_CREDS_OPT_GET_ERROR 1
52 #define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PAC_REQUEST 1
53 #define HAVE_KRB5_GET_KDC_CRED 1
54 #define HAVE_KRB5_GET_PW_SALT 1
55 #define HAVE_KRB5_GET_RENEWED_CREDS 1
56 #define HAVE_KRB5_KEYBLOCK_KEYVALUE 1
57 #define HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK 1
58 #define HAVE_KRB5_KRBHST_GET_ADDRINFO 1
59 #define HAVE_KRB5_KRBHST_INIT 1
60 #define HAVE_KRB5_KT_COMPARE 1
61 #define HAVE_KRB5_KT_FREE_ENTRY 1
62 #define HAVE_KRB5_KU_OTHER_CKSUM 1
63 #define HAVE_KRB5_LOCATE_PLUGIN_H 1
64 #define HAVE_KRB5_MK_REQ_EXTENDED 1
65 #define HAVE_KRB5_PRINCIPAL_COMPARE_ANY_REALM 1
66 #define HAVE_KRB5_PRINCIPAL_GET_COMP_STRING 1
67 #define HAVE_KRB5_PRINCIPAL_GET_REALM 1
68 #define HAVE_KRB5_REALM_TYPE 1
69 #define HAVE_KRB5_SESSION_IN_CREDS 1
70 #define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
71 #define HAVE_KRB5_SET_REAL_TIME 1
72 #define HAVE_KRB5_STRING_TO_KEY 1
73 #define HAVE_KRB5_STRING_TO_KEY_SALT 1
74 #define HAVE_KRB5_VERIFY_CHECKSUM 1
75 #define HAVE_LIBKRB5 1
76 #define KRB5_CREDS_OPT_FREE_REQUIRES_CONTEXT 1
77 #define KRB5_VERIFY_CHECKSUM_ARGS 6
78 #define HAVE_ETYPE_IN_ENCRYPTEDDATA 1
79 #define KRB5_PRINC_REALM_RETURNS_REALM 1
80 #define HAVE_KRB5_H 1
81
82 /* assume ldap lib */
83 #define HAVE_LDAP 1
84 #define HAVE_LDAP_ADD_RESULT_ENTRY 1
85 #define HAVE_LDAP_INIT 1
86 #define HAVE_LDAP_INITIALIZE 1
87 #define HAVE_LDAP_SASL_WRAPPING 1
88 #define HAVE_LDAP_SET_REBIND_PROC 1
89 #define LDAP_SET_REBIND_PROC_ARGS 3
90 #define LDAP_DEPRECATED 1
91
92 /* force winbind and sendfile */
93 #define WITH_SENDFILE 1
94 #define WITH_WINBIND 1
95
96 /* s3 pidfile.c needs this */
97 extern const char *dyn_CONFIGFILE;
98 #define CONFIGFILE dyn_CONFIGFILE
99
100 /* missing configure tests */
101 #define HAVE_GETCWD 1
102 #define HAVE_FCHOWN 1
103 #define HAVE_CHMOD 1
104 #define HAVE_FCHMOD 1
105 #define HAVE_MKNOD 1
106 #define HAVE_STRTOL 1
107 #define HAVE_STRCHR 1
108 #define HAVE_GETRLIMIT 1
109 #define HAVE_FSYNC 1
110 #define HAVE_SETPGID 1
111 #define HAVE_GLOB 1
112 #define HAVE_STRPBRK 1
113 #define HAVE_SIGSET 1
114 #define HAVE_INNETGR 1
115 #define HAVE_SETNETGRENT 1
116 #define HAVE_GETNETGRENT 1
117 #define HAVE_ENDNETGRENT 1
118 #define HAVE_SELECT 1
119 #define HAVE_POLL 1
120 #define HAVE_GETGRNAM 1
121 #define HAVE_GETGRENT 1
122 #define HAVE_PATHCONF 1
123 #define HAVE_SYSCONF 1
124 #define HAVE_STAT64 1
125 #define HAVE_FSTAT64 1
126 #define HAVE_LSTAT64 1
127 #define HAVE_FOPEN64 1
128 #define HAVE_GRANTPT 1
129 #define HAVE_LSEEK64 1
130 #define HAVE_FTRUNCATE64 1
131 #define HAVE_POSIX_FALLOCATE 1
132 #define HAVE_POSIX_FALLOCATE64 1
133 #define HAVE_FSEEKO64 1
134 #define HAVE_FTELLO64 1
135 #define HAVE_GETPWNAM 1
136 #define HAVE_READDIR64 1
137 #define HAVE_STRCASECMP 1
138 #define HAVE_FCVT 1
139 #define HAVE_SETLOCALE 1
140 #define HAVE_NL_LANGINFO 1
141 #define HAVE_LIBRT 1
142 #define HAVE_NANOSLEEP 1
143 #define HAVE_LUTIMES 1
144 #define HAVE_FUTIMES 1
145 #define HAVE_UTIMENSAT 1
146 #define HAVE_FUTIMENS 1
147 #define HAVE_MLOCK 1
148 #define HAVE_MUNLOCK 1
149 #define HAVE_MLOCKALL 1
150 #define HAVE_MUNLOCKALL 1
151 #define HAVE_MEMALIGN 1
152 #define HAVE_POSIX_MEMALIGN 1
153 #define HAVE_SHMGET 1
154 #define HAVE_SHM_OPEN 1
155 #define HAVE_BINDTEXTDOMAIN 1
156 #define HAVE_TEXTDOMAIN 1
157 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
158 #define HAVE___DN_EXPAND 1
159 #define HAVE_INOTIFY 1
160 #define HAVE_KERNEL_CHANGE_NOTIFY 1
161 #define HAVE_KERNEL_OPLOCKS_LINUX 1
162 #define HAVE_KERNEL_SHARE_MODES 1
163 #define HAVE_BLKSIZE_T 1
164 #define HAVE_BLKCNT_T 1
165 #define HAVE_STAT_ST_BLOCKS 1
166 #define HAVE_STAT_ST_BLKSIZE 1
167 #define HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS 1
168 #define HAVE_BACKTRACE_SYMBOLS 1
169 #define HAVE___CLOSE 1
170 #define HAVE_CREAT64 1
171 #define HAVE___DUP2 1
172 #define HAVE_ENDMNTENT 1
173 #define HAVE_EXECL 1
174 #define HAVE___FCNTL 1
175 #define HAVE_FGETXATTR 1
176 #define HAVE___FORK 1
177 #define HAVE_FREMOVEXATTR 1
178 #define HAVE_FSETXATTR 1
179 #define HAVE___FSTAT 1
180 #define HAVE___FXSTAT 1
181 #define HAVE_GETMNTENT 1
182 #define HAVE_GETUTMPX 1
183 #define HAVE_GETUTXENT 1
184 #define HAVE_LGETXATTR 1
185 #define HAVE_LISTXATTR 1
186 #define HAVE_LLISTXATTR 1
187 #define HAVE_LLSEEK 1
188 #define HAVE_LREMOVEXATTR 1
189 #define HAVE___LSEEK 1
190 #define HAVE_LSETXATTR 1
191 #define HAVE___LSTAT 1
192 #define HAVE___LXSTAT 1
193 #define HAVE___OPEN 1
194 #define HAVE_OPEN64 1
195 #define HAVE___OPEN64 1
196 #define HAVE_PRCTL 1
197 #define HAVE_PREAD64 1
198 #define HAVE___PREAD64 1
199 #define HAVE_PUTUTLINE 1
200 #define HAVE_PUTUTXLINE 1
201 #define HAVE_PWRITE64 1
202 #define HAVE___PWRITE64 1
203 #define HAVE___READ 1
204 #define HAVE_REMOVEXATTR 1
205 #define HAVE_SETMNTENT 1
206 #define HAVE_SETXATTR 1
207 #define HAVE___STAT 1
208 #define HAVE_STATVFS 1
209 #define HAVE_STRSIGNAL 1
210 #define HAVE_UPDWTMP 1
211 #define HAVE_UPDWTMPX 1
212 #define HAVE___WRITE 1
213 #define HAVE___XSTAT 1
214 #define HAVE_STRUCT_TIMESPEC 1
215 #define HAVE_CHARSET_CP850 1
216 #define HAVE_CHARSET_ASCII 1
217 #define HAVE_CHARSET_UTF_8 1
218 #define DEFAULT_DOS_CHARSET "CP850"
219 #define DEFAULT_DISPLAY_CHARSET "ASCII"
220 #define DEFAULT_UNIX_CHARSET "UTF-8"
221
222 /* s3 modules */
223 #define STRING_STATIC_MODULES "rpc_winreg rpc_initshutdown      rpc_wkssvc rpc_svcctl rpc_ntsvcs rpc_netdfs rpc_srvsvc     rpc_spoolss rpc_eventlog rpc_samr rpc_rpcecho idmap_ldap idmap_tdb     idmap_passdb idmap_nss nss_info_templatevfs_default"
224 #define static_init_vfs {  vfs_default_init();}
225 #define static_init_pdb { }
226 #define static_init_rpc {  rpc_winreg_init();     rpc_initshutdown_init();  rpc_wkssvc_init();     rpc_svcctl_init();  rpc_ntsvcs_init();  rpc_netdfs_init();  rpc_srvsvc_init();  rpc_spoolss_init();     rpc_eventlog_init();  rpc_rpcecho_init();}
227 #define static_init_auth {  }
228 #define static_init_nss_info {}
229 #define static_init_charset {}
230 #define static_init_idmap {idmap_passdb_init();}
231 #define auth_script_init init_samba_module
232 #define charset_CP437_init init_samba_module
233 #define charset_CP850_init init_samba_module
234 #define charset_weird_init init_samba_module
235 #define static_decl_auth 
236 #define static_decl_charset
237 #define static_decl_gpext
238 #define static_decl_pdb 
239 #define static_decl_perfcount
240 #define static_decl_rpc extern NTSTATUS rpc_lsarpc_init(void);     extern NTSTATUS rpc_winreg_init(void); extern NTSTATUS     rpc_initshutdown_init(void);extern     NTSTATUS rpc_wkssvc_init(void); extern NTSTATUS rpc_svcctl_init(void); extern     NTSTATUS rpc_ntsvcs_init(void); extern NTSTATUS rpc_netdfs_init(void); extern NTSTATUS rpc_srvsvc_init(void);     extern NTSTATUS rpc_spoolss_init(void); extern NTSTATUS     rpc_eventlog_init(void); extern NTSTATUS     rpc_rpcecho_init(void);
241 #define static_decl_vfs extern NTSTATUS vfs_default_init(void);
242 #define static_decl_idmap extern NTSTATUS idmap_passdb_init(void); 
243 #define static_init_gpext {}
244 #define static_init_perfcount {}
245 #define STAT_ST_BLOCKSIZE 512
246 #define vfs_acl_tdb_init init_samba_module
247 #define vfs_acl_xattr_init init_samba_module
248 #define vfs_audit_init init_samba_module
249 #define vfs_cap_init init_samba_module
250 #define vfs_catia_init init_samba_module
251 #define vfs_crossrename_init init_samba_module
252 #define vfs_default_quota_init init_samba_module
253 #define vfs_dirsort_init init_samba_module
254 #define vfs_expand_msdfs_init init_samba_module
255 #define vfs_extd_audit_init init_samba_module
256 #define vfs_fake_perms_init init_samba_module
257 #define vfs_fileid_init init_samba_module
258 #define vfs_full_audit_init init_samba_module
259 #define vfs_netatalk_init init_samba_module
260 #define vfs_preopen_init init_samba_module
261 #define vfs_readahead_init init_samba_module
262 #define vfs_readonly_init init_samba_module
263 #define vfs_recycle_init init_samba_module
264 #define vfs_scannedonly_init init_samba_module
265 #define vfs_shadow_copy2_init init_samba_module
266 #define vfs_shadow_copy_init init_samba_module
267 #define vfs_smb_traffic_analyzer_init init_samba_module
268 #define vfs_streams_depot_init init_samba_module
269 #define vfs_streams_xattr_init init_samba_module
270 #define vfs_syncops_init init_samba_module
271 #define vfs_xattr_tdb_init init_samba_module
272
273 #endif /* _INCLUDE_CONFIG_H_WAF */