OSSP CVS Repository

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

ossp-pkg/l2/configure.in
dnl ##
dnl ##  L2 - OSSP Logging Library
dnl ##  Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
dnl ##  Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)
dnl ##
dnl ##  This file is part of OSSP L2, a flexible logging library which
dnl ##  can be found at http://www.ossp.com/pkg/l2/.
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 ##  configure.in: Autoconf specification
dnl ##

AC_PREREQ(2.13)dnl
AC_REVISION(1.0)

AC_INIT(README)
AC_HEADLINE(dnl
L2, Logging Library, dnl
L2_VERSION, l2_version.c, dnl
[Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)])
AC_CONFIG_HEADER(l2_config.h)
AC_PREFIX_DEFAULT(/usr/local)
AC_PLATFORM(PLATFORM)
echo ""

AC_MSG_CHECKING(whether to build C++ library)
LIBL2XX_LA=""
L2_TESTXX=""
L2XX_3=""
TEST_CXX=""
INSTALL_CXX=""
UNINSTALL_CXX=""
AC_ARG_WITH(cxx,dnl
[  --with-cxx              build C++ library (default=no)],[
    LIBL2XX_LA="libl2++.la"
    L2_TESTXX="l2_test++"
    L2XX_3="l2++.3"
    TEST_CXX=test-cxx
    INSTALL_CXX=install-cxx
    UNINSTALL_CXX=uninstall-cxx
],[
    with_cxx=no
])dnl
AC_MSG_RESULT([$with_cxx])
AC_SUBST(LIBL2XX_LA)
AC_SUBST(L2_TESTXX)
AC_SUBST(L2XX_3)
AC_SUBST(TEST_CXX)
AC_SUBST(INSTALL_CXX)
AC_SUBST(UNINSTALL_CXX)

AC_SET_MAKE
AC_PROG_CC
if test ".$with_cxx" = .yes; then
    AC_PROG_CXX
fi
AC_PROG_CPP
AC_CHECK_DEBUGGING
AC_CONFIGURE_LIBTOOL

AC_OUTPUT(dnl
Makefile dnl
l2-config dnl
,dnl
chmod a+x l2-config
)dnl


CVSTrac 2.0.1