| 1 |
AS_INIT[]dnl -*- shell-script -*- |
| 2 |
# wrapper.as -- running '@wrap_program@' as if it were installed. |
| 3 |
# @configure_input@ |
| 4 |
# Copyright (C) 2003-2004, 2007, 2009-2017, 2020-2026 Free Software |
| 5 |
# Foundation, Inc. |
| 6 |
|
| 7 |
# This program is free software: you can redistribute it and/or modify |
| 8 |
# it under the terms of the GNU General Public License as published by |
| 9 |
# the Free Software Foundation, either version 3 of the License, or |
| 10 |
# (at your option) any later version. |
| 11 |
|
| 12 |
# This program is distributed in the hope that it will be useful, |
| 13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
# GNU General Public License for more details. |
| 16 |
|
| 17 |
# You should have received a copy of the GNU General Public License |
| 18 |
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 19 |
|
| 20 |
testdir='@abs_top_builddir@/tests' |
| 21 |
PATH=$testdir$PATH_SEPARATOR$PATH |
| 22 |
AUTOCONF=autoconf |
| 23 |
AUTOHEADER=autoheader |
| 24 |
AUTOM4TE=autom4te |
| 25 |
AUTOM4TE_CFG='@abs_top_builddir@/lib/autom4te.cfg' |
| 26 |
autom4te_buildauxdir='@abs_top_srcdir@/build-aux' |
| 27 |
autom4te_perllibdir='@abs_top_srcdir@/lib' |
| 28 |
trailer_m4='@abs_top_srcdir@/lib/autoconf/trailer.m4' |
| 29 |
export AUTOCONF AUTOHEADER AUTOM4TE AUTOM4TE_CFG |
| 30 |
export autom4te_buildauxdir autom4te_perllibdir trailer_m4 |
| 31 |
|
| 32 |
# Programs other than ifnames might need files from the build tree |
| 33 |
# (frozen files), in addition to src files. |
| 34 |
prog='@abs_top_builddir@/bin/@wrap_program@' |
| 35 |
buildlib='@abs_top_builddir@/lib' |
| 36 |
srclib='@abs_top_srcdir@/lib' |
| 37 |
case $#,'@wrap_program@' in |
| 38 |
0,ifnames) exec "$prog" ;; |
| 39 |
*,ifnames) exec "$prog" "$@" ;; |
| 40 |
0,*) exec "$prog" -B "$buildlib" -B "$srclib" ;; |
| 41 |
*) exec "$prog" -B "$buildlib" -B "$srclib" "$@" ;; |
| 42 |
esac |
| 43 |
exit 1 |