From: Paul Eggert Date: Fri, 19 Apr 2002 18:59:59 +0000 (+0000) Subject: Use 'case' statement to work around "$@" shell problem. X-Git-Tag: AUTOCONF-2.53a~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4116a3b2f8a21f7319a11e79769c07172f8bad7;p=thirdparty%2Fautoconf.git Use 'case' statement to work around "$@" shell problem. --- diff --git a/bin/autoheader.in b/bin/autoheader.in index 9047a8ca9..a2a6e0e7f 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -2,11 +2,11 @@ # -*- Perl -*- # @configure_input@ -eval 'exec @PERL@ -S $0 ${1+"$@"}' +eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' if 0; # autoheader -- create `config.h.in' from `configure.ac' -# Copyright 1992, 1993, 1994, 1996, 1998, 1999, 2000, 2001 +# Copyright (C) 1992, 1993, 1994, 1996, 1998, 1999, 2000, 2001, 2002 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify diff --git a/bin/autom4te.in b/bin/autom4te.in index 4e19d4f38..db0027d2a 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -2,11 +2,11 @@ # -*- perl -*- # @configure_input@ -eval 'exec @PERL@ -S $0 ${1+"$@"}' +eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' if 0; # autom4te - Wrapper around M4 libraries. -# Copyright 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002 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 diff --git a/bin/autoreconf.in b/bin/autoreconf.in index 3631091fe..7d0e6e7c9 100644 --- a/bin/autoreconf.in +++ b/bin/autoreconf.in @@ -2,11 +2,11 @@ # -*- perl -*- # @configure_input@ -eval 'exec @PERL@ -S $0 ${1+"$@"}' +eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' if 0; # autoreconf - install the GNU Build System in a directory tree -# Copyright 1994, 1999, 2000, 2001 Free Software Foundation, Inc. +# Copyright (C) 1994, 1999, 2000, 2001, 2002 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 diff --git a/bin/autoscan.in b/bin/autoscan.in index e7101c38a..184e9a409 100644 --- a/bin/autoscan.in +++ b/bin/autoscan.in @@ -1,7 +1,7 @@ #! @PERL@ -w # -*- perl -*- # autoscan - Create configure.scan (a preliminary configure.ac) for a package. -# Copyright 1994, 1999, 2000, 2001 Free Software Foundation, Inc. +# Copyright (C) 1994, 1999, 2000, 2001, 2002 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 @@ -20,7 +20,7 @@ # Written by David MacKenzie . -eval 'exec @PERL@ -S $0 ${1+"$@"}' +eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' if 0; BEGIN diff --git a/bin/autoupdate.in b/bin/autoupdate.in index 63032da16..ee41958d6 100644 --- a/bin/autoupdate.in +++ b/bin/autoupdate.in @@ -1,7 +1,7 @@ #! @PERL@ -w # -*- perl -*- # autoupdate - modernize an Autoconf file. -# Copyright 1994, 1999, 2000, 2001 Free Software Foundation, Inc. +# Copyright (C) 1994, 1999, 2000, 2001, 2002 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 @@ -21,7 +21,7 @@ # Originally written by David MacKenzie . # Rewritten by Akim Demaille . -eval 'exec @PERL@ -S $0 ${1+"$@"}' +eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' if 0; BEGIN diff --git a/bin/ifnames.in b/bin/ifnames.in index 3d1f6a5ea..b15c5c96e 100644 --- a/bin/ifnames.in +++ b/bin/ifnames.in @@ -2,11 +2,13 @@ # -*- perl -*- # @configure_input@ -eval 'exec @PERL@ -S $0 ${1+"$@"}' +eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac' if 0; # ifnames - print the identifiers used in C preprocessor conditionals -# Copyright 1994, 1995, 1999, 2000, 2001 Free Software Foundation, Inc. + +# Copyright (C) 1994, 1995, 1999, 2000, 2001, 2002 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