]> git.sur5r.net Git - openldap/blobdiff - include/ldap_config.h.in
add feature macros
[openldap] / include / ldap_config.h.in
index a7d0f01cb9b1330ddd29b910572041b98009d8fe..705466c8619c1bb9d5b40fc285198fb4b6090d07 100644 (file)
@@ -1,12 +1,13 @@
 /* $OpenLDAP$ */
 /*
- * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
+ * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA
  * All rights reserved.
  *
- * Redistribution and use in source and binary forms 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.
+ * 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.
  */
 
 /*
 
 /* directory separator */
 #ifndef LDAP_DIRSEP
+#ifndef _WIN32
 #define LDAP_DIRSEP "/"
+#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 )
+# define LDAP_TMPDIR _P_tmpdir
+#elif defined( P_tmpdir )
+# define LDAP_TMPDIR P_tmpdir
+#elif defined( _PATH_TMPDIR )
+# define LDAP_TMPDIR _PATH_TMPDIR
+#else
+# define LDAP_TMPDIR LDAP_DIRSEP "tmp"
 #endif
 
 /* directories */
@@ -46,9 +64,6 @@
 #ifndef LDAP_EDITOR
 #define LDAP_EDITOR                    "%EDITOR%"
 #endif
-#ifndef LDAP_FINGER
-#define LDAP_FINGER                    "%FINGER%"
-#endif
 #ifndef LDAP_SENDMAIL
 #define LDAP_SENDMAIL          "%SENDMAIL%"
 #endif