openldap/include/ldap_config.h.in

75 lines
1.7 KiB
C
Raw Normal View History

1999-08-31 09:17:01 +08:00
/* $OpenLDAP$ */
/*
2002-01-05 04:40:29 +08:00
* Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License. A copy of this license is available at
* http://www.OpenLDAP.org/license.html or in file LICENSE in the
* top-level directory of the distribution.
*/
/*
* This file works in confunction with OpenLDAP configure system.
* If you do no like the values below, adjust your configure options.
*/
#ifndef _LDAP_CONFIG_H
#define _LDAP_CONFIG_H
/* directory separator */
#ifndef LDAP_DIRSEP
1999-10-28 15:26:44 +08:00
#ifndef _WIN32
#define LDAP_DIRSEP "/"
1999-10-28 15:26:44 +08:00
#else
#define LDAP_DIRSEP "\\"
#endif
#endif
/* directory for temporary files */
#if defined(_WIN32)
# define LDAP_TMPDIR "C:\\." /* we don't have much of a choice */
#elif defined( _P_tmpdir )
2000-06-26 09:24:38 +08:00
# define LDAP_TMPDIR _P_tmpdir
#elif defined( P_tmpdir )
# define LDAP_TMPDIR P_tmpdir
#elif defined( _PATH_TMPDIR )
# define LDAP_TMPDIR _PATH_TMPDIR
#else
2000-06-26 09:24:38 +08:00
# define LDAP_TMPDIR LDAP_DIRSEP "tmp"
#endif
/* directories */
#ifndef LDAP_BINDIR
#define LDAP_BINDIR "%BINDIR%"
#endif
#ifndef LDAP_SBINDIR
#define LDAP_SBINDIR "%SBINDIR%"
#endif
#ifndef LDAP_DATADIR
#define LDAP_DATADIR "%DATADIR%"
#endif
#ifndef LDAP_SYSCONFDIR
#define LDAP_SYSCONFDIR "%SYSCONFDIR%"
#endif
#ifndef LDAP_LIBEXECDIR
#define LDAP_LIBEXECDIR "%LIBEXECDIR%"
#endif
#ifndef LDAP_RUNDIR
#define LDAP_RUNDIR "%RUNDIR%"
#endif
/* command locations */
#ifndef LDAP_EDITOR
#define LDAP_EDITOR "%EDITOR%"
#endif
#ifndef LDAP_FINGER
#define LDAP_FINGER "%FINGER%"
#endif
#ifndef LDAP_SENDMAIL
#define LDAP_SENDMAIL "%SENDMAIL%"
#endif
#endif /* _LDAP_CONFIG_H */