s4:torture: Adapt KDC canon test to Heimdal upstream changes
[samba.git] / source4 / heimdal_build / config.h
1 /*
2   this is a replacement config.h for building the heimdal parts of the
3   Samba source tree
4 */
5
6 #ifndef HAVE_HEIMDAL_CONFIG_H
7 #define HAVE_HEIMDAL_CONFIG_H
8
9 #include "include/config.h"
10 #include "../replace/replace.h"
11 #include "../lib/util/attr.h"
12
13 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4"}
14
15 #define VERSION "Samba"
16
17 #define PACKAGE VERSION
18 #define PACKAGE_BUGREPORT "https://bugzilla.samba.org/"
19 #define PACKAGE_VERSION VERSION
20
21 #define RCSID(msg) struct __rcsid { int __rcsdi; }
22 #define KRB5
23
24 /* This needs to be defined for roken too */
25 #ifdef VOID_RETSIGTYPE
26 #define SIGRETURN(x) return
27 #else
28 #define SIGRETURN(x) return (RETSIGTYPE)(x)
29 #endif
30
31 #define HDB_DB_DIR ""
32
33 #undef HAVE_KRB5_ENCRYPT_BLOCK
34
35 /* Because it can't be defined in roken.h */
36 #ifndef USE_HCRYPTO_IMATH
37 #define USE_HCRYPTO_IMATH
38 #endif
39
40 /*Workaround for heimdal define vs samba define*/
41 #if defined(HAVE_LIBINTL_H) && defined(HAVE_BINDTEXTDOMAIN) &&\
42     defined(HAVE_TEXTDOMAIN)
43 #define LIBINTL
44 #endif
45
46 /* heimdal now wants some atomic ops - ask for the non-atomic ones for Samba */
47 #define HEIM_BASE_NON_ATOMIC 1
48
49 /* lib/replace provides an XSI Compatable strerror_r so use that */
50 #define STRERROR_R_PROTO_COMPATIBLE
51
52 /* lib/replace provides a closefrom */
53 #ifndef HAVE_CLOSEFROM
54 #define HAVE_CLOSEFROM 1
55 #endif
56
57 /* lib/replace provides a getprogname */
58 #ifndef HAVE_GETPROGNAME
59 #define HAVE_GETPROGNAME 1
60 #endif
61
62 /* lib/replace provides a strsep */
63 #ifndef HAVE_STRSEP
64 #define HAVE_STRSEP 1
65 #endif
66
67 #endif