make the UID_WRAPPER skip checks at runtime
[sfrench/samba-autobuild/.git] / source4 / heimdal_build / config.h
index f7adedd2d45614b7f1a90808d4f859a75ece5fb4..8c0e6b0475968dddc1af495cb581d9af2b78095e 100644 (file)
@@ -4,64 +4,36 @@
 */
 
 #ifndef HAVE_HEIMDAL_CONFIG_H
-#define HAVE_HEIMDAL_CONFIG_H 1
+#define HAVE_HEIMDAL_CONFIG_H
 
 #include "include/config.h"
-#include "replace.h"
+#include "../replace/replace.h"
 
-#define RCSID(msg)
+#if !defined(HAVE_DIRFD) && !defined(HAVE_DIRFD_DECL) && !defined(dirfd)
+#define dirfd(d) (-1)
+#endif
+
+#define RCSID(msg) struct __rcsid { int __rcsdi; }
+#define KRB5
 
+/* This needs to be defined for roken too */
 #ifdef VOID_RETSIGTYPE
 #define SIGRETURN(x) return
 #else
 #define SIGRETURN(x) return (RETSIGTYPE)(x)
 #endif
 
-/* path to sysconf - should we force this to samba LIBDIR ? */
-#define SYSCONFDIR "/etc"
-
-/* HDB module dir - set to Samba LIBDIR/hdb ? */
-#define HDBDIR "/usr/heimdal/lib"
-
-/* Maximum values on all known systems */
-#define MaxHostNameLen (64+4)
-#define MaxPathLen (1024+4)
-
-#define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.7rc1"}
-
-/* even if we do have dlopen, we don't want heimdal using it */
-#undef HAVE_DLOPEN
-
-#define VERSION "Samba"
-
-#define ROKEN_LIB_FUNCTION
-
-/* these should be done with configure tests */
-#define KRB5
-
-/* we need to tell roken about the functions that Samba replaces in lib/replace */
-#ifndef HAVE_SETEUID
-#define HAVE_SETEUID 1
-#endif
-
-#define GETHOSTBYADDR_PROTO_COMPATIBLE
-#define GETSERVBYNAME_PROTO_COMPATIBLE
-#define OPENLOG_PROTO_COMPATIBLE
-#define GETSOCKNAME_PROTO_COMPATIBLE
+#define HDB_DB_DIR ""
 
-#ifndef HAVE_SOCKLEN_T
-#define HAVE_SOCKLEN_T
-#endif
+#undef HAVE_KRB5_ENCRYPT_BLOCK
 
-#ifndef HAVE_STRNDUP
-#define HAVE_STRNDUP
-#endif
-#ifndef HAVE_SOCKLEN_T
-#define HAVE_SOCKLEN_T
+#if defined(UID_WRAPPER)
+#if !defined(UID_WRAPPER_REPLACE) && !defined(UID_WRAPPER_NOT_REPLACE)
+#define UID_WRAPPER_REPLACE
+#include "../uid_wrapper/uid_wrapper.h"
 #endif
-
-#ifndef HAVE_SSIZE_T
-#define HAVE_SSIZE_T
+#else
+#define uwrap_enabled() 0
 #endif
 
 #endif