|
|
| version 1.1, 2015/09/03 18:05:38 | version 1.25, 2018/10/15 15:41:45 |
|---|---|
| Line 1 | Line 1 |
| dnl Autoconf initialisation | dnl Autoconf initialisation |
| AC_PREREQ(2.59) | AC_PREREQ(2.59) |
| AC_INIT(parser, 3.4.4b) | AC_INIT(parser, 3.4.6b) |
| AC_CONFIG_SRCDIR(README) | AC_CONFIG_SRCDIR(README) |
| dnl Automake Initialisation | dnl Automake Initialization |
| AM_INIT_AUTOMAKE | AM_INIT_AUTOMAKE |
| Line 61 AC_SUBST(dll_extension) | Line 61 AC_SUBST(dll_extension) |
| dnl Misc arguments | dnl Misc arguments |
| AC_ARG_WITH(build-warnings, [ --with-build-warnings to enable build-time compiler warnings if gcc is used], | AC_ARG_WITH(build-warnings, [ --with-build-warnings to enable build-time compiler warnings if gcc is used], |
| AC_MSG_WARN(enabling compiler warnings) | AC_MSG_WARN(enabling compiler warnings) |
| CXXFLAGS="$CXXFLAGS -W -Wall -Wstrict-prototypes -Wmissing-prototypes" | CXXFLAGS="$CXXFLAGS -Wextra -Wall -Wno-parentheses" |
| ) | |
| AC_ARG_WITH(coverage, [ --with-coverage to enable gcov code coverage support], | |
| AC_MSG_WARN(enabling gcov support) | |
| CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` | |
| CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O[0-9]*//g'` | |
| CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage" | |
| CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage" | |
| LDFLAGS="$LDFLAGS -lgcov" | |
| ) | |
| AC_ARG_WITH(profiler, [ --with-profiler to enable gprof code profiler support], | |
| AC_MSG_WARN(enabling gprof support) | |
| CFLAGS="$CFLAGS -O0 -pg -g" | |
| CXXFLAGS="$CXXFLAGS -O0 -pg -g" | |
| ) | ) |
| AC_ARG_WITH(assertions, [ --with-assertions to enable assertions], | AC_ARG_WITH(assertions, [ --with-assertions to enable assertions], |
| Line 167 AC_ARG_WITH(pcre,[ --with-pcre=D | Line 182 AC_ARG_WITH(pcre,[ --with-pcre=D |
| if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then | if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then |
| PCRE_OK="yes" | PCRE_OK="yes" |
| else | else |
| PCRE_LIBS="-L$PCRE -lpcre" | PCRE_LIBS="-L$PCRE/lib -lpcre" |
| fi | fi |
| if test "$PCRE" = "yes"; then | if test "$PCRE" = "yes"; then |
| Line 216 AC_ARG_WITH(xml,[ --with-xml=D | Line 231 AC_ARG_WITH(xml,[ --with-xml=D |
| AC_MSG_WARN([--with-xml value was not specified, hoping linker would find it]) | AC_MSG_WARN([--with-xml value was not specified, hoping linker would find it]) |
| else | else |
| XML_INCLUDES="-I$XML/include -I$XML/include/libxml2" | XML_INCLUDES="-I$XML/include -I$XML/include/libxml2" |
| XML_LIBS="-L$XML/lib $XML_LIBS" | |
| if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \ | if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \ |
| -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then | -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then |
| Line 406 PA_CHECK_SIGSETJMP | Line 422 PA_CHECK_SIGSETJMP |
| dnl see comment above | dnl see comment above |
| AC_LANG_PUSH(C++) | AC_LANG_PUSH(C++) |
| PA_CHECK_MATH_FUNCS_ONE_ARG(trunc round sign) | PA_CHECK_MATH_FUNCS_ONE_ARG(trunc round sign isfinite) |
| AC_LANG_POP | AC_LANG_POP |