head 1.16; access; symbols LMTP2NNTP_1_4_1:1.16 LMTP2NNTP_1_4_0:1.16 VAR_1_1_3:1.16 VAR_1_1_2:1.15 VAR_1_1_1:1.15 LMTP2NNTP_1_3_0:1.15 LMTP2NNTP_1_3b2:1.15 LMTP2NNTP_1_3b1:1.15 LMTP2NNTP_1_3a3:1.15 LMTP2NNTP_1_3a2:1.15 LMTP2NNTP_1_3a1:1.15 VAR_1_1_0:1.15 VAR_1_0_0:1.13 LMTP2NNTP_1_2_0:1.12 LMTP2NNTP_1_2b4:1.12 LMTP2NNTP_1_2b3:1.12 LMTP2NNTP_1_2b2:1.12 LMTP2NNTP_1_2b1:1.12 LMTP2NNTP_1_2a8:1.12 LMTP2NNTP_1_2a7:1.12 LMTP2NNTP_1_2a6:1.12 LMTP2NNTP_1_2a5:1.12 LMTP2NNTP_1_2a4:1.12 VAR_0_9_0:1.10 LMTP2NNTP_1_2a3:1.7 OSSP_RC_SPEC:1.5; locks; strict; comment @# @; 1.16 date 2005.01.20.20.29.06; author rse; state Exp; branches; next 1.15; 1.15 date 2004.04.04.08.07.34; author rse; state Exp; branches; next 1.14; 1.14 date 2004.04.04.08.04.34; author rse; state Exp; branches; next 1.13; 1.13 date 2003.02.14.21.17.07; author rse; state Exp; branches; next 1.12; 1.12 date 2002.03.09.19.39.57; author rse; state Exp; branches; next 1.11; 1.11 date 2002.03.09.19.23.37; author rse; state Exp; branches; next 1.10; 1.10 date 2002.03.08.12.55.52; author rse; state Exp; branches; next 1.9; 1.9 date 2002.03.07.14.58.41; author rse; state Exp; branches; next 1.8; 1.8 date 2002.03.07.12.11.09; author rse; state Exp; branches; next 1.7; 1.7 date 2002.02.28.08.48.44; author rse; state Exp; branches; next 1.6; 1.6 date 2002.02.27.13.44.16; author rse; state Exp; branches; next 1.5; 1.5 date 2002.01.31.09.09.31; author rse; state Exp; branches; next 1.4; 1.4 date 2002.01.30.19.37.14; author rse; state Exp; branches; next 1.3; 1.3 date 2002.01.02.17.12.18; author rse; state Exp; branches; next 1.2; 1.2 date 2001.12.31.12.06.18; author rse; state Exp; branches; next 1.1; 1.1 date 2001.11.20.20.02.21; author rse; state Exp; branches; next ; desc @@ 1.16 log @Bumped year in copyright messages for new year 2005 @ text @dnl ## dnl ## OSSP var -- Variable Expansion dnl ## Copyright (c) 2001-2005 Ralf S. Engelschall dnl ## Copyright (c) 2001-2005 The OSSP Project (http://www.ossp.org/) dnl ## Copyright (c) 2001-2005 Cable & Wireless (http://www.cw.com/) dnl ## dnl ## This file is part of OSSP var, a variable expansion dnl ## library which can be found at http://www.ossp.org/pkg/lib/var/. 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.ac: GNU Autoconf source script dnl ## dnl # prerequisites, initialization and input control AC_PREREQ(2.53) AC_INIT V=`./shtool version -l txt -d long VERSION` ./shtool echo -e "Configuring %BOSSP var%b (Variable Expansion), version %B${V}%b" AC_CONFIG_SRCDIR(var.h) dnl # checks for build programs AC_PROG_MAKE_SET EN_PROG_CC AC_CHECK_DEBUGGING sinclude(libtool.m4) AC_PROG_LIBTOOL dnl # checks for platform environment AC_CHECK_FUNCS(snprintf) dnl # check for va_copy() AC_CHECK_VA_COPY dnl # checks for external libraries AC_CHECK_EXTLIB([OSSP ex], ex, __ex_ctx, ex.h, [AC_DEFINE(WITH_EX, 1, [Define to 1 if building with OSSP ex])]) AC_CHECK_EXTLIB([Dmalloc], dmalloc, dmalloc_debug, dmalloc.h, [AC_DEFINE(WITH_DMALLOC, 1, [Define to 1 if building with Dmalloc])]) dnl # output generation AC_CONFIG_HEADERS(config.h) AC_CONFIG_FILES([Makefile var-config]) AC_CONFIG_COMMANDS([adjustment], [chmod a+x var-config]) AC_OUTPUT @ 1.15 log @adjust copyrights @ text @d3 3 a5 3 dnl ## Copyright (c) 2001-2004 Ralf S. Engelschall dnl ## Copyright (c) 2001-2004 The OSSP Project (http://www.ossp.org/) dnl ## Copyright (c) 2001-2004 Cable & Wireless (http://www.cw.com/) @ 1.14 log @Provide Autoconf check (AC_CHECK_VA_COPY) for va_copy(d,s) macro and fallback implementations and now that we can be sure that va_copy() exists for us, use it in var_formatv() and ts.c instead of the direct assignments (which are not sufficiently portable). @ text @d3 3 a5 3 dnl ## Copyright (c) 2001-2003 Ralf S. Engelschall dnl ## Copyright (c) 2001-2003 The OSSP Project (http://www.ossp.org/) dnl ## Copyright (c) 2001-2003 Cable & Wireless Deutschland (http://www.cw.com/de/) @ 1.13 log @final polishing for release 1.0.0 @ text @d48 3 @ 1.12 log @require an ISO-C compliant compiler @ text @d3 3 a5 3 dnl ## Copyright (c) 2001-2002 Ralf S. Engelschall 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/) @ 1.11 log @upgrade to Autoconf 2.53 build environment @ text @d40 1 a40 1 AC_PROG_CC @ 1.10 log @polishing and copyright extension (add natural person) @ text @d31 3 a33 5 AC_PREREQ(2.52) AC_REVISION(1.0) AC_INIT(var.h) AC_DIVERT_PUSH(NOTICE) d35 2 a36 2 ./shtool echo -e "Configuring %BOSSP var%b (Variable Expansion), Version %B${V}%b" AC_DIVERT_POP() d38 2 a39 1 AC_SET_MAKE a41 1 d45 1 a46 2 AC_CHECK_EXTLIB([OSSP ex], ex, __ex_ctx, ex.h, [AC_DEFINE(WITH_EX)]) AC_CHECK_EXTLIB([Dmalloc], dmalloc, dmalloc_debug, dmalloc.h, AC_DEFINE(WITH_DMALLOC)) d48 7 d56 2 a57 1 AC_CONFIG_FILES(Makefile var-config) @ 1.9 log @- use our standard ts.[ch] test suite library - add support for Dmalloc facility @ text @d3 1 @ 1.8 log @New API functions var_format and var_formatv which provide a convinience interface to printf-style expansion and variable expansion. var_format is like a combination of snprintf(3) and var_expand(). Example: Assume the variable value context gives "bar" for ${ARRAY[7]}, then the call.. var_format(var, &tmp, 1, "foo${ARRAY[%d]}quux", 7);o ..results in tmp containing the malloc(3)'ed string "foobarquux". Thanks to Thomas L. for providing the hint to this functionality. @ text @d48 1 @ 1.7 log @URL fixing and additional documents @ text @d46 1 @ 1.6 log @style and text cleanups @ text @d7 1 a7 1 dnl ## library which can be found at http://www.ossp.org/pkg/var/. @ 1.5 log @fix naming @ text @d2 1 a2 1 dnl ## VAR - OSSP variable expression library. d6 1 a6 1 dnl ## This file is part of OSSP VAR, an extensible data serialization @ 1.4 log @add optional OSSP ex based exception handling support @ text @d36 1 a36 1 ./shtool echo -e "Configuring %BOSSP var%b (Variable Expansion Library), Version %B${V}%b" @ 1.3 log @bump copyright year @ text @d36 1 a36 1 ./shtool echo -e "Configuring %BOSSP Var%b (Variable Expansion), Version %B${V}%b" d41 1 d45 2 @ 1.2 log @style police ;) @ 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/) @ 1.1 log @Apply standard environment for OSSP libraries. @ text @d36 1 a36 1 ./shtool echo -e "Configuring %BOSSP VAR%b, Version %B${V}%b" @