summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-15 13:45:09 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-15 13:45:09 (EDT)
commite088bd8454c384f88aee4f9ded7bd75e7b930368 (patch)
tree967f8640cb204b37606f40ce47607f2effe01dc7 /configure
parentc82ef9764fc69d75f2603b5051c4a4c6cd9779bb (diff)
configure: Fix find_dep_lib().
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 8 insertions, 13 deletions
diff --git a/configure b/configure
index 48ab69f..c28455d 100755
--- a/configure
+++ b/configure
@@ -25,13 +25,13 @@ package_description='OPK Build System'
srcdir="$(cd "${0%/*}" && pwd)"
prefix='/usr/local'
-bindir='$(prefix)/bin'
-libdir='$(prefix)/share'
-datadir='$(prefix)/share'
-mandir='$(datadir)/man'
-localedir='$(datadir)/locale'
+bindir='${prefix}/bin'
+libdir='${prefix}/share'
+datadir='${prefix}/share'
+mandir='${datadir}/man'
+localedir='${datadir}/locale'
sysconfdir='/etc'
-libopkbuild='$(libdir)/libopkbuild.1'
+libopkbuild='${libdir}/libopkbuild.1'
metadata='proteanos'
quiet='false'
@@ -301,12 +301,9 @@ find_dep_lib()
${quiet} || printf 'checking for %s... ' "${_dep}"
- IFS=':'
-
- for _element in ${libdir}:${PATH}; do
- unset IFS
+ for _element in $(eval echo "${libdir}") ${PATH}; do
: ${_element=-.}
- if [ -f "${_element}/${_dep}" -a -x "${_element}/${_dep}" ]; then
+ if [ -d "${_element}/${_dep}" ]; then
${quiet} || printf '%s/%s\n' "${_element}" "${_dep}"
_var="$(printf '%s' "${_dep}" | tr -c '[a-z0-9]' '_')"
eval "${_var}"=\"${_element}/${_dep}\"
@@ -314,8 +311,6 @@ find_dep_lib()
fi
done
- unset IFS
-
${quiet} || printf 'not found\n'
return 1
}