Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
6a235aad
Commit
6a235aad
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Added DB2 detection.
parent
7be5fca7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
build/top.mk
+3
-3
3 additions, 3 deletions
build/top.mk
clients/finger/Makefile.in
+1
-1
1 addition, 1 deletion
clients/finger/Makefile.in
configure
+231
-137
231 additions, 137 deletions
configure
configure.in
+46
-16
46 additions, 16 deletions
configure.in
include/portable.h.in
+3
-3
3 additions, 3 deletions
include/portable.h.in
with
284 additions
and
160 deletions
build/top.mk
+
3
−
3
View file @
6a235aad
...
...
@@ -67,10 +67,10 @@ LDAP_LIBDEPEND = $(LDAP_LIBDIR)/libldap.a
# AutoConfig generated
AC_CC
=
@CC@
AC_DEFS
=
@DEFS@ @LDAP_DEFS@
AC_LIBS
=
@LIBS@
AC_DEFS
=
@CPPFLAGS@
@DEFS@ @LDAP_DEFS@
AC_LIBS
=
@LDFLAGS@
@LIBS@
AC_CFLAGS
=
@CFLAGS@
AC_LDFLAGS
=
@LDFLAGS@
AC_LDFLAGS
=
LIBCRYPT
=
@LIBCRYPT@
LIBTERMCAP
=
@LIBTERMCAP@
...
...
This diff is collapsed.
Click to expand it.
clients/finger/Makefile.in
+
1
−
1
View file @
6a235aad
SRCS
=
main.c
XSR
V
S
=
version.c
XSR
C
S
=
version.c
OBJS
=
main.o
PROGRAMS
=
in
.xfingerd
...
...
This diff is collapsed.
Click to expand it.
configure
+
231
−
137
View file @
6a235aad
This diff is collapsed.
Click to expand it.
configure.in
+
46
−
16
View file @
6a235aad
...
...
@@ -116,7 +116,7 @@ if test "$BUILD_SLAPD" != "yes" ; then
ldbm_prefer="none"
fi
dnl
general LDAP arguments
##
general LDAP arguments
LDAP_DEFS=
LDAP_LIBS=
...
...
@@ -144,12 +144,13 @@ else
LTHREAD_DEFS="-DNO_THREADS"
fi
dnl
ldapd arguments
##
ldapd arguments
LDAPD_DEFS=
LDAPD_LIBS=
dnl
slapd arguments
##
slapd arguments
SLAPD_DEFS=
SLAPD_LIBS=
if test "$SLAPD_PHONETIC" = "yes" ; then
AC_DEFINE(SLAPD_PHONETIC,1)
SLAPD_DEFS="$SLAPD_DEFS -DSOUNDEX"
...
...
@@ -170,6 +171,7 @@ fi
dnl slurpd arguments
SLURPD_DEFS=
SLURPD_LIBS=
dnl End Args
...
...
@@ -184,14 +186,12 @@ AC_PROG_MAKE_SET
AC_PATH_PROG(SENDMAIL, sendmail, /usr/lib/sendmail,
$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc)
AC_PATH_PROG(EDITOR, vi, /usr/ucb/vi,
$PATH:/usr/ucb)
AC_PATH_PROG(FINGER, finger, /usr/ucb/finger,
$PATH:/usr/ucb)
AC_PATH_PROG(EDITOR, vi, /usr/ucb/vi, $PATH:/usr/ucb)
AC_PATH_PROG(FINGER, finger, /usr/ucb/finger, $PATH:/usr/ucb)
ldbm_use="none"
LDBM_
LIB=""
LDBM_
DEFS=""
LDBM_
DEFS=
LDBM_
LIBS=
if test "$SLAPD_LDBM" = "yes" ; then
if test $ldbm_prefer = any -o $ldbm_prefer = dbbtree \
...
...
@@ -202,17 +202,47 @@ if test "$SLAPD_LDBM" = "yes" ; then
AC_CHECK_LIB(db,dbopen,[
ldbm_use=$ldbm_prefer
ldbm_prefer=found
LDBM_LIB="-ldb"
LDBM_LIB
S
="
$LDBM_LIBS
-ldb"
])
])
if test $ldbm_prefer = found ; then
if test $ldbm_use = dbhash ; then
dnl AC_DEFINE(LDBM_USE_DBHASH,1)
LDBM_DEFS="$LD
AP
_DEFS -DLDBM_USE_DBHASH"
LDBM_DEFS="$LD
BM
_DEFS -DLDBM_USE_DBHASH"
else
dnl AC_DEFINE(LDBM_USE_DBBTREE,1)
LDBM_DEFS="$LDAP_DEFS -DLDBM_USE_DBBTREE"
LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
fi
fi
AC_MSG_CHECKING(for db2)
AC_CACHE_VAL(cf_cv_db2,[
AC_EGREP_CPP(__db_version_2,[
#include <db.h>
/* this check could be improved */
#ifdef DB_VERSION_MAJOR
#if DB_VERSION_MAJOR == 2
__db_version_2
#endif
#endif
], cf_cv_db2=yes, cf_cv_db2=no)])
AC_MSG_RESULT($cf_cv_db2)
if test $cf_cv_db2 = yes ; then
if test $opt_db2 = yes ; then
LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2"
else
AC_CHECK_HEADERS(db185.h)
if test $cf_cv_header_db185 = no ; then
AC_MSG_ERROR([select --with-db2 or install db2 with 1.85 compatibility])
fi
LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2_COMPAT185"
fi
else
if test $opt_db2 = yes ; then
AC_MSG_ERROR(could not local DB2)
fi
fi
fi
...
...
@@ -221,18 +251,18 @@ dnl AC_DEFINE(LDBM_USE_DBBTREE,1)
AC_CHECK_LIB(gdbm, gdbm_open,[
ldbm_use=$ldbm_prefer
ldbm_prefer=found
LDBM_LIB="-lgdbm"
LDBM_LIB
S
="
$LDBM_LIBS
-lgdbm"
dnl AC_DEFINE(LDBM_USE_GDBM,1)
LDBM_DEFS="$LD
AP
_DEFS -DLDBM_USE_GDBM"
LDBM_DEFS="$LD
BM
_DEFS -DLDBM_USE_GDBM"
])
fi
if test $ldbm_prefer = any -o $ldbm_prefer = ndbm ; then
AC_CHECK_LIB(dbm,dbm_open,[
ldbm_use=ndbm
ldbm_prefer=found
LDBM_LIB="-ldbm"
LDBM_LIB
S
="
$LDBM_LIBS
-ldbm"
dnl AC_DEFINE(LDBM_USE_NDBM,1)
LDBM_DEFS="$LD
AP
_DEFS -DLDBM_USE_NDBM"
LDBM_DEFS="$LD
BM
_DEFS -DLDBM_USE_NDBM"
])
fi
...
...
This diff is collapsed.
Click to expand it.
include/portable.h.in
+
3
−
3
View file @
6a235aad
...
...
@@ -127,6 +127,9 @@
/* Define if you have the strtoul function. */
#undef HAVE_STRTOUL
/* Define if you have the <db185.h> header file. */
#undef HAVE_DB185_H
/* Define if you have the <dirent.h> header file. */
#undef HAVE_DIRENT_H
...
...
@@ -172,9 +175,6 @@
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define if you have the compat library (-lcompat). */
#undef HAVE_LIBCOMPAT
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment