Add configure code for setting LDAP_SYSLOG but actually use hardcoded

LDAP_SYSLOG in slap.h/slurp.h.
This commit is contained in:
Kurt Zeilenga 1998-12-20 21:56:44 +00:00
parent c7d5811b78
commit 362d6cbf2a
6 changed files with 476 additions and 393 deletions

View file

@ -124,6 +124,9 @@
/* define this for LDAP User Interface support */ /* define this for LDAP User Interface support */
#undef LDAP_LIBUI #undef LDAP_LIBUI
/* define this to add syslog code */
#undef LDAP_SYSLOG
/* define this to use DB2 in native mode */ /* define this to use DB2 in native mode */
#undef LDBM_USE_DB2 #undef LDBM_USE_DB2

838
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -39,6 +39,7 @@ AC_ARG_WITH(subdir, [ --with-subdir=DIR change default subdirectory used for in
AC_SUBST(ldap_subdir)dnl AC_SUBST(ldap_subdir)dnl
OL_ARG_ENABLE(debug,[ --enable-debug enable debugging], yes)dnl OL_ARG_ENABLE(debug,[ --enable-debug enable debugging], yes)dnl
ol_enable_syslog=no
dnl OL_ARG_ENABLE(syslog,[ --enable-syslog enable syslog support], auto)dnl dnl OL_ARG_ENABLE(syslog,[ --enable-syslog enable syslog support], auto)dnl
OL_ARG_ENABLE(proctitle,[ --enable-proctitle enable proctitle support], yes)dnl OL_ARG_ENABLE(proctitle,[ --enable-proctitle enable proctitle support], yes)dnl
OL_ARG_ENABLE(libui,[ --enable-libui enable library user interface], yes)dnl OL_ARG_ENABLE(libui,[ --enable-libui enable library user interface], yes)dnl
@ -970,7 +971,7 @@ if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
ol_enable_ldbm=no ol_enable_ldbm=no
fi fi
if test $ol_enable_wrappers = yes ; then if test $ol_enable_wrappers != no ; then
AC_CHECK_LIB(wrap, main, AC_CHECK_LIB(wrap, main,
[have_wrappers=yes], [have_wrappers=no]) [have_wrappers=yes], [have_wrappers=no])
@ -989,6 +990,14 @@ if test $ol_enable_wrappers = yes ; then
fi fi
if test $ol_enable_syslog != no ; then
AC_CHECK_FUNC(openlog)
if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
AC_MSG_ERROR(could not find syslog, select appropriate options or disable)
fi
ol_enable_syslog=$ac_cv_func_openlog
fi
if test $ol_enable_dmalloc != no ; then if test $ol_enable_dmalloc != no ; then
AC_CHECK_HEADERS(dmalloc.h) AC_CHECK_HEADERS(dmalloc.h)
AC_CHECK_LIB(dmalloc, dmalloc_shutdown) AC_CHECK_LIB(dmalloc, dmalloc_shutdown)
@ -1209,9 +1218,9 @@ dnl Sort out defines
if test $ol_enable_debug != no ; then if test $ol_enable_debug != no ; then
AC_DEFINE(LDAP_DEBUG,1) AC_DEFINE(LDAP_DEBUG,1)
fi fi
dnl if test $ol_enable_syslog != no ; then if test $ol_enable_syslog = yes ; then
dnl AC_DEFINE(LDAP_SYSLOG,1) AC_DEFINE(LDAP_SYSLOG,1)
dnl fi fi
if test $ol_enable_libui = yes ; then if test $ol_enable_libui = yes ; then
AC_DEFINE(LDAP_LIBUI,1) AC_DEFINE(LDAP_LIBUI,1)
fi fi

View file

@ -225,6 +225,9 @@ is provided ``as is'' without express or implied warranty.
/* define this for LDAP User Interface support */ /* define this for LDAP User Interface support */
#undef LDAP_LIBUI #undef LDAP_LIBUI
/* define this to add syslog code */
#undef LDAP_SYSLOG
/* define this to use DBBTREE w/ LDBM backend */ /* define this to use DBBTREE w/ LDBM backend */
#undef LDBM_USE_DBBTREE #undef LDBM_USE_DBBTREE

View file

@ -5,6 +5,10 @@
#include <stdlib.h> #include <stdlib.h>
#ifndef LDAP_SYSLOG
#define LDAP_SYSLOG 1
#endif
#include <sys/types.h> #include <sys/types.h>
#include <ac/syslog.h> #include <ac/syslog.h>
#include <ac/regex.h> #include <ac/regex.h>

View file

@ -15,7 +15,9 @@
#ifndef _SLURPD_H_ #ifndef _SLURPD_H_
#define _SLURPD_H_ #define _SLURPD_H_
#define LDAP_SYSLOG #ifndef LDAP_SYSLOG
#define LDAP_SYSLOG 1
#endif
#include <ac/syslog.h> #include <ac/syslog.h>
#include <ac/errno.h> #include <ac/errno.h>