This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: The top-level configure uses $() variables
- To: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Subject: Re: The top-level configure uses $() variables
- From: Eric Christopher <echristo at redhat dot com>
- Date: Fri, 19 Jan 2001 13:18:20 -0800
- CC: binutils at sourceware dot cygnus dot com, gcc-patches at gcc dot gnu dot org
- References: <Pine.GSO.3.96.1010119211943.19533C-100000@delta.ds2.pg.gda.pl>
Configure is a generated file. You'll need to either change
configure.in or autoconf. (Depending on where the problem is...)
-eric
"Maciej W. Rozycki" wrote:
>
> Hi,
>
> In short: $() variable references cause problems with sh and as a result
> such invocations as:
>
> /configure '--libdir=${exec_prefix}/mipsel-linux/i386-linux/lib'
>
> do not work.
>
> ChangeLog:
>
> 2001-01-19 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
>
> * configure: Use ${} and not $() for prefix and exec_prefix
> references.
>
> Maciej
>
> --
> + Maciej W. Rozycki, Technical University of Gdansk, Poland +
> +--------------------------------------------------------------+
> + e-mail: macro@ds2.pg.gda.pl, PGP key available +
>
> binutils-2.9.5-configure.patch
> diff -u --recursive --new-file binutils.macro/configure binutils/configure
> --- binutils.macro/configure Tue Aug 10 12:46:33 1999
> +++ binutils/configure Sun Oct 3 22:05:30 1999
> @@ -579,7 +579,7 @@
>
> # default exec_prefix
> case "${exec_prefixoption}" in
> -"") exec_prefix="\$(prefix)" ;;
> +"") exec_prefix="\${prefix}" ;;
> *) ;;
> esac
>
> @@ -779,7 +779,7 @@
>
> # Some systems (e.g., one of the i386-aix systems the gas testers are
> # using) don't handle "\$" correctly, so don't use it here.
> -tooldir='$(exec_prefix)'/${target_alias}
> +tooldir='${exec_prefix}'/${target_alias}
>
> if [ "${host_alias}" != "${target_alias}" ] ; then
> if [ "${program_prefixoption}" = "" ] ; then