Revert "s3:configure: add --enable-as-needed"
[Samba/gebeck_regimport.git] / source4 / heimdal_build / roken.h
blob2d46767e1b700ba5a28853c8a509ebf4267af480
1 /*
2 a wrapper to override some of the defines that the heimdal roken system looks at
3 */
4 #ifndef _ROKEN_H_
5 #define _ROKEN_H_
7 /* Support 'weak' keys for now, it can't be worse than NTLM and we don't want to hard-code the behaviour at this point */
8 #define HEIM_WEAK_CRYPTO 1
10 /* path to sysconf - should we force this to samba LIBDIR ? */
11 #define SYSCONFDIR "/etc"
13 /* HDB module dir - set to Samba LIBDIR/hdb ? */
14 #define HDBDIR "/usr/heimdal/lib"
15 #define LIBDIR "/usr/heimdal/lib"
16 #define HEIMDAL_LOCALEDIR "/usr/heimdal/locale"
18 /* Maximum values on all known systems */
19 #define MaxHostNameLen (64+4)
20 #define MaxPathLen (1024+4)
22 /* We want PKINIT */
23 #define PKINIT 1
25 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.8pre"}
27 #define VERSION "Samba"
29 #define ROKEN_LIB_FUNCTION
31 #define GETHOSTBYADDR_PROTO_COMPATIBLE
32 #define GETSERVBYNAME_PROTO_COMPATIBLE
33 #define OPENLOG_PROTO_COMPATIBLE
34 #define GETSOCKNAME_PROTO_COMPATIBLE
36 /* even if we do have dlopen, we don't want heimdal using it */
37 #undef HAVE_DLOPEN
39 /* we need to tell roken about the functions that Samba replaces in lib/replace */
40 #ifndef HAVE_SETEUID
41 #define HAVE_SETEUID 1
42 #endif
44 #ifndef HAVE_STRNLEN
45 #define HAVE_STRNLEN
46 #endif
48 #ifndef HAVE_STRNDUP
49 #define HAVE_STRNDUP
50 #endif
52 #ifndef HAVE_STRLCPY
53 #define HAVE_STRLCPY
54 #endif
56 #ifndef HAVE_STRLCAT
57 #define HAVE_STRLCAT
58 #endif
60 #ifndef HAVE_STRCASECMP
61 #define HAVE_STRCASECMP
62 #endif
64 #ifndef HAVE_ASPRINTF
65 #define HAVE_ASPRINTF
66 #endif
68 #ifndef HAVE_VASPRINTF
69 #define HAVE_VASPRINTF
70 #endif
72 #ifndef HAVE_MKSTEMP
73 #define HAVE_MKSTEMP
74 #endif
76 #ifndef HAVE_SETENV
77 #define HAVE_SETENV
78 #endif
80 #ifndef HAVE_UNSETENV
81 #define HAVE_UNSETENV
82 #endif
84 #ifndef HAVE_VSYSLOG
85 #define HAVE_VSYSLOG
86 #endif
88 #ifndef HAVE_SSIZE_T
89 #define HAVE_SSIZE_T
90 #endif
92 #ifndef HAVE_STRPTIME
93 #define HAVE_STRPTIME
94 #endif
96 #ifndef HAVE_TIMEGM
97 #define HAVE_TIMEGM
98 #endif
100 #ifndef HAVE_INNETGR
101 #define HAVE_INNETGR
102 #endif
104 #ifndef HAVE_INET_ATON
105 #define HAVE_INET_ATON
106 #endif
108 /* we lie about having pidfile() so that NetBSD5 can compile. Nothing
109 in the parts of heimdal we use actually uses pidfile(), and we
110 don't use it in Samba, so this works, although its ugly */
111 #ifndef HAVE_PIDFILE
112 #define HAVE_PIDFILE
113 #endif
115 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
116 #ifndef HAVE___ATTRIBUTE__
117 #define HAVE___ATTRIBUTE__
118 #endif
119 #endif
121 #include "system/network.h"
124 * we don't want that roken.h.in includes socket_wrapper
125 * we include socket_wrapper via "system/network.h"
127 #undef SOCKET_WRAPPER_REPLACE
128 #include "heimdal/lib/roken/roken.h.in"
130 extern const char *heimdal_version;
131 extern const char *heimdal_long_version;
133 #endif