Blame tests/wrapper.as

Packit 47b4ca
AS_INIT[]dnl                                            -*- shell-script -*-
Packit 47b4ca
# wrapper.as -- running `@wrap_program@' as if it were installed.
Packit 47b4ca
# @configure_input@
Packit 47b4ca
# Copyright (C) 2003-2004, 2007, 2009-2012 Free Software Foundation,
Packit 47b4ca
# Inc.
Packit 47b4ca
Packit 47b4ca
# This program is free software: you can redistribute it and/or modify
Packit 47b4ca
# it under the terms of the GNU General Public License as published by
Packit 47b4ca
# the Free Software Foundation, either version 3 of the License, or
Packit 47b4ca
# (at your option) any later version.
Packit 47b4ca
Packit 47b4ca
# This program is distributed in the hope that it will be useful,
Packit 47b4ca
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 47b4ca
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 47b4ca
# GNU General Public License for more details.
Packit 47b4ca
Packit 47b4ca
# You should have received a copy of the GNU General Public License
Packit 47b4ca
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 47b4ca
Packit 47b4ca
testdir='@abs_top_builddir@/tests'
Packit 47b4ca
PATH=$testdir$PATH_SEPARATOR$PATH
Packit 47b4ca
AUTOCONF=autoconf
Packit 47b4ca
AUTOHEADER=autoheader
Packit 47b4ca
AUTOM4TE=autom4te
Packit 47b4ca
AUTOM4TE_CFG='@abs_top_builddir@/lib/autom4te.cfg'
Packit 47b4ca
autom4te_perllibdir='@abs_top_srcdir@/lib'
Packit 47b4ca
export AUTOCONF AUTOHEADER AUTOM4TE AUTOM4TE_CFG autom4te_perllibdir
Packit 47b4ca
Packit 47b4ca
case '@wrap_program@' in
Packit 47b4ca
  ifnames)
Packit 47b4ca
     # Does not have lib files.
Packit 47b4ca
     exec '@abs_top_builddir@/bin/@wrap_program@' ${1+"$@"}
Packit 47b4ca
     ;;
Packit 47b4ca
  *)
Packit 47b4ca
     # We might need files from the build tree (frozen files), in
Packit 47b4ca
     # addition of src files.
Packit 47b4ca
     exec '@abs_top_builddir@/bin/@wrap_program@' \
Packit 47b4ca
	  -B '@abs_top_builddir@'/lib \
Packit 47b4ca
	  -B '@abs_top_srcdir@'/lib ${1+"$@"}
Packit 47b4ca
esac
Packit 47b4ca
exit 1