2004-12-10 05:14:45 +08:00
|
|
|
AS_INIT[]dnl -*- shell-script -*-
|
|
|
|
# wrapper.as -- running `@wrap_program@' as if it were installed.
|
2002-04-12 17:56:10 +08:00
|
|
|
# @configure_input@
|
2007-12-05 05:47:42 +08:00
|
|
|
# Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc.
|
2002-04-12 17:56:10 +08:00
|
|
|
|
2007-07-21 07:11:49 +08:00
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
2008-04-04 23:09:47 +08:00
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
2003-09-25 17:30:34 +08:00
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2008-04-04 23:09:47 +08:00
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
# 02110-1301, USA.
|
2003-09-25 17:30:34 +08:00
|
|
|
|
2004-08-20 14:22:43 +08:00
|
|
|
testdir='@abs_top_builddir@/tests'
|
2007-12-05 05:47:42 +08:00
|
|
|
PATH=$testdir$PATH_SEPARATOR$PATH
|
|
|
|
AUTOCONF=autoconf
|
|
|
|
AUTOHEADER=autoheader
|
|
|
|
AUTOM4TE=autom4te
|
2004-08-20 14:22:43 +08:00
|
|
|
AUTOM4TE_CFG='@abs_top_builddir@/lib/autom4te.cfg'
|
|
|
|
autom4te_perllibdir='@abs_top_srcdir@/lib'
|
2002-06-15 15:47:42 +08:00
|
|
|
export AUTOCONF AUTOHEADER AUTOM4TE AUTOM4TE_CFG autom4te_perllibdir
|
2002-04-12 17:56:10 +08:00
|
|
|
|
2004-12-10 05:14:45 +08:00
|
|
|
case '@wrap_program@' in
|
2002-04-12 17:56:10 +08:00
|
|
|
ifnames)
|
|
|
|
# Does not have lib files.
|
2004-12-10 05:14:45 +08:00
|
|
|
exec '@abs_top_builddir@/bin/@wrap_program@' ${1+"$@"}
|
2002-04-12 17:56:10 +08:00
|
|
|
;;
|
2002-07-17 18:13:32 +08:00
|
|
|
*)
|
|
|
|
# We might need files from the build tree (frozen files), in
|
|
|
|
# addition of src files.
|
2004-12-10 05:14:45 +08:00
|
|
|
exec '@abs_top_builddir@/bin/@wrap_program@' \
|
2004-08-20 14:22:43 +08:00
|
|
|
-B '@abs_top_builddir@'/lib \
|
2004-12-10 05:14:45 +08:00
|
|
|
-B '@abs_top_srcdir@'/lib ${1+"$@"}
|
2002-04-12 18:10:10 +08:00
|
|
|
esac
|
2002-07-17 18:13:32 +08:00
|
|
|
exit 1
|