This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The top-level configure uses $() variables


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        +


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]