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
Oren Tirosh
OpenLDAP
Commits
8577c789
Commit
8577c789
authored
21 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#2918 fix winsock detection syntax
parent
f5a9f625
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+686
-683
686 additions, 683 deletions
configure
configure.in
+12
-15
12 additions, 15 deletions
configure.in
with
698 additions
and
698 deletions
configure
+
686
−
683
View file @
8577c789
This diff is collapsed.
Click to expand it.
configure.in
+
12
−
15
View file @
8577c789
...
...
@@ -907,40 +907,37 @@ AC_CHECK_LIB(V3, sigset)
dnl The following is INTENTIONALLY scripted out because shell does not
dnl support variable names with the '@' character, which is what
dnl autoconf would try to generate if one merely used AC_SEARCH_LIBS
AC_MSG_CHECKING(for winsock)
if test "$ac_cv_header_winsock_h" = yes; then
AC_CACHE_CHECK([for winsock], [ol_cv_winsock],
save_LIBS="$LIBS"
for curlib in ws2_32 wsock32; do
LIBS="$LIBS -l$curlib"
AC_TRY_LINK([
char socket@12();
char select@20();
char closesocket@4();
char gethostname@8();
AC_TRY_LINK([#include <winsock.h>
],
[
socket
@12(
);
select
@20(
);
closesocket
@4
();
gethostname
@8(
);
socket
(0,0,0
);
select
(0,NULL,NULL,NULL,NULL
);
closesocket(
0
);
gethostname
(NULL,0
);
],
have
_winsock=yes,
have
_winsock=no)
ol_cv
_winsock=yes,
ol_cv
_winsock=no)
if test $
have
_winsock = yes; then
if test $
ol_cv
_winsock = yes; then
AC_DEFINE(HAVE_WINSOCK, 1, [define if you have winsock])
ac_cv_func_socket=yes
ac_cv_func_select=yes
ac_cv_func_closesocket=yes
ac_cv_func_gethostname=yes
if test $curlib = ws2_32; then
have
_winsock=winsock2
ol_cv
_winsock=winsock2
AC_DEFINE(HAVE_WINSOCK2, 1,
[define if you have winsock2])
fi
break
fi
LIBS="$save_LIBS"
done
AC_MSG_RESULT($have_winsock)
done
)
fi
dnl Find socket()
dnl Likely combinations:
...
...
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