* tests/bison: Remove.
* tests/bison.in: New.
* configure.in: Adjust.
+2001-09-27 Akim Demaille <akim@epita.fr>
+
+ Position independent wrapper.
+
+ * tests/bison: Remove.
+ * tests/bison.in: New.
+ * configure.in: Adjust.
+
2001-09-27 Paul Eggert <eggert@twinsun.com>
Port quotearg fixes from tar 1.13.24.
fi
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
mkdir $(distdir)
- $(mkinstalldirs) $(distdir)/intl $(distdir)/po
+ $(mkinstalldirs) $(distdir)/intl $(distdir)/po $(distdir)/tests
@for file in $(DISTFILES); do \
if test -f $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
fi
+ac_config_files="$ac_config_files tests/bison"
+
# Checks for programs.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
case "$ac_config_target" in
# Handling of arguments.
"tests/atlocal" ) CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
+ "tests/bison" ) CONFIG_FILES="$CONFIG_FILES tests/bison" ;;
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
"intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
rm -f $tmp/out
fi
+ # Run the commands associated with the file.
+ case $ac_file in
+ tests/bison ) chmod +x tests/bison ;;
+ esac
done
_ACEOF
cat >>$CONFIG_STATUS <<\_ACEOF
# Initialize the test suite.
AC_CONFIG_TESTDIR(tests)
+AC_CONFIG_FILES([tests/bison], [chmod +x tests/bison])
# Checks for programs.
AC_PROG_CC
EXTRA_DIST = atlocal.in bison $(TESTSUITE_AT) testsuite
-DISTCLEANFILES = atconfig atlocal package.m4
+DISTCLEANFILES = atconfig atlocal bison package.m4
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
TESTSUITE_AT = \
EXTRA_DIST = atlocal.in bison $(TESTSUITE_AT) testsuite
-DISTCLEANFILES = atconfig atlocal package.m4
+DISTCLEANFILES = atconfig atlocal bison package.m4
MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE)
TESTSUITE_AT = \
subdir = tests
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_FILES = bison
DIST_SOURCES =
-DIST_COMMON = Makefile.am Makefile.in
+DIST_COMMON = Makefile.am Makefile.in bison.in
all: all-am
.SUFFIXES:
cd $(top_builddir) && \
CONFIG_HEADERS= CONFIG_LINKS= \
CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
+bison: $(top_builddir)/config.status bison.in
+ cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
uninstall-info-am:
tags: TAGS
TAGS:
+++ /dev/null
-#! /bin/sh
-# Wrapper around a non installed bison to make it work as an installed one.
-. ./atconfig
-
-# We want to use the files shipped with Bison.
-BISON_SIMPLE=$top_srcdir/src/bison.simple
-export BISON_SIMPLE
-BISON_HAIRY=$top_srcdir/src/bison.hairy
-export BISON_HAIRY
-
-exec $top_builddir/src/bison ${1+"$@"}
BISON_HAIRY='@top_srcpath@/src/bison.hairy'
export BISON_HAIRY
-exec '@top_builddir@/src/bison' ${1+"$@"}
+exec '@top_buildpath@/src/bison' ${1+"$@"}