Position independent wrapper.

* tests/bison: Remove.
* tests/bison.in: New.
* configure.in: Adjust.
This commit is contained in:
Akim Demaille
2001-09-27 15:06:14 +00:00
parent 8c67836b58
commit 02cbcfc577
8 changed files with 24 additions and 17 deletions

View File

@@ -20,7 +20,7 @@
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 = \

View File

@@ -98,7 +98,7 @@ install_sh = @install_sh@
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 = \
@@ -112,9 +112,9 @@ AUTOTEST = $(AUTOM4TE) --language=autotest
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:
@@ -125,6 +125,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
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:

View File

@@ -1,11 +0,0 @@
#! /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+"$@"}

View File

@@ -8,4 +8,4 @@ export BISON_SIMPLE
BISON_HAIRY='@top_srcpath@/src/bison.hairy'
export BISON_HAIRY
exec '@top_builddir@/src/bison' ${1+"$@"}
exec '@top_buildpath@/src/bison' ${1+"$@"}