Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
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
openldap
OpenLDAP
Commits
b738f2a4
Commit
b738f2a4
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Check for netinet/tcp.h
Update res_search check and place behind --enable-dns.
parent
04c57115
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.in
+17
-10
17 additions, 10 deletions
configure.in
include/ac/socket.h
+3
-0
3 additions, 0 deletions
include/ac/socket.h
with
20 additions
and
10 deletions
configure.in
+
17
−
10
View file @
b738f2a4
...
...
@@ -544,19 +544,25 @@ dnl
AC_CHECK_LIB(gen, main)
])
dnl Check for resolver routines
AC_CHECK_FUNCS(res_search)
if test $ac_cv_func_res_search = "no" ; then
AC_CHECK_LIB(bind, res_search)
if test "$ac_cv_lib_bind_res_search" = "yes" ; then
if test $ol_enable_dns != no ; then
dnl Check for resolver routines
AC_CHECK_FUNC(res_search,:)
if test $ac_cv_func_res_search = no ; then
AC_CHECK_LIB(bind, res_search)
ac_cv_func_res_search=$ac_cv_lib_bind_res_search
fi
if test $ac_cv_func_res_search = no ; then
AC_CHECK_LIB(resolv, res_search)
ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
fi
if test "$ac_cv_func_res_search" = yes ; then
AC_DEFINE(HAVE_RES_SEARCH,1,
[define if you have res_search()])
elif test $ol_enable_dns = yes ; then
AC_MSG_ERROR([--enable-dns requires res_search])
else
AC_CHECK_LIB(resolv, res_search)
if test "$ac_cv_lib_resolv_res_search" = "yes" ; then
AC_DEFINE(HAVE_RES_SEARCH,1,
[define if you have res_search()])
fi
AC_MSG_WARN([no res_search, disabling DNS support])
fi
fi
...
...
@@ -1654,6 +1660,7 @@ AC_CHECK_HEADERS( \
libutil.h \
limits.h \
locale.h \
netinet/tcp.h \
malloc.h \
memory.h \
psap.h \
...
...
This diff is collapsed.
Click to expand it.
include/ac/socket.h
+
3
−
0
View file @
b738f2a4
...
...
@@ -26,7 +26,10 @@
#endif
#include
<netinet/in.h>
#ifdef HAVE_NETINET_TCP_H
#include
<netinet/tcp.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include
<arpa/inet.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