OSSP CVS Repository

ossp - ossp-pkg/sio/sio.ac
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/sio/sio.ac
dnl ##
dnl ##  OSSP sio - Stream I/O
dnl ##  Copyright (c) 2002 Ralf S. Engelschall <rse@engelschall.com>
dnl ##  Copyright (c) 2002 The OSSP Project <http://www.ossp.org/>
dnl ##  Copyright (c) 2002 Cable & Wireless <http://www.cw.com/>
dnl ##  Copyright (c) 2002 Michael van Elst <mlelstv@dev.de.cw.net>
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 #   make sure libnsl and libsocket are linked in if they exist
AC_CHECK_LIB(nsl, gethostname)
if test ".`echo $LIBS | grep nsl`" = .; then
    AC_CHECK_LIB(nsl, gethostbyname)
fi
AC_CHECK_LIB(socket, accept)

dnl #   built-time configuration parameter --enable-bio
AC_MSG_CHECKING(for BIO support)
AC_ARG_ENABLE(bio,dnl
[  --enable-bio            enable OpenSSL 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 OpenSSL BIO])
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

dnl #   built-time configuration parameter --enable-sa
AC_MSG_CHECKING(for SA support)
AC_ARG_ENABLE(sa,dnl
[  --enable-sa             enable OSSP sa support (default=no)],
[ enable_sa=$enableval ],
[ enable_sa=no ]
)dnl
AC_MSG_RESULT([$enable_sa])
if test ".$enable_sa" = .yes; then
AC_CHECK_LIB(sa, sa_create)
AC_DEFINE(ENABLE_SA, 1, [Define to 1 if building with OSSP sa])
fi

])

CVSTrac 2.0.1