dnl ##
dnl ## OSSP l2 - Flexible Logging
dnl ## Copyright (c) 2001-2005 Cable & Wireless
dnl ## Copyright (c) 2001-2005 The OSSP Project
dnl ## Copyright (c) 2001-2005 Ralf S. Engelschall
dnl ##
dnl ## This file is part of OSSP l2, a flexible logging library which
dnl ## can be found at http://www.ossp.org/pkg/lib/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.57)
AC_INIT
AC_HEADLINE(dnl
OSSP l2, Flexible Logging, dnl
L2_VERSION, l2_version.c, dnl
[Copyright (c) 2001-2005 The OSSP Project
Copyright (c) 2001-2005 Ralf S. Engelschall (rse@engelschall.com)
Copyright (c) 2001-2005 Cable & Wireless ])
AC_PREFIX_DEFAULT(/usr/local)
AC_PLATFORM(PLATFORM)
AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_CPP
AC_CHECK_DEBUGGING
AC_CHECK_MAINTAINER
AC_CONFIGURE_LIBTOOL
AC_CHECK_BISON(BISON, 1.875d, [1.[[8-9]][[0-9]]|1.[[8-9]][[0-9]][[0-9]]]|[2.[[0-9]]])
AC_CHECK_FLEX(FLEX, 2.5.31, [2.5.1[[0-9]]|2.5.[[2-9]][[0-9]]|2.[[6-9]].*])
AC_CHECK_LIB(nsl, gethostname)
if test ".`echo $LIBS | grep nsl`" = . ;then
AC_CHECK_LIB(nsl, gethostbyname)
fi
AC_CHECK_LIB(socket, accept)
AC_CHECK_HEADERS(sys/time.h)
AC_HAVE_HEADERS(features.h)
AC_MSG_CHECKING(whether _GNU_SOURCE is required under GNU glibc)
AC_TRY_RUN(
#define RETURN 1
#ifdef HAVE_FEATURES_H
#include
#if (__GLIBC__+0) > 0
#undef RETURN
#define RETURN 0
#endif
#endif
int main(int argc, char *argv[]) { return RETURN; }
,dnl
AC_MSG_RESULT(yes)
CFLAGS="$CFLAGS -D_GNU_SOURCE"
,dnl
AC_MSG_RESULT(no)
)
AC_CHECK_FUNCS(inet_aton inet_pton inet_ntoa inet_ntop snprintf vsnprintf setitimer isnan isinf)
CHECK_VA_COPY
case $PLATFORM in
*-*-solaris2.[[6-8]]* )
AC_DEFINE(HAVE_VSYSLOG_USVALIST, 1, [Define to 1 if vsyslog has underscored va_list])
;;
esac
sinclude(l2_ut_sa.ac)
SA_CHECK_ALL
AC_CHECK_EXTLIB([Dmalloc], dmalloc, dmalloc_debug, dmalloc.h,
[AC_DEFINE(WITH_DMALLOC, 1, [Define to 1 if building with Dmalloc])])
AC_CONFIG_HEADERS(l2_config.h)
AC_CONFIG_FILES([Makefile l2.h l2-config])
AC_CONFIG_COMMANDS([adjustment], [chmod a+x l2-config])
AC_OUTPUT