OSSP CVS Repository

ossp - Check-in [1386]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1386
Date: 2001-Nov-20 21:02:21 (local)
2001-Nov-20 20:02:21 (UTC)
User:rse
Branch:
Comment: Apply standard environment for OSSP libraries.
Tickets:
Inspections:
Files:
ossp-pkg/var/.cvsignore      1.2 -> 1.3     11 inserted, 0 deleted
ossp-pkg/var/Makefile      1.8->removed
ossp-pkg/var/Makefile.in      added-> 1.1
ossp-pkg/var/VERSION      added-> 1.1
ossp-pkg/var/configure.ac      added-> 1.1
ossp-pkg/var/devtool      added-> 1.1
ossp-pkg/var/devtool.conf      added-> 1.1
ossp-pkg/var/devtool.func      added-> 1.1
ossp-pkg/var/var-config.in      added-> 1.1
ossp-pkg/var/var-config.pod      added-> 1.1

ossp-pkg/var/.cvsignore 1.2 -> 1.3

--- .cvsignore   2001/11/13 12:37:13     1.2
+++ .cvsignore   2001/11/20 20:02:21     1.3
@@ -1,2 +1,13 @@
 var_test
 var.3
+shtool
+config.guess
+config.sub
+ltmain.sh
+libtool.m4
+configure
+config.h.in
+config.h
+Makefile
+var-config
+var-config.1


ossp-pkg/var/Makefile 1.8 -> 1.9



ossp-pkg/var/Makefile.in -> 1.1

*** /dev/null    Sat Nov 23 01:31:24 2024
--- -    Sat Nov 23 01:31:38 2024
***************
*** 0 ****
--- 1,126 ----
+ ##
+ ##  VAR - OSSP variable expression library.
+ ##  Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
+ ##  Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)
+ ##
+ ##  This file is part of OSSP VAR, an extensible data serialization
+ ##  library which can be found at http://www.ossp.org/pkg/var/.
+ ##
+ ##  Permission to use, copy, modify, and distribute this software for
+ ##  any purpose with or without fee is hereby granted, provided that
+ ##  the above copyright notice and this permission notice appear in all
+ ##  copies.
+ ##
+ ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ##  SUCH DAMAGE.
+ ##
+ ##  Makefile.in: make(1) build procedure
+ ##
+ 
+ @SET_MAKE@
+ 
+ DESTDIR     =
+ prefix      = @prefix@
+ exec_prefix = @exec_prefix@
+ bindir      = @bindir@
+ libdir      = @libdir@
+ includedir  = @includedir@
+ mandir      = @mandir@
+ 
+ CC          = @CC@
+ CPPFLAGS    = @CPPFLAGS@
+ CFLAGS      = @DEFS@ @CFLAGS@
+ LDFLAGS     = @LDFLAGS@
+ LIBS        = @LIBS@
+ RM          = rm -f
+ SHTOOL      = ./shtool
+ LIBTOOL     = ./libtool
+ POD2MAN     = pod2man
+ 
+ LIB_NAME    = libvar.la
+ LIB_OBJS    = var.lo
+ 
+ TST_NAME    = var_test
+ TST_OBJS    = var_test.o
+ 
+ MAN_NAME    = var-config.1 var.3
+ 
+ #   helper macro for generating a Unix manual page
+ _MANPAGE = \
+     V1=`$(SHTOOL) version -ltxt -dshort VERSION`; \
+     V2=`$(SHTOOL) version -ltxt -dlong VERSION`; \
+     D=`$(SHTOOL) version -ltxt -dlong VERSION |\
+        sed -e 's;.*(;;' -e 's;).*;;'`; \
+     $(POD2MAN) --section=$${SEC} --center="$${ONELINE}" \
+                --release="$$D" --date="$${NAME} $$V1" $(S)$${BASENAME}.pod |\
+     sed -e "s;VAR_VERSION_STR;$$V2;" >$${BASENAME}.$${SEC}
+ 
+ .SUFFIXES:
+ .SUFFIXES: .c .o .lo
+ 
+ all: $(LIB_NAME) $(TST_NAME) $(MAN_NAME)
+ 
+ .c.o:
+        $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+ .c.lo:
+        @$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+ 
+ $(LIB_NAME): $(LIB_OBJS)
+        @$(LIBTOOL) --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \
+            -version-info `$(SHTOOL) version -l txt -d libtool VERSION`
+ 
+ $(TST_NAME): $(TST_OBJS) $(LIB_NAME)
+        @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(TST_NAME) $(TST_OBJS) $(LIB_NAME) $(LIBS)
+ 
+ var-config.1: var-config.pod VERSION
+        BASENAME="var-config"; SEC=1; \
+        NAME="VAR"; ONELINE="Variable Expansion Library"; \
+        $(_MANPAGE)
+ var.3: var.pod VERSION
+        BASENAME="var"; SEC=3; \
+        NAME="VAR"; ONELINE="Variable Expansion Library"; \
+        $(_MANPAGE)
+ 
+ check: $(TST_NAME)
+        @$(LIBTOOL) --mode=execute ./$(TST_NAME) && echo "All tests succeeed."
+ 
+ install:
+        $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(bindir)
+        $(SHTOOL) install -c -m 755 var-config $(DESTDIR)$(bindir)/
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)
+        @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libvar.la $(DESTDIR)$(libdir)/
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir)
+        $(SHTOOL) install -c -m 644 var.h $(DESTDIR)$(includedir)/
+        $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(mandir)/man1
+        $(SHTOOL) install -c -m 644 var-config.1 $(DESTDIR)$(mandir)/man1/
+        $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(mandir)/man3
+        $(SHTOOL) install -c -m 644 var.3 $(DESTDIR)$(mandir)/man3/
+ 
+ clean:
+        -$(RM) $(LIB_NAME) $(LIB_OBJS)
+        -$(RM) $(TST_NAME) $(TST_OBJS)
+ 
+ distclean: clean
+        -$(RM) config.log config.status config.cache
+        -$(RM) Makefile config.h
+        -$(RM) libtool
+        -$(RM) -r .libs >/dev/null 2>&1
+        -$(RM) *.o *.lo *.a
+        -$(RM) var-config
+ 
+ realclean: distclean
+        -$(RM) configure config.h.in
+        -$(RM) shtool
+        -$(RM) ltmain.sh libtool.m4 config.guess config.sub
+        -$(RM) var-config.1 var.3
+ 


ossp-pkg/var/VERSION -> 1.1

*** /dev/null    Sat Nov 23 01:31:24 2024
--- -    Sat Nov 23 01:31:38 2024
***************
*** 0 ****
--- 1,6 ----
+ 
+   VERSION -- Version Information for OSSP VAR (syntax: Text)
+   [automatically generated and maintained by GNU shtool]
+ 
+   This is OSSP VAR, Version 0.1.0 (20-Nov-2001)
+ 


ossp-pkg/var/configure.ac -> 1.1

*** /dev/null    Sat Nov 23 01:31:24 2024
--- -    Sat Nov 23 01:31:38 2024
***************
*** 0 ****
--- 1,48 ----
+ dnl ##
+ dnl ##  VAR - OSSP variable expression 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 VAR, an extensible data serialization
+ dnl ##  library which can be found at http://www.ossp.org/pkg/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 ##
+ 
+ AC_PREREQ(2.52)
+ AC_REVISION(1.0)
+ AC_INIT(var.h)
+ 
+ AC_DIVERT_PUSH(NOTICE)
+ V=`./shtool version -l txt -d long VERSION`
+ ./shtool echo -e "Configuring %BOSSP VAR%b, Version %B${V}%b"
+ AC_DIVERT_POP()
+ 
+ AC_SET_MAKE
+ AC_PROG_CC
+ 
+ sinclude(libtool.m4)
+ AC_PROG_LIBTOOL
+ 
+ AC_CONFIG_HEADERS(config.h)
+ AC_CONFIG_FILES(Makefile var-config)
+ AC_OUTPUT
+ 


ossp-pkg/var/devtool -> 1.1

*** /dev/null    Sat Nov 23 01:31:24 2024
--- -    Sat Nov 23 01:31:38 2024
***************
*** 0 ****
--- 1,47 ----
+ #!/bin/sh
+ ##
+ ##  devtool -- Development Tool
+ ##  Copyright (c) 2001 Ralf S. Engelschall <rse@engelschall.com> 
+ ##
+ 
+ if [ $# -eq 0 ]; then
+     echo "devtool:USAGE: devtool <command> [<arg> ...]" 1>&2
+     exit 1
+ fi
+ 
+ cmd="$1"
+ shift
+ 
+ devtoolfunc="./devtool.func"
+ 
+ if [ ! -f devtool.conf ]; then
+     echo "devtool:ERROR: no devtool.conf in current directory" 1>&2
+     exit 1
+ fi
+ 
+ cmdline=`grep "^%$cmd" devtool.conf`
+ if [ ".$cmdline" = . ]; then
+     echo "devtool:ERROR: command $cmd not found in devtool.conf" 1>&2
+     exit 1
+ fi
+ 
+ if [ ".$TMPDIR" != . ]; then
+     tmpdir="$TMPDIR"
+ elif [ ".$TEMPDIR" != . ]; then
+     tmpdir="$TEMPDIR"
+ else
+     tmpdir="/tmp"
+ fi
+ tmpfile="$tmpdir/rc.$$.tmp"
+ 
+ rm -f $tmpfile
+ touch $tmpfile
+ echo ". $devtoolfunc" >>$tmpfile
+ ( sed <devtool.conf -e "1,/^%common/d" -e '/^%.*/,$d'
+   sed <devtool.conf -e "1,/^%$cmd/d" -e '/^%.*/,$d' ) |\
+ sed -e 's;\([  ]\)@\([a-zA-Z_][a-zA-Z0-9_]*\);\1devtool_\2;' >>$tmpfile
+ 
+ sh $tmpfile "$@"
+ 
+ rm -f $tmpfile >/dev/null 2>&1 || true
+ 


ossp-pkg/var/devtool.conf -> 1.1

*** /dev/null    Sat Nov 23 01:31:24 2024
--- -    Sat Nov 23 01:31:38 2024
***************
*** 0 ****
--- 1,32 ----
+ ##
+ ##  devtool.conf -- Development Tool Configuration
+ ##
+ 
+ %autogen
+     @autogen shtool   1.5.4 "1.5.*" all
+     @autogen libtool  1.4.2 "1.4*"
+     @autogen autoconf 2.52  "2.5.*"
+ 
+ %autoclean
+     @autoclean shtool
+     @autoclean libtool
+     @autoclean autoconf
+ 
+ %configure
+     ./configure \
+         --prefix=/tmp/var \
+         --disable-shared \
+         --enable-maintainer \
+         --enable-debug \
+         "$@"
+ 
+ %version
+     ./shtool version -l txt -n "OSSP VAR" -p "var_" -e VERSION
+ 
+ %dist
+     make distclean >/dev/null 2>&1
+     ./shtool fixperm -v .
+     V=`./shtool version -l txt -d short VERSION`
+     ./shtool tarball -o var-${V}.tar.gz -d var-${V} -u ossp -g ossp \
+                      -e 'CVS,\.cvsignore,\.[ao],^\.,devtool.conf' -c 'gzip --best' .
+ 


ossp-pkg/var/devtool.func -> 1.1

*** /dev/null    Sat Nov 23 01:31:24 2024
--- -    Sat Nov 23 01:31:38 2024
***************
*** 0 ****
--- 1,72 ----
+ ##
+ ##  devtool.func -- Development Tool Functions
+ ##  Copyright (c) 2001 Ralf S. Engelschall <rse@engelschall.com> 
+ ##
+ 
+ devtool_require () {
+     t="$1"; o="$2"; p="$3"; e="$4"; a="$5"
+     v=`($t $o | head -1 | awk "{ print \\\$$p; }") 2>/dev/null`
+     if [ ".$v" = . ]; then
+         echo "devtool:ERROR: unable to determine version of $t" 1>&2
+         exit 1
+     fi
+     case "$v" in
+         $e )
+             ;;
+         $a )
+             echo "devtool:WARNING: $t version $v still accepted, although expected $e." 1>&2
+             ;;
+         * )
+             echo "devtool:ERROR: $t version $e expected, but found $v." 1>&2
+             exit 1
+             ;;
+     esac
+     echo "$v"
+ }
+ 
+ devtool_autogen () {
+     tool=$1
+     shift
+     case $tool in
+         autoconf )
+             autoconf_version=`devtool_require autoconf --version 4 "$1" "$2"`
+             echo "generating (GNU Autoconf $autoconf_version): configure config.h.in"
+             autoconf
+             autoheader 2>&1 | grep -v "is unchanged"
+             ;;
+         libtool )
+             libtoolize_version=`devtool_require libtoolize --version 4 "$1" "$2"`
+             echo "generating (GNU Libtool $libtoolize_version): ltmain.sh, libtool.m4, config.guess, config.sub"
+             libtoolize --force --copy >/dev/null 2>&1
+             cp `libtoolize --force --copy --dry-run | grep "add the contents of" |\
+                 sed -e 's;^[^\`]*\`;;' -e "s;'.*;;"` libtool.m4
+             ;;
+         shtool )
+             shtoolize_version=`devtool_require shtoolize -v 3 "$1" "$2"`
+             echo "generating (GNU Shtool $shtoolize_version): shtool"
+             shift
+             shift
+             shtoolize -q "$@"
+             ;;
+     esac
+ }
+ 
+ devtool_autoclean () {
+     tool=$1
+     shift
+     case $tool in
+         autoconf )
+             echo "removing: configure config.h.in"
+             rm -f configure config.h.in
+             ;;
+         libtool )
+             echo "removing: ltmain.sh libtool.m4 config.guess config.sub"
+             rm -f ltmain.sh libtool.m4 config.guess config.sub
+             ;;
+         shtool )
+             echo "removing: shtool"
+             rm -f shtool
+             ;;
+     esac
+ }
+ 


ossp-pkg/var/var-config.in -> 1.1

*** /dev/null    Sat Nov 23 01:31:24 2024
--- -    Sat Nov 23 01:31:38 2024
***************
*** 0 ****
--- 1,130 ----
+ #!/bin/sh
+ ##
+ ##  FOO - OSSP Foo Library
+ ##  Copyright (c) 2001 The OSSP Project <http://www.ossp.org/>
+ ##
+ ##  This file is part of OSSP foo, an example library 
+ ##  which can be found at http://www.ossp.org/pkg/foo/.
+ ##
+ ##  ...[whole license (BSD) or license summary and reference (GPL)]...
+ ##
+ ##  foo-config.in: library build utility
+ ##
+ 
+ DIFS=' 
+ '
+ 
+ #   tool
+ tool_name="foo-config"
+ 
+ #   library version
+ lib_name="OSSP FOO"
+ lib_version="@FOO_VERSION_STR@"
+ 
+ #   build paths
+ prefix="@prefix@"
+ exec_prefix="@exec_prefix@"
+ bindir="@bindir@"
+ libdir="@libdir@"
+ includedir="@includedir@"
+ mandir="@mandir@"
+ datadir="@datadir@"
+ 
+ #   build options
+ cflags="@CFLAGS@"
+ ldflags="@LDFLAGS@"
+ libs="@LIBS@"
+ 
+ #   option defaults
+ help=no
+ version=no
+ 
+ usage="$tool_name"
+ usage="$usage [--help] [--version] [--all]"
+ usage="$usage [--prefix] [--exec-prefix] [--bindir] [--libdir] [--includedir] [--mandir] [--datadir]"
+ usage="$usage [--cflags] [--ldflags] [--libs]"
+ if [ $# -eq 0 ]; then
+     echo "$tool_name:Error: Invalid option" 1>&2
+     echo "$tool_name:Usage: $usage" 1>&2
+     exit 1
+ fi
+ output=''
+ output_extra=''
+ all=no
+ prev=''
+ OIFS="$IFS" IFS="$DIFS"
+ for option
+ do
+     if [ ".$prev" != . ]; then
+         eval "$prev=\$option"
+         prev=''
+         continue
+     fi
+     case "$option" in
+         -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+            *) optarg='' ;;
+     esac
+     case "$option" in
+         --help|-h)
+             echo "Usage: $usage"
+             exit 0
+             ;;
+         --version|-v)
+             echo "$lib_name $lib_version"
+             exit 0
+             ;;
+         --all)
+             all=yes
+             ;;
+         --prefix)
+             output="$output $prefix"
+             ;;
+         --exec-prefix)
+             output="$output $exec_prefix"
+             ;;
+         --bindir)
+             output="$output $bindir"
+             ;;
+         --libdir)
+             output="$output $libdir"
+             ;;
+         --includedir)
+             output="$output $includedir"
+             ;;
+         --mandir)
+             output="$output $mandir"
+             ;;
+         --datadir)
+             output="$output $datadir"
+             ;;
+         --cflags)
+             output="$output -I$includedir"
+             output_extra="$output_extra $cflags"
+             ;;
+         --ldflags)
+             output="$output -L$libdir"
+             output_extra="$output_extra $ldflags"
+             ;;
+         --libs)
+             output="$output -lxds"
+             output_extra="$output_extra $libs"
+             ;;
+         * )
+             echo "$tool_name:Error: Invalid option" 1>&2
+             echo "$tool_name:Usage: $usage" 1>&2
+             exit 1;
+             ;;
+     esac
+ done
+ IFS="$OIFS"
+ if [ ".$prev" != . ]; then
+     echo "$tool_name:Error: missing argument to --`echo $prev | sed 's/_/-/g'`" 1>&2
+     exit 1
+ fi
+ if [ ".$output" != . ]; then
+     if [ ".$all" = .yes ]; then
+         output="$output $output_extra"
+     fi
+     echo $output
+ fi
+ 


ossp-pkg/var/var-config.pod -> 1.1

*** /dev/null    Sat Nov 23 01:31:24 2024
--- -    Sat Nov 23 01:31:38 2024
***************
*** 0 ****
--- 1,167 ----
+ ##
+ ##  VAR - OSSP variable expression library.
+ ##  Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
+ ##  Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)
+ ##
+ ##  This file is part of OSSP VAR, an extensible data serialization
+ ##  library which can be found at http://www.ossp.org/pkg/var/.
+ ##
+ ##  Permission to use, copy, modify, and distribute this software for
+ ##  any purpose with or without fee is hereby granted, provided that
+ ##  the above copyright notice and this permission notice appear in all
+ ##  copies.
+ ##
+ ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ##  SUCH DAMAGE.
+ ##
+ ##  var-config.pod: VAR library build utility manual page
+ ##
+ 
+ =pod
+ 
+ =head1 NAME
+ 
+ B<var-config> - VAR library build utility
+ 
+ =head1 VERSION
+ 
+ OSSP VAR VAR_VERSION_STR
+ 
+ =head1 SYNOPSIS
+ 
+ B<var-config>
+ [B<--help>]
+ [B<--version>]
+ [B<--all>]
+ [B<--prefix>]
+ [B<--exec-prefix>]
+ [B<--bindir>]
+ [B<--libdir>]
+ [B<--includedir>]
+ [B<--mandir>]
+ [B<--datadir>]
+ [B<--acdir>]
+ [B<--cflags>]
+ [B<--ldflags>]
+ [B<--libs>]
+ [B<--libs++>]
+ 
+ =head1 DESCRIPTION
+ 
+ The B<var-config> program is a little helper utility for easy configuring and
+ building applications based on the var(3) library.  It can be used to query the
+ C compiler and linker flags which are required to correctly compile and link
+ the application against the var(3) library.
+ 
+ =head1 OPTIONS
+ 
+ B<var-config> accepts the following options:
+ 
+ =over 4
+ 
+ =item B<--help>
+ 
+ Prints the short usage information.
+ 
+ =item B<--version>
+ 
+ Prints the version number and date of the installed var(3) library.
+ 
+ =item B<--all>
+ 
+ Forces the output of all flags, that is, including extra flags which are not
+ B<VAR> specific.
+ 
+ =item B<--prefix>
+ 
+ Prints the installation prefix of architecture independent files
+ 
+ =item B<--exec-prefix>
+ 
+ Prints the installation prefix of architecture dependent files.
+ 
+ =item B<--bindir>
+ 
+ Prints the installation directory of binaries.
+ 
+ =item B<--libdir>
+ 
+ Prints the installation directory of libraries.
+ 
+ =item B<--includedir>
+ 
+ Prints the installation directory of include headers.
+ 
+ =item B<--mandir>
+ 
+ Prints the installation directory of manual pages.
+ 
+ =item B<--datadir>
+ 
+ Prints the installation directory of shared data.
+ 
+ =item B<--acdir>
+ 
+ Prints the installation directory of B<autoconf> data.
+ 
+ =item B<--cflags>
+ 
+ Prints the C compiler flags which are needed to compile the var(3)-based
+ application. The output is usually added to the C<CFLAGS> variable of the
+ applications C<Makefile>.
+ 
+ =item B<--ldflags>
+ 
+ Prints the linker flags (C<-L>) which are needed to link the application with
+ the var(3) library. The output is usually added to the C<LDFLAGS> variable of
+ the applications C<Makefile>.
+ 
+ =item B<--libs>
+ 
+ Prints the library flags (C<-l>) which are needed to link the application with
+ the C var(3) library. The output is usually added to the C<LIBS> variable of the
+ applications C<Makefile>.
+ 
+ =item B<--libs++>
+ 
+ Prints the library flags (C<-l>) which are needed to link the
+ application with the C++ var(3) library. The output is usually added to
+ the C<LIBS> variable of the applications C<Makefile>.
+ 
+ =back
+ 
+ =head1 EXAMPLE
+ 
+  CC      = cc
+  CFLAGS  = -O `var-config --cflags`
+  LDFLAGS = `var-config --ldflags`
+  LIBS    = -lm `var-config --libs`
+ 
+  all: foo
+  foo: foo.o
+      $(CC) $(LDFLAGS) -o foo foo.o $(LIBS)
+  foo.o: foo.c
+      $(CC) $(CFLAGS) -c foo.c
+ 
+ =head1 SEE ALSO
+ 
+ var(3), cc(1).
+ 
+ =head1 AUTHOR
+ 
+  Ralf S. Engelschall
+  rse@engelschall.com
+  www.engelschall.com
+ 
+ =cut
+ 

CVSTrac 2.0.1