diff options
author | P. J. McDermott <pjm@nac.net> | 2014-03-05 12:27:43 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2014-03-05 12:27:43 (EST) |
commit | 75ad374eb9d8a5cff65a281aa8ef29b7aaa0904f (patch) | |
tree | 567103669c7302e83532cf0983586eb944e2e0b5 /configure.ac | |
parent | 96360165e6d98cf56e3aabb7c644e48a56d9770d (diff) | |
parent | 495eb104f847b15c405756540588ac2c8f3dcfff (diff) |
Merge branch 'feature/opkbuild-helper-script'.
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 209256e..50c18f1 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,32 @@ AC_ARG_ENABLE( ] ) +AC_ARG_WITH( + [opkbuild-helpers], + [AS_HELP_STRING([--with-opkbuild-helpers=PATH], + [specify directory to install opkbuild helper script])], + [ + opt='opkbuild-helpers' + case "${withval}" in + 'yes'|'') + AC_MSG_ERROR( + [--with-${opt} requires an argument]) + ;; + 'no') + AC_MSG_ERROR([${opt} is required]) + ;; + *) + helperdir="${withval}" + ;; + esac + ], + [ + helperdir='$(datadir)/opkbuild/helpers' + ] +) + AC_SUBST([SH]) AC_SUBST([multiarch_libdir]) +AC_SUBST([helperdir]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT() |