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_0_1_6:1.22
FSL_0_1_5:1.22
FSL_0_1_1:1.21
LMTP2NNTP_1_2a5:1.20
LMTP2NNTP_1_2a4:1.20
LMTP2NNTP_1_2a3:1.19
LMTP2NNTP_1_2a1:1.15
LMTP2NNTP_1_1_1:1.13
LMTP2NNTP_1_1_0:1.13
LMTP2NNTP_1_1b4:1.13
LMTP2NNTP_1_1b3:1.12
L2_CHANNEL_ONLY_REVAMPING_BEFORE:1.13
LMTP2NNTP_1_1b2:1.12
LMTP2NNTP_1_1b1:1.11
L2_0_1_0:1.8
L2NGATE:1.2.0.2
START_MICHAEL:1.2;
locks; strict;
comment @# @;
1.32
date 2007.03.02.15.13.28; author thl; state Exp;
branches;
next 1.31;
commitid Z5uL2vuD8F2LJw8s;
1.31
date 2005.10.03.08.08.11; author rse; state Exp;
branches;
next 1.30;
1.30
date 2005.02.03.09.45.37; author thl; state Exp;
branches;
next 1.29;
1.29
date 2005.02.03.09.40.34; author rse; state Exp;
branches;
next 1.28;
1.28
date 2005.01.24.15.03.17; author rse; state Exp;
branches;
next 1.27;
1.27
date 2003.01.06.11.41.51; author rse; state Exp;
branches;
next 1.26;
1.26
date 2003.01.06.11.19.45; author rse; state Exp;
branches;
next 1.25;
1.25
date 2002.11.09.14.37.45; author rse; state Exp;
branches;
next 1.24;
1.24
date 2002.10.11.16.00.48; author rse; state Exp;
branches;
next 1.23;
1.23
date 2002.07.30.19.08.24; author rse; state Exp;
branches;
next 1.22;
1.22
date 2002.07.25.07.54.51; author rse; state Exp;
branches;
next 1.21;
1.21
date 2002.07.01.17.50.15; author rse; state Exp;
branches;
next 1.20;
1.20
date 2002.03.14.15.29.23; author thl; state Exp;
branches;
next 1.19;
1.19
date 2002.01.30.19.28.42; author rse; state Exp;
branches;
next 1.18;
1.18
date 2002.01.03.16.12.51; author rse; state Exp;
branches;
next 1.17;
1.17
date 2002.01.02.17.07.38; author rse; state Exp;
branches;
next 1.16;
1.16
date 2001.12.22.21.51.56; author rse; state Exp;
branches;
next 1.15;
1.15
date 2001.11.08.20.28.22; author rse; state Exp;
branches;
next 1.14;
1.14
date 2001.11.05.11.02.43; author rse; state Exp;
branches;
next 1.13;
1.13
date 2001.10.31.16.47.05; author ms; state Exp;
branches;
next 1.12;
1.12
date 2001.10.12.14.46.16; author ms; state Exp;
branches;
next 1.11;
1.11
date 2001.10.06.14.33.09; author rse; state Exp;
branches;
next 1.10;
1.10
date 2001.09.14.19.06.40; author rse; state Exp;
branches;
next 1.9;
1.9
date 2001.09.14.07.44.19; author rse; state Exp;
branches;
next 1.8;
1.8
date 2001.09.13.13.57.37; author thl; state Exp;
branches;
next 1.7;
1.7
date 2001.09.13.12.19.45; author thl; state Exp;
branches;
next 1.6;
1.6
date 2001.09.11.10.37.04; author thl; state Exp;
branches;
next 1.5;
1.5
date 2001.09.10.09.48.48; author thl; state Exp;
branches;
next 1.4;
1.4
date 2001.09.09.15.55.08; author rse; state Exp;
branches;
next 1.3;
1.3
date 2001.09.06.16.28.38; author rse; state Exp;
branches;
next 1.2;
1.2
date 2001.08.15.10.36.03; author rse; state Exp;
branches;
next 1.1;
1.1
date 2001.08.15.07.52.44; author rse; state Exp;
branches;
next ;
desc
@@
1.32
log
@large file support for l2_ch_file, motivated by the Kolab-Konsortium
@
text
@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
@
1.31
log
@Adjust copyright messages for new year 2005.
@
text
@d60 19
@
1.30
log
@resolve trunc symbol conflict; make sure configure checks for isnan and isinf and l2_ut_format picks up the results
@
text
@d3 3
a5 3
dnl ## Copyright (c) 2001-2004 Cable & Wireless
dnl ## Copyright (c) 2001-2004 The OSSP Project
dnl ## Copyright (c) 2001-2004 Ralf S. Engelschall
d36 3
a38 3
[Copyright (c) 2001-2004 The OSSP Project
Copyright (c) 2001-2004 Ralf S. Engelschall (rse@@engelschall.com)
Copyright (c) 2001-2004 Cable & Wireless ])
@
1.29
log
@- Add va_copy() Autoconf checks to make va_list copying portable.
- Accept new GNU Bison 2.0
@
text
@d60 1
a60 1
AC_CHECK_FUNCS(inet_aton inet_pton inet_ntoa inet_ntop snprintf vsnprintf setitimer)
@
1.28
log
@Adjust copyright messages for new year 2005.
@
text
@d49 2
a50 2
AC_CHECK_BISON(BISON, 1.875, [1.[[8-9]][[0-9]]|1.[[8-9]][[0-9]][[0-9]]])
AC_CHECK_FLEX(FLEX, 2.5.10, [2.5.1[[0-9]]|2.5.[[2-9]][[0-9]]|2.[[6-9]].*])
d62 2
@
1.27
log
@- remove trailing whitespaces
- adjust copyright messages
- consistently use "OSSP l2"
- consistently talk about "Flexible Logging"
- use standard OSSP ASCII-art
@
text
@d3 3
a5 3
dnl ## Copyright (c) 2001-2003 Cable & Wireless Deutschland GmbH
dnl ## Copyright (c) 2001-2003 The OSSP Project (http://www.ossp.org/)
dnl ## Copyright (c) 2001-2003 Ralf S. Engelschall
d36 3
a38 3
[Copyright (c) 2001-2003 The OSSP Project (http://www.ossp.org/)
Copyright (c) 2001-2003 Ralf S. Engelschall (rse@@engelschall.com)
Copyright (c) 2001-2003 Cable & Wireless Deutschland GmbH])
@
1.26
log
@upgrade to the latest Flex & Bison & Autoconf combo
@
text
@d2 4
a5 3
dnl ## OSSP l2 - Logging Library
dnl ## Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/)
dnl ## Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/)
d7 1
a7 1
dnl ## This file is part of OSSP L2, a flexible logging library which
d31 1
a31 1
AC_PREREQ(2.54)
d34 1
a34 1
OSSP l2, Logging Library, dnl
d36 3
a38 2
[Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/)
Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/)])
d55 1
a55 1
fi
d71 1
a71 1
AC_CHECK_EXTLIB([Dmalloc], dmalloc, dmalloc_debug, dmalloc.h,
@
1.25
log
@ok, with the latest and greatest plus a little tweaking it works again.
@
text
@d47 1
a47 1
AC_CHECK_BISON(BISON, 1.75, [1.7[[5-9]]|1.[[8-9]][[0-9]]])
@
1.24
log
@upgrade to OSSP sa 0.9.2 and release OSSP l2 0.9.1 with it
@
text
@d30 1
a30 1
AC_PREREQ(2.53)
d47 1
a47 1
AC_CHECK_BISON(BISON, 1.30, [1.3[[0-9]]|1.[[4-9]][[0-9]]])
@
1.23
log
@polish for release
@
text
@d47 2
a48 2
AC_CHECK_BISON(BISON, 1.30, [1.3[[0-9]]|1.[[4-9]]])
AC_CHECK_FLEX(FLEX, 2.5.10, [2.5.1[[0-9]]|2.[[6-9]].*])
@
1.22
log
@upgrade to flex-beta 2.5.10 (incompatible, so require it)
@
text
@d2 1
a2 1
dnl ## L2 - OSSP Logging Library
d7 1
a7 1
dnl ## can be found at http://www.ossp.org/pkg/l2/.
@
1.21
log
@Upgrade tool checks to new strategy which supports
the new OpenPKG "flex" package.
@
text
@d47 2
a48 52
dnl # check for developer tools:
dnl # GNU Bison and GNU Flex
if test ".$enable_maintainer" = .yes; then
dnl # check for GNU Bison >= 1.30
bison_version=""
for prog in bison bison-beta bison-alpha bison-snap; do
AC_PATH_PROG(BISON, $prog, NA)
if test ".$BISON" != .NA; then
bison_version=`($BISON --version | head -1 | sed -e 's;^[[^0-9]]*\([[0-9]][[0-9.]]*\).*;\1;') 2>/dev/null`
case "$bison_version" in
1.3[[0-9]] | 1.[[4-9]] ) break ;;
* ) BISON="NA"; unset ac_cv_path_BISON ;;
esac
else
unset ac_cv_path_BISON
fi
done
if test ".$BISON" = .NA; then
if test ".$bison_version" != .; then
AC_ERROR([found GNU Bison version $bison_version; require version >= 1.30])
else
AC_ERROR([require GNU Bison version >= 1.30])
fi
fi
dnl # check for GNU Flex >= 2.5.6
flex_version=""
for prog in flex flex-beta flex-alpha flex-snap; do
AC_PATH_PROG(FLEX, $prog, NA)
if test ".$FLEX" != .NA; then
flex_version=`($FLEX --version | head -1 | sed -e 's;^[[^0-9]]*\([[0-9]][[0-9.]]*\).*;\1;') 2>/dev/null`
case "$flex_version" in
2.5.[[6-9]] | 2.5.1[[0-9]] | 2.[[6-9]].* ) break ;;
* ) FLEX="NA"; unset ac_cv_path_FLEX ;;
esac
else
unset ac_cv_path_FLEX
fi
done
if test ".$FLEX" = .NA; then
if test ".$flex_version" != .; then
AC_ERROR([found GNU Flex version $flex_version; require version >= 2.5.6])
else
AC_ERROR([require GNU Flex version >= 2.5.6])
fi
fi
else
dnl # disable the use of the tools, but still allow manual override
test ".$BISON" = . && BISON=true
AC_PATH_PROG(BISON, bison, true)
test ".$FLEX" = . && FLEX=true
AC_PATH_PROG(FLEX, flex, true)
fi
@
1.20
log
@upgrade to Autoconf 2.53 environment
@
text
@d50 14
a63 1
AC_PATH_PROG(BISON, bison, NA)
d65 5
a69 1
AC_ERROR([require GNU Bison])
d71 14
a84 1
AC_PATH_PROG(FLEX, flex, NA)
d86 5
a90 1
AC_ERROR([require GNU Flex])
a91 5
flex_version=`(flex --version 2>/dev/null | awk '{ print $3; }')`
case "$flex_version" in
2.[[5-6]].[[6-9]] ) ;;
* ) AC_ERROR([found GNU Flex version $flex_version; require version >= 2.5.6 (DEVELOPER VERSION!)]) ;;
esac
d93 2
d96 2
a97 1
AC_PATH_PROG(FLEX, flex, true)
@
1.19
log
@fix name
@
text
@d30 2
a31 4
AC_PREREQ(2.52)dnl
AC_REVISION(1.0)
AC_INIT(README)
a36 1
AC_CONFIG_HEADER(l2_config.h)
d40 1
a40 1
AC_SET_MAKE
d80 1
a80 1
AC_DEFINE(HAVE_VSYSLOG_USVALIST)
d87 2
a88 1
AC_CHECK_EXTLIB([Dmalloc], dmalloc, dmalloc_debug, dmalloc.h, AC_DEFINE(WITH_DMALLOC))
d90 4
a93 7
AC_OUTPUT(dnl
Makefile dnl
l2.h dnl
l2-config dnl
,dnl
chmod a+x l2-config
)dnl
@
1.18
log
@integrate first cut of l2syslog stuff
@
text
@d35 1
a35 1
L2, Logging Library, dnl
@
1.17
log
@bump copyright year
@
text
@d81 6
@
1.16
log
@Remove all half-done C++ things. Because in the near future we neither
will have time to finish this nor do we really want it to be finished.
So kick out all of this stuff. If we later want to add real C++ support,
we can easily apply this again.
@
text
@d3 2
a4 2
dnl ## Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
dnl ## Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)
d37 2
a38 2
[Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)])
@
1.15
log
@Add --enable-maintainer mode and only use Bison and Flex if this mode
enabled. Else we assume end user mode where the scanner and parser files
have to be already pre-generated. Additionally check the version of the
installed GNU Flex to make sure developers to not think the 1997'er Flex
version 2.5.4 is sufficient.
@
text
@a42 26
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)
a44 3
if test ".$with_cxx" = .yes; then
AC_PROG_CXX
fi
@
1.14
log
@fix Autoconf stuff after recent SA changes
@
text
@d76 1
d78 21
@
1.13
log
@Bug fixes, correction of sys/type.h inclusion, rid of warning errors.
@
text
@d89 1
a89 1
AC_CHECK_SA
@
1.12
log
@Make usage of setitimer(2) dependent on if it exists on the target system.
Quick hack, future fix will replace lost functionality by issuing a call to
alarm(3) instead.
@
text
@d84 2
@
1.11
log
@Upgrade to latest OSSP SA snapshot.
This time by using SA_PREFIX to hide SA inside the l2_util_ namespace prefix.
@
text
@d84 1
a84 1
AC_CHECK_FUNCS(inet_aton inet_pton inet_ntoa inet_ntop snprintf vsnprintf)
@
1.10
log
@Upgrade to the latest version of the Socket Abstraction (SA) library
which is now maintained externally and will be comitted into its own
module soon. This upgrade fixes the UDP protocol handling.
@
text
@d87 1
@
1.9
log
@we require Autoconf 2.52
@
text
@d86 2
@
1.8
log
@headline polishing
@
text
@d30 1
a30 1
AC_PREREQ(2.13)dnl
@
1.7
log
@portability fixes for solaris
@
text
@a41 1
echo ""
@
1.6
log
@add Dmalloc support to L2
@
text
@d78 7
@
1.5
log
@add version information to public API
@
text
@d80 2
@
1.4
log
@ops, l2_ut_sa.c now requires more Autoconf magic
@
text
@d82 1
@
1.3
log
@Add a copy of our SA library to L2 in order to simplify socket channel
and socket monitor program.
@
text
@d78 1
a78 1
AC_CHECK_FUNCS(inet_aton inet_pton)
@
1.2
log
@Fix more ossp.com references by replacing with the
correct domain name ossp.org.
@
text
@d78 1
@
1.1
log
@Rename configure.in to configure.ac
@
text
@d7 1
a7 1
dnl ## can be found at http://www.ossp.com/pkg/l2/.
@