OSSP CVS Repository

ossp - ossp-pkg/pcre/configure.ac 1.3
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/pcre/configure.ac 1.3
dnl ##
dnl ##   Autoconf specification for PCRE library
dnl ##

AC_PREREQ(2.53)
AC_INIT

SHTOOL="./shtool"
AC_SUBST(SHTOOL)
T_MD=`$SHTOOL echo -e %B 2>/dev/null`
T_ME=`$SHTOOL echo -e %b 2>/dev/null`
PCRE_MAJOR=`grep '#define PCRE_MAJOR' pcre.h | awk '{ print $3; }'`
PCRE_MINOR=`grep '#define PCRE_MINOR' pcre.h | awk '{ print $3; }'`
PCRE_VERSION="$PCRE_MAJOR.$PCRE_MINOR"
AC_SUBST(PCRE_VERSION)
echo "Configuring ${T_MD}OSSP pcre${T_ME} (Perl-Compatible Regular Expressions) ${T_MD}${PCRE_VERSION}${T_ME}"
echo "Copyright (c) 1997-2002 Philip Hazel <ph10@cam.ac.uk>, All rights reserved."
echo "Copyright (c) 1997-2002 University of Cambridge, All rights reserved."
echo "Copyright (c) 1999-2002 Ralf S. Engelschall <rse@engelschall.com>"

AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_CPP

AC_ARG_ENABLE(utf8,dnl
[  --enable-utf8           enable UTF8 support (incomplete)],
enable_utf8="$enableval",
enable_utf8=yes
)dnl
if test ".$enable_utf8" = .yes; then
    if test ".$CFLAGS" = .; then
        CFLAGS="-DSUPPORT_UTF8"
    else
        CFLAGS="$CFLAGS -DSUPPORT_UTF8"
    fi
fi

AC_CHECK_FUNCS(memmove strerror)

sinclude(libtool.m4)
AC_PROG_LIBTOOL

AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([Makefile pcre-config])
AC_CONFIG_COMMANDS([adjustment], [chmod a+x pcre-config])
AC_OUTPUT


CVSTrac 2.0.1