This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: The top-level configure uses $() variables
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: The top-level configure uses $() variables
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Date: Mon, 22 Jan 2001 12:15:02 +0100 (MET)
- cc: binutils at sourceware dot cygnus dot com, gcc-patches at gcc dot gnu dot org
- Organization: Technical University of Gdansk
- Reply-To: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
On Fri, 19 Jan 2001, Richard Henderson wrote:
> Let's hear the long explanation instead.
>
> Each place you've changed is supposed to already be quoted so that sh
> does nothing but pass the whole construct through to make. So () vs {}
> shouldn't matter.
Here you are:
$ CC=i386-linux-gcc CFLAGS="-pipe -O2 -fomit-frame-pointer -mcpu=i486"
./configure --prefix=/usr
--libdir='${exec_prefix}/mipsel-linux/i386-linux/lib' --enable-shared
--disable-static --cache-file=config.cache --build=i386-linux
--host=i386-linux --target=mipsel-linux
Created "Makefile" in /home/macro/src/redhat/BUILD/binutils using
"mh-frag" and "mt-frag"
[...]
Configuring libiberty...
[...]
updating cache ../config.cache
creating ./config.status
creating Makefile
creating testsuite/Makefile
creating config.h
./config.status: prefix: command not found
Configuring opcodes...
[...]
It looks like not everything got quoted...
After digging in libiberty/config.status I found the following statement:
ac_configure_args="--enable-multilib --build=i386-linux --host=i386-linux
--target=mipsel-linux --prefix=/usr
'--libdir=$(prefix)/mipsel-linux/i386-linux/lib' --with-stabs
--with-gnu-as --with-gnu-ld --enable-shared --disable-static
--cache-file=../config.cache"
I don't think there is an easy way to get around it. With ${prefix} it
gets expanded, at least, which is fine for me -- you shouldn't need to
override prefix in the make's command line if autoconf is used unless
something is broken.
Please apply the patch.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +