source: trunk/essentials/sys-devel/autoconf/tests/wrapper.as

Last change on this file was 3092, checked in by bird, 18 years ago

autoconf 2.61

File size: 1.5 KB
Line 
1AS_INIT[]dnl -*- shell-script -*-
2# wrapper.as -- running `@wrap_program@' as if it were installed.
3# @configure_input@
4# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2, or (at your option)
9# any later version.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19# 02110-1301, USA.
20
21testdir='@abs_top_builddir@/tests'
22AUTOCONF=$testdir/autoconf
23AUTOHEADER=$testdir/autoheader
24AUTOM4TE=$testdir/autom4te
25AUTOM4TE_CFG='@abs_top_builddir@/lib/autom4te.cfg'
26autom4te_perllibdir='@abs_top_srcdir@/lib'
27export AUTOCONF AUTOHEADER AUTOM4TE AUTOM4TE_CFG autom4te_perllibdir
28
29case '@wrap_program@' in
30 ifnames)
31 # Does not have lib files.
32 exec '@abs_top_builddir@/bin/@wrap_program@' ${1+"$@"}
33 ;;
34 *)
35 # We might need files from the build tree (frozen files), in
36 # addition of src files.
37 exec '@abs_top_builddir@/bin/@wrap_program@' \
38 -B '@abs_top_builddir@'/lib \
39 -B '@abs_top_srcdir@'/lib ${1+"$@"}
40esac
41exit 1
Note: See TracBrowser for help on using the repository browser.