Allow multi-word "install" command.
Autoconf can determine that the correct install command includes flags,
e.g., "/usr/bin/install -c". When using this as a command, we can't
enclose the value in double-quotes, as that makes some shells use the
whole expression as a filename:
# this is the value returned by autoconf and stored in CT_install
$ ins="/usr/bin/install -c"
# if we call it with quotes, the command is not found
$ "${ins}"
bash: /usr/bin/install -c: No such file or directory
# removing the quotes lets it work as expected
$ ${ins}
/usr/bin/install: missing file operand
Try `/usr/bin/install --help' for more information.
Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
1 # Build script for the dmalloc debug library facility
3 do_debug_dmalloc_get() {
4 CT_GetFile "dmalloc-${CT_DMALLOC_VERSION}" http://dmalloc.com/releases/
7 do_debug_dmalloc_extract() {
8 CT_Extract "dmalloc-${CT_DMALLOC_VERSION}"
9 CT_Patch "dmalloc" "${CT_DMALLOC_VERSION}"
12 do_debug_dmalloc_build() {
15 CT_DoStep INFO "Installing dmalloc"
16 CT_DoLog EXTRA "Configuring dmalloc"
18 mkdir -p "${CT_BUILD_DIR}/build-dmalloc"
19 cd "${CT_BUILD_DIR}/build-dmalloc"
21 case "${CT_CC_LANG_CXX}" in
22 y) extra_config+=("--enable-cxx");;
23 *) extra_config+=("--disable-cxx");;
25 case "${CT_THREADS}" in
26 none) extra_config+=("--disable-threads");;
27 *) extra_config+=("--enable-threads");;
29 case "${CT_SHARED_LIBS}" in
30 y) extra_config+=("--enable-shlib");;
31 *) extra_config+=("--disable-shlib");;
34 CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
37 LD="${CT_TARGET}-ld" \
38 AR="${CT_TARGET}-ar" \
40 "${CT_SRC_DIR}/dmalloc-${CT_DMALLOC_VERSION}/configure" \
42 --build="${CT_BUILD}" \
43 --host="${CT_TARGET}" \
46 CT_DoLog EXTRA "Building dmalloc"
49 CT_DoLog EXTRA "Installing dmalloc"
50 CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" installincs installlib
51 CT_DoExecLog ALL make DESTDIR="${CT_DEBUGROOT_DIR}" installutil