ossp-pkg/cfg/configure.ac
dnl ##
dnl ## OSSP cfg - Configuration Parsing
dnl ## Copyright (c) 2002-2006 Ralf S. Engelschall <rse@engelschall.com>
dnl ## Copyright (c) 2002-2006 The OSSP Project <http://www.ossp.org/>
dnl ##
dnl ## This file is part of OSSP cfg, a configuration parsing library which
dnl ## can be found at http://www.ossp.org/pkg/lib/cfg/.
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.54)
AC_INIT
CFG_VERSION_STR=`./shtool version -l c -d long cfg_vers.c`
./shtool echo -e "Configuring %BOSSP cfg%b (Configuration Parsing), version %B${CFG_VERSION_STR}%b"
AC_SUBST(CFG_VERSION_STR)
AC_PROG_MAKE_SET
AC_PROG_CC
AC_CHECK_DEBUGGING
sinclude(libtool.m4)
AC_PROG_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]].*])
sinclude(cfg.ac)
CFG_CHECK_ALL
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 if building with Dmalloc]))
if test ".$with_dmalloc" = .yes; then
CFLAGS=`echo "X$CFLAGS" | sed -e 's;^X;;' -e 's; -Wredundant-decls;;'`
fi
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([Makefile cfg-config])
AC_CONFIG_COMMANDS([adjustment], [chmod a+x cfg-config])
AC_OUTPUT