2 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 * Copyright 1998-2017 The OpenLDAP Foundation.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted only as authorized by the OpenLDAP
11 * A copy of this license is available in file LICENSE in the
12 * top-level directory of the distribution or, alternatively, at
13 * <http://www.OpenLDAP.org/license.html>.
17 * This file works in confunction with OpenLDAP configure system.
18 * If you do no like the values below, adjust your configure options.
21 #ifndef _LDAP_CONFIG_H
22 #define _LDAP_CONFIG_H
24 /* directory separator */
27 #define LDAP_DIRSEP "/"
29 #define LDAP_DIRSEP "\\"
33 /* directory for temporary files */
35 # define LDAP_TMPDIR "C:\\." /* we don't have much of a choice */
36 #elif defined( _P_tmpdir )
37 # define LDAP_TMPDIR _P_tmpdir
38 #elif defined( P_tmpdir )
39 # define LDAP_TMPDIR P_tmpdir
40 #elif defined( _PATH_TMPDIR )
41 # define LDAP_TMPDIR _PATH_TMPDIR
43 # define LDAP_TMPDIR LDAP_DIRSEP "tmp"
48 #define LDAP_BINDIR "%BINDIR%"
51 #define LDAP_SBINDIR "%SBINDIR%"
54 #define LDAP_DATADIR "%DATADIR%"
56 #ifndef LDAP_SYSCONFDIR
57 #define LDAP_SYSCONFDIR "%SYSCONFDIR%"
59 #ifndef LDAP_LIBEXECDIR
60 #define LDAP_LIBEXECDIR "%LIBEXECDIR%"
62 #ifndef LDAP_MODULEDIR
63 #define LDAP_MODULEDIR "%MODULEDIR%"
66 #define LDAP_RUNDIR "%RUNDIR%"
68 #ifndef LDAP_LOCALEDIR
69 #define LDAP_LOCALEDIR "%LOCALEDIR%"
73 #endif /* _LDAP_CONFIG_H */