mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
configure: add --with-amissl
AmiSSL is an Amiga native library which provides a wrapper over OpenSSL. It also requires all programs using it to use bsdsocket.library directly, rather than accessing socket functions through clib, which libcurl was not necessarily doing previously. Configure will now check for the headers and ensure they are included if found. Closes #3677
This commit is contained in:
parent
76a9d8df0e
commit
1e853653d2
8 changed files with 194 additions and 21 deletions
40
acinclude.m4
40
acinclude.m4
|
|
@ -1031,6 +1031,10 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [
|
|||
#endif
|
||||
#endif
|
||||
#else
|
||||
#ifdef HAVE_PROTO_BSDSOCKET_H
|
||||
#include <proto/bsdsocket.h>
|
||||
struct Library *SocketBase = NULL;
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
|
@ -1076,6 +1080,10 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [
|
|||
#endif
|
||||
#define RECVCALLCONV PASCAL
|
||||
#else
|
||||
#ifdef HAVE_PROTO_BSDSOCKET_H
|
||||
#include <proto/bsdsocket.h>
|
||||
struct Library *SocketBase = NULL;
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
|
@ -1084,8 +1092,10 @@ AC_DEFUN([CURL_CHECK_FUNC_RECV], [
|
|||
#endif
|
||||
#define RECVCALLCONV
|
||||
#endif
|
||||
#ifndef HAVE_PROTO_BSDSOCKET_H
|
||||
extern $recv_retv RECVCALLCONV
|
||||
recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
|
||||
#endif
|
||||
]],[[
|
||||
$recv_arg1 s=0;
|
||||
$recv_arg2 buf=0;
|
||||
|
|
@ -1165,6 +1175,10 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
|
|||
#endif
|
||||
#endif
|
||||
#else
|
||||
#ifdef HAVE_PROTO_BSDSOCKET_H
|
||||
#include <proto/bsdsocket.h>
|
||||
struct Library *SocketBase = NULL;
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
|
@ -1210,6 +1224,10 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
|
|||
#endif
|
||||
#define SENDCALLCONV PASCAL
|
||||
#else
|
||||
#ifdef HAVE_PROTO_BSDSOCKET_H
|
||||
#include <proto/bsdsocket.h>
|
||||
struct Library *SocketBase = NULL;
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
|
@ -1218,8 +1236,10 @@ AC_DEFUN([CURL_CHECK_FUNC_SEND], [
|
|||
#endif
|
||||
#define SENDCALLCONV
|
||||
#endif
|
||||
#ifndef HAVE_PROTO_BSDSOCKET_H
|
||||
extern $send_retv SENDCALLCONV
|
||||
send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
|
||||
#endif
|
||||
]],[[
|
||||
$send_arg1 s=0;
|
||||
$send_arg3 len=0;
|
||||
|
|
@ -1321,6 +1341,10 @@ AC_DEFUN([CURL_CHECK_MSG_NOSIGNAL], [
|
|||
#endif
|
||||
#endif
|
||||
#else
|
||||
#ifdef HAVE_PROTO_BSDSOCKET_H
|
||||
#include <proto/bsdsocket.h>
|
||||
struct Library *SocketBase = NULL;
|
||||
#endif
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
|
@ -1714,6 +1738,7 @@ dnl using current libraries or if another one is required.
|
|||
|
||||
AC_DEFUN([CURL_CHECK_LIBS_CONNECT], [
|
||||
AC_REQUIRE([CURL_INCLUDES_WINSOCK2])dnl
|
||||
AC_REQUIRE([CURL_INCLUDES_BSDSOCKET])dnl
|
||||
AC_MSG_CHECKING([for connect in libraries])
|
||||
tst_connect_save_LIBS="$LIBS"
|
||||
tst_connect_need_LIBS="unknown"
|
||||
|
|
@ -1723,7 +1748,8 @@ AC_DEFUN([CURL_CHECK_LIBS_CONNECT], [
|
|||
AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([[
|
||||
$curl_includes_winsock2
|
||||
#ifndef HAVE_WINDOWS_H
|
||||
$curl_includes_bsdsocket
|
||||
#if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
|
||||
int connect(int, void*, int);
|
||||
#endif
|
||||
]],[[
|
||||
|
|
@ -1854,6 +1880,11 @@ AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
|
|||
#endif
|
||||
#endif
|
||||
#ifndef HAVE_WINDOWS_H
|
||||
#ifdef HAVE_PROTO_BSDSOCKET_H
|
||||
#include <proto/bsdsocket.h>
|
||||
struct Library *SocketBase = NULL;
|
||||
#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
|
@ -1912,6 +1943,11 @@ AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
|
|||
#endif
|
||||
#endif
|
||||
#ifndef HAVE_WINDOWS_H
|
||||
#ifdef HAVE_PROTO_BSDSOCKET_H
|
||||
#include <proto/bsdsocket.h>
|
||||
struct Library *SocketBase = NULL;
|
||||
#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
|
||||
#endif
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
|
@ -1926,12 +1962,14 @@ AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
|
|||
long tv_usec;
|
||||
};
|
||||
#endif
|
||||
#ifndef HAVE_PROTO_BSDSOCKET_H
|
||||
extern $sel_retv SELECTCALLCONV
|
||||
select($sel_arg1,
|
||||
$sel_arg234,
|
||||
$sel_arg234,
|
||||
$sel_arg234,
|
||||
$sel_arg5);
|
||||
#endif
|
||||
]],[[
|
||||
$sel_arg1 nfds=0;
|
||||
$sel_arg234 rfds=0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue