tools, configure: Fix LIB_PATH computation in configure scripts
PATCH 1/1 tools, configure: Fix LIB_PATH computation in configure scripts
# HG changeset patch
# User Boris Ostrovsky <[email protected]>
# Date 1339181838 -7200
# Node ID 64754e082aa4ce22116cc86da60f544e97b0e3b1
# Parent 32034d1914a607d7b6f1f060352b4cac973600f8 tools, configure: Fix LIB_PATH computation in configure scripts
tool's configure script sets LIB_PATH by chopping off ${exec_prefix} from $libdir and it does so by computing length of ${exec_prefix} value. However, $libdir's value is a literal '${exec_prefix}/lib' string (i.e. $exec_prefix is not substituted) and therefore LIB_PATH may be computed incorrectly, most likely as "c_prefix}/lib64" assuming that exec_prefix is NONE.
Instead, we should start at offset `expr length '${exec_prefix}/' (which is 15).
tools/configure +1 -1
@@ -6062,7 +6062,7 @@ fi else - LIB_PATH="${libdir:`expr length "$exec_prefix" + 1`}" + LIB_PATH="${libdir:`expr length '${exec_prefix}/'`}" fi
tools/m4/default_lib.m4 +1 -1
@@ -9,6 +9,6 @@ AC_DEFUN([AX_DEFAULT_LIB], LIB_PATH="lib" ]) ], [ - LIB_PATH="${libdir:`expr length "$exec_prefix" + 1`}" + LIB_PATH="${libdir:`expr length "${exec_prefix}/"`}" ]) AC_SUBST(LIB_PATH)])