Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
170ce706
Commit
170ce706
authored
Mar 11, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Check for gai_strerror
(stupid Winsock2 has getnameinfo but not gai_strerror)
parent
c5a8df9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
configure.ac
configure.ac
+21
-1
No files found.
configure.ac
View file @
170ce706
...
@@ -399,7 +399,7 @@ AH_TEMPLATE(HAVE_GETNAMEINFO,
...
@@ -399,7 +399,7 @@ AH_TEMPLATE(HAVE_GETNAMEINFO,
ac_func_getnameinfo_save_LIBS=$LIBS
ac_func_getnameinfo_save_LIBS=$LIBS
AS_IF([test "${SYS}" = "mingw32"],
AS_IF([test "${SYS}" = "mingw32"],
[LIBS="-lws2_32 $LIBS"])
[LIBS="-lws2_32 $LIBS"])
AC_CACHE_CHECK([for getnameinfo], ac_cv_func_getnameinfo,
AC_CACHE_CHECK([for getnameinfo], ac_cv_func_getnameinfo,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([
[AC_LINK_IFELSE([AC_LANG_PROGRAM([
[#include <sys/types.h>
[#include <sys/types.h>
#if defined( UNDER_CE )
#if defined( UNDER_CE )
...
@@ -417,6 +417,26 @@ AS_IF([test $ac_cv_func_getnameinfo = yes],
...
@@ -417,6 +417,26 @@ AS_IF([test $ac_cv_func_getnameinfo = yes],
[AC_DEFINE(HAVE_GETNAMEINFO)])
[AC_DEFINE(HAVE_GETNAMEINFO)])
LIBS=$ac_func_getnameinfo_save_LIBS
LIBS=$ac_func_getnameinfo_save_LIBS
dnl Cannot have gai_strerror if not getaddrinfo
AH_TEMPLATE(HAVE_GAI_STRERROR,
[Define to 1 if you have the `gai_strerror' function.])
AC_CACHE_CHECK([for gai_strerror], ac_cv_func_gai_strerror,
[AC_LINK_IFELSE([AC_LANG_PROGRAM([
[#include <sys/types.h>
#if defined( UNDER_CE )
# include <winsock.h>
#elif defined( WIN32 )
# include <winsock2.h>
#else
# include <sys/socket.h>
# include <netdb.h>
#endif]], [[gai_strerror(0);]])],
ac_cv_func_gai_strerror=yes,
ac_cv_func_gai_strerror=no)])
AS_IF([test $ac_cv_func_gai_strerror = yes],
[AC_DEFINE(HAVE_GAI_STRERROR)],
[gai_support=no])
dnl Check for va_copy
dnl Check for va_copy
AC_CACHE_CHECK([for va_copy], ac_cv_c_va_copy,
AC_CACHE_CHECK([for va_copy], ac_cv_c_va_copy,
AC_TRY_LINK(
AC_TRY_LINK(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment