diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 311213e..9c9d038 100644 --- a/configure.ac +++ b/configure.ac @@ -73,6 +73,30 @@ AC_ARG_WITH( ] ) +AC_ARG_WITH( + [opkg], + [AS_HELP_STRING([--with-opkg=PATH], [path to opkg])], + [ + case "${withval}" in + 'yes'|'') + AC_MSG_ERROR([--with-opkg requires an argument]) + ;; + 'no') + AC_MSG_ERROR([opkg is required]) + ;; + *) + OPKG="${withval}" + ;; + esac + ], + [ + AC_PATH_PROG([OPKG], [opkg]) + if test -z "${OPKG}"; then + AC_MSG_ERROR([opkg not found]) + fi + ] +) + AC_ARG_ENABLE( [multiarch-libdir], [AS_HELP_STRING( @@ -120,6 +144,7 @@ AC_ARG_WITH( AC_SUBST([SH]) AC_SUBST([LDD]) +AC_SUBST([OPKG]) AC_SUBST([multiarch_libdir]) AC_SUBST([helperdir]) AC_CONFIG_FILES([Makefile]) |