2 dnl Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
4 dnl Redistribution and use in source and binary forms are permitted only
5 dnl as authorized by the OpenLDAP Public License. A copy of this
6 dnl license is available at http://www.OpenLDAP.org/license.html or
7 dnl in file LICENSE in the top-level directory of the distribution.
9 dnl ----------------------------------------------------------------
10 dnl Redefine AC_INIT_BINSH to provide RCS IDs and copyright notice
11 dnl at top of generated configure script. Prints simple copyright.
12 define([AC_INIT_BINSH],
15 # from] translit([$OpenLDAP$], $")] [
17 # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
19 # Redistribution and use in source and binary forms are permitted only
20 # as authorized by the OpenLDAP Public License. A copy of this
21 # license is available at http://www.OpenLDAP.org/license.html or
22 # in file LICENSE in the top-level directory of the distribution.
24 echo "Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved."
25 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
27 dnl ----------------------------------------------------------------
28 dnl Disable config.cache!
29 define([AC_CACHE_LOAD], )dnl
30 define([AC_CACHE_SAVE], )dnl
31 dnl ================================================================
32 dnl Configure.in for OpenLDAP
33 AC_INIT(build/version)dnl
35 # set unset (borrowed from autoconf 2.14a)
36 if (unset FOO) >/dev/null 2>&1; then
42 $ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
44 AC_CONFIG_AUX_DIR(build)dnl
46 OL_VERSION=`cat $ac_aux_dir/version`
47 if test -z "$OL_VERSION"; then
48 AC_MSG_ERROR([could not determine version])
51 echo "Configuring OpenLDAP $OL_VERSION ..."
54 AM_INIT_AUTOMAKE(openldap,[1.2], [no ac_define])dnl
56 dnl We use autoconf features new to 2.13.1
57 dnl aclocal.m4 should be built using aclocal from automake 1.4
58 AC_PREREQ(2.13.1)dnl Required Autoconf version
60 AC_CONFIG_HEADER(include/portable.h)dnl
64 AC_MSG_CHECKING(configure arguments)
65 AC_PREFIX_DEFAULT(/usr/local)
68 AC_SUBST(top_builddir)dnl
70 ldap_subdir="openldap"
72 AC_ARG_WITH(subdir, [ --with-subdir=DIR change default subdirectory used for installs], [
73 if test "$withval" = "no"; then
75 elif test "$withval" != "yes"; then
76 ldap_subdir="$withval"
80 AC_SUBST(ldap_subdir)dnl
82 OL_ARG_ENABLE(debug,[ --enable-debug enable debugging], yes)dnl
83 OL_ARG_ENABLE(proctitle,[ --enable-proctitle enable proctitle support], yes)dnl
84 OL_ARG_ENABLE(libui,[ --enable-libui enable library user interface], yes)dnl
85 OL_ARG_ENABLE(cache,[ --enable-cache enable caching], yes)dnl
86 OL_ARG_ENABLE(dns,[ --enable-dns enable dns support], no)dnl
87 OL_ARG_ENABLE(referrals,[ --enable-referrals enable referrals], yes)dnl
88 OL_ARG_ENABLE(cldap,[ --enable-cldap enable connectionless ldap], no)dnl
89 OL_ARG_ENABLE(x_compile,[ --enable-x-compile enable cross compiling],
92 dnl General "with" options
93 OL_ARG_ENABLE(dmalloc,[ --enable-dmalloc enable debug malloc support], no)dnl
95 OL_ARG_WITH(kerberos,[ --with-kerberos use Kerberos],
96 auto, [auto k5 k4 afs yes no])
97 OL_ARG_WITH(threads,[ --with-threads use threads],
98 auto, [auto posix mach pth lwp yes no manual] )
99 OL_ARG_WITH(yielding_select,[ --with-yielding-select with implicitly yielding select],
100 auto, [auto yes no manual] )
105 AC_ARG_WITH(xxldapdoptions,[LDAPD Options:])
106 OL_ARG_ENABLE(ldapd,[ --enable-ldapd enable building ldapd], no)dnl
109 AC_ARG_WITH(xxslapdoptions,[SLAPD Options:])
110 OL_ARG_ENABLE(slapd,[ --enable-slapd enable building slapd], yes)dnl
111 OL_ARG_ENABLE(aclgroups,[ --enable-aclgroups enable ACL group support], auto)dnl
112 OL_ARG_ENABLE(cleartext,[ --enable-cleartext enable cleartext passwords], yes)dnl
113 OL_ARG_ENABLE(crypt,[ --enable-crypt enable crypt(3) passwords], auto)dnl
114 OL_ARG_ENABLE(wrappers,[ --enable-wrappers enable tcp wrapper support], no)dnl
115 OL_ARG_ENABLE(phonetic,[ --enable-phonetic enable phonetic/soundex], no)dnl
116 OL_ARG_ENABLE(rlookups,[ --enable-rlookups enable reverse lookups], auto)dnl
118 dnl SLAPD Backend options
119 OL_ARG_ENABLE(ldbm,[ --enable-ldbm enable ldbm backend], yes)dnl
120 OL_ARG_WITH(ldbm_api,[ --with-ldbm-api use LDBM API], auto,
121 [auto db2 db mdbm gdbm manual])
122 OL_ARG_WITH(ldbm_type,[ --with-ldbm-type use LDBM type], auto,
125 OL_ARG_ENABLE(passwd,[ --enable-passwd enable passwd backend], no)dnl
126 OL_ARG_ENABLE(shell,[ --enable-shell enable shell backend], no)dnl
129 AC_ARG_WITH(xxslurpdoptions,[SLURPD Options:])
130 OL_ARG_ENABLE(slurpd,[ --enable-slurpd enable building slurpd], auto)dnl
132 AC_ARG_WITH(xxliboptions,[Library Generation & Linking Options])
137 dnl General "enable" options
139 if test $ol_enable_dns = yes ; then
140 if test $ol_enable_referrals = no ; then
141 AC_MSG_ERROR([DNS requires --enable-referrals])
143 if test $ol_enable_referrals = auto ; then
144 AC_MSG_WARN([DNS requires referrals, adding --enable-referrals])
145 ol_enable_referrals=yes
149 if test $ol_enable_slapd = no ; then
150 dnl SLAPD was specificallly disabled
151 if test $ol_enable_ldbm = yes ; then
152 AC_MSG_WARN([slapd disabled, ignoring --enable_ldbm argument])
154 if test $ol_enable_passwd = yes ; then
155 AC_MSG_WARN([slapd disabled, ignoring --enable_passwd argument])
157 if test $ol_enable_shell = yes ; then
158 AC_MSG_WARN([slapd disabled, ignoring --enable_shell argument])
160 if test $ol_enable_aclgroups = yes ; then
161 AC_MSG_WARN([slapd disabled, ignoring --enable_aclgroups argument])
163 if test $ol_enable_wrappers = yes ; then
164 AC_MSG_WARN([slapd disabled, ignoring --enable_wrappers argument])
166 if test $ol_enable_phonetic = yes ; then
167 AC_MSG_WARN([slapd disabled, ignoring --enable_phonetic argument])
169 if test $ol_enable_rlookups = yes ; then
170 AC_MSG_WARN([slapd disabled, ignoring --enable_rlookups argument])
172 if test $ol_with_ldbm_api != auto ; then
173 AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_api argument])
175 if test $ol_with_ldbm_type != auto ; then
176 AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_type argument])
178 if test $ol_enable_slurpd = yes ; then
179 AC_MSG_ERROR([slurpd requires slapd])
182 # force settings to no
186 ol_enable_aclgroups=no
187 ol_enable_wrappers=no
188 ol_enable_phonetic=no
189 ol_enable_rlookups=no
194 elif test $ol_enable_ldbm = no ; then
195 dnl SLAPD without LDBM
197 if test $ol_with_ldbm_api != auto ; then
198 AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_api argument])
201 if test $ol_with_ldbm_type != auto ; then
202 AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_type argument])
205 if test $ol_enable_passwd = no -a $ol_enable_shell = no ; then
206 AC_MSG_ERROR([slapd requires a backend])
215 if test $ol_with_ldbm_api = gdbm -a \
216 $ol_with_ldbm_type = btree ; then
217 AC_MSG_ERROR([GDBM only supports LDBM type hash])
219 if test $ol_with_ldbm_api = mdbm -a \
220 $ol_with_ldbm_type = btree ; then
221 AC_MSG_ERROR([MDBM only supports LDBM type hash])
223 if test $ol_with_ldbm_api = ndbm -a \
224 $ol_with_ldbm_type = btree ; then
225 AC_MSG_ERROR([NDBM only supports LDBM type hash])
229 if test $ol_enable_slurpd = yes ; then
230 dnl SLURPD was specifically enabled
231 if test $ol_with_threads = no ; then
232 AC_MSG_ERROR([slurpd requires threads])
262 dnl ----------------------------------------------------------------
263 dnl Checks for programs
269 AC_PATH_PROG(SENDMAIL, sendmail, /usr/lib/sendmail,
270 $PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc)
271 AC_PATH_PROG(EDITOR, vi, /usr/ucb/vi, $PATH:/usr/ucb)
272 AC_PATH_PROG(FINGER, finger, /usr/ucb/finger, $PATH:/usr/ucb)
274 dnl Checks the compiler and UNIX Variants
276 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
277 AC_MSG_WARN([cross compiling.... some functionality will be removed.])
279 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
280 AC_MSG_WARN([programs compiled here do run here...])
281 AC_MSG_ERROR([ if not cross compiling, use --disable-x-compile.])
283 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
284 AC_MSG_WARN([programs compiled here do not run here...])
285 AC_MSG_ERROR([ if cross compiling, add --enable-x-compile.])
294 dnl BeOS requires -lbe -lroot -lnet
295 AC_CHECK_LIB(be, be_app,
296 [LIBS="$LIBS -lbe -lroot -lnet"], :,
299 dnl OpenLDAP requires STDC features
301 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
302 AC_MSG_ERROR([OpenLDAP requires compiler to support STDC prototypes.])
307 dnl Checks for libraries
310 dnl Likely combinations:
311 dnl -lsocket [ -lnsl_s | -lnsl ]
314 AC_CHECK_FUNC(socket, [have_socket=yes], [
316 dnl hopefully we won't include too many libraries
318 AC_CHECK_LIB(socket, main)
319 AC_CHECK_LIB(net, main)
320 AC_CHECK_LIB(nsl_s, main)
321 AC_CHECK_LIB(nsl, main)
322 AC_CHECK_LIB(inet, socket)
323 AC_CHECK_LIB(gen, main)
326 dnl Check for resolver routines
327 AC_CHECK_FUNCS(res_search)
328 if test $ac_cv_func_res_search = "no" ; then
329 AC_CHECK_LIB(bind, res_search)
330 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
332 if test $ac_cv_func_res_search = "no" ; then
333 AC_CHECK_LIB(bind, __res_search)
334 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
336 if test $ac_cv_func_res_search = "no" ; then
337 AC_CHECK_LIB(resolv, res_search)
338 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
340 if test $ac_cv_func_res_search = "yes" ; then
341 AC_DEFINE(HAVE_RES_SEARCH,1)
344 dnl HP-UX requires -lV3
345 AC_CHECK_LIB(V3, sigset)
349 if test $ol_enable_ldapd != no ; then
350 AC_MSG_WARN([ldapd support deprecated. Manual intervention required.])
351 dnl look for ISODE libraries
352 AC_CHECK_LIB(xtpp, main, [
354 AC_DEFINE(HAVE_XTPP,1, [define if you have -lxttp])
355 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
356 ],:,[-lxtdsap -lxtisode -losi])
357 AC_CHECK_LIB(dsap, main, [
359 AC_DEFINE(HAVE_DSAP,1, [define if you have -ldsap])
360 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
362 AC_CHECK_LIB(isode, main, [
364 AC_DEFINE(HAVE_ISODE,1, [define if you have -lisode])
365 LDAPD_LIBS="$LDAPD_LIBS -lisode"
369 if test $ol_link_isode != no; then
370 AC_CHECK_LIB(pp, main, [
371 AC_DEFINE(HAVE_PP,1, [define if you have -lpp])
372 LDAPD_LIBS="-lpp $LDAPD_LIBS"
375 AC_PATH_PROG(PEPSY, pepsy)
379 dnl check for kerberos
383 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
384 AC_CHECK_HEADERS(kerberosIV/krb.h kerberosIV/des.h)
386 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
387 AC_CHECK_LIB(krb4, main, [have_k5=yes], [have_k5=no],
390 if test $have_k5 = yes ; then
391 ol_with_kerberos=found
394 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
396 LIBS="$KRB_LIBS $LIBS"
398 AC_CACHE_CHECK([for des_debug in Kerberos libraries],
399 [ol_cv_var_des_debug], [
402 LIBS="$KRB_LIBS $LIBS"
404 #include <kerberosIV/krb.h>
405 #include <kerberosIV/des.h>
406 extern int des_debug;
409 ], ol_cv_var_des_debug=yes, ol_cv_var_des_debug=no)
414 if test $ol_cv_var_des_debug = yes ; then
415 AC_DEFINE(HAVE_DES_DEBUG,1,
416 [define if you have Kerberos des_debug])
424 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
425 AC_CHECK_HEADERS(krb.h des.h)
427 if test $ac_cv_header_krb_h = yes ; then
428 AC_CHECK_LIB(krb, main, [have_k4=yes], [have_k4=no], [-ldes])
430 if test $have_k4 = yes ; then
431 ol_with_kerberos=found
434 KRB_LIBS="-lkrb -ldes"
439 if test $ol_link_kerberos = yes ; then
440 AC_DEFINE(HAVE_KERBEROS, 1, [define if you have Kerberos])
444 if test $ol_with_threads = auto -o $ol_with_threads = yes \
445 -o $ol_with_threads = posix ; then
447 AC_CHECK_HEADERS(pthread.h sched.h)
449 if test $ac_cv_header_pthread_h = yes ; then
450 OL_POSIX_THREAD_VERSION
452 if test $ol_cv_pthread_version = final ; then
453 AC_DEFINE(HAVE_PTHREADS_FINAL,1,
454 [define if pthreads API compatible with final spec])
455 elif test $ol_cv_pthread_version = draft4 ; then
456 AC_DEFINE(HAVE_PTHREADS_D4,1,
457 [define if pthreads API compatible with draft4 spec])
459 AC_MSG_ERROR([unknown pthread version])
462 # consider threads found
463 ol_with_threads=found
467 if test $ol_cv_linux_threads = yes ; then
468 AC_DEFINE(HAVE_LINUX_THREADS,1,
469 [define if you have LinuxThreads])
472 dnl Now the hard part, how to link?
474 dnl currently supported checks:
476 dnl Check for no flags
477 dnl pthread_create() in $LIBS
479 dnl Check special pthread (final) flags
480 dnl pthread_create() with -kthread (FreeBSD)
481 dnl pthread_create() with -pthread (FreeBSD/Digital Unix)
482 dnl pthread_create() with -pthreads (?)
483 dnl pthread_create() with -thread (?)
484 dnl pthread_create() with -mt (Solaris)
486 dnl Check pthread (final) libraries
487 dnl pthread_mutex_unlock() in -lpthread -lmach -lexc -lc_r (OSF/1)
488 dnl pthread_mutex_lock() in -lpthread -lmach -lexc (OSF/1)
489 dnl pthread_mutex_trylock() in -lpthread -lexc (OSF/1)
490 dnl pthread_create() in -lpthread (many)
491 dnl pthread_create() in -lc_r (FreeBSD)
492 dnl pthread_create() in -lpthreads (many)
493 dnl pthread_join() -Wl,-woff,85 -lpthreads (IRIX)
494 dnl pthread_create() in HP-UX -lpthread (HP-UX 11)
496 dnl Check pthread (draft4) flags (to be depreciated)
497 dnl pthread_create() with -threads (OSF/1)
499 dnl Check pthread (final) libraries (to be depreciated)
500 dnl pthread_mutex_unlock() in -lpthreads -lmach -lexc -lc_r (OSF/1)
501 dnl pthread_mutex_lock() in -lpthreads -lmach -lexc (OSF/1)
502 dnl pthread_mutex_trylock() in -lpthreads -lexc (OSF/1)
505 dnl pthread_create in $LIBS
506 AC_CHECK_FUNC(pthread_create,[ol_link_threads=yes])
508 if test $ol_link_threads = no ; then
510 AC_CACHE_CHECK([for pthread_create with -kthread],
511 [ol_cv_kthread_flag], [
514 LIBS="-kthread $LIBS"
515 AC_TRY_LINK([#include <pthread.h>],
516 [pthread_create(NULL,NULL,NULL,NULL);],
517 [ol_cv_kthread_flag=yes], [ol_cv_kthread_flag=no])
522 if test $ol_cv_kthread_flag = yes ; then
523 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
524 ol_link_threads=posix
528 if test $ol_link_threads = no ; then
530 AC_CACHE_CHECK([for pthread_create with -pthread],
531 [ol_cv_pthread_flag], [
534 LIBS="-pthread $LIBS"
535 AC_TRY_LINK([#include <pthread.h>],
536 [pthread_create(NULL,NULL,NULL,NULL);],
537 [ol_cv_pthread_flag=yes], [ol_cv_pthread_flag=no])
542 if test $ol_cv_pthread_flag = yes ; then
543 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
544 ol_link_threads=posix
548 if test $ol_link_threads = no ; then
550 AC_CACHE_CHECK([for pthread_create with -pthreads],
551 [ol_cv_pthreads_flag], [
554 LIBS="-pthreads $LIBS"
555 AC_TRY_LINK([#include <pthread.h>],
556 [pthread_create(NULL,NULL,NULL,NULL);],
557 [ol_cv_pthreads_flag=yes], [ol_cv_pthreads_flag=no])
562 if test $ol_cv_pthreads_flag = yes ; then
563 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
564 ol_link_threads=posix
568 if test $ol_link_threads = no ; then
570 AC_CACHE_CHECK([for pthread_create with -thread],
571 [ol_cv_thread_flag], [
575 AC_TRY_LINK([char pthread_create();],
577 [ol_cv_thread_flag=yes], [ol_cv_thread_flag=no])
582 if test $ol_cv_thread_flag = yes ; then
583 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
584 ol_link_threads=posix
588 if test $ol_link_threads = no ; then
590 AC_CACHE_CHECK([for pthread_create with -mt],
591 [ol_cv_thread_flag], [
595 AC_TRY_LINK([char pthread_create();],
597 [ol_cv_thread_flag=yes], [ol_cv_thread_flag=no])
602 if test $ol_cv_thread_flag = yes ; then
603 LTHREAD_LIBS="$LTHREAD_LIBS -mt"
604 ol_link_threads=posix
608 if test $ol_link_threads = no ; then
609 dnl try DEC Threads -lpthread -lmach -lexc -lc_r
611 AC_CHECK_LIB(pthread, pthread_mutex_unlock, [
612 ol_link_threads=posix
613 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
614 if test $ol_with_yielding_select = auto ; then
615 ol_with_yielding_select=yes
617 ],:,[-lmach -lexc -lc_r])
621 if test $ol_link_threads = no ; then
622 dnl try DEC Threads -lpthread -lmach -lexc
624 AC_CHECK_LIB(pthread, pthread_mutex_lock, [
625 ol_link_threads=posix
626 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
627 if test $ol_with_yielding_select = auto ; then
628 ol_with_yielding_select=yes
634 if test $ol_link_threads = no ; then
635 dnl try DEC Threads -lpthread -lexc
637 AC_CHECK_LIB(pthread, pthread_mutex_trylock, [
638 ol_link_threads=posix
639 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
640 if test $ol_with_yielding_select = auto ; then
641 ol_with_yielding_select=yes
647 if test $ol_link_threads = no ; then
650 AC_CHECK_LIB(pthread, pthread_create, [
651 ol_link_threads=posix
652 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"],:)
656 if test $ol_link_threads = no ; then
659 AC_CHECK_LIB(c_r, pthread_create, [
660 ol_link_threads=posix
661 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"],:)
665 if test $ol_link_threads = no ; then
668 AC_CHECK_LIB(pthreads, pthread_create, [
669 ol_link_threads=posix
670 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"],:)
674 dnl IRIX Pthread check
675 if test $ol_link_threads = no ; then
676 dnl try IRIX Pthreads -Wl,-woff,85 -lpthreads
678 AC_CHECK_LIB(pthreads, pthread_join, [
679 ol_link_threads=posix
680 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
685 dnl HP-UX 11 Pthread check
686 if test $ol_link_threads = no; then
688 LIBS="$LIBS -lpthread"
689 AC_MSG_CHECKING([for pthread_create() in HP-UX -lpthread])
690 ol_try_pthread_hpux_11=no
691 AC_CACHE_VAL(ol_cv_pthread_hpux_11,[
695 #ifndef ELFABI_HPUX_REL11
698 ], [pthread_create(NULL, NULL, NULL, NULL);],
699 ol_try_pthread_hpux_11=yes
700 ol_cv_pthread_hpux_11=yes,
701 ol_cv_pthread_hpux_11=no)])
705 if test $ol_cv_pthread_hpux_11=yes ; then
706 ol_link_threads=posix
707 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
708 if test $ol_try_pthread_hpux_11=yes ; then
709 dnl Some tests below may fail, cause we aint including
710 dnl pthread.h. Force appropriate ones to yes
711 ac_cv_func_pthread_attr_init=yes
716 if test $ol_link_threads = no ; then
718 AC_CACHE_CHECK([for pthread_create with -threads],
719 [ol_cv_thread_flag], [
722 LIBS="-threads $LIBS"
723 AC_TRY_LINK([char pthread_create();],[
725 ], ol_cv_thread_flag=yes, ol_cv_thread_flag=no)
730 if test $ol_cv_thread_flag = yes ; then
731 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
732 ol_link_threads=posix
736 if test $ol_link_threads = no ; then
737 dnl try DEC Threads -lpthreads -lmach -lexc -lc_r
739 AC_CHECK_LIB(pthreads, pthread_mutex_unlock, [
740 ol_link_threads=posix
741 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
742 if test $ol_with_yielding_select = auto ; then
743 ol_with_yielding_select=yes
745 ],:,[-lmach -lexc -lc_r])
749 if test $ol_link_threads = no ; then
750 dnl try DEC Threads -lpthreads -lmach -lexc
752 AC_CHECK_LIB(pthreads, pthread_mutex_lock, [
753 ol_link_threads=posix
754 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
755 if test $ol_with_yielding_select = auto ; then
756 ol_with_yielding_select=yes
762 if test $ol_link_threads = no ; then
763 dnl try DEC Threads -lpthreads -lexc
765 AC_CHECK_LIB(pthreads, pthread_mutex_trylock, [
766 ol_link_threads=posix
767 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
768 if test $ol_with_yielding_select = auto ; then
769 ol_with_yielding_select=yes
775 if test $ol_link_threads != no ; then
776 AC_DEFINE(HAVE_PTHREADS,1,
777 [define if you have POSIX Threads])
780 save_CPPFLAGS="$CPPFLAGS"
782 LIBS="$LTHREAD_LIBS $LIBS"
784 dnl All POSIX Thread (final) implementations should have
785 dnl sched_yield instead of pthread yield.
787 AC_CHECK_FUNCS(sched_yield pthread_yield)
789 if test $ac_cv_func_sched_yield = no -a \
790 $ac_cv_func_pthread_yield = no ; then
791 dnl Digital UNIX has sched_yield() in -lrt
792 AC_CHECK_LIB(rt, sched_yield,
793 [LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
794 AC_DEFINE(HAVE_SCHED_YIELD,1)
795 ac_cv_func_sched_yield=yes],
796 [ac_cv_func_sched_yield=no])
798 if test $ac_cv_func_sched_yield = no -a \
799 $ac_cv_func_pthread_yield = no ; then
800 dnl Solaris has sched_yield() in -lposix4
801 dnl but we'll use thr_yield instead.
802 AC_CHECK_FUNCS(thr_yield)
804 if test $ac_cv_func_sched_yield = no -a \
805 $ac_cv_func_pthread_yield = no -a \
806 "$ac_cv_func_thr_yield" = no ; then
807 AC_MSG_WARN([could not locate sched_yield() or pthread_yield()])
810 dnl Check functions for compatibility
811 AC_CHECK_FUNCS(pthread_kill)
813 dnl Check for pthread_detach with <pthread.h> inclusion
814 dnl as it's symbol may have been mangled.
815 AC_CACHE_CHECK([for pthread_detach with <pthread.h>],
816 [ol_cv_func_pthread_detach], [
818 AC_TRY_LINK([#include <pthread.h>],
819 [pthread_detach(NULL);],
820 [ol_cv_func_pthread_detach=yes],
821 [ol_cv_func_pthread_detach=no])
824 if test $ol_cv_func_pthread_detach = no ; then
825 AC_MSG_ERROR([could not locate pthread_detach()])
828 AC_DEFINE(HAVE_PTHREAD_DETACH,1,
829 [define if you have pthread_detach function])
831 dnl Check for setconcurreny functions
833 pthread_setconcurrency \
834 pthread_getconcurrency \
839 AC_MSG_CHECKING([if pthread_create() works])
840 AC_CACHE_VAL(ol_cv_pthread_create_works,[
844 #define NULL (void*)0
850 return (void *) (p == NULL);
858 exit(pthread_create(&t, NULL, task, NULL));
861 [ol_cv_pthread_create_works=yes],
862 [ol_cv_pthread_create_works=no],
864 ol_cv_pthread_create_works=yes])])
865 AC_MSG_RESULT($ol_cv_pthread_create_works)
867 if test $ol_cv_pthread_create_works = no ; then
868 AC_MSG_ERROR([pthread.h and pthread_create are not compatible])
871 dnl Check if select causes an yield
872 if test $ol_with_yielding_select = auto ; then
873 AC_MSG_CHECKING([if select yields when using pthreads])
874 AC_CACHE_VAL(ol_cv_pthread_select_yields,[
876 #include <sys/types.h>
877 #include <sys/time.h>
881 #define NULL (void*) 0
884 static int fildes[2];
898 FD_SET(fildes[0], &rfds);
900 /* we're not interested in any fds */
901 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
908 exit(0); /* if we exit here, the select blocked the whole process */
917 /* create a pipe to select */
918 if(pipe(&fildes[0])) {
923 #ifdef HAVE_PTHREAD_SETCONCURRENCY
924 (void) pthread_setconcurrency(2);
926 #ifdef HAVE_THR_SETCONCURRENCY
927 /* Set Solaris LWP concurrency to 2 */
928 thr_setconcurrency(2);
932 pthread_create(&t, NULL, task, NULL);
935 sched_yield(); /* make sure task runs first */
937 #ifdef HAVE_PTHREAD_YIELD
938 pthread_yield(); /* make sure task runs first */
944 [ol_cv_pthread_select_yields=no],
945 [ol_cv_pthread_select_yields=yes], [
946 AC_MSG_ERROR([crossing compiling: use --with-yielding_select=yes|no|manual])])])
947 AC_MSG_RESULT($ol_cv_pthread_select_yields)
949 if test $ol_cv_pthread_select_yields = yes ; then
950 ol_with_yielding_select=yes
955 CPPFLAGS="$save_CPPFLAGS"
958 AC_MSG_ERROR([could not link with POSIX Threads])
962 if test $ol_with_threads = posix ; then
963 AC_MSG_ERROR([could not locate POSIX Threads])
967 if test $ol_with_threads = auto -o $ol_with_threads = yes \
968 -o $ol_with_threads = mach ; then
970 dnl check for Mach CThreads
971 AC_CHECK_HEADERS(mach/cthreads.h)
972 if test $ac_cv_header_mach_cthreads_h = yes ; then
973 ol_with_threads=found
975 dnl check for cthread support in current $LIBS
976 AC_CHECK_FUNC(cthread_fork,[ol_link_threads=yes])
978 if test $ol_link_threads = no ; then
980 dnl this test needs work
981 AC_CACHE_CHECK([for cthread_fork with -all_load],
982 [ol_cv_cthread_all_load], [
985 LIBS="-all_load $LIBS"
986 AC_TRY_LINK([#include <mach/cthreads.h>],[
987 cthread_fork((void *)0, (void *)0);
988 ], ol_cv_cthread_all_load=yes, ol_cv_cthread_all_load=no)
993 if test $ol_cv_cthread_all_load = yes ; then
994 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
999 if test $ol_link_threads != no ; then
1000 : check for cthread specific functionality here
1001 AC_DEFINE(HAVE_MACH_CTHREADS,1,
1002 [define if you have Mach Cthreads])
1004 AC_MSG_ERROR([could not link with Mach CThreads])
1008 if test $ol_with_threads = mach ; then
1009 AC_MSG_ERROR([could not locate Mach CThreads])
1013 if test $ol_with_threads = auto -o $ol_with_threads = yes \
1014 -o $ol_with_threads = pth ; then
1016 dnl check for GNU Pth
1017 AC_CHECK_HEADERS(pth.h)
1018 if test $ac_cv_header_pth_h = yes ; then
1020 dnl check for pth lib
1021 AC_CHECK_LIB(pth,pth_version,[have_pth=yes],[have_pth=no])
1023 if test $have_pth = yes ; then
1024 AC_DEFINE(HAVE_GNU_PTH,1,[if you have GNU Pth])
1025 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
1029 if test $ol_with_yielding_select = auto ; then
1030 ol_with_yielding_select=yes
1035 if test $ol_with_threads = auto -o $ol_with_threads = yes \
1036 -o $ol_with_threads = lwp ; then
1038 dnl check for SunOS5 LWP
1039 AC_CHECK_HEADERS(thread.h synch.h)
1040 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
1041 AC_CHECK_LIB(thread, thr_create, [have_thr=yes], [have_thr=no])
1043 if test $have_thr = yes ; then
1044 AC_DEFINE(HAVE_THR,1,
1045 [if you have Solaris LWP (thr) package])
1046 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
1049 if test $ol_with_yielding_select = auto ; then
1050 ol_with_yielding_select=yes
1053 dnl Check for setconcurreny functions
1055 thr_setconcurrency \
1056 thr_getconcurrency \
1061 dnl check for SunOS4 LWP
1062 AC_CHECK_HEADERS(lwp/lwp.h)
1063 if test $ac_cv_header_lwp_lwp_h = yes ; then
1064 AC_CHECK_LIB(lwp, lwp_create, [have_lwp=yes], [have_lwp=no])
1066 if test $have_lwp = yes ; then
1067 AC_DEFINE(HAVE_LWP,1,
1068 [if you have SunOS LWP package])
1069 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
1072 if test $ol_with_yielding_select = auto ; then
1073 ol_with_yielding_select=no
1079 if test $ol_with_yielding_select = yes ; then
1080 AC_DEFINE(HAVE_YIELDING_SELECT,1,
1081 [define if select implicitly yields])
1084 if test $ol_with_threads = manual ; then
1085 dnl User thinks he can manually configure threads.
1088 AC_MSG_WARN([thread defines and link options must be set manually])
1090 AC_CHECK_HEADERS(pthread.h sched.h)
1091 AC_CHECK_FUNCS(sched_yield pthread_yield)
1094 AC_CHECK_HEADERS(mach/cthreads.h)
1095 AC_CHECK_HEADERS(lwp/lwp.h)
1096 AC_CHECK_HEADERS(thread.h synch.h)
1099 if test $ol_link_threads != no ; then
1100 dnl needed to get reentrant/threadsafe versions
1102 AC_DEFINE(REENTRANT,1)
1103 AC_DEFINE(_REENTRANT,1)
1104 AC_DEFINE(THREAD_SAFE,1)
1105 AC_DEFINE(_THREAD_SAFE,1)
1106 AC_DEFINE(THREADSAFE,1)
1107 AC_DEFINE(_THREADSAFE,1)
1108 AC_DEFINE(_SGI_MP_SOURCE,1)
1110 dnl this might cause the errno symbol to be
1111 dnl replaced with a function to get a thread specific errno.
1112 dnl check to see if everything needs to be compiled
1113 dnl with the thread libraries
1114 AC_CACHE_CHECK([for thread specific errno],
1115 [ol_cv_errno_thread_specific], [
1116 AC_TRY_LINK([#include <errno.h>], [int x = errno;],
1117 [ol_cv_errno_thread_specific=yes],
1118 [ol_cv_errno_thread_specific=no])
1121 if test $ol_cv_errno_thread_specific != yes ; then
1122 LIBS="$LTHREAD_LIBS $LIBS"
1127 dnl ----------------------------------------------------------------
1129 if test $ol_link_threads = no ; then
1130 if test $ol_with_threads = yes ; then
1131 AC_MSG_ERROR([no suitable thread support])
1134 if test $ol_with_threads = auto ; then
1135 AC_MSG_WARN([no suitable thread support, disabling threads])
1139 AC_DEFINE(NO_THREADS,1,
1140 [define if you have (or want) no threads])
1145 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
1148 if test $ol_cv_berkeley_db2 = yes ; then
1150 ol_with_ldbm_api=db2
1152 if test $ol_with_ldbm_type = hash ; then
1153 AC_DEFINE(LDBM_USE_DBHASH,1)
1155 AC_DEFINE(LDBM_USE_DBBTREE,1)
1158 dnl $ol_cv_lib_db2 should be yes or -ldb
1159 dnl (it could be no, but that would be an error
1160 if test $ol_cv_lib_db2 != yes ; then
1161 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
1166 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
1169 if test $ol_cv_berkeley_db = yes ; then
1173 if test $ol_with_ldbm_type = hash ; then
1174 AC_DEFINE(LDBM_USE_DBHASH,1)
1176 AC_DEFINE(LDBM_USE_DBBTREE,1)
1179 dnl $ol_cv_lib_db should be yes or -ldb
1180 dnl (it could be no, but that would be an error
1181 if test $ol_cv_lib_db != yes ; then
1182 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
1187 if test $ol_with_ldbm_api = manual ; then
1188 dnl User thinks he can manually configure LDBM api.
1191 AC_MSG_WARN([LDBM defines and link options must be set manually])
1193 AC_CHECK_HEADERS(db.h db_185.h gdbm.h ndbm.h)
1196 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
1197 AC_MSG_WARN(Could not find LDBM with BTREE support)
1198 ol_with_ldbm_api=none
1201 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
1204 if test $ol_cv_gdbm = yes ; then
1206 ol_with_ldbm_api=gdbm
1208 if test $ol_cv_lib_gdbm != yes ; then
1209 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
1214 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
1217 if test $ol_cv_mdbm = yes ; then
1219 ol_with_ldbm_api=mdbm
1220 if test $ol_cv_lib_mdbm != yes ; then
1221 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
1226 if test $ol_with_ldbm_api = ndbm ; then
1229 if test $ol_cv_ndbm = yes ; then
1231 ol_with_ldbm_api=ndbm
1233 if test $ol_cv_lib_ndbm != yes ; then
1234 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
1239 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
1240 AC_MSG_WARN(could not find suitable LDBM backend)
1241 if test $ol_enable_ldbm = yes ; then
1242 AC_MSG_ERROR(select appropriate LDBM options or disable)
1245 AC_MSG_WARN(disabling LDBM)
1249 if test $ol_enable_wrappers != no ; then
1250 AC_CHECK_HEADERS(tcpd.h)
1252 if test $ac_cv_header_tcpd_h != yes ; then
1256 int allow_severity = 0;
1257 int deny_severity = 0;
1258 ],[hosts_access()],[have_wrappers=yes],[have_wrappers=no])
1261 if test $have_wrappers = yes ; then
1262 AC_DEFINE(HAVE_TCPD,1, [define if you have -lwrap])
1265 dnl We add another check for -lnsl since some libwrap's
1266 dnl need it, but it isn't always included from above
1267 AC_CHECK_LIB(nsl, main)
1269 AC_MSG_WARN(could not find -lwrap)
1270 if test $ol_enable_wrappers = yes ; then
1271 AC_MSG_ERROR(could not find wrappers, select appropriate options or disable)
1274 AC_MSG_WARN(disabling wrappers support)
1275 ol_enable_wrappers=no
1280 if test $ol_enable_dmalloc != no ; then
1281 AC_CHECK_HEADERS(dmalloc.h)
1282 AC_CHECK_LIB(dmalloc, dmalloc_shutdown)
1285 # ud needs termcap (should insert check here)
1287 AC_CHECK_HEADERS(termcap.h ncurses.h)
1289 if test $ol_link_termcap = no ; then
1290 AC_CHECK_LIB(termcap, tputs, [have_termcap=yes], [have_termcap=no])
1291 if test $have_termcap = yes ; then
1292 AC_DEFINE(HAVE_TERMCAP, 1, [define if you have -ltermcap])
1294 TERMCAP_LIBS=-ltermcap
1298 if test $ol_link_termcap = no ; then
1299 AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
1300 if test $have_ncurses = yes ; then
1301 AC_DEFINE(HAVE_NCURSES, 1, [define if you have -lncurses])
1303 TERMCAP_LIBS=-lncurses
1307 if test $ol_link_termcap = no ; then
1308 AC_DEFINE(NO_TERMCAP,1, [define if you have no termcap support])
1312 # FreeBSD (and others) have crypt(3) in -lcrypt
1313 if test $ol_enable_crypt != no ; then
1314 AC_CHECK_FUNC(crypt, [have_crypt=yes], [
1315 AC_CHECK_LIB(crypt, crypt, [LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
1316 have_crypt=yes], [have_crypt=no])])
1318 if test $have_crypt = yes ; then
1319 AC_DEFINE(HAVE_CRYPT,1)
1321 AC_MSG_WARN(could not find crypt)
1322 if test $ol_enable_crypt = yes ; then
1323 AC_MSG_ERROR(could not find crypt, select appropriate options or disable)
1326 AC_MSG_WARN(disabling crypt support)
1331 # FreeBSD (and others) have setproctitle(3) in -lutil
1332 if test $ol_enable_proctitle != no ; then
1333 AC_CHECK_FUNC(setproctitle, [have_setproctitle=yes], [
1334 AC_CHECK_LIB(util, setproctitle,
1335 [have_setproctitle=yes
1336 LUTIL_LIBS="$LUTIL_LIBS -lutil"],
1337 [have_setproctitle=no
1338 LIBOBJS="$LIBOBJS setproctitle.o"])])
1340 if test $have_setproctitle = yes ; then
1341 AC_DEFINE(HAVE_SETPROCTITLE,1)
1345 dnl ----------------------------------------------------------------
1346 dnl Checks for header files.
1349 if test $ac_cv_header_stdc != yes; then
1350 AC_MSG_WARN([could not Standard C compliant headers])
1355 AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL
1356 if test $am_cv_sys_posix_termios = yes ; then
1357 AC_DEFINE(HAVE_POSIX_TERMIOS,1,
1358 [define if you have POSIX termios])
1398 dnl ----------------------------------------------------------------
1399 dnl Checks for typedefs, structures, and compiler characteristics.
1400 AC_TYPE_GETGROUPS dnl requires AC_TYPE_UID_T
1407 AC_STRUCT_ST_BLKSIZE
1414 if test $cross_compiling = yes ; then
1415 AC_DEFINE(CROSS_COMPILING, 1, [define if cross compiling])
1418 AC_CHECK_SIZEOF(short)
1419 AC_CHECK_SIZEOF(int)
1420 AC_CHECK_SIZEOF(long)
1423 dnl ----------------------------------------------------------------
1424 dnl Checks for library functions.
1426 dnl AM_FUNC_MKTIME dnl checks for sys/time.h and unistd.h
1431 if test $ac_cv_func_vprintf = yes ; then
1432 dnl check for vsnprintf
1433 AC_CHECK_FUNCS(vsnprintf vsprintf)
1469 dnl We actually may need to replace more than this.
1470 AC_REPLACE_FUNCS(getopt strdup tempnam)
1472 dnl ----------------------------------------------------------------
1473 # Check Configuration
1476 dnl ----------------------------------------------------------------
1477 dnl Sort out defines
1479 if test "$ol_enable_debug" != no ; then
1480 AC_DEFINE(LDAP_DEBUG,1)
1482 if test "$ol_enable_libui" = yes ; then
1483 AC_DEFINE(LDAP_LIBUI,1)
1485 if test "$ol_enable_cache" = no ; then
1486 AC_DEFINE(LDAP_NOCACHE,1)
1488 if test "$ol_enable_dns" != no ; then
1489 AC_DEFINE(LDAP_DNS,1)
1491 if test "$ol_enable_proctitle" != no ; then
1492 AC_DEFINE(LDAP_PROCTITLE,1)
1494 if test "$ol_enable_referrals" != no ; then
1495 AC_DEFINE(LDAP_REFERRALS,1)
1497 if test "$ol_enable_cldap" != no ; then
1498 AC_DEFINE(LDAP_CONNECTIONLESS,1)
1501 if test "$ol_enable_aclgroups" != no ; then
1502 AC_DEFINE(SLAPD_ACLGROUPS,1)
1504 if test "$ol_enable_crypt" != no ; then
1505 AC_DEFINE(SLAPD_CRYPT,1)
1507 if test "$ol_enable_cleartext" != no ; then
1508 AC_DEFINE(SLAPD_CLEARTEXT,1)
1510 if test "$ol_enable_phonetic" != no ; then
1511 AC_DEFINE(SLAPD_PHONETIC,1)
1513 if test "$ol_enable_rlookups" != no ; then
1514 AC_DEFINE(SLAPD_RLOOKUPS,1)
1517 if test "$ol_link_ldbm" != no ; then
1518 AC_DEFINE(SLAPD_LDBM,1)
1523 if test "$ol_enable_passwd" != no ; then
1524 AC_DEFINE(SLAPD_PASSWD,1)
1529 if test "$ol_enable_shell" != no ; then
1530 AC_DEFINE(SLAPD_SHELL,1)
1535 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
1536 $BUILD_SLAPD = yes ; then
1540 if test "$ol_link_isode" != no ; then
1544 dnl ----------------------------------------------------------------
1546 AC_SUBST(BUILD_LDAPD)
1547 AC_SUBST(BUILD_SLAPD)
1548 AC_SUBST(BUILD_LDBM)
1549 AC_SUBST(BUILD_PASSWD)
1550 AC_SUBST(BUILD_SHELL)
1551 AC_SUBST(BUILD_SLURPD)
1554 AC_SUBST(LDAPD_LIBS)
1555 AC_SUBST(SLAPD_LIBS)
1556 AC_SUBST(SLURPD_LIBS)
1558 AC_SUBST(LTHREAD_LIBS)
1559 AC_SUBST(LUTIL_LIBS)
1562 AC_SUBST(TERMCAP_LIBS)
1564 dnl ----------------------------------------------------------------
1569 Makefile:build/top.mk:Makefile.in:build/dir.mk \
1570 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
1571 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
1572 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
1573 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
1574 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
1575 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
1576 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
1577 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
1578 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
1579 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
1580 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
1581 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
1582 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
1583 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
1584 include/Makefile:build/top.mk:include/Makefile.in \
1585 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
1586 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
1587 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
1588 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
1589 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
1590 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
1591 libraries/liblthread/Makefile:build/top.mk:libraries/liblthread/Makefile.in:build/lib.mk:build/lib-static.mk \
1592 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
1593 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
1594 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
1595 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
1596 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
1597 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
1598 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
1599 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
1600 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
1601 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
1602 tests/Makefile:build/top.mk:tests/Makefile.in \
1605 echo Please \"make depend\" to build dependencies