Index: ossp-pkg/sio/configure.ac RCS File: /v/ossp/cvs/ossp-pkg/sio/configure.ac,v rcsdiff -q -kk '-r1.3' '-r1.4' -u '/v/ossp/cvs/ossp-pkg/sio/configure.ac,v' 2>/dev/null --- configure.ac 2003/01/06 19:04:56 1.3 +++ configure.ac 2003/01/20 15:34:13 1.4 @@ -41,9 +41,9 @@ sinclude(libtool.m4) AC_PROG_LIBTOOL -dnl ## local checks go here (not yet) -dnl sinclude(sio.ac) -dnl SIO_CHECK_ALL +dnl ## local checks go here +sinclude(sio.ac) +SIO_CHECK_ALL AC_CHECK_EXTLIB([OSSP ex], ex, __ex_ctx, ex.h, [AC_DEFINE(WITH_EX, 1, [Define to 1 if building with OSSP ex])]) Index: ossp-pkg/sio/sio.ac RCS File: /v/ossp/cvs/ossp-pkg/sio/sio.ac,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/sio/sio.ac,v' | diff -u /dev/null - -L'ossp-pkg/sio/sio.ac' 2>/dev/null --- ossp-pkg/sio/sio.ac +++ - 2024-05-22 03:36:34.754539930 +0200 @@ -0,0 +1,66 @@ +dnl ## +dnl ## OSSP sio - Stream I/O +dnl ## Copyright (c) 2002 Ralf S. Engelschall +dnl ## Copyright (c) 2002 The OSSP Project +dnl ## Copyright (c) 2002 Cable & Wireless Deutschland +dnl ## Copyright (c) 2002 Michael van Elst +dnl ## +dnl ## This file is part of OSSP sio, an abstract data type of +dnl ## a pair of half-duplex data pipes which can be found at +dnl ## http://www.ossp.org/pkg/lib/sio/. +dnl ## +dnl ## Permission to use, copy, modify, and distribute this software for +dnl ## any purpose with or without fee is hereby granted, provided that +dnl ## the above copyright notice and this permission notice appear in all +dnl ## copies. +dnl ## +dnl ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +dnl ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +dnl ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +dnl ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +dnl ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +dnl ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +dnl ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +dnl ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +dnl ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +dnl ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +dnl ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +dnl ## SUCH DAMAGE. +dnl ## +dnl ## sio.ac: OSSP sio Autoconf checks +dnl ## + +dnl # Check for anything OSSP sio wants to know +dnl # configure.in: +dnl # SIO_CHECK_ALL + +AC_DEFUN(SIO_CHECK_ALL,[ + +dnl # built-time configuration parameter --enable-bio +AC_MSG_CHECKING(for BIO support) +AC_ARG_ENABLE(bio,dnl +[ --enable-bio enable BIO support (default=no)], +[ enable_bio=$enableval ], +[ enable_bio=no ] +)dnl +AC_MSG_RESULT([$enable_bio]) +if test ".$enable_bio" = .yes; then +AC_CHECK_LIB(crypto, CRYPTO_free) +AC_CHECK_LIB(ssl, SSL_alert_desc_string) +AC_DEFINE(ENABLE_BIO, 1, [Define to 1 if building with BIO (openssl)]) +fi + +dnl # built-time configuration parameter --enable-zlib +AC_MSG_CHECKING(for ZLIB support) +AC_ARG_ENABLE(zlib,dnl +[ --enable-zlib enable ZLIB support (default=no)], +[ enable_zlib=$enableval ], +[ enable_zlib=no ] +)dnl +AC_MSG_RESULT([$enable_zlib]) +if test ".$enable_zlib" = .yes; then +AC_CHECK_LIB(z, inflate) +AC_DEFINE(ENABLE_ZLIB, 1, [Define to 1 if building with ZLIB]) +fi + +]) Index: ossp-pkg/sio/sio_bio.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_bio.c,v rcsdiff -q -kk '-r1.9' '-r1.10' -u '/v/ossp/cvs/ossp-pkg/sio/sio_bio.c,v' 2>/dev/null --- sio_bio.c 2003/01/06 19:04:56 1.9 +++ sio_bio.c 2003/01/20 15:34:13 1.10 @@ -28,6 +28,12 @@ ** sio_bio.c: OpenSSL BIO stage */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#if ENABLE_BIO + #include #include #include @@ -623,3 +629,4 @@ siobio_shutdown }; +#endif /* ENABLE_BIO */ Index: ossp-pkg/sio/sio_test.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_test.c,v rcsdiff -q -kk '-r1.6' '-r1.7' -u '/v/ossp/cvs/ossp-pkg/sio/sio_test.c,v' 2>/dev/null --- sio_test.c 2003/01/06 19:04:56 1.6 +++ sio_test.c 2003/01/20 15:34:13 1.7 @@ -28,12 +28,21 @@ ** sio_test.c: test suite */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#ifndef ENABLE_BIO +#error Test requires BIO + SSL +#endif + #include #include "al.h" #include "sio.h" #include "sa.h" + #include #include extern BIO_METHOD *BIO_s_socket(); Index: ossp-pkg/sio/sio_zlib.c RCS File: /v/ossp/cvs/ossp-pkg/sio/sio_zlib.c,v rcsdiff -q -kk '-r1.5' '-r1.6' -u '/v/ossp/cvs/ossp-pkg/sio/sio_zlib.c,v' 2>/dev/null --- sio_zlib.c 2003/01/06 19:04:56 1.5 +++ sio_zlib.c 2003/01/20 15:34:13 1.6 @@ -28,6 +28,12 @@ ** sio_zlib.c: zlib compression stage */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#if ENABLE_ZLIB + #include #include #include @@ -364,3 +370,4 @@ NULL }; +#endif /* ENABLE_ZLIB */