Maintainer cleanups.
[m4.git] / tests / m4.in
blob34b96046d9b35611509c21645851d8078b4eefa7
1 #! /bin/sh
2 # @configure_input@
3 # Wrapper around a non installed m4 to make it work as an installed one.
5 # Copyright (C) 2001, 2002, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This file is part of GNU M4.
9 # GNU M4 is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # GNU M4 is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22 # Written by Gary V. Vaughan <gary@gnu.org>
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 emulate sh
27 NULLCMD=:
28 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29 # is contrary to our usage. Disable this feature.
30 alias -g '${1+"$@"}'='"$@"'
31 setopt NO_GLOB_SUBST
32 else
33 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
36 M4MODPATH="@abs_top_builddir@/modules${M4MODPATH+:$M4MODPATH}"
37 export M4MODPATH
39 exec "@abs_top_builddir@/src/m4" ${1+"$@"}
40 exit 1