AC_PREREQ([2.57])
-AC_INIT(re2c, 0.13.1.dev, re2c-general@lists.sourceforge.net)
+AC_INIT(re2c, 0.13.2.dev, re2c-general@lists.sourceforge.net)
AM_INIT_AUTOMAKE(re2c, $PACKAGE_VERSION)
AC_CONFIG_SRCDIR(actions.cc)
AM_CONFIG_HEADER(config.h)
AC_SUBST(PACKAGE_NAME)
AC_SUBST(PACKAGE_TARNAME)
AC_SUBST(PACKAGE_RELEASE, ${PACKAGE_RELEASE:-1})
+AC_SUBST(WINBUILDDIR, Release-2005)
# Checks for programs.
AC_PROG_YACC
tstcnt=0;
diff -u $0 $0 >/dev/null 2>&1 && diff='diff -u' || diff='diff'
#diff="${diff} -I '#line [0-9]*'"
+if uname|grep -q -i 'CYGWIN' && test -x "@WINBUILDDIR@/re2c.exe"; then
+re2c='@WINBUILDDIR@/re2c.exe'
+else
+re2c='@builddir@/re2c'
+fi
+echo "Testing: ${re2c}"
+if ${re2c} -v|grep -q 're2c @PACKAGE_VERSION@ *\r*'; then
+echo "Version: @PACKAGE_VERSION@"
+else
+echo "Warning: test build for @PACKAGE_VERSION@ but testing `${re2c} -v`"
+fi
+echo "Diffing: ${diff}"
if test $# = 0; then
tests=`for i in test lessons; do find @top_srcdir@/$i -name '*.re'; done|sort`
else
outdiff=@builddir@/test/`basename ${x%.re}.c.diff`
typname=@builddir@/test/`basename ${x%.re}.h.temp`
typdiff=@builddir@/test/`basename ${x%.re}.h.diff`
- @builddir@/re2c $switches $x 2>&1 | sed -e "s,$x,`basename $x`,g" -e "s,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g" > $outname
+ $re2c $switches $x 2>&1 | sed -e "s,$x,`basename $x`,g" -e "s,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g" > $outname
if test -n "$genname"; then
cat $genname | sed -e 's,@builddir@/test/,,g' -e "s,/\* Generated by re2c .*\*/,/\* Generated by re2c \*/,g" > $outname
rm $genname