Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Joe Martin
OpenLDAP
Commits
3b4931c0
Commit
3b4931c0
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Added termcap and ncurses detection.
parent
088ff280
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
clients/ud/Makefile.in
+2
-1
2 additions, 1 deletion
clients/ud/Makefile.in
configure
+242
-94
242 additions, 94 deletions
configure
configure.in
+30
-2
30 additions, 2 deletions
configure.in
include/portable.h.in
+6
-0
6 additions, 0 deletions
include/portable.h.in
with
280 additions
and
97 deletions
clients/ud/Makefile.in
+
2
−
1
View file @
3b4931c0
...
...
@@ -9,7 +9,8 @@ PROGRAMS= ud
LDAP_INCDIR
=
../../include
LDAP_LIBDIR
=
../../libraries
XLIBS
=
$(
LIBTERMCAP
)
XDEFS
=
$(
TERMCAP_DEFS
)
XLIBS
=
$(
TERMCAP_LIBS
)
ud
:
version.o
$(
CC
)
$(
LDFLAGS
)
-o
$@
version.o
$(
OBJS
)
$(
LIBS
)
...
...
This diff is collapsed.
Click to expand it.
configure
+
242
−
94
View file @
3b4931c0
This diff is collapsed.
Click to expand it.
configure.in
+
30
−
2
View file @
3b4931c0
...
...
@@ -452,8 +452,36 @@ dnl AC_DEFINE(HAVE_TCPD)
fi
# ud needs termcap (should insert check here)
LIBTERMCAP="-ltermcap"
AC_SUBST(LIBTERMCAP)
ol_link_termcap=no
TERMCAP_DEFS=
TERMCAP_LIBS=
AC_CHECK_HEADERS(termcap.h ncurses.h)
if test $ol_link_termcap = no ; then
AC_CHECK_LIB(termcap, tputs, [have_termcap=yes], [have_termcap=no])
if test $have_termcap = yes ; then
ol_link_termcap=yes
TERMCAP_LIBS=-ltermcap
fi
fi
if test $ol_link_termcap = no ; then
AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
if test $have_ncurses = yes ; then
ol_link_termcap=yes
TERMCAP_LIBS=-lncurses
fi
fi
if test $ol_link_termcap = no ; then
TERMCAP_DEFS="-DNOTERMCAP"
TERMCAP_LIBS=
fi
AC_SUBST(TERMCAP_DEFS)
AC_SUBST(TERMCAP_LIBS)
# FreeBSD (and others) have crypt(3) in -lcrypt
if test $ol_enable_crypt != no ; then
...
...
This diff is collapsed.
Click to expand it.
include/portable.h.in
+
6
−
0
View file @
3b4931c0
...
...
@@ -145,6 +145,9 @@
/* Define if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H
/* Define if you have the <ncurses.h> header file. */
#undef HAVE_NCURSES_H
/* Define if you have the <ndbm.h> header file. */
#undef HAVE_NDBM_H
...
...
@@ -181,6 +184,9 @@
/* Define if you have the <syslog.h> header file. */
#undef HAVE_SYSLOG_H
/* Define if you have the <termcap.h> header file. */
#undef HAVE_TERMCAP_H
/* Define if you have the <termio.h> header file. */
#undef HAVE_TERMIO_H
...
...
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