1/* OpenLDAP: pkg/ldap/include/ldap_config.hin,v 1.3.2.5 2010/04/13 20:22:48 kurt Exp */
2/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3 *
4 * Copyright 1998-2010 The OpenLDAP Foundation.
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted only as authorized by the OpenLDAP
9 * Public License.
10 *
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>.
14 */
15
16/*
17 * This file works in confunction with OpenLDAP configure system.
18 * If you do no like the values below, adjust your configure options.
19 */
20
21#ifndef _LDAP_CONFIG_H
22#define _LDAP_CONFIG_H
23
24/* directory separator */
25#ifndef LDAP_DIRSEP
26#ifndef _WIN32
27#define LDAP_DIRSEP "/"
28#else
29#define LDAP_DIRSEP "\\"
30#endif
31#endif
32
33/* directory for temporary files */
34#if defined(_WIN32)
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
42#else
43# define LDAP_TMPDIR LDAP_DIRSEP "tmp"
44#endif
45
46/* directories */
47#ifndef LDAP_BINDIR
48#define LDAP_BINDIR			"%BINDIR%"
49#endif
50#ifndef LDAP_SBINDIR
51#define LDAP_SBINDIR		"%SBINDIR%"
52#endif
53#ifndef LDAP_DATADIR
54#define LDAP_DATADIR		"%DATADIR%"
55#endif
56#ifndef LDAP_SYSCONFDIR
57#define LDAP_SYSCONFDIR		"%SYSCONFDIR%"
58#endif
59#ifndef LDAP_LIBEXECDIR
60#define LDAP_LIBEXECDIR		"%LIBEXECDIR%"
61#endif
62#ifndef LDAP_MODULEDIR
63#define LDAP_MODULEDIR		"%MODULEDIR%"
64#endif
65#ifndef LDAP_RUNDIR
66#define LDAP_RUNDIR			"%RUNDIR%"
67#endif
68#ifndef LDAP_LOCALEDIR
69#define LDAP_LOCALEDIR		"%LOCALEDIR%"
70#endif
71
72
73#endif /* _LDAP_CONFIG_H */
74