--- parser3/Attic/configure.in 2012/06/14 21:11:20 1.165 +++ parser3/Attic/configure.in 2012/06/15 13:04:12 1.170 @@ -1,6 +1,6 @@ dnl Autoconf initialisation AC_PREREQ(2.59) -AC_INIT(parser, 3.4.2 RC) +AC_INIT(parser, 3.4.2) AC_CONFIG_SRCDIR(README) @@ -13,8 +13,9 @@ P3S=`cd $srcdir/src ; pwd` AC_SUBST(P3S) -dnl AC_CANONICAL_HOST also required for pa_version.h update +dnl Parser version update AC_CANONICAL_HOST +AC_DEFINE_UNQUOTED(PARSER_VERSION,"$VERSION (compiled on $host)",parser version) AC_SUBST(host_os) case $host_os in @@ -82,30 +83,6 @@ AC_ARG_WITH(sjlj-exceptions,[ --with-sj ) -dnl Version argument -AC_ARG_ENABLE(version-update, [ --disable-version-update to disable version update with host information], -[ - VERSION_UPDATE=$enableval -] -) - -if test "$VERSION_UPDATE" != "no"; then - PARSER_VERSION="$VERSION (compiled on $host)" - echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new - echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new - echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new - cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1 - if test $? -ne 0 ; then - mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h - echo "updated $srcdir/src/include/pa_version.h" - else - rm -f $srcdir/src/include/pa_version.h.new - fi -else - echo "skipped $srcdir/src/include/pa_version.h update" -fi - - dnl Safe mode argument AC_ARG_ENABLE(safe-mode, [ --disable-safe-mode to enable reading and executing files belonging to group+user other then effective], @@ -197,6 +174,7 @@ AC_ARG_WITH(pcre,[ --with-pcre=D ],[ PCRE_LIBS="-lpcre" + PCRE_INCLUDES="" AC_MSG_WARN([--with-pcre was not specified, hoping linker would find it]) ])