diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -244,20 +244,20 @@ find_dep_cmd() ${quiet} || printf 'checking for %s... ' "${dep}" - _old_ifs="${IFS}" - IFS=: + IFS=':' for _element in ${PATH}; do + unset IFS : ${_element=-.} if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then ${quiet} || printf '%s/%s\n' "${_element}" "${_dep}" eval "${_dep}"=\"${_element}/${_dep}\" - IFS="${_old_ifs}" return 0 fi done - IFS="${_old_ifs}" + unset IFS + ${quiet} || printf 'not found\n' missing_deps='true' return 1 @@ -269,20 +269,20 @@ find_dep_lib() ${quiet} || printf 'checking for %s... ' "${dep}" - _old_ifs="${IFS}" - IFS=: + IFS=':' for _element in ${libdir}:${PATH}; do + unset IFS : ${_element=-.} if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then ${quiet} || printf '%s/%s\n' "${_element}" "${_dep}" eval "${_dep}"=\"${_element}/${_dep}\" - IFS="${_old_ifs}" return 0 fi done - IFS="${_old_ifs}" + unset IFS + ${quiet} || printf 'not found\n' missing_deps='true' return 1 |