-#! /bin/sh
+#! @SHELL@
# @configure_input@
# Wrapper around a non installed bison to make it work as an installed one.
-# We want to use the files shipped with Bison.
-BISON_SIMPLE='@abs_top_srcdir@/data/bison.simple'
-export BISON_SIMPLE
-BISON_HAIRY='@abs_top_srcdir@/data/bison.hairy'
-export BISON_HAIRY
-
-exec '@abs_top_builddir@/src/bison' ${1+"$@"}
+# Use the shipped files, not those installed.
+BISON_PKGDATADIR='@abs_top_srcdir@/data'
+export BISON_PKGDATADIR
+exec $PREBISON '@abs_top_builddir@/src/bison' ${1+"$@"}