2 dnl Copyright 1998,1999 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.
10 dnl Configure.in for OpenLDAP
11 AC_INIT(include/ldap.h)dnl
12 AC_CONFIG_AUX_DIR(build)dnl
13 AM_INIT_AUTOMAKE(OpenLDAP,[2.0-devel], [no ac_define])dnl
15 dnl Do not use AutoConf 2.12; it produces a configuration script
16 dnl that causes an "internal 2K buffer" error on HPUX when run
17 dnl with /bin/sh. Autoconf 2.10 seems to be okay.
18 AC_PREREQ(2.13)dnl Required Autoconf version
20 AC_CONFIG_HEADER(include/portable.h include/ldap_features.h)dnl
24 AC_MSG_CHECKING(configure arguments)
25 AC_PREFIX_DEFAULT(/usr/local)
28 AC_SUBST(top_builddir)dnl
30 ldap_subdir="openldap"
32 AC_ARG_WITH(subdir, [ --with-subdir=DIR change default subdirectory used for installs], [
33 if test "$withval" = "no"; then
35 elif test "$withval" != "yes"; then
36 ldap_subdir="$withval"
40 AC_SUBST(ldap_subdir)dnl
42 OL_ARG_ENABLE(debug,[ --enable-debug enable debugging], yes)dnl
44 dnl OL_ARG_ENABLE(syslog,[ --enable-syslog enable syslog support], auto)dnl
45 OL_ARG_ENABLE(proctitle,[ --enable-proctitle enable proctitle support], yes)dnl
46 OL_ARG_ENABLE(cache,[ --enable-cache enable caching], yes)dnl
47 OL_ARG_ENABLE(dns,[ --enable-dns enable V2 DNS extension], no)dnl
48 OL_ARG_ENABLE(referrals,[ --enable-referrals enable V2 Referrals extension], yes)dnl
49 OL_ARG_ENABLE(cldap,[ --enable-cldap enable connectionless ldap], no)dnl
50 OL_ARG_ENABLE(x_compile,[ --enable-x-compile enable cross compiling],
54 dnl General "with" options
55 OL_ARG_ENABLE(dmalloc,[ --enable-dmalloc enable debug malloc support], no)dnl
57 OL_ARG_WITH(kerberos,[ --with-kerberos use Kerberos],
58 auto, [auto k5 k4 afs yes no])
59 OL_ARG_WITH(threads,[ --with-threads use threads],
60 auto, [auto posix mach lwp yes no manual] )
61 OL_ARG_WITH(yielding_select,[ --with-yielding-select with implicitly yielding select],
62 auto, [auto yes no manual] )
67 AC_ARG_WITH(xxldapdoptions,[LDAPD Options:])
68 OL_ARG_ENABLE(ldapd,[ --enable-ldapd enable building ldapd], no)dnl
71 AC_ARG_WITH(xxslapdoptions,[SLAPD Options:])
72 OL_ARG_ENABLE(slapd,[ --enable-slapd enable building slapd], yes)dnl
73 OL_ARG_ENABLE(aclgroups,[ --enable-aclgroups enable ACL group support], auto)dnl
74 OL_ARG_ENABLE(cleartext,[ --enable-cleartext enable cleartext passwords], yes)dnl
75 OL_ARG_ENABLE(crypt,[ --enable-crypt enable crypt(3) passwords], auto)dnl
76 OL_ARG_ENABLE(wrappers,[ --enable-wrappers enable tcp wrapper support], no)dnl
77 OL_ARG_ENABLE(phonetic,[ --enable-phonetic enable phonetic/soundex], no)dnl
78 OL_ARG_ENABLE(rlookups,[ --enable-rlookups enable reverse lookups], auto)dnl
80 dnl SLAPD Backend options
81 OL_ARG_ENABLE(bdb2,[ --enable-bdb2 enable bdb2 backend], no)dnl
82 OL_ARG_ENABLE(ldbm,[ --enable-ldbm enable ldbm backend], yes)dnl
83 OL_ARG_WITH(ldbm_api,[ --with-ldbm-api use LDBM API], auto,
84 [auto db2 db gdbm ndbm manual])
85 OL_ARG_WITH(ldbm_type,[ --with-ldbm-type use LDBM type], auto,
88 OL_ARG_ENABLE(passwd,[ --enable-passwd enable passwd backend], no)dnl
89 OL_ARG_ENABLE(perl,[ --enable-perl enable perl backend], no)dnl
90 OL_ARG_ENABLE(shell,[ --enable-shell enable shell backend], no)dnl
93 AC_ARG_WITH(xxslurpdoptions,[SLURPD Options:])
94 OL_ARG_ENABLE(slurpd,[ --enable-slurpd enable building slurpd], auto)dnl
96 AC_ARG_WITH(xxliboptions,[Library Generation & Linking Options])
101 dnl General "enable" options
103 if test $ol_enable_dns = yes ; then
104 if test $ol_enable_referrals = no ; then
105 AC_MSG_ERROR([DNS requires --enable-referrals])
107 if test $ol_enable_referrals = auto ; then
108 AC_MSG_WARN([DNS requires referrals, adding --enable-referrals])
109 ol_enable_referrals=yes
113 if test $ol_enable_slapd = no ; then
114 dnl SLAPD was specificallly disabled
115 if test $ol_enable_bdb2 = yes ; then
116 AC_MSG_WARN([slapd disabled, ignoring --enable_bdb2 argument])
118 if test $ol_enable_ldbm = yes ; then
119 AC_MSG_WARN([slapd disabled, ignoring --enable_ldbm argument])
121 if test $ol_enable_passwd = yes ; then
122 AC_MSG_WARN([slapd disabled, ignoring --enable_passwd argument])
124 if test $ol_enable_perl = yes ; then
125 AC_MSG_WARN([slapd disabled, ignoring --enable_perl argument])
127 if test $ol_enable_shell = yes ; then
128 AC_MSG_WARN([slapd disabled, ignoring --enable_shell argument])
130 if test $ol_enable_aclgroups = yes ; then
131 AC_MSG_WARN([slapd disabled, ignoring --enable_aclgroups argument])
133 if test $ol_enable_wrappers = yes ; then
134 AC_MSG_WARN([slapd disabled, ignoring --enable_wrappers argument])
136 if test $ol_enable_phonetic = yes ; then
137 AC_MSG_WARN([slapd disabled, ignoring --enable_phonetic argument])
139 if test $ol_enable_rlookups = yes ; then
140 AC_MSG_WARN([slapd disabled, ignoring --enable_rlookups argument])
142 if test $ol_with_ldbm_api != auto ; then
143 AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_api argument])
145 if test $ol_with_ldbm_type != auto ; then
146 AC_MSG_WARN([slapd disabled, ignoring --with_ldbm_type argument])
148 if test $ol_enable_slurpd = yes ; then
149 AC_MSG_ERROR([slurpd requires slapd])
152 # force settings to no
158 ol_enable_aclgroups=no
159 ol_enable_wrappers=no
160 ol_enable_phonetic=no
161 ol_enable_rlookups=no
166 elif test $ol_enable_ldbm = no ; then
167 dnl SLAPD without LDBM
169 if test $ol_with_ldbm_api != auto ; then
170 AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_api argument])
173 if test $ol_with_ldbm_type != auto ; then
174 AC_MSG_WARN([LDBM disabled, ignoring --with_ldbm_type argument])
177 if test $ol_enable_ldbm = yes ; then
178 AC_MSG_ERROR([BDB2 requires --enable-ldbm])
181 if test $ol_enable_passwd = no -a \
182 $ol_enable_perl = no -a
183 $ol_enable_shell = no ; then
184 AC_MSG_ERROR([slapd requires a backend])
190 elif test $ol_enable_bdb2 = yes ; then
193 if test $ol_with_ldbm_api != auto -a \
194 $ol_with_ldbm_api != db2 ; then
195 AC_MSG_ERROR([BDB2 requires LDBM API DB2])
203 if test $ol_enable_bdb2 != no ; then
204 if test $ol_with_ldbm_api != auto -a \
205 $ol_with_ldbm_api != db2 ; then
206 AC_MSG_WARN([BDB2 requires LDBM api db2 or auto])
211 if test $ol_with_ldbm_api = gdbm -a \
212 $ol_with_ldbm_type = btree ; then
213 AC_MSG_ERROR([GDBM only supports LDBM type hash])
215 if test $ol_with_ldbm_api = ndbm -a \
216 $ol_with_ldbm_type = btree ; then
217 AC_MSG_ERROR([NDBM only supports LDBM type hash])
221 if test $ol_enable_slurpd = yes ; then
222 dnl SLURPD was specifically enabled
223 if test $ol_with_threads = no ; then
224 AC_MSG_ERROR([slurpd requires threads])
259 dnl ----------------------------------------------------------------
260 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 if test $ol_enable_perl = yes ; then
275 AC_PATH_PROG(PERLBIN, perl, /usr/bin/perl)
277 if test "no$PERLBIN" = "no" ; then
281 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
282 SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e perl_inc`"
287 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
288 AC_MSG_WARN([cross compiling.... some functionality will be removed.])
290 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
291 AC_MSG_WARN([programs compiled here do run here...])
292 AC_MSG_ERROR([ if not cross compiling, use --disable-x-compile.])
294 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
295 AC_MSG_WARN([programs compiled here do not run here...])
296 AC_MSG_ERROR([ if cross compiling, add --enable-x-compile.])
299 dnl Checks for UNIX Variants
304 dnl Checks for system services
310 dnl OpenLDAP requires STDC features
312 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
313 AC_MSG_ERROR([OpenLDAP requires compiler to support STDC prototypes.])
318 dnl Checks for libraries
321 dnl Likely combinations:
322 dnl -lsocket [ -lnsl_s | -lnsl ]
325 AC_CHECK_FUNC(socket, [have_socket=yes], [
327 dnl hopefully we won't include too many libraries
329 AC_CHECK_LIB(socket, main)
330 AC_CHECK_LIB(net, main)
331 AC_CHECK_LIB(nsl_s, main)
332 AC_CHECK_LIB(nsl, main)
333 AC_CHECK_LIB(inet, socket)
334 AC_CHECK_LIB(gen, main)
337 dnl Check for resolver routines
338 AC_CHECK_FUNCS(res_search)
339 if test $ac_cv_func_res_search = "no" ; then
340 AC_CHECK_LIB(bind, res_search)
341 if test "$ac_cv_lib_bind_res_search" = "yes" ; then
342 AC_DEFINE(HAVE_RES_SEARCH,1)
344 AC_CHECK_LIB(resolv, res_search)
345 if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
346 AC_DEFINE(HAVE_RES_SEARCH,1)
351 dnl HP-UX requires -lV3
352 AC_CHECK_LIB(V3, sigset)
356 if test $ol_enable_ldapd != no ; then
357 dnl look for ISODE libraries
358 AC_CHECK_LIB(xtpp, main, [
360 AC_DEFINE(HAVE_XTPP,1)
361 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
362 ],:,[-lxtdsap -lxtisode -losi])
363 AC_CHECK_LIB(dsap, main, [
365 AC_DEFINE(HAVE_DSAP,1)
366 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
368 AC_CHECK_LIB(isode, main, [
370 AC_DEFINE(HAVE_ISODE,1)
371 LDAPD_LIBS="$LDAPD_LIBS -lisode"
375 if test $ol_link_isode != no; then
376 AC_CHECK_LIB(pp, main, [
378 LDAPD_LIBS="-lpp $LDAPD_LIBS"
381 AC_PATH_PROG(PEPSY, pepsy)
385 dnl check for kerberos
389 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 ; then
390 AC_CHECK_HEADERS(kerberosIV/krb.h kerberosIV/des.h)
392 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
393 AC_CHECK_LIB(krb4, main, [have_k5=yes], [have_k5=no],
396 if test $have_k5 = yes ; then
397 ol_with_kerberos=found
400 AC_DEFINE(HAVE_KERBEROS)
401 KRB_LIBS="-lkrb4 -lkrb5 -ldes425"
406 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 ; then
407 AC_CHECK_HEADERS(krb.h des.h)
409 if test $ac_cv_header_krb_h = yes ; then
410 AC_CHECK_LIB(krb, main, [have_k4=yes], [have_k4=no], [-ldes])
412 if test $have_k4 = yes ; then
413 ol_with_kerberos=found
416 AC_DEFINE(HAVE_KERBEROS)
417 KRB_LIBS="-lkrb -ldes"
422 dnl if test $ol_link_kerberos = yes ; then
424 dnl LIBS="$KRB_LIBS $LIBS"
425 dnl AC_CHECK_FUNCS(des_string_to_key)
430 if test $ol_with_threads = auto -o $ol_with_threads = yes \
431 -o $ol_with_threads = posix ; then
433 AC_CHECK_HEADERS(pthread.h sched.h)
435 if test $ac_cv_header_pthread_h = yes ; then
436 OL_POSIX_THREAD_VERSION
438 if test $ol_cv_pthread_version = final ; then
439 AC_DEFINE(HAVE_PTHREADS_FINAL)
440 elif test $ol_cv_pthread_version = draft4 ; then
441 AC_DEFINE(HAVE_PTHREADS_D4)
443 AC_MSG_ERROR([unknown pthread version])
446 # consider threads found
447 ol_with_threads=found
451 if test $ol_cv_linux_threads = yes ; then
452 AC_DEFINE(HAVE_LINUX_THREADS,1)
455 dnl Now the hard part, how to link?
457 dnl currently supported checks:
459 dnl 0) pthread_create() in $LIBS
461 dnl Check special pthread (final) flags
462 dnl 1) pthread_create() with -kthread (FreeBSD)
463 dnl 2) pthread_create() with -pthread (FreeBSD)
464 dnl 3) pthread_create() with -pthreads (OSF/1)
465 dnl 4) pthread_create() with -thread (?)
467 dnl Check pthread (final) libraries
468 dnl 5) pthread_mutex_unlock() in -lpthread -lmach -lexc -lc_r (OSF/1)
469 dnl 6) pthread_mutex_lock() in -lpthread -lmach -lexc (OSF/1)
470 dnl 7) pthread_mutex_trylock() in -lpthread -lexc (OSF/1)
471 dnl 8) pthread_create() in -lpthread (many)
472 dnl 9) pthread_create() in -lc_r (FreeBSD)
473 dnl 10) pthread_create() in -lpthreads (many)
474 dnl 11) pthread_join() -Wl,-woff,85 -lpthreads (IRIX)
475 dnl 12) pthread_create() in HP-UX -lpthread (HP-UX 11)
477 dnl Check pthread (draft4) flags (to be depreciated)
478 dnl 13) pthread_create() with -threads (OSF/1)
480 dnl Check pthread (final) libraries (to be depreciated)
481 dnl 14) pthread_mutex_unlock() in -lpthreads -lmach -lexc -lc_r (OSF/1)
482 dnl 14) pthread_mutex_lock() in -lpthreads -lmach -lexc (OSF/1)
483 dnl 14) pthread_mutex_trylock() in -lpthreads -lexc (OSF/1)
486 dnl pthread_create in $LIBS
487 AC_CHECK_FUNC(pthread_create,[ol_link_threads=yes])
489 if test $ol_link_threads = no ; then
491 AC_CACHE_CHECK([for pthread_create with -kthread],
492 [ol_cv_kthread_flag], [
495 LIBS="-kthread $LIBS"
496 AC_TRY_LINK([char pthread();],[
498 ], ol_cv_kthread_flag=yes, ol_cv_kthread_flag=no)
503 if test $ol_cv_kthread_flag = yes ; then
504 LTHREAD_LIBS="$LTHREAD_LIBS -kthread"
505 ol_link_threads=posix
509 if test $ol_link_threads = no ; then
511 AC_CACHE_CHECK([for pthread_create with -pthread],
512 [ol_cv_pthread_flag], [
515 LIBS="-pthread $LIBS"
516 AC_TRY_LINK([char pthread();],[
518 ], ol_cv_pthread_flag=yes, ol_cv_pthread_flag=no)
523 if test $ol_cv_pthread_flag = yes ; then
524 LTHREAD_LIBS="$LTHREAD_LIBS -pthread"
525 ol_link_threads=posix
529 if test $ol_link_threads = no ; then
531 AC_CACHE_CHECK([for pthread_create with -pthreads],
532 [ol_cv_pthreads_flag], [
535 LIBS="-pthreads $LIBS"
536 AC_TRY_LINK([char pthread();],[
538 ], ol_cv_pthreads_flag=yes, ol_cv_pthreads_flag=no)
543 if test $ol_cv_pthreads_flag = yes ; then
544 LTHREAD_LIBS="$LTHREAD_LIBS -pthreads"
545 ol_link_threads=posix
549 if test $ol_link_threads = no ; then
551 AC_CACHE_CHECK([for pthread_create with -thread],
552 [ol_cv_thread_flag], [
556 AC_TRY_LINK([char pthread();],[
558 ], ol_cv_thread_flag=yes, ol_cv_thread_flag=no)
563 if test $ol_cv_thread_flag = yes ; then
564 LTHREAD_LIBS="$LTHREAD_LIBS -thread"
565 ol_link_threads=posix
569 if test $ol_link_threads = no ; then
570 dnl try DEC Threads -lpthread -lmach -lexc -lc_r
572 AC_CHECK_LIB(pthread, pthread_mutex_unlock, [
573 ol_link_threads=posix
574 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc -lc_r"
575 if test $ol_with_yielding_select = auto ; then
576 ol_with_yielding_select=yes
578 ],:,[-lmach -lexc -lc_r])
582 if test $ol_link_threads = no ; then
583 dnl try DEC Threads -lpthread -lmach -lexc
585 AC_CHECK_LIB(pthread, pthread_mutex_lock, [
586 ol_link_threads=posix
587 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lmach -lexc"
588 if test $ol_with_yielding_select = auto ; then
589 ol_with_yielding_select=yes
595 if test $ol_link_threads = no ; then
596 dnl try DEC Threads -lpthread -lexc
598 AC_CHECK_LIB(pthread, pthread_mutex_trylock, [
599 ol_link_threads=posix
600 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread -lexc"
601 if test $ol_with_yielding_select = auto ; then
602 ol_with_yielding_select=yes
608 if test $ol_link_threads = no ; then
611 AC_CHECK_LIB(pthread, pthread_create, [
612 ol_link_threads=posix
613 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"],:)
617 if test $ol_link_threads = no ; then
620 AC_CHECK_LIB(c_r, pthread_create, [
621 ol_link_threads=posix
622 LTHREAD_LIBS="$LTHREAD_LIBS -lc_r"],:)
626 if test $ol_link_threads = no ; then
629 AC_CHECK_LIB(pthreads, pthread_create, [
630 ol_link_threads=posix
631 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"],:)
635 dnl IRIX Pthread check
636 if test $ol_link_threads = no ; then
637 dnl try IRIX Pthreads -Wl,-woff,85 -lpthreads
639 AC_CHECK_LIB(pthreads, pthread_join, [
640 ol_link_threads=posix
641 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads"
646 dnl HP-UX 11 Pthread check
647 if test $ol_link_threads = no; then
649 LIBS="$LIBS -lpthread"
650 AC_MSG_CHECKING([for pthread_create() in HP-UX -lpthread])
651 ol_try_pthread_hpux_11=no
652 AC_CACHE_VAL(ol_cv_pthread_hpux_11,[
656 #ifndef ELFABI_HPUX_REL11
659 ], [pthread_create(NULL, NULL, NULL, NULL);],
660 ol_try_pthread_hpux_11=yes
661 ol_cv_pthread_hpux_11=yes,
662 ol_cv_pthread_hpux_11=no)])
666 if test $ol_cv_pthread_hpux_11=yes ; then
667 ol_link_threads=posix
668 LTHREAD_LIBS="$LTHREAD_LIBS -lpthread"
669 if test $ol_try_pthread_hpux_11=yes ; then
670 dnl Some tests below may fail, cause we aint including
671 dnl pthread.h. Force appropriate ones to yes
672 ac_cv_func_pthread_attr_init=yes
677 if test $ol_link_threads = no ; then
679 AC_CACHE_CHECK([for pthread_create with -threads],
680 [ol_cv_thread_flag], [
683 LIBS="-threads $LIBS"
684 AC_TRY_LINK([char pthread();],[
686 ], ol_cv_thread_flag=yes, ol_cv_thread_flag=no)
691 if test $ol_cv_thread_flag = yes ; then
692 LTHREAD_LIBS="$LTHREAD_LIBS -threads"
693 ol_link_threads=posix
697 if test $ol_link_threads = no ; then
698 dnl try DEC Threads -lpthreads -lmach -lexc -lc_r
700 AC_CHECK_LIB(pthreads, pthread_mutex_unlock, [
701 ol_link_threads=posix
702 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc -lc_r"
703 if test $ol_with_yielding_select = auto ; then
704 ol_with_yielding_select=yes
706 ],:,[-lmach -lexc -lc_r])
710 if test $ol_link_threads = no ; then
711 dnl try DEC Threads -lpthreads -lmach -lexc
713 AC_CHECK_LIB(pthreads, pthread_mutex_lock, [
714 ol_link_threads=posix
715 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lmach -lexc"
716 if test $ol_with_yielding_select = auto ; then
717 ol_with_yielding_select=yes
723 if test $ol_link_threads = no ; then
724 dnl try DEC Threads -lpthreads -lexc
726 AC_CHECK_LIB(pthreads, pthread_mutex_trylock, [
727 ol_link_threads=posix
728 LTHREAD_LIBS="$LTHREAD_LIBS -lpthreads -lexc"
729 if test $ol_with_yielding_select = auto ; then
730 ol_with_yielding_select=yes
736 if test $ol_link_threads != no ; then
737 AC_DEFINE(HAVE_PTHREADS)
740 save_CPPFLAGS="$CPPFLAGS"
742 LIBS="$LTHREAD_LIBS $LIBS"
744 dnl All POSIX Thread (final) implementations should have
745 dnl sched_yield instead of pthread yield.
747 AC_CHECK_FUNCS(sched_yield pthread_yield)
749 if test $ac_cv_func_sched_yield = no -a \
750 $ac_cv_func_pthread_yield = no ; then
751 dnl Digital UNIX has sched_yield() in -lrt
752 AC_CHECK_LIB(rt, sched_yield,
753 [LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
754 AC_DEFINE(HAVE_SCHED_YIELD,1)
755 ac_cv_func_sched_yield=yes],
756 [ac_cv_func_sched_yield=no])
758 if test $ac_cv_func_sched_yield = no -a \
759 $ac_cv_func_pthread_yield = no ; then
760 dnl Solaris has sched_yield() in -lposix4
761 dnl but we'll use thr_yield instead.
762 AC_CHECK_FUNCS(thr_yield)
764 if test $ac_cv_func_sched_yield = no -a \
765 $ac_cv_func_pthread_yield = no -a \
766 "$ac_cv_func_thr_yield" = no ; then
767 AC_MSG_WARN([could not locate sched_yield() or pthread_yield()])
770 dnl Check functions for compatibility
771 AC_CHECK_FUNCS(pthread_kill pthread_detach)
773 if test $ac_cv_func_pthread_detach = no ; then
774 AC_MSG_ERROR([could not locate pthread_detach()])
777 dnl Check for setconcurreny functions
779 pthread_setconcurrency \
780 pthread_getconcurrency \
785 AC_MSG_CHECKING([if pthread_create() works])
786 AC_CACHE_VAL(ol_cv_pthread_create_works,[
790 #define NULL (void*)0
796 return (void *) (p == NULL);
804 exit(pthread_create(&t, NULL, task, NULL));
807 [ol_cv_pthread_create_works=yes],
808 [ol_cv_pthread_create_works=no],
810 ol_cv_pthread_create_works=yes])])
811 AC_MSG_RESULT($ol_cv_pthread_create_works)
813 if test $ol_cv_pthread_create_works = no ; then
814 AC_MSG_ERROR([pthread.h and pthread_create are not compatible])
817 dnl Check if select causes an yield
818 if test $ol_with_yielding_select = auto ; then
819 AC_MSG_CHECKING([if select yields when using pthreads])
820 AC_CACHE_VAL(ol_cv_pthread_select_yields,[
822 #include <sys/types.h>
823 #include <sys/time.h>
827 #define NULL (void*) 0
830 static int fildes[2];
844 FD_SET(fildes[0], &rfds);
846 /* we're not interested in any fds */
847 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
854 exit(0); /* if we exit here, the select blocked the whole process */
863 /* create a pipe to select */
864 if(pipe(&fildes[0])) {
869 #ifdef HAVE_PTHREAD_SETCONCURRENCY
870 (void) pthread_setconcurrency(2);
872 #ifdef HAVE_THR_SETCONCURRENCY
873 /* Set Solaris LWP concurrency to 2 */
874 thr_setconcurrency(2);
878 pthread_create(&t, NULL, task, NULL);
881 sched_yield(); /* make sure task runs first */
883 #ifdef HAVE_PTHREAD_YIELD
884 pthread_yield(); /* make sure task runs first */
890 [ol_cv_pthread_select_yields=no],
891 [ol_cv_pthread_select_yields=yes], [
892 AC_MSG_ERROR([crossing compiling: use --with-yielding_select=yes|no|manual])])])
893 AC_MSG_RESULT($ol_cv_pthread_select_yields)
895 if test $ol_cv_pthread_select_yields = yes ; then
896 ol_with_yielding_select=yes
901 CPPFLAGS="$save_CPPFLAGS"
904 AC_MSG_ERROR([could not link with POSIX Threads])
908 if test $ol_with_threads = posix ; then
909 AC_MSG_ERROR([could not locate POSIX Threads])
913 if test $ol_with_threads = auto -o $ol_with_threads = yes \
914 -o $ol_with_threads = mach ; then
916 dnl check for Mach CThreads
917 AC_CHECK_HEADERS(mach/cthreads.h)
918 if test $ac_cv_header_mach_cthreads_h = yes ; then
919 ol_with_threads=found
921 dnl check for cthread support in current $LIBS
922 AC_CHECK_FUNC(cthread_fork,[ol_link_threads=yes])
924 if test $ol_link_threads = no ; then
926 dnl this test needs work
927 AC_CACHE_CHECK([for cthread_fork with -all_load],
928 [ol_cv_cthread_all_load], [
931 LIBS="-all_load $LIBS"
932 AC_TRY_LINK([#include <mach/cthreads.h>],[
933 cthread_fork((void *)0, (void *)0);
934 ], ol_cv_cthread_all_load=yes, ol_cv_cthread_all_load=no)
939 if test $ol_cv_cthread_all_load = yes ; then
940 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
945 if test $ol_link_threads != no ; then
946 : check for cthread specific functionality here
947 AC_DEFINE(HAVE_MACH_CTHREADS,1)
949 AC_MSG_ERROR([could not link with Mach CThreads])
953 if test $ol_with_threads = mach ; then
954 AC_MSG_ERROR([could not locate Mach CThreads])
958 if test $ol_with_threads = auto -o $ol_with_threads = yes \
959 -o $ol_with_threads = lwp ; then
961 dnl check for SunOS5 LWP
962 AC_CHECK_HEADERS(thread.h synch.h)
963 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
964 AC_CHECK_LIB(thread, thr_create, [have_thr=yes], [have_thr=no])
966 if test $have_thr = yes ; then
968 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
971 if test $ol_with_yielding_select = auto ; then
972 ol_with_yielding_select=yes
975 dnl Check for setconcurreny functions
983 dnl check for SunOS4 LWP
984 AC_CHECK_HEADERS(lwp/lwp.h)
985 if test $ac_cv_header_lwp_lwp_h = yes ; then
986 AC_CHECK_LIB(lwp, lwp_create, [have_lwp=yes], [have_lwp=no])
988 if test $have_lwp = yes ; then
990 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
993 if test $ol_with_yielding_select = auto ; then
994 ol_with_yielding_select=no
1000 if test $ol_with_yielding_select = yes ; then
1001 AC_DEFINE(HAVE_YIELDING_SELECT,1)
1004 if test $ol_with_threads = manual ; then
1005 dnl User thinks he can manually configure threads.
1008 AC_MSG_WARN([thread defines and link options must be set manually])
1010 AC_CHECK_HEADERS(pthread.h sched.h)
1011 AC_CHECK_FUNCS(sched_yield pthread_yield)
1014 AC_CHECK_HEADERS(mach/cthreads.h)
1015 AC_CHECK_HEADERS(lwp/lwp.h)
1016 AC_CHECK_HEADERS(thread.h synch.h)
1019 if test $ol_link_threads != no ; then
1020 dnl needed to get reentrant/threadsafe versions
1022 AC_DEFINE(REENTRANT,1)
1023 AC_DEFINE(_REENTRANT,1)
1024 AC_DEFINE(THREAD_SAFE,1)
1025 AC_DEFINE(_THREAD_SAFE,1)
1026 AC_DEFINE(THREADSAFE,1)
1027 AC_DEFINE(_THREADSAFE,1)
1029 dnl this might cause the errno symbol to be
1030 dnl replaced with a function to get a thread specific errno.
1031 dnl check to see if everything needs to be compiled
1032 dnl with the thread libraries
1033 AC_CACHE_CHECK([for thread specific errno],
1034 [ol_cv_errno_thread_specific], [
1040 [ol_cv_errno_thread_specific=yes],
1041 [ol_cv_errno_thread_specific=no])
1044 if test $ol_cv_errno_thread_specific != yes ; then
1045 LIBS="$LTHREAD_LIBS $LIBS"
1049 dnl When in thread environment, use
1050 dnl #if defined( HAVE_REENTRANT_FUNCTIONS ) \
1051 dnl || defined( HAVE_FUNC_R )
1054 dnl # if defined( HAVE_THREADS )
1058 dnl # if defined( HAVE_THREADS )
1063 dnl HAVE_REENTRANT_FUNCTIONS is derived from:
1064 dnl _POSIX_REENTRANT_FUNCTIONS
1065 dnl _POSIX_THREAD_SAFE_FUNCTIONS
1066 dnl _POSIX_THREADSAFE_FUNCTIONS
1068 dnl and is currently defined in lthread.h
1070 dnl HAVE_THREADS is defined by lthread.h iff -UNO_THREADS
1072 dnl libldap/*.c should only include <lthread.h> iff
1073 dnl LDAP_R_COMPILE is defined. ie:
1074 dnl #ifdef LDAP_R_COMPILE
1075 dnl # include LDAP_R_COMPILE
1078 dnl LDAP_R_COMIPLE is defined by libldap_r/Makefile.in
1079 dnl specifically for compiling the threadsafe version of
1080 dnl the ldap library (-lldap_r).
1082 dnl dnl check for reentrant/threadsafe functions
1084 dnl dnl note: these should only be used when linking
1085 dnl dnl with $LTHREAD_LIBS
1087 dnl save_CPPFLAGS="$CPPFLAGS"
1088 dnl save_LIBS="$LIBS"
1089 dnl LIBS="$LTHREAD_LIBS $LIBS"
1090 dnl AC_CHECK_FUNCS( \
1093 dnl gethostbyaddr_r gethostbyname_r \
1094 dnl feof_unlocked unlocked_feof \
1095 dnl putc_unlocked unlocked_putc \
1096 dnl flockfile ftrylockfile \
1098 dnl CPPFLAGS="$save_CPPFLAGS"
1099 dnl LIBS="$save_LIBS"
1102 dnl ----------------------------------------------------------------
1104 if test $ol_link_threads = no ; then
1105 if test $ol_with_threads = yes ; then
1106 AC_MSG_ERROR([no suitable thread support])
1109 if test $ol_with_threads = auto ; then
1110 AC_MSG_WARN([no suitable thread support, disabling threads])
1114 AC_DEFINE(NO_THREADS,1)
1119 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
1122 if test $ol_cv_berkeley_db2 = yes ; then
1124 ol_with_ldbm_api=db2
1126 if test $ol_with_ldbm_type = hash ; then
1127 AC_DEFINE(LDBM_USE_DBHASH,1)
1129 AC_DEFINE(LDBM_USE_DBBTREE,1)
1132 dnl $ol_cv_lib_db2 should be yes or -ldb
1133 dnl (it could be no, but that would be an error
1134 if test $ol_cv_lib_db2 != yes ; then
1135 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
1141 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
1145 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
1148 if test $ol_cv_berkeley_db = yes ; then
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_db should be yes or -ldb
1159 dnl (it could be no, but that would be an error
1160 if test $ol_cv_lib_db != yes ; then
1161 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
1166 if test $ol_with_ldbm_api = manual ; then
1167 dnl User thinks he can manually configure LDBM api.
1170 AC_MSG_WARN([LDBM defines and link options must be set manually])
1172 AC_CHECK_HEADERS(db.h db_185.h gdbm.h ndbm.h)
1175 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
1176 AC_MSG_WARN(Could not find LDBM with BTREE support)
1177 ol_with_ldbm_api=none
1180 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
1183 if test $ol_cv_gdbm = yes ; then
1185 ol_with_ldbm_api=gdbm
1187 if test $ol_cv_lib_gdbm != yes ; then
1188 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
1193 if test $ol_with_ldbm_api = auto ; then
1194 AC_MSG_WARN([skipping automatic checking for NDBM, must be manually enabled.])
1195 elif test $ol_with_ldbm_api = ndbm ; then
1198 if test $ol_cv_ndbm = yes ; then
1200 ol_with_ldbm_api=ndbm
1202 if test $ol_cv_lib_ndbm != yes ; then
1203 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
1208 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
1209 AC_MSG_WARN(could not find suitable LDBM backend)
1210 if test $ol_enable_ldbm = yes ; then
1211 AC_MSG_ERROR(select appropriate LDBM options or disable)
1214 AC_MSG_WARN(disabling LDBM)
1218 if test $ol_enable_wrappers != no ; then
1219 AC_CHECK_HEADERS(tcpd.h)
1221 if test $ac_cv_header_tcpd_h != yes ; then
1224 AC_CHECK_LIB(wrap, main,
1225 [have_wrappers=yes], [have_wrappers=no])
1228 if test $have_wrappers = yes ; then
1229 AC_DEFINE(HAVE_TCPD)
1230 SLAPD_LIBS="$SLAPD_LIBS -lwrap"
1232 AC_MSG_WARN(could not find -lwrap)
1233 if test $ol_enable_wrappers = yes ; then
1234 AC_MSG_ERROR(could not find wrappers, select appropriate options or disable)
1237 AC_MSG_WARN(disabling wrappers support)
1238 ol_enable_wrappers=no
1242 if test $ol_enable_syslog != no ; then
1243 AC_CHECK_FUNC(openlog)
1244 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
1245 AC_MSG_ERROR(could not find syslog, select appropriate options or disable)
1247 ol_enable_syslog=$ac_cv_func_openlog
1250 if test $ol_enable_dmalloc != no ; then
1251 AC_CHECK_HEADERS(dmalloc.h)
1252 AC_CHECK_LIB(dmalloc, dmalloc_shutdown)
1255 # ud needs termcap (should insert check here)
1257 AC_CHECK_HEADERS(termcap.h ncurses.h)
1259 if test $ol_link_termcap = no ; then
1260 AC_CHECK_LIB(termcap, tputs, [have_termcap=yes], [have_termcap=no])
1261 if test $have_termcap = yes ; then
1262 AC_DEFINE(HAVE_TERMCAP)
1264 TERMCAP_LIBS=-ltermcap
1268 if test $ol_link_termcap = no ; then
1269 AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
1270 if test $have_ncurses = yes ; then
1271 AC_DEFINE(HAVE_NCURSES)
1273 TERMCAP_LIBS=-lncurses
1277 if test $ol_link_termcap = no ; then
1278 AC_DEFINE(NO_TERMCAP,1)
1282 # FreeBSD (and others) have crypt(3) in -lcrypt
1283 if test $ol_enable_crypt != no ; then
1284 AC_CHECK_FUNC(crypt, [have_crypt=yes], [
1285 AC_CHECK_LIB(crypt, crypt, [LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
1286 have_crypt=yes], [have_crypt=no])])
1288 if test $have_crypt = yes ; then
1289 AC_DEFINE(HAVE_CRYPT,1)
1291 AC_MSG_WARN(could not find crypt)
1292 if test $ol_enable_crypt = yes ; then
1293 AC_MSG_ERROR(could not find crypt, select appropriate options or disable)
1296 AC_MSG_WARN(disabling crypt support)
1301 # FreeBSD (and others) have setproctitle(3) in -lutil
1302 if test $ol_enable_proctitle != no ; then
1303 AC_CHECK_FUNC(setproctitle, [have_setproctitle=yes], [
1304 AC_CHECK_LIB(util, setproctitle,
1305 [have_setproctitle=yes
1306 LUTIL_LIBS="$LUTIL_LIBS -lutil"],
1307 [have_setproctitle=no
1308 LIBOBJS="$LIBOBJS setproctitle.o"])])
1310 if test $have_setproctitle = yes ; then
1311 AC_DEFINE(HAVE_SETPROCTITLE,1)
1315 dnl ----------------------------------------------------------------
1316 dnl Checks for header files.
1319 if test $ac_cv_header_stdc != yes; then
1320 AC_MSG_WARN([could not Standard C compliant headers])
1325 AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL
1326 if test $am_cv_sys_posix_termios = yes ; then
1327 AC_DEFINE(HAVE_POSIX_TERMIOS,1)
1364 dnl ----------------------------------------------------------------
1365 dnl Checks for typedefs, structures, and compiler characteristics.
1366 AC_TYPE_GETGROUPS dnl requires AC_TYPE_UID_T
1372 OL_TYPE_SIG_ATOMIC_T
1374 AC_STRUCT_ST_BLKSIZE
1382 if test $cross_compiling = yes ; then
1383 AC_DEFINE(CROSS_COMPILING, 1)
1386 AC_CHECK_SIZEOF(short)
1387 AC_CHECK_SIZEOF(int)
1388 AC_CHECK_SIZEOF(long)
1391 dnl ----------------------------------------------------------------
1392 dnl Checks for library functions.
1394 dnl AM_FUNC_MKTIME dnl checks for sys/time.h and unistd.h
1399 if test $ac_cv_func_vprintf = yes ; then
1400 dnl check for vsnprintf
1401 AC_CHECK_FUNCS(vsnprintf vsprintf)
1436 # these functions are required to build a thread_safe -lldap
1444 if test "$ac_cv_func_ctime_r" = yes ; then
1445 OL_FUNC_CTIME_R_NARGS
1447 ol_cv_func_ctime_r=0
1450 if test "$ac_cv_func_strtok_r" = yes \
1451 -a "$ac_cv_func_ctime_r" = yes \
1452 -a "$ol_cv_func_ctime_r_nargs" -ge 2 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
1453 -a "$ac_cv_func_gethostbyaddr_r" = yes \
1454 -a "$ac_cv_func_gethostbyname_r" = yes \
1457 AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_REENTRANT, 1)
1460 if test $ol_link_threads != no ; then
1461 AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE, 1)
1464 dnl We actually may need to replace more than this.
1465 AC_REPLACE_FUNCS(getopt tempnam)
1467 dnl ----------------------------------------------------------------
1468 # Check Configuration
1471 dnl ----------------------------------------------------------------
1472 dnl Sort out defines
1474 if test "$ol_enable_debug" != no ; then
1475 AC_DEFINE(LDAP_DEBUG,1)
1477 if test "$ol_enable_syslog" = yes ; then
1478 AC_DEFINE(LDAP_SYSLOG,1)
1480 if test "$ol_enable_libui" = yes ; then
1481 AC_DEFINE(LDAP_LIBUI,1)
1483 if test "$ol_enable_cache" = no ; then
1484 AC_DEFINE(LDAP_NOCACHE,1)
1486 if test "$ol_enable_dns" != no ; then
1487 AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_DNS,LDAP_VENDOR_VERSION,1)
1489 if test "$ol_enable_proctitle" != no ; then
1490 AC_DEFINE(LDAP_PROCTITLE,1)
1492 if test "$ol_enable_referrals" != no ; then
1493 AC_DEFINE(LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS,LDAP_VENDOR_VERSION,1)
1495 if test "$ol_enable_cldap" != no ; then
1496 AC_DEFINE(LDAP_CONNECTIONLESS,1)
1499 if test "$ol_enable_aclgroups" != no ; then
1500 AC_DEFINE(SLAPD_ACLGROUPS,1)
1502 if test "$ol_enable_crypt" != no ; then
1503 AC_DEFINE(SLAPD_CRYPT,1)
1505 if test "$ol_enable_cleartext" != no ; then
1506 AC_DEFINE(SLAPD_CLEARTEXT,1)
1508 if test "$ol_enable_phonetic" != no ; then
1509 AC_DEFINE(SLAPD_PHONETIC,1)
1511 if test "$ol_enable_rlookups" != no ; then
1512 AC_DEFINE(SLAPD_RLOOKUPS,1)
1515 if test "$ol_link_bdb2" != no ; then
1516 AC_DEFINE(SLAPD_BDB2,1)
1521 if test "$ol_link_ldbm" != no ; then
1522 AC_DEFINE(SLAPD_LDBM,1)
1527 if test "$ol_enable_passwd" != no ; then
1528 AC_DEFINE(SLAPD_PASSWD,1)
1533 if test "$ol_enable_perl" != no ; then
1534 AC_DEFINE(SLAPD_PERL,1)
1539 if test "$ol_enable_shell" != no ; then
1540 AC_DEFINE(SLAPD_SHELL,1)
1545 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
1546 $BUILD_SLAPD = yes ; then
1550 if test "$ol_link_isode" != no ; then
1554 dnl ----------------------------------------------------------------
1556 AC_SUBST(BUILD_LDAPD)
1557 AC_SUBST(BUILD_SLAPD)
1558 AC_SUBST(BUILD_BDB2)
1559 AC_SUBST(BUILD_LDBM)
1560 AC_SUBST(BUILD_PASSWD)
1561 AC_SUBST(BUILD_PERL)
1562 AC_SUBST(BUILD_SHELL)
1563 AC_SUBST(BUILD_SLURPD)
1566 AC_SUBST(LDAPD_LIBS)
1567 AC_SUBST(SLAPD_LIBS)
1568 AC_SUBST(SLURPD_LIBS)
1570 AC_SUBST(LTHREAD_LIBS)
1571 AC_SUBST(LUTIL_LIBS)
1573 AC_SUBST(SLAPD_PERL_CPPFLAGS)
1574 AC_SUBST(SLAPD_PERL_LDFLAGS)
1577 AC_SUBST(TERMCAP_LIBS)
1579 dnl ----------------------------------------------------------------
1584 Makefile:build/top.mk:Makefile.in:build/dir.mk \
1585 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
1586 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
1587 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
1588 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
1589 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
1590 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
1591 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
1592 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
1593 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
1594 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
1595 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
1596 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
1597 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
1598 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
1599 include/Makefile:build/top.mk:include/Makefile.in \
1600 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
1601 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
1602 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
1603 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
1604 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
1605 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
1606 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
1607 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
1608 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
1609 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
1610 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
1611 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/srv.mk \
1612 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/srv.mk \
1613 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/srv.mk \
1614 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/srv.mk \
1615 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
1616 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
1617 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
1618 tests/Makefile:build/top.mk:tests/Makefile.in \
1621 echo Please \"make depend\" to build dependencies