Commit Graph

280 Commits

Author SHA1 Message Date
Kurt Zeilenga
8b99e6cdbd Remove LBER_{TAG,INT,LEN}_{NTOH,HTON} macros. Rewrite code to
manual push bytes about.  Allows ber_*_t to be any 32-bit or
larger type.  Reworked AC_{HTON,NTOH}{L,S} macros to care only
about 32-bit (netlong) and 16-bit (netshort) reordering as
needed for BSD socket interface.
1999-11-26 23:32:18 +00:00
Kurt Zeilenga
c59d1a34db Use 'long' for LBER_INT_T. 1999-11-25 17:45:21 +00:00
Kurt Zeilenga
62a06eda3e Don't use 'int' for LBER_*_T types as we only have hton{s,l}.
Select appropriopriate hton{s,l} function to use in lber-int.h.
1999-11-25 17:10:45 +00:00
Kurt Zeilenga
ff2068b4ee Booker says Krb5 requires "-lkrb4 -lkrb5 -ldes425 -lcrypto -lcom_err" 1999-11-17 02:26:55 +00:00
Kurt Zeilenga
4d03404848 s/==/=/ in sh equality tests 1999-11-17 02:18:04 +00:00
Kurt Zeilenga
357101793b Use lber types instead of uint32 for md5. sha1 still requires
an integer type of exactly 32 bits.
1999-11-17 02:04:06 +00:00
Kurt Zeilenga
a90a38ec2d write winsock with AC_CACHE_CHECK to allow mangling via environment. 1999-11-02 02:32:55 +00:00
Kurt Zeilenga
89893b0fbf Remove unnecessary dependency upon $ac_cv_mingw32. 1999-11-02 02:10:36 +00:00
Kurt Zeilenga
daa7907b4f Move NT Thread test into build/openldap.m4. Still bogus (only
enables if MINGW32 and always enables if MINGW32).
1999-11-01 23:45:09 +00:00
Kurt Zeilenga
320cc86969 Define HAVE_NT_EVENT_LOG && HAVE_NT_SERVICE_MANAGER when HAVE_NT_THREADS 1999-11-01 22:06:00 +00:00
Kurt Zeilenga
bb1b81473b Add configure tests for ssize_t and caddr_t and remove NT preamble
(excepting WIN32_LEAN_AND_MEAN).  Rework openlog/closelog use to
eliminate need for defines.
1999-11-01 18:14:26 +00:00
Kurt Zeilenga
4757d60fb4 Use compile time, instead of run time, sizeof checks. 1999-11-01 17:36:09 +00:00
Kurt Zeilenga
26d8290859 Remove more dependencies upon $ac_cv_mingw32 1999-11-01 03:40:55 +00:00
Kurt Zeilenga
2aee8f8750 Remove some dependencies upon $ac_cv_mingw32. Most should be
replaced with actual functional tests.  Needed to provide uWin
and other Unix on NT environments.
1999-10-28 17:42:02 +00:00
Kurt Zeilenga
f3da68969b Add third argument AC_DEFINE() calls added by last commit to
avoid having to define macros by hand in acconfig.h (which
were mistaken added to portable.h.in).
1999-10-28 07:48:59 +00:00
Howard Chu
9c46eee39b Added support for Mingw32
See README 1.27 log
1999-10-28 07:23:03 +00:00
Kurt Zeilenga
bdca662249 Add lutil_entropy(). Currently only supports /dev/urandom or
Linux equivs.  Should be extended to support other quality
sources of entropy.  Should be extended to support a reasonable fallback.
1999-10-26 22:57:39 +00:00
Kurt Zeilenga
7f9a10d58a Fix s/else if/elif/ typo 1999-10-05 15:29:54 +00:00
Kurt Zeilenga
c0a6159844 Initial Kth Kerberos support. Changes based upon suggestions
from Booker Bense <bbense@networking.stanford.edu>.
1999-10-01 05:11:39 +00:00
Ben Collins
b7dd47c4cb * configure.in: add --enable-dynamic option for linking our local binaries
with the shared libraries instead of static, defaults to no
* build/lib-shared.mk: if LINK_BINS_DYNAMIC is set we create a symlink to
  the .so and .so.# file along with the .a and .la files
* build/lib.mk: make sure the above links get removed on clean target
* build/top.mk: add define for LINK_BINS_DYNAMIC
* tests/scripts/defines.sh: add export for LD_LIBRARY_PATH so that tests will
  run without requiring installation of libraries when we use --enable-dynamic
  (LD_LIBRARY_PATH is always set, since it can't really hurt).
1999-09-29 00:56:43 +00:00
Ben Collins
ed75be1b3c * configure.in: add tcl8.2 to list of tcl libs to search for, also added new MOD_TCL_LIB
and related AC_SUBST() so that when back-tcl is compiled as a dynamic module we link
  -ltcl to the module and not slapd (this is the correct way to do this since the .la file
  handles giving the correct libs when we pass the module to it in the linker line with
  -dlopen). Also modified the perl backend in a similar way except that the PERL_CPPFLAGS
  always go to the module and never to slapd (slapd doesn't need them).
* build/mod.mk: added $(MODLIBS) to the dynamic module link line to accomodate module
  specific libraries. These should be defined in the back-*/Makefile.in file for each
  module (so far only back-tcl and back-perl need it).
* build/top.mk: modified the perl ldflags and cppflags slightly
* servers/slapd/Makefile.in: same here
* servers/slapd/back-perl/Makefile.in: added MODLIBS=$(MOD_PERL_LDFLAGS) for when we are
  using a dynamic module (problem, libtool wont allow linking static libs into a libtool
  lib, so unless perl's libs are compiled dynamic, then back-perl can't be a dynamic
  module. We need a test for this on perl and tcl).
* servers/slapd/back-tcl/Makefile.in: added MODLIBS=$(MOD_TCL_LIB)
* back-perl and back-tcl now compile
1999-09-23 05:32:10 +00:00
Julio Sánchez Fernández
b67ade148e Add substitution of WRAP_LIBS 1999-09-22 17:45:59 +00:00
Ben Collins
7a0523b53d * configure.in: Added better check for libwrap (the old way failed when
libwrap was a dynamic library). Added -lwrap to new subst var WRAP_LIBS
  so we have more control over where it get's linked (dynamic libwrap
  causes problems when we link to programs that don't define certains
  globals that libwrap expects).
* build/top.mk: Added placeholder for WRAP_LIBS subst
* servers/slapd/Makefile.in: Added $(WRAP_LIBS) to the slapd and sslapd
  link command line specifically so it doesn't get thrown in with the rest
  of the LIBS.
* configure: rebuilt
1999-09-22 15:00:51 +00:00
Kurt Zeilenga
6b0ccd4a5d Add experimental detection of BerkeleyDB2 DB_THREAD.
If not available, LDBM uses big mutex and BDB2 is disabled.
Should add BerkeleyDB version detection...
1999-09-20 20:55:54 +00:00
Kurt Zeilenga
7e65074723 cosmetic changes 1999-09-13 18:31:39 +00:00
Kurt Zeilenga
d4bb42710a Print copyright notice at startup. 1999-09-12 17:13:15 +00:00
Kurt Zeilenga
0fcf553d45 Needs some additonal m4 magic to get rcsid correct. 1999-09-10 02:10:20 +00:00
Kurt Zeilenga
5c5be8a287 Rework RCS id codes such that they are placed at the top of
configure.  Implementation is dependent upon autoconf internals.
Attempts to use AC_REVISION hammered by libtool bugs.  Will submit
reports to libtool camp and rework configure.in once fixes are
released.
1999-09-09 20:35:43 +00:00
Kurt Zeilenga
0ed114224b Generate OpenLDAP id for configure 1999-09-09 05:21:18 +00:00
Kurt Zeilenga
0307dd3b38 Use pipe(2) if descriptors are selectable. 1999-08-31 17:01:10 +00:00
Kurt Zeilenga
fed44d4972 Add some basic detection of restartable syscalls, sigaction,
socketpair.  Use dependent on useful detection is.
1999-08-31 00:58:22 +00:00
Kurt Zeilenga
40fa9d36ce s/Id/OpenLDAP/ in RCSids 1999-08-30 08:08:00 +00:00
Kurt Zeilenga
23be50047c Add experimental OpenLDAP RCSid 1999-08-30 08:02:39 +00:00
Kurt Zeilenga
ae28af1383 Update a few comments 1999-08-29 20:11:23 +00:00
Kurt Zeilenga
1ee09a4d09 Add RCS Id (experimental) 1999-08-28 06:00:46 +00:00
Kurt Zeilenga
170b97ef54 Clarify -enable-dns and "LDAPD" as being an X.500-to-LDAP gateway 1999-08-25 18:32:28 +00:00
Kurt Zeilenga
b8a3a153bb Axe <varargs.h> support. Assume STDC C translator is available
to build OpenLDAP.
1999-08-24 00:27:53 +00:00
Kurt Zeilenga
fb3a6ee715 ./configure --help cleanup 1999-08-22 18:47:54 +00:00
Kurt Zeilenga
1b0aa8cf23 Support for native GNU Pth Threads (--with-threads=pth)
Tests behave as expected excepting slapd sometimes does not
shutdown properly.
1999-08-22 03:04:33 +00:00
Kurt Zeilenga
5cf315c31f Experimental support for GNU Pth's Posix Thread API. This might be a
suitable for systems with poor (or nonexistant) Pthread implementations.
1999-08-21 17:19:10 +00:00
Kurt Zeilenga
87675a953d ACIs from Mark Valence <kurash@sassafras.com> (ITS#261) 1999-08-20 22:42:04 +00:00
Kurt Zeilenga
682fc1e8f7 Do not attempt "-mt" pthread detection. Rely on -lpthread instead. 1999-08-17 00:20:39 +00:00
Kurt Zeilenga
0b26912e40 res_search() detection: always look for res_search to include -lresolv
for inet_aton().  May be linked in when not absolutely necessary...
	but no big deal, we'll likely start using res_search over sychronous
	get{host,peer}byname calls anyways.
inet_aton() detection: use link instead of compile
1999-08-15 22:57:32 +00:00
Kurt Zeilenga
8f970aa247 New pthread tests... 1999-08-13 23:07:21 +00:00
Kurt Zeilenga
e3f34e305f Rework --without-subdir to remove trailing / 1999-08-13 02:04:32 +00:00
Howard Chu
e766d2c568 Fail if libtool's libltdl is not present and --enable-modules was given. 1999-08-07 22:44:26 +00:00
Howard Chu
366e8fd5ad Final round of module changes 1999-08-07 11:37:43 +00:00
Howard Chu
3d1dc1b90b Modified to use libtool's ltdl instead of gmodule. Full Makefile support
for building backends as modules.
1999-08-07 07:59:41 +00:00
Howard Chu
b78a4a34f9 Preliminary Make rules to allow building backends as modules. 1999-08-06 16:15:05 +00:00
Kurt Zeilenga
e0691dfbc0 create SASL_LIBS to hold -lsasl
create SECURITY_LIBS (top.mk) to order $SASL_LIBS $KRB_LIBS $TLS_LIBS
use $SECURITY_LIBS in Makefile.in's instead of $KRB_LIBS $TLS_LIBS
1999-08-05 02:25:19 +00:00