diff options
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 |