Configure problems when overriding some directories

Maciej W. Rozycki macro@ds2.pg.gda.pl
Mon Oct 11 10:18:00 GMT 1999


Hi,

 It seems that the main configure script refers to some variables via
"$(...)" and not "${...}" which renders them shell-incompatible.  This
manifests, e.g. when overriding libdir like in:

$ ./configure --prefix=/usr
--libdir='${exec_prefix}'/mipsel-linux/i386-linux/lib --enable-shared
--disable-static --target=mipsel-linux i386-linux

(quite reasonable for a cross-development suite, I believe).  As a result
an annoying weird error is being printed:

./config.status: prefix: command not found

when configuring in libiberty.

 The following patch fixes the problem for me.  Here is a ChangeLog entry
as well.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

Mon Oct 11 1999  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>

        * configure: Use ${...} not $(...) for shell
        compatibilty.

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




More information about the Binutils mailing list