--- parser3/configure.ac 2016/12/23 16:29:27 1.9 +++ parser3/configure.ac 2020/02/25 10:03:44 1.27 @@ -1,10 +1,10 @@ dnl Autoconf initialisation AC_PREREQ(2.59) -AC_INIT(parser, 3.4.5b) +AC_INIT(parser, 3.4.6b) AC_CONFIG_SRCDIR(README) -dnl Automake Initialisation +dnl Automake Initialization AM_INIT_AUTOMAKE @@ -61,10 +61,10 @@ AC_SUBST(dll_extension) dnl Misc arguments AC_ARG_WITH(build-warnings, [ --with-build-warnings to enable build-time compiler warnings if gcc is used], 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_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'` @@ -73,10 +73,10 @@ AC_ARG_WITH(coverage, [ --with-coverage LDFLAGS="$LDFLAGS -lgcov" ) -AC_ARG_WITH(profiler, [ --with-profiler to enable gprof code profiler support], +AC_ARG_WITH(profiler, [ --with-profiler to enable gprof code profiler support], AC_MSG_WARN(enabling gprof support) - CFLAGS="$CFLAGS -pg" - CXXFLAGS="$CXXFLAGS -pg" + CFLAGS="$CFLAGS -O0 -pg -g" + CXXFLAGS="$CXXFLAGS -O0 -pg -g" ) AC_ARG_WITH(assertions, [ --with-assertions to enable assertions], @@ -182,7 +182,7 @@ AC_ARG_WITH(pcre,[ --with-pcre=D if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then PCRE_OK="yes" else - PCRE_LIBS="-L$PCRE -lpcre" + PCRE_LIBS="-L$PCRE/lib -lpcre" fi if test "$PCRE" = "yes"; then @@ -231,6 +231,7 @@ AC_ARG_WITH(xml,[ --with-xml=D AC_MSG_WARN([--with-xml value was not specified, hoping linker would find it]) else 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 \ -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then @@ -273,6 +274,11 @@ AC_ARG_WITH(mailreceive,[ --with-mailre MIME="" MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null` MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null` + if test -z "$MIME_LIBS"; then + GMIME="gmime-3.0" + MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null` + MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null` + fi AC_MSG_WARN([--with-mailreceive value was not specified, hoping linker would find Gnome MIME library]) else MIME_INCLUDES="-I$MIME/include/$GMIME" @@ -421,7 +427,7 @@ PA_CHECK_SIGSETJMP dnl see comment above 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