diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2012-04-25 03:06:27 +0000 |
---|---|---|
committer | <> | 2015-01-30 17:22:32 +0000 |
commit | 55d1d2c339bc5f935f6d8d702e98b7bd5d968e9d (patch) | |
tree | 50ef475ac4188cd7eb705e81ca6c2b8f4e0a7d6c /tests/wrapper.as | |
download | autoconf-tarball-master.tar.gz |
Imported from /home/lorry/working-area/delta_autoconf-tarball/autoconf-2.69.tar.xz.HEADautoconf-2.69master
Diffstat (limited to 'tests/wrapper.as')
-rw-r--r-- | tests/wrapper.as | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/wrapper.as b/tests/wrapper.as new file mode 100644 index 0000000..7a77a04 --- /dev/null +++ b/tests/wrapper.as @@ -0,0 +1,41 @@ +AS_INIT[]dnl -*- shell-script -*- +# wrapper.as -- running `@wrap_program@' as if it were installed. +# @configure_input@ +# Copyright (C) 2003-2004, 2007, 2009-2012 Free Software Foundation, +# Inc. + +# 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 +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# 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 +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +testdir='@abs_top_builddir@/tests' +PATH=$testdir$PATH_SEPARATOR$PATH +AUTOCONF=autoconf +AUTOHEADER=autoheader +AUTOM4TE=autom4te +AUTOM4TE_CFG='@abs_top_builddir@/lib/autom4te.cfg' +autom4te_perllibdir='@abs_top_srcdir@/lib' +export AUTOCONF AUTOHEADER AUTOM4TE AUTOM4TE_CFG autom4te_perllibdir + +case '@wrap_program@' in + ifnames) + # Does not have lib files. + exec '@abs_top_builddir@/bin/@wrap_program@' ${1+"$@"} + ;; + *) + # We might need files from the build tree (frozen files), in + # addition of src files. + exec '@abs_top_builddir@/bin/@wrap_program@' \ + -B '@abs_top_builddir@'/lib \ + -B '@abs_top_srcdir@'/lib ${1+"$@"} +esac +exit 1 |