diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-08 21:00:22 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-08 21:05:31 (EDT) |
commit | e5157f0dc5557f504ac752bb4687499a51e59bae (patch) | |
tree | 89c138dbd2c30e9fedee19da4d5b3493df909ad5 /configure | |
parent | 9e9a1a5c91e66b238006500adf78df8e9f6f4b45 (diff) |
Make opkhelper-3.0 an optional dependency.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -40,7 +40,7 @@ dep_cmds=' sh opkg ' -dep_libs=' +opt_dep_libs=' opkhelper-3.0 ' @@ -57,6 +57,8 @@ sysconfdir features="${dep_cmds} ${dep_libs} +${opt_dep_cmds} +${opt_dep_libs} metadata" subst_vars="package_name @@ -84,6 +86,20 @@ main() find_dep_lib "${dep}" || missing_deps='true' fi done + for dep in ${opt_dep_cmds}; do + dep_name="$(printf '%s' "${dep}" | tr -c '[a-z0-9]' '_')" + dep_val="$(eval echo \$\{"${dep_name}"\})" + if [ -z "${dep_val}" ]; then + find_dep_cmd "${dep}" + fi + done + for dep in ${opt_dep_libs}; do + dep_name="$(printf '%s' "${dep}" | tr -c '[a-z0-9]' '_')" + dep_val="$(eval echo \$\{"${dep_name}"\})" + if [ -z "${dep_val}" ]; then + find_dep_lib "${dep}" + fi + done if ${missing_deps}; then cat <<EOF @@ -143,6 +159,8 @@ Features: Dependencies: --with-sh=PATH use sh at PATH --with-opkg=PATH use opkg at PATH + +Optional Dependencies: --with-opkhelper-3.0=PATH use opkhelper-3.0 at PATH EOF |